| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 var mu=Object.create;var ir=Object.defineProperty;var gu=Object.getOwnPropertyDescriptor;var hu=Object.getOwnPropertyNames;var yu=Object.getPrototypeOf,xu=Object.prototype.hasOwnProperty;var Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ot=(e,t)=>{for(var o in t)ir(e,o,{get:t[o],enumerable:!0})},vu=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hu(t))!xu.call(e,r)&&r!==o&&ir(e,r,{get:()=>t[r],enumerable:!(n=gu(t,r))||n.enumerable});return e};var v=(e,t,o)=>(o=e!=null?mu(yu(e)):{},vu(t||!e||!e.__esModule?ir(o,"default",{value:e,enumerable:!0}):o,e));var sr=Le((em,zi)=>{zi.exports=window.wp.htmlEntities});var L=Le((tm,Wi)=>{Wi.exports=window.React});var se=Le((Tm,cs)=>{cs.exports=window.ReactJSXRuntime});var bt=Le((Im,fs)=>{fs.exports=window.ReactDOM});var st=Le((ng,bs)=>{bs.exports=window.wp.element});var Rs=Le((rg,ws)=>{ws.exports=window.wp.primitives});var xa=Le(ya=>{"use strict";var Kt=L();function dd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pd=typeof Object.is=="function"?Object.is:dd,md=Kt.useState,gd=Kt.useEffect,hd=Kt.useLayoutEffect,yd=Kt.useDebugValue;function xd(e,t){var o=t(),n=md({inst:{value:o,getSnapshot:t}}),r=n[0].inst,i=n[1];return hd(function(){r.value=o,r.getSnapshot=t,Fr(r)&&i({inst:r})},[e,o,t]),gd(function(){return Fr(r)&&i({inst:r}),e(function(){Fr(r)&&i({inst:r})})},[e]),yd(o),o}function Fr(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!pd(e,o)}catch{return!0}}function vd(e,t){return t()}var bd=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?vd:xd;ya.useSyncExternalStore=Kt.useSyncExternalStore!==void 0?Kt.useSyncExternalStore:bd});var vn=Le((ly,va)=>{"use strict";va.exports=xa()});var wa=Le(ba=>{"use strict";var bn=L(),wd=vn();function Rd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ed=typeof Object.is=="function"?Object.is:Rd,Sd=wd.useSyncExternalStore,Td=bn.useRef,Cd=bn.useEffect,Pd=bn.useMemo,_d=bn.useDebugValue;ba.useSyncExternalStoreWithSelector=function(e,t,o,n,r){var i=Td(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=Pd(function(){function c(p){if(!u){if(u=!0,d=p,p=n(p),r!==void 0&&s.hasValue){var f=s.value;if(r(f,p))return l=f}return l=p}if(f=l,Ed(d,p))return f;var h=n(p);return r!==void 0&&r(f,h)?(d=p,f):(d=p,l=h)}var u=!1,d,l,m=o===void 0?null:o;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,o,n,r]);var a=Sd(e,i[0],i[1]);return Cd(function(){s.hasValue=!0,s.value=a},[a]),_d(a),a}});var Ea=Le((uy,Ra)=>{"use strict";Ra.exports=wa()});var io=Le((xR,xc)=>{xc.exports=window.wp.i18n});var Lc=Le((BR,Dc)=>{Dc.exports=window.wp.theme});var Vc=Le((jR,Fc)=>{Fc.exports=window.wp.privateApis});var Di=v(sr(),1);var vt=v(L(),1);var Yi=v(L(),1),$i={};function pe(e,t){let o=Yi.useRef($i);return o.current===$i&&(o.current=e(t)),o}function ar(e,t,o,n){let r=pe(Xi).current;return bu(r,e,t,o,n)&&Ki(r,[e,t,o,n]),r.callback}function qi(e){let t=pe(Xi).current;return wu(t,e)&&Ki(t,e),t.callback}function Xi(){return{callback:null,cleanup:null,refs:[]}}function bu(e,t,o,n,r){return e.refs[0]!==t||e.refs[1]!==o||e.refs[2]!==n||e.refs[3]!==r}function wu(e,t){return e.refs.length!==t.length||e.refs.some((o,n)=>o!==t[n])}function Ki(e,t){if(e.refs=t,t.every(o=>o==null)){e.callback=null;return}e.callback=o=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),o!=null){let n=Array(t.length).fill(null);for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=i(o);typeof s=="function"&&(n[r]=s);break}case"object":{i.current=o;break}default:}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){let i=t[r];if(i!=null)switch(typeof i){case"function":{let s=n[r];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}default:}}}}}}var Ji=v(L(),1);var Gi=v(L(),1),Ru=parseInt(Gi.version,10);function zt(e){return Ru>=e}function lr(e){if(!Ji.isValidElement(e))return null;let t=e,o=t.props;return(zt(19)?o?.ref:t.ref)??null}function mo(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Xe(){}var Zi=Object.freeze([]),ne=Object.freeze({});function Qi(e,t){let o={};for(let n in e){let r=e[n];if(t?.hasOwnProperty(n)){let i=t[n](r);i!=null&&Object.assign(o,i);continue}r===!0?o[`data-$n.toLowerCase()}`]="":r&&(o[`data-$n.toLowerCase()}`]=r.toString())}return o}function es(e,t){return typeof e=="function"?e(t):e}function ts(e,t){return typeof e=="function"?e(t):e}var os={};function Ke(e,t,o,n,r){if(!o&&!n&&!r&&!e)return qo(t);let i=qo(e);return t&&(i=go(i,t)),o&&(i=go(i,o)),n&&(i=go(i,n)),r&&(i=go(i,r)),i}function ns(e){if(e.length===0)return os;if(e.length===1)return qo(e[0]);let t=qo(e[0]);for(let o=1;o<e.length;o+=1)t=go(t,e[o]);return t}function qo(e){return is(e)?{...e(os)}:Eu(e)}function go(e,t){return is(t)?t(e):Su(e,t)}function Eu(e){let t={...e};for(let o in t){let n=t[o];rs(o,n)&&(t[o]=ss(n))}return t}function Su(e,t){if(!t)return e;for(let o in t){let n=t[o];switch(o){case"style":{e[o]=mo(e.style,n);break}case"className":{e[o]=cr(e.className,n);break}default:rs(o,n)?e[o]=Tu(e[o],n):e[o]=n}}return e}function rs(e,t){let o=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2);return o===111&&n===110&&r>=65&&r<=90&&(typeof t=="function"||typeof t>"u")}function is(e){return typeof e=="function"}function Tu(e,t){return t?e?(...o)=>{let n=o[0];if(ls(n)){let i=n;as(i);let s=t(...o);return i.baseUIHandlerPrevented||e?.(...o),s}let r=t(...o);return e?.(...o),r}:ss(t):e}function ss(e){return e&&((...t)=>{let o=t[0];return ls(o)&&as(o),e(...t)})}function as(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function cr(e,t){return t?e?t+" "+e:t:e}function ls(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}var ur=v(L(),1);function _e(e,t,o={}){let n=t.render;o.enabled!==!1&&(n=Ou(n));let r=Cu(t,o,n);if(o.enabled===!1)return null;let i=o.state??ne;return Au(e,n,r,i)}function Cu(e,t,o){let{className:n,style:r}=e,{state:i=ne,ref:s,props:a,stateAttributesMapping:c,enabled:u=!0}=t,d=u?es(n,i):void 0,l=u?ts(r,i):void 0,m=u?Qi(i,c):ne,p=u&&a?Pu(a):void 0,f=u?mo(m,p)??{}:ne;return typeof document<"u"&&(u?Array.isArray(s)?f.ref=qi([f.ref,lr(o),...s]):f.ref=ar(f.ref,lr(o),s):ar(null,null)),u?(d!==void 0&&(f.className=cr(f.className,d)),l!==void 0&&(f.style=mo(f.style,l)),f):ne}function Pu(e){return Array.isArray(e)?ns(e):Ke(void 0,e)}var _u=Symbol.for("react.lazy");function Ou(e){if(e?.$$typeof!==_u)return e;let t=vt.Children.toArray(e)[0];return vt.isValidElement(t)?t:e}function Au(e,t,o,n){if(t){if(typeof t=="function")return t(o,n);let r=Ke(o,t.props);return r.ref=o.ref,vt.cloneElement(t,r)}return Iu(e,o)}function Iu(e,t){return e==="button"?(0,ur.createElement)("button",{type:"button",...t,key:t.key}):e==="img"?(0,ur.createElement)("img",{alt:"",...t,key:t.key}):vt.createElement(e,t)}function ku(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set("code",n.toString()),r.forEach(s=>i.searchParams.append("args[]",s)),`$t} error #$n}; visit $i} for the full message.`}}var Nu=ku("https://base-ui.com/production-error","Base UI"),nt=Nu;var Mu=v(L(),1),ho={...Mu};var fr=ho.useInsertionEffect,Du=fr&&fr!==ho.useLayoutEffect?fr:e=>e();function V(e){let t=pe(Lu).current;return t.next=e,Du(t.effect),t.trampoline}function Lu(){let e={next:void 0,callback:Fu,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Fu(){}var us=v(L(),1),Vu=()=>{},M=typeof document<"u"?us.useLayoutEffect:Vu;var hs=v(L(),1);var mr=v(bt(),1);var ds=v(L(),1);function Wt(e){ds.useEffect(e,Zi)}var Xo=null,Lm=globalThis.requestAnimationFrame,dr=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;let o=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let r=0;r<o.length;r+=1)o[r]?.(t)};request(t){let o=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(t){let o=t-this.startId;o<0||o>=this.callbacks.length||this.callbacks[o]!==null&&(this.callbacks[o]=null,this.callbacksCount-=1)}},Ko=new dr;var rt=class e{static create(){return new e}static request(t){return Ko.request(t)}static cancel(t){return Ko.cancel(t)}currentId=Xo;request(t){this.cancel(),this.currentId=Ko.request(()=>{this.currentId=Xo,t()})}cancel=()=>{this.currentId!==Xo&&(Ko.cancel(this.currentId),this.currentId=Xo)};disposeEffect=()=>this.cancel};function $t(){let e=pe(rt.create).current;return Wt(e.disposeEffect),e}function ps(e){return e==null?e:"current"in e?e.current:e}function pr(e,t){return e.getAnimations(t).filter(o=>{let n=o.effect?.getTiming();return n?.duration!==1/0&&n?.iterations!==1/0})}var Go="data-starting-style",ms="data-ending-style";var Jo=null;function Hu(e){if(!Jo){let t=[];Jo=t,queueMicrotask(()=>{Jo=null,mr.flushSync(()=>{for(let o of t)o()})})}Jo.push(e)}function Yt(e,t=!1,o=!1){let n=$t();return V((r,i=null)=>{n.cancel();let s=ps(e);if(s==null)return;let a=s,c=()=>{if(!o){mr.flushSync(r);return}Hu(()=>{i?.aborted||r()})};if(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function u(){Promise.all(pr(a).map(d=>d.finished.then(Xe))).then(()=>{i?.aborted||c()},()=>{if(i?.aborted)return;if(pr(a).some(l=>l.pending||l.playState!=="finished")){u();return}c()})}if(t){let d=Go;if(!a.hasAttribute(d)){n.request(u);return}let l=new MutationObserver(()=>{a.hasAttribute(d)||(l.disconnect(),u())});l.observe(a,{attributes:!0,attributeFilter:[d]}),i?.addEventListener("abort",()=>l.disconnect(),{once:!0});return}n.request(u)})}function Zo(e){let{enabled:t=!0,open:o,ref:n,batch:r=!1,onComplete:i}=e,s=V(i),a=Yt(n,o,r);hs.useEffect(()=>{if(!t)return;let c=new AbortController;return a(s,c.signal),()=>{c.abort()}},[t,o,s,a])}var Bu={[Go]:""},ju={[ms]:""},ys={transitionStatus(e){return e==="starting"?Bu:e==="ending"?ju:null}};var gr=v(L(),1);function xs(e,t=!1,o=!1,n=!1){let[r,i]=gr.useState(e&&t?"idle":void 0),[s,a]=gr.useState(e&&!n);return e&&!s&&(a(!0),i("starting")),!e&&s&&r!=="ending"&&!o&&i("ending"),!e&&!s&&r==="ending"&&i(void 0),M(()=>{if(!e&&s&&r!=="ending"&&o){let c=rt.request(()=>{i("ending")});return()=>{rt.cancel(c)}}},[e,s,r,o]),M(()=>{if(!e||t||r===void 0)return;let c=rt.request(()=>{i(void 0)});return()=>{rt.cancel(c)}},[t,e,r]),M(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&i("starting");let c=rt.request(()=>{i("idle")});return()=>{rt.cancel(c)}},[t,e,s,r]),{mounted:s,setMounted:a,transitionStatus:r}}var yo=0,Ue=class e{static create(){return new e}currentId=yo;start(t,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=yo,o()},t)}isStarted(){return this.currentId!==yo}clear=()=>{this.currentId!==yo&&(clearTimeout(this.currentId),this.currentId=yo)};disposeEffect=()=>this.clear};function ze(){let e=pe(Ue.create).current;return Wt(e.disposeEffect),e}function vs(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(o=vs(e[t]))&&(n&&(n+=" "),n+=o)}else for(o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function Uu(){for(var e,t,o=0,n="",r=arguments.length;o<r;o++)(e=arguments[o])&&(t=vs(e))&&(n&&(n+=" "),n+=t);return n}var it=Uu;var tn=v(L(),1);var Qo=v(L(),1);function en(){let[,e]=Qo.useState({});return Qo.useCallback(()=>{e({})},[])}var Es=0;function zu(e,t="mui"){let o=tn.useRef(void 0),n=en(),r=e??o.current;return tn.useEffect(()=>{o.current==null&&(Es+=1,o.current=`$t}-$Es}`,e==null&&n())},[e,t,n]),r}var Ss=ho.useId;function qt(e,t){if(Ss!==void 0){let o=Ss();return e??(t?`$t}-$o}`:o)}return zu(e,t)}function Ts(e){return qt(e,"base-ui")}function K(e,t,o,n){let r=!1,i=!1,s=n??ne;return{reason:e,event:t??new Event("base-ui"),cancel(){r=!0},allowPropagation(){i=!0},get isCanceled(){return r},get isPropagationAllowed(){return i},trigger:o,...s}}var z={};ot(z,{cancelOpen:()=>vf,chipRemovePress:()=>Qu,clearPress:()=>Zu,closePress:()=>Gu,closeWatcher:()=>ff,decrementPress:()=>of,disabled:()=>wf,drag:()=>gf,escapeKey:()=>uf,focusOut:()=>cf,imperativeAction:()=>Sf,incrementPress:()=>tf,initial:()=>Ef,inputBlur:()=>sf,inputChange:()=>nf,inputClear:()=>rf,inputPaste:()=>af,inputPress:()=>lf,itemPress:()=>Ku,keyboard:()=>pf,linkPress:()=>Ju,listNavigation:()=>df,missing:()=>Rf,none:()=>Wu,outsidePress:()=>Xu,pointer:()=>mf,popupClose:()=>xf,scrub:()=>yf,siblingOpen:()=>bf,swipe:()=>Tf,trackPress:()=>ef,triggerFocus:()=>qu,triggerHover:()=>Yu,triggerPress:()=>$u,wheel:()=>hf,windowResize:()=>Cf});var Wu="none",$u="trigger-press",Yu="trigger-hover",qu="trigger-focus",Xu="outside-press",Ku="item-press",Gu="close-press",Ju="link-press",Zu="clear-press",Qu="chip-remove-press",ef="track-press",tf="increment-press",of="decrement-press",nf="input-change",rf="input-clear",sf="input-blur",af="input-paste",lf="input-press",cf="focus-out",uf="escape-key",ff="close-watcher",df="list-navigation",pf="keyboard",mf="pointer",gf="drag",hf="wheel",yf="scrub",xf="popup-close",vf="cancel-open",bf="sibling-open",wf="disabled",Rf="missing",Ef="initial",Sf="imperative-action",Tf="swipe",Cf="window-resize";function on(){return typeof window<"u"}function kt(e){return nn(e)?(e.nodeName||"").toLowerCase():"#document"}function re(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(nn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nn(e){return on()?e instanceof Node||e instanceof re(e).Node:!1}function $(e){return on()?e instanceof Element||e instanceof re(e).Element:!1}function me(e){return on()?e instanceof HTMLElement||e instanceof re(e).HTMLElement:!1}function It(e){return!on()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof re(e).ShadowRoot}function xo(e){let{overflow:t,overflowX:o,overflowY:n,display:r}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function Cs(e){return/^(table|td|th)$/.test(kt(e))}function vo(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var Pf=/transform|translate|scale|rotate|perspective|filter/,_f=/paint|layout|strict|content/,At=e=>!!e&&e!=="none",hr;function rn(e){let t=$(e)?Se(e):e;return At(t.transform)||At(t.translate)||At(t.scale)||At(t.rotate)||At(t.perspective)||!sn()&&(At(t.backdropFilter)||At(t.filter))||Pf.test(t.willChange||"")||_f.test(t.contain||"")}function Ps(e){let t=at(e);for(;me(t)&&!ct(t);){if(rn(t))return t;if(vo(t))return null;t=at(t)}return null}function sn(){return hr==null&&(hr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hr}function ct(e){return/^(html|body|#document)$/.test(kt(e))}function Se(e){return re(e).getComputedStyle(e)}function bo(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(kt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||It(e)&&e.host||lt(e);return It(t)?t.host:t}function _s(e){let t=at(e);return ct(t)?(e.ownerDocument||e).body:me(t)&&xo(t)?t:_s(t)}function wt(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);let r=_s(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=re(r);if(i){let a=an(s);return t.concat(s,s.visualViewport||[],xo(r)?r:[],a&&o?wt(a):[])}else return t.concat(r,wt(r,[],o))}function an(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ge(e){return e?.ownerDocument||document}function J(e,t,o,n){return e.addEventListener(t,o,n),()=>{e.removeEventListener(t,o,n)}}function Oe(e){let t=pe(Of,e).current;return t.next=e,M(t.effect),t}function Of(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Ge={};ot(Ge,{engine:()=>wr,env:()=>Er,mediaQuery:()=>Sr,os:()=>vr,screenReader:()=>Rr});var vr={};ot(vr,{android:()=>Is,apple:()=>xr,ios:()=>yr,linux:()=>Mf,mac:()=>ks,windows:()=>Nf});function Af(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:If,platform:kf,maxTouchPoints:Os}=Af(),Nt=If.toLowerCase(),Mt=kf.toLowerCase();var yr=/^i(os$|p)/.test(Mt)||Mt==="macintel"&&Os>1,As="android",Is=Mt===As||Nt.includes(As),ks=!yr&&Mt.startsWith("mac"),Nf=Mt.startsWith("win"),Mf=!Is&&/^(linux|chrome os)/.test(Mt),xr=ks||yr;var wr={};ot(wr,{blink:()=>Lf,gecko:()=>Df,webkit:()=>br});var br=typeof CSS<"u"&&!!CSS.supports?.("-webkit-backdrop-filter:none"),Df=!br&&Nt.includes("firefox"),Lf=!br&&Nt.includes("chrom");var Rr={};ot(Rr,{voiceOver:()=>Ff});var Ff=xr;var Er={};ot(Er,{jsdom:()=>Vf});var Vf=/jsdom|happydom/.test(Nt);var Sr={};ot(Sr,{iOS:()=>Hf});var Hf="@supports (-webkit-touch-callout: none)";var Te=v(L(),1);function Ns(e){return"nativeEvent"in e}function Ms(e){return e.pointerType===""&&e.isTrusted?!0:Ge.os.android&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function mt(e,t){let o=["mouse","pen"];return t||o.push("",void 0),o.includes(e)}function Ds(e){let t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function ln(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Q(e,t){if(!e||!t)return!1;let o=t.getRootNode?.();if(e.contains(t))return!0;if(o&&It(o)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Dt(e,t){let o=e;for(;o;){if($(o)&&o.matches(t))return o;o=o.assignedSlot??o.parentNode??(It(o)?o.host:null)}return null}function he(e){return"composedPath"in e?e.composedPath()[0]??e.target:e.target}var Tr="data-base-ui-focusable";var Cr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";var Ls="data-open",Fs="data-closed";var Vs="data-anchor-hidden";var un={};ot(un,{popupOpen:()=>cn,pressed:()=>Pr});var cn="data-popup-open",Pr="data-pressed";var jf={[cn]:""},Ng={[cn]:"",[Pr]:""},Uf={[Ls]:""},zf={[Fs]:""},Wf={[Vs]:""},Hs={open(e){return e?jf:null}};var wo={open(e){return e?Uf:zf},anchorHidden(e){return e?Wf:null}},Bs={...wo,...ys};var Lg=un.popupOpen,Ro="data-trigger-disabled";function Rt(e,t){if(!$(e))return!1;let o=e;if(t.hasElement(o))return!o.hasAttribute(Ro);for(let[,n]of t.entries())if(Q(n,o))return!n.hasAttribute(Ro);return!1}function fn(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);let o=e;return o.target!=null&&t.contains(o.target)}function js(e){return e.matches("html,body")}function Us(e){return me(e)&&e.matches(Cr)}function Or(e){return Dt(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),$Cr}`)!=null}function zs(e){if(!e||Ge.env.jsdom)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function $f(e,t){return t!=null&&!mt(t)?0:typeof e=="function"?e():e}function Je(e,t,o){let n=$f(e,o);return typeof n=="number"?n:n?.[t]}function Ar(e){return typeof e=="function"?e():e}function dn(e,t){return t||e==="click"||e==="mousedown"}function Ws(e){return e?.includes("mouse")&&e!=="mousedown"}var $s=v(se(),1),Ys=Te.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ue,currentIdRef:{current:null},currentContextRef:{current:null}});function Yf(e,t){e.current=t.current}function Ir(e){let{children:t,delay:o,timeoutMs:n=0}=e,r=Te.useRef(o),i=Te.useRef(o),s=Te.useRef(null),a=Te.useRef(null),c=ze();return M(()=>{if(i.current=o,!s.current){r.current=o;return}r.current={open:Je(r.current,"open"),close:Je(o,"close")}},[o,s,r,i]),(0,$s.jsx)(Ys.Provider,{value:Te.useMemo(()=>({hasProvider:!0,delayRef:r,initialDelayRef:i,currentIdRef:s,timeoutMs:n,currentContextRef:a,timeout:c}),[n,c]),children:t})}function kr(e,t={open:!1}){let{open:o}=t,n=e.useState("floatingId"),r=Te.useContext(Ys),{currentIdRef:i,delayRef:s,timeoutMs:a,initialDelayRef:c,currentContextRef:u,hasProvider:d,timeout:l}=r,[m,p]=Te.useState(!1),f=Te.useRef(o);return M(()=>{f.current=o},[o]),M(()=>{function h(){u.current?.setIsInstantPhase(!1),i.current=null,u.current=null,s.current=c.current,l.clear()}if(i.current&&!o&&i.current===n){if(p(!1),a){let g=n;return l.start(a,()=>{e.select("open")||i.current&&i.current!==g||h()}),()=>{(f.current||i.current!==g)&&l.clear()}}h()}},[o,n,i,s,a,c,u,l,e]),M(()=>{if(!o)return;let h=u.current,g=i.current;l.clear(),u.current={onOpenChange:e.setOpen,setIsInstantPhase:p},i.current=n,s.current={open:0,close:Je(c.current,"close")},g!==null&&g!==n?(p(!0),h?.setIsInstantPhase(!0),h?.onOpenChange(!1,K(z.none))):(p(!1),h?.setIsInstantPhase(!1))},[o,n,e,i,s,c,u,l]),M(()=>()=>{if(i.current===n){if(u.current=null,!f.current)return;i.current=null,Yf(s,c),l.clear()}},[u,i,s,n,c,l]),Te.useMemo(()=>({activeIdRef:i,hasProvider:d,delayRef:s,isInstantPhase:m}),[i,d,s,m])}function Ze(...e){return()=>{for(let t=0;t<e.length;t+=1){let o=e[t];o&&o()}}}var Et=Math.min,Qe=Math.max,St=Math.round,So=Math.floor,ut=e=>({x:e,y:e}),qf={left:"right",right:"left",bottom:"top",top:"bottom"};function mn(e,t,o){return Qe(e,Et(t,o))}function ft(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function Fe(e){return e.split("-")[1]}function gn(e){return e==="x"?"y":"x"}function To(e){return e==="y"?"height":"width"}function Ae(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Co(e){return gn(Ae(e))}function Ks(e,t,o){o===void 0&&(o=!1);let n=Fe(e),r=Co(e),i=To(r),s=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Eo(s)),[s,Eo(s)]}function Gs(e){let t=Eo(e);return[pn(e),t,pn(t)]}function pn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var qs=["left","right"],Xs=["right","left"],Xf=["top","bottom"],Kf=["bottom","top"];function Gf(e,t,o){switch(e){case"top":case"bottom":return o?t?Xs:qs:t?qs:Xs;case"left":case"right":return t?Xf:Kf;default:return[]}}function Js(e,t,o,n){let r=Fe(e),i=Gf(ye(e),o==="start",n);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(pn)))),i}function Eo(e){let t=ye(e);return qf[t]+e.slice(t.length)}function Jf(e){var t,o,n,r;return{top:(t=e.top)!=null?t:0,right:(o=e.right)!=null?o:0,bottom:(n=e.bottom)!=null?n:0,left:(r=e.left)!=null?r:0}}function hn(e){return typeof e!="number"?Jf(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){let{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function gt(e,t,o=!0){return e.filter(r=>r.parentId===t).flatMap(r=>[...!o||r.context?.open?[r]:[],...gt(e,r.id,o)])}function Xt(e){return`data-base-ui-$e}`}var Ce=v(L(),1),ea=v(bt(),1);var Zs={style:{transition:"none"}};var Zf="data-base-ui-swipe-ignore",Qf="data-swipe-ignore",th=`[$Zf}]`,oh=`[$Qf}]`;var Qs={fallbackAxisSide:"end"};var ta=v(se(),1),ed=Ce.createContext(null),td=()=>Ce.useContext(ed),od=Xt("portal");function oa(e={}){let{ref:t,container:o,componentProps:n=ne,elementProps:r}=e,i=qt(),a=td()?.portalNode,[c,u]=Ce.useState(null),[d,l]=Ce.useState(null),m=V(g=>{g!==null&&l(g)}),p=Ce.useRef(null);M(()=>{if(o===null){p.current&&(p.current=null,l(null),u(null));return}let g=(o&&(nn(o)?o:o.current))??a??document.body;if(g==null){p.current&&(p.current=null,l(null),u(null));return}p.current!==g&&(p.current=g,l(null),u(g))},[o,a]);let f=_e("div",n,{ref:[t,m],props:[{id:i,[od]:""},r]}),h=c&&f?ea.createPortal(f,c):null;return{node:d,nodeId:Ce.isValidElement(f)?f.props.id:void 0,subtree:h}}var Ft=v(L(),1);function na(){let e=new Map;return{emit(t,o){e.get(t)?.forEach(n=>n(o))},on(t,o){e.has(t)||e.set(t,new Set),e.get(t).add(o)},off(t,o){e.get(t)?.delete(o)}}}var nd=v(se(),1),rd=Ft.createContext(null),id=Ft.createContext(null),yn=()=>Ft.useContext(rd)?.id||null,Tt=e=>{let t=Ft.useContext(id);return e??t};var Ie=v(L(),1);function sd(e,t){let o=null,n=null,r=!1;return{contextElement:e||void 0,getBoundingClientRect(){let i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},s=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",c=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch",u=t.axis==="y"?i.width:0,d=t.axis==="x"?i.height:0,l=i.x,m=i.y;return o==null&&t.x&&s&&(o=i.x-t.x),n==null&&t.y&&a&&(n=i.y-t.y),l-=o||0,m-=n||0,(!r||c)&&(l=s&&t.x!=null?t.x:l,m=a&&t.y!=null?t.y:m),r=!0,{width:u,height:d,x:l,y:m,top:m,right:l+u,bottom:m+d,left:l}}}}function ra(e){return e!=null&&e.clientX!=null}function Nr(e,t={}){let{enabled:o=!0,axis:n="both"}=t,r=e.useState("open"),i=e.useState("floatingElement"),s=e.useState("domReferenceElement"),a=e.context.dataRef,c=Ie.useRef(!1),u=Ie.useRef(null),[d,l]=Ie.useState(),[m,p]=Ie.useState([]),f=V(x=>{e.set("positionReference",x)}),h=V((x,R,T)=>{c.current||a.current.openEvent&&!ra(a.current.openEvent)||e.set("positionReference",sd(T??s,{x,y:R,axis:n,dataRef:a,pointerType:d}))}),g=V(x=>{r?u.current||(h(x.clientX,x.clientY,x.currentTarget),p([])):h(x.clientX,x.clientY,x.currentTarget)}),b=mt(d)?i:r;Ie.useEffect(()=>{if(!o){f(s);return}if(!b)return;function x(){u.current?.(),u.current=null}let R=re(i);function T(w){let S=he(w);Q(i,S)?x():h(w.clientX,w.clientY)}return!a.current.openEvent||ra(a.current.openEvent)?u.current=J(R,"mousemove",T):f(s),x},[b,o,i,a,s,e,h,f,m]),Ie.useEffect(()=>()=>{e.set("positionReference",null)},[e]),Ie.useEffect(()=>{o&&!i&&(c.current=!1)},[o,i]),Ie.useEffect(()=>{!o&&r&&(c.current=!0)},[o,r]);let y=Ie.useMemo(()=>{function x(R){l(R.pointerType)}return{onPointerDown:x,onPointerEnter:x,onMouseMove:g,onMouseEnter:g}},[g]);return Ie.useMemo(()=>o?{reference:y,trigger:y}:{},[o,y])}var Re=v(L(),1);function ad(){return!1}function ld(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Mr(e,t={}){let{enabled:o=!0,escapeKey:n=!0,outsidePress:r=!0,outsidePressEvent:i="sloppy",referencePress:s=ad,bubbles:a,externalTree:c}=t,u=e.useState("open"),d=e.useState("floatingElement"),{dataRef:l,events:m}=e.context,p=Tt(c),f=V(typeof r=="function"?r:()=>!1),h=typeof r=="function"?f:r,g=h!==!1,b=V(()=>i),{escapeKey:y,outsidePress:x}=ld(a),R=Re.useRef(!1),T=Re.useRef(!1),w=Re.useRef(!1),S=Re.useRef(!1),A=Re.useRef(!1),H=Re.useRef(""),k=Re.useRef(null),Y=ze(),Z=ze(),F=ze(),N=V(()=>{Z.clear(),l.current.insideReactTree=!1}),E=V(I=>{let W=l.current.floatingContext?.nodeId;return(p?gt(p.nodesRef.current,W):[]).some(j=>j.context?.open&&!j.context.dataRef.current[I])}),P=V(I=>fn(I,e.select("floatingElement"))||fn(I,e.select("domReferenceElement"))),q=V(I=>{s()&&e.setOpen(!1,K(z.triggerPress,I.nativeEvent))}),C=V(I=>{if(!u||!o||!n||I.key!=="Escape")return;let W=Ns(I)?I.nativeEvent:I;if(A.current||W.isComposing||!y&&E("__escapeKeyBubbles"))return;let B=K(z.escapeKey,W);e.setOpen(!1,B),B.isCanceled||I.preventDefault(),!y&&!B.isPropagationAllowed&&I.stopPropagation()}),O=V(()=>{l.current.insideReactTree=!0,Z.start(0,N)}),X=V(I=>{if(!u||!o||I.button!==0)return;let W=he(I.nativeEvent);Q(e.select("floatingElement"),W)&&(R.current||(R.current=!0,T.current=!1))}),U=V(I=>{!u||!o||(I.defaultPrevented||I.nativeEvent.defaultPrevented)&&R.current&&(T.current=!0)});Re.useEffect(()=>{function I(W){W.open||(S.current=!1)}return m.on("openchange",I),()=>{m.off("openchange",I)}},[m]),Re.useEffect(()=>N,[N]),Re.useEffect(()=>{if(!u||!o)return u||(S.current=!1,A.current=!1,H.current="",k.current=null),N;l.current.__escapeKeyBubbles=y,l.current.__outsidePressBubbles=x;let I=new Ue,W=ge(d);function B(){F.clear(),A.current=!0}function j(){A.current=!0,F.start(Ge.engine.webkit?5:0,()=>{A.current=!1})}function oe(){w.current=!0,I.start(0,()=>{w.current=!1})}function le(){R.current=!1,T.current=!1}function ue(){let _=H.current,D=_==="pen"||!_?"mouse":_,be=b(),we=typeof be=="function"?be():be;return typeof we=="string"?we:we[D]}function Ee(_){let D=ue();return D==="intentional"&&_.type!=="click"||D==="sloppy"&&_.type==="click"}function te(_){let D=l.current.floatingContext?.nodeId,be=p&>(p.nodesRef.current,D).some(we=>fn(_,we.context?.elements.floating));return P(_)||be}function ce(_){if(Ee(_)){_.type!=="click"&&!P(_)&&(I.clear(),w.current=!1),N();return}if(l.current.insideReactTree){N();return}let D=he(_),be=`[$Xt("inert")}]`,we=$(D)?D.getRootNode():null,He=Array.from((It(we)?we:ge(e.select("floatingElement"))).querySelectorAll(be)),_t=e.context.triggerElements;if(D&&(_t.hasElement(D)||_t.hasMatchingElement(Me=>Q(Me,D))))return;let tt=$(D)?D:null;for(;tt&&!ct(tt);){let Me=at(tt);if(ct(Me)||!$(Me))break;tt=Me}if(!(He.length&&$(D)&&!js(D)&&!Q(D,e.select("floatingElement"))&&He.every(Me=>!Q(tt,Me)))){if(me(D)&&!("touches"in _)){let Me=ct(D),Be=Se(D),uo=/auto|scroll/,Ho=Me||uo.test(Be.overflowX),Bo=Me||uo.test(Be.overflowY),Bt=Ho&&D.clientWidth>0&&D.scrollWidth>D.clientWidth,jo=Bo&&D.clientHeight>0&&D.scrollHeight>D.clientHeight,jt=Be.direction==="rtl",Ot=jo&&(jt?_.offsetX<=D.offsetWidth-D.clientWidth:_.offsetX>D.clientWidth),Uo=Bt&&_.offsetY>D.clientHeight;if(Ot||Uo)return}if(!te(_)){if(ue()==="intentional"){if(_.detail!==0&&!Ms(_)&&!S.current)return;if(w.current){I.clear(),w.current=!1;return}}typeof h=="function"&&!h(_)||E("__outsidePressBubbles")||(e.setOpen(!1,K(z.outsidePress,_)),N())}}}function de(_){ue()!=="sloppy"||_.pointerType==="touch"||!e.select("open")||!o||P(_)||ce(_)}function Ye(_){if(ue()!=="sloppy"||!e.select("open")||!o||P(_))return;let D=_.touches[0];D&&(k.current={startTime:Date.now(),startX:D.clientX,startY:D.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Y.start(1e3,()=>{k.current&&(k.current.dismissOnTouchEnd=!1,k.current.dismissOnMouseDown=!1)}))}function ve(_,D){let be=he(_);if(!be)return;let we=J(be,_.type,()=>{D(_),we()})}function lo(_){H.current="touch",ve(_,Ye)}function ht(_){Y.clear(),_.type==="pointerdown"&&(_.button===0&&(S.current=!0),H.current=_.pointerType),!(_.type==="mousedown"&&k.current&&!k.current.dismissOnMouseDown)&&ve(_,D=>{D.type==="pointerdown"?de(D):ce(D)})}function Ne(_){if(_.type==="pointercancel"&&(S.current=!1),!R.current)return;let D=T.current;if(le(),ue()==="intentional"){if(_.type==="pointercancel"){D&&oe();return}if(!te(_)){if(D){oe();return}typeof h=="function"&&!h(_)||(I.clear(),w.current=!0,N())}}}function Do(_){if(ue()!=="sloppy"||!k.current||P(_))return;let D=_.touches[0];if(!D)return;let be=Math.abs(D.clientX-k.current.startX),we=Math.abs(D.clientY-k.current.startY),He=Math.sqrt(be*be+we*we);He>5&&(k.current.dismissOnTouchEnd=!0),He>10&&(ce(_),Y.clear(),k.current=null)}function Lo(_){ve(_,Do)}function Fo(_){ue()!=="sloppy"||!k.current||P(_)||(k.current.dismissOnTouchEnd&&ce(_),Y.clear(),k.current=null)}function Vo(_){ve(_,Fo)}let co=Ze(n&&Ze(J(W,"keydown",C),J(W,"compositionstart",B),J(W,"compositionend",j)),g&&Ze(J(W,"click",ht,!0),J(W,"pointerdown",ht,!0),J(W,"pointerup",Ne,!0),J(W,"pointercancel",Ne,!0),J(W,"mousedown",ht,!0),J(W,"mouseup",Ne,!0),J(W,"touchstart",lo,{capture:!0,passive:!0}),J(W,"touchmove",Lo,{capture:!0,passive:!0}),J(W,"touchend",Vo,{capture:!0,passive:!0})));return()=>{co(),I.clear(),le(),w.current=!1}},[l,d,n,g,h,u,o,y,x,C,N,b,E,P,p,e,Y,F]);let ae=Re.useMemo(()=>({onKeyDown:C,onPointerDown:q,onClick:q}),[C,q]),ie=Re.useMemo(()=>({onKeyDown:C,onPointerDown:U,onMouseDown:U,onClickCapture:O,onMouseDownCapture(I){O(),X(I)},onPointerDownCapture(I){O(),X(I)},onMouseUpCapture:O,onTouchEndCapture:O,onTouchMoveCapture:O}),[C,O,X,U]);return Re.useMemo(()=>o?{reference:ae,floating:ie,trigger:ae}:{},[o,ae,ie])}var xn=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(t,o,n=!0){this.fallbackStore=t,this.componentName=o,this.throwOnMissingTrigger=n}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(t){return this.storeListeners.add(t),()=>{this.storeListeners.delete(t)}}attachStore(t){return this.attachedStores.push(t),this.setActiveStore(t),()=>{let o=this.attachedStores.lastIndexOf(t);o!==-1&&this.attachedStores.splice(o,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(t){this.attachedStoreValue!==t&&(this.attachedStoreValue=t,this.storeListeners.forEach(o=>{o()}))}openByTrigger(t){let o=this.attachedStore;if(o===null)return;let n;if(t){for(let r=this.attachedStores.length-1;r>=0&&!n;r-=1)n=this.attachedStores[r].context.triggerElements.getById(t);n??=this.fallbackStore.context.triggerElements.getById(t)}if(t&&!n&&this.throwOnMissingTrigger)throw new Error(nt(99,this.componentName,t,this.componentName));o.setOpen(!0,K(z.imperativeAction,void 0,n))}closePopup(){let t=this.attachedStore;t!==null&&t.setOpen(!1,K(z.imperativeAction))}};var Lr=v(L(),1),la=v(bt(),1);function ia(e){let{popupStore:t,treatPopupAsFloatingElement:o=!1,floatingRootContext:n,floatingId:r,nested:i,onOpenChange:s}=e,a=t.useState("open"),c=t.useState("activeTriggerElement"),u=t.useState(o?"popupElement":"positionerElement"),d=s;return t.useSyncedValue("floatingId",r),M(()=>{let l={open:a,floatingId:r,referenceElement:c,floatingElement:u};$(c)&&(l.domReferenceElement=c),n.state.positionReference===n.state.referenceElement&&(l.positionReference=c),n.update(l)},[a,r,c,u,n]),n.context.onOpenChange=d,n.context.nested=i,n}var Dr=v(L(),1);function sa(e){let{open:t,ref:o,preventUnmountOnClose:n,setPreventUnmountOnClose:r,onUnmount:i,animateInitialOpen:s}=e,a=V(r),{mounted:c,setMounted:u,transitionStatus:d}=xs(t,!1,!1,s),l=t?!1:n;M(()=>{t&&a(!1)},[t,a]);let m=Dr.useRef(c),p=Dr.useRef(!1),f=en(),h=()=>{m.current=!1,u(!1),i()};M(()=>{m.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=V(()=>{if(m.current){if(t){p.current=!0,f();return}h()}});return Zo({enabled:c&&!t&&!l,open:t,ref:o,onComplete(){t||g()}}),{mounted:c,transitionStatus:d,preventUnmountingOnClose:l,forceUnmount:g}}var ca={tabIndex:-1,[Tr]:""};function ua(e,t=!1){let o=qt(),n=yn()!=null,r=pe(()=>e(o,n)).current;return ia({popupStore:r,treatPopupAsFloatingElement:t,floatingRootContext:r.state.floatingRootContext,floatingId:o,nested:n,onOpenChange:r.setOpen}),r}function fa({handle:e,store:t}){return M(()=>e.attachStore(t),[e,t]),null}function aa(e){let t=e.context.triggerElements.size;e.select("open")&&e.state.triggerCount!==t&&e.set("triggerCount",t)}function cd(e,t){let o=Lr.useRef(null);return V(n=>{let r=o.current;if(r!==null){if(r.element===n&&r.store===t&&r.id===e)return;o.current=null;let i=r.store;i.context.triggerElements.getById(r.id)===r.element&&(i.context.triggerElements.delete(r.id),aa(i))}n!==null&&e!==void 0&&(o.current={store:t,id:e,element:n},t.context.triggerElements.add(e,n),aa(t))})}function ud(e,t,o,n=!1){let r=e.preventUnmountingOnClose;t?r=!1:n&&(r=!0);let i=o?.id??null,s=e.activeTriggerId,a=e.activeTriggerElement;return(i||t)&&(s=i,a=o??null),{open:t,preventUnmountingOnClose:r,activeTriggerId:s,activeTriggerElement:a,openedWithoutTrigger:t?o==null:e.openedWithoutTrigger}}function fd(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function da(e,t,o,n={}){let r=o.reason,i=r===z.triggerHover,s=t&&r===z.triggerFocus,a=!t&&(r===z.triggerPress||r===z.escapeKey),c=fd(o);if(e.context.onOpenChange?.(t,o),o.isCanceled)return;n.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,o);let u=()=>{let d=ud(e.state,t,o.trigger,c()),l={...n.extraState,...d};s?l.instantType="focus":a?l.instantType="dismiss":i&&(l.instantType=void 0),e.update(l)};i?la.flushSync(u):u()}function pa(e,t,o,n){let r=o.useState("isMountedByTrigger",e),i=cd(e,o),s=V(c=>{let u=o.select("open"),d=o.select("activeTriggerId");if(d===e){let l={activeTriggerElement:c,...u?n:null};o.update(l);return}if(d==null&&u&&!o.state.openedWithoutTrigger){let l={activeTriggerId:e??null,activeTriggerElement:c,...n};o.update(l)}}),a=V(c=>{i(c),c&&s(c)});return M(()=>(a(t.current),()=>a(null)),[a,t,o,e]),M(()=>{if(r){let c={activeTriggerElement:t.current,...n};o.update(c)}},[r,o,t,...Object.values(n)]),{registerTrigger:a,isMountedByThisTrigger:r}}function ma(e,t={}){let{closeOnActiveTriggerUnmount:o=!1}=t,n=Lr.useRef(null),r=e.useState("open"),i=e.useState("triggerCount"),s=e.useState("activeTriggerId"),a=e.useState("activeTriggerElement");M(()=>{if(!r){n.current=null,e.state.triggerCount!==0&&e.set("triggerCount",0),e.state.openedWithoutTrigger&&e.set("openedWithoutTrigger",!1);return}let c=e.context.triggerElements.size,u={};e.state.triggerCount!==c&&(u.triggerCount=c);let d=e.select("activeTriggerId"),l=null;if(d){let m=e.context.triggerElements.getById(d);if(m)n.current=d,m!==e.state.activeTriggerElement&&(u.activeTriggerElement=m);else{for(let[p,f]of e.context.triggerElements.entries())if(f===e.state.activeTriggerElement){u.activeTriggerId=p,u.activeTriggerElement=f,n.current=p;break}u.activeTriggerId===void 0&&(n.current===d?l=d:n.current=null)}}else n.current=null;if(!l&&!d&&!e.state.openedWithoutTrigger&&c===1){let m=e.context.triggerElements.entries().next();if(!m.done){let[p,f]=m.value;u.activeTriggerId=p,u.activeTriggerElement=f,n.current=p}}(u.triggerCount!==void 0||u.activeTriggerId!==void 0||u.activeTriggerElement!==void 0)&&e.update(u),l&&o&&queueMicrotask(()=>{if(e.select("open")&&e.select("activeTriggerId")===l&&!e.context.triggerElements.getById(l)){let m=K(z.none);e.setOpen(!1,m),m.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,i,s,a,o])}function ga(e,t,o,n){let{mounted:r,transitionStatus:i,forceUnmount:s}=sa({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState("preventUnmountingOnClose"),setPreventUnmountOnClose:a=>t.set("preventUnmountingOnClose",a),animateInitialOpen:n,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),o?.(),t.context.onOpenChangeComplete?.(!1)}});return pe(()=>(t.set("mounted",r),null)),t.useSyncedValues({mounted:r,transitionStatus:i}),{forceUnmount:s,transitionStatus:i}}function ha(e,t){e.useSyncedValues(t),M(()=>()=>{e.update({activeTriggerProps:ne,inactiveTriggerProps:ne,popupProps:ne})},[e])}var Po=class{idMap=new Map;add(t,o){this.idMap.set(t,o)}delete(t){this.idMap.delete(t)}hasElement(t){for(let o of this.idMap.values())if(o===t)return!0;return!1}hasMatchingElement(t){for(let o of this.idMap.values())if(t(o))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};var _a=v(L(),1),jr=v(vn(),1),Oa=v(Ea(),1);var Sa=v(L(),1);var Vr=[],Hr;function Ta(){return Hr}function Ca(e){Vr.push(e)}function Br(e){let t=(o,n)=>{let r=pe(Od).current,i;try{Hr=r;for(let s of Vr)s.before(r);i=e(o,n);for(let s of Vr)s.after(r);r.didInitialize=!0}finally{Hr=void 0}return i};return t.displayName=e.displayName||e.name,t}function Pa(e){return Sa.forwardRef(Br(e))}function Od(){return{didInitialize:!1}}var Ad=zt(19),Id=Ad?Nd:Md;function wn(e,t,o,n,r){return Id(e,t,o,n,r)}function kd(e,t,o,n,r){let i=_a.useCallback(()=>t(e.getSnapshot(),o,n,r),[e,t,o,n,r]);return(0,jr.useSyncExternalStore)(e.subscribe,i,i)}Ca({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let o=0;o<e.syncHooks.length;o+=1){let n=e.syncHooks[o],r=n.selector(n.store.state,n.a1,n.a2,n.a3);Object.is(n.value,r)||(t=!0,n.value=r)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let o=new Set;for(let r of e.syncHooks)o.add(r.store);let n=[];for(let r of o)n.push(r.subscribe(t));return()=>{for(let r of n)r()}}),(0,jr.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Nd(e,t,o,n,r){let i=Ta();if(!i)return kd(e,t,o,n,r);let s=i.syncIndex;i.syncIndex+=1;let a;return i.didInitialize?(a=i.syncHooks[s],(a.store!==e||a.selector!==t||!Object.is(a.a1,o)||!Object.is(a.a2,n)||!Object.is(a.a3,r))&&(a.store!==e&&(i.didChangeStore=!0),a.store=e,a.selector=t,a.a1=o,a.a2=n,a.a3=r,a.value=t(e.getSnapshot(),o,n,r))):(a={store:e,selector:t,a1:o,a2:n,a3:r,value:t(e.getSnapshot(),o,n,r)},i.syncHooks.push(a)),a.value}function Md(e,t,o,n,r){return(0,Oa.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,o,n,r))}var Rn=class{static create(t){return new this(t)}constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;let o=this.updateTick;for(let n of this.listeners){if(o!==this.updateTick)return;n(t)}}update(t){for(let o in t)if(!Object.is(this.state[o],t[o])){this.setState({...this.state,...t});return}}set(t,o){Object.is(this.state[t],o)||this.setState({...this.state,[t]:o})}notifyAll(){let t={...this.state};this.setState(t)}use(t,o,n,r){return wn(this,t,o,n,r)}};var Vt=v(L(),1);var Ct=class extends Rn{constructor(t,o={},n){super(t),this.context=o,this.selectors=n}useSyncedValue(t,o){Vt.useDebugValue(t);let n=this;M(()=>{n.state[t]!==o&&n.set(t,o)},[n,t,o])}useSyncedValueWithCleanup(t,o){let n=this;M(()=>(n.state[t]!==o&&n.set(t,o),()=>{n.set(t,void 0)}),[n,t,o])}useSyncedValues(t){let o=this,n=Object.values(t);M(()=>{o.update(t)},[o,...n])}useControlledProp(t,o){Vt.useDebugValue(t);let n=this,r=o!==void 0;M(()=>{r&&!Object.is(n.state[t],o)&&n.setState({...n.state,[t]:o})},[n,t,o,r])}select(t,o,n,r){let i=this.selectors[t];return i(this.state,o,n,r)}useState(t,o,n,r){return Vt.useDebugValue(t),wn(this,this.selectors[t],o,n,r)}useContextCallback(t,o){Vt.useDebugValue(t);let n=V(o??Xe);this.context[t]=n}useStateSetter(t){let o=Vt.useRef(void 0);return o.current===void 0&&(o.current=n=>{this.set(t,n)}),o.current}observe(t,o){let n;typeof t=="function"?n=t:n=this.selectors[t];let r=n(this.state);return o(r,r,this),this.subscribe(i=>{let s=n(i);if(!Object.is(r,s)){let a=r;r=s,o(s,a,this)}})}};var Dd={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},En=class extends Ct{constructor(t){let{syncOnly:o,nested:n,onOpenChange:r,triggerElements:i,...s}=t;super({...s,positionReference:s.referenceElement,domReferenceElement:s.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:na(),nested:n,triggerElements:i},Dd),this.syncOnly=o}syncOpenEvent=(t,o)=>{(!t||!this.state.open||o!=null&&Ds(o))&&(this.context.dataRef.current.openEvent=t?o:void 0)};dispatchOpenChange=(t,o)=>{this.syncOpenEvent(t,o.event);let n={open:t,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",n)};setOpen=(t,o)=>{if(this.syncOnly){this.context.onOpenChange?.(t,o);return}this.dispatchOpenChange(t,o),this.context.onOpenChange?.(t,o)}};function Ia(e,t,o=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new En({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:o,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ne,inactiveTriggerProps:ne,popupProps:ne}}var _o=e=>e.triggerIdProp??e.activeTriggerId,Sn=e=>e.openProp??e.open,Aa=e=>(e.popupElement?.id??e.floatingId)||void 0;function ka(e,t){return t!==void 0&&Sn(e)&&_o(e)===t}function Ld(e,t){return ka(e,t)?!0:t!==void 0&&Sn(e)&&_o(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var Na={open:Sn,mounted:e=>e.mounted,transitionStatus:e=>Sn(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:_o,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Aa,isTriggerActive:(e,t)=>t!==void 0&&_o(e)===t,isOpenedByTrigger:(e,t)=>ka(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&_o(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Ld(e,t)?Aa(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};var Ur=v(L(),1),Ma=v(vn(),1);function Da(e){let t=Ur.useCallback(n=>e===void 0?Xe:e.subscribeStore(n),[e]),o=Ur.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Ma.useSyncExternalStore)(t,o,()=>e?.serverStore)}var dt=v(L(),1);var zr=Ge.os.mac&&Ge.engine.webkit;function Wr(e,t={}){let{enabled:o=!0,delay:n}=t,{events:r,dataRef:i}=e.context,s=dt.useRef(!1),a=dt.useRef(null),c=dt.useRef(!0),u=ze();dt.useEffect(()=>{let l=e.select("domReferenceElement");if(!o)return;let m=re(l);function p(){let g=e.select("domReferenceElement");!e.select("open")&&me(g)&&g===ln(ge(g))&&(s.current=!0,a.current=g)}function f(){c.current=!0}function h(){c.current=!1}return Ze(J(m,"blur",p),zr&&J(m,"keydown",f,!0),zr&&J(m,"pointerdown",h,!0))},[e,o]),dt.useEffect(()=>{if(!o)return;function l(m){if(m.reason===z.triggerPress||m.reason===z.escapeKey){let p=e.select("domReferenceElement");$(p)&&(a.current=p,s.current=!0)}}return r.on("openchange",l),()=>{r.off("openchange",l)}},[r,o,e]);let d=dt.useMemo(()=>{function l(){s.current=!1,a.current=null}return{onMouseLeave(){l()},onFocus(m){let p=m.currentTarget;if(s.current){if(a.current===p)return;l()}let f=he(m.nativeEvent);if($(f)){if(zr&&!m.relatedTarget){if(!c.current&&!Us(f))return}else if(!zs(f))return}let h=Rt(m.relatedTarget,e.context.triggerElements),{nativeEvent:g,currentTarget:b}=m;if(e.select("open")&&h||!n){e.setOpen(!0,K(z.triggerFocus,g,b));return}u.start(n,()=>{s.current||e.setOpen(!0,K(z.triggerFocus,g,b))})},onBlur(m){l();let p=m.relatedTarget,f=m.nativeEvent,h=$(p)&&p.hasAttribute(Xt("focus-guard"))&&p.getAttribute("data-type")==="outside";u.start(0,()=>{let g=e.select("domReferenceElement"),b=ln(ge(g));!p&&b===g||Q(i.current.floatingContext?.refs.floating.current,b)||Q(g,b)||h||Rt(p??b,e.context.triggerElements)||e.setOpen(!1,K(z.triggerFocus,f))})}}},[i,n,e,u]);return dt.useMemo(()=>o?{reference:d,trigger:d}:{},[o,d])}var Yr=v(L(),1);var $r=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new Ue;restTimeout=new Ue;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Tn=new WeakMap;function Gt(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Tn.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),Tn.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Cn(e,t){let{scopeElement:o,referenceElement:n,floatingElement:r}=t,i=Tn.get(o);i&&i!==e&&Gt(i),Gt(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=o,e.pointerEventsReferenceElement=n,e.pointerEventsFloatingElement=r,Tn.set(o,e),o.style.pointerEvents="none",n.style.pointerEvents="auto",r.style.pointerEvents="auto"}function Jt(e){let t=e.context.dataRef.current,o=pe(()=>t.hoverInteractionState??$r.create()).current;return t.hoverInteractionState||(t.hoverInteractionState=o),Wt(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function qr(e,t={}){let{enabled:o=!0,closeDelay:n=0,nodeId:r}=t,i=e.useState("open"),s=e.useState("floatingElement"),a=e.useState("domReferenceElement"),{dataRef:c}=e.context,u=Tt(),d=yn(),l=Jt(e),m=ze(),p=V(()=>dn(c.current.openEvent?.type,l.interactedInside)),f=V(()=>Ws(c.current.openEvent?.type)),h=V(()=>{Gt(l)});M(()=>{i||(l.pointerType=void 0,l.restTimeoutPending=!1,l.interactedInside=!1,h())},[i,l,h]),Yr.useEffect(()=>h,[h]),M(()=>{if(o&&i&&l.handleCloseOptions?.blockPointerEvents&&f()&&$(a)&&s){let g=a,b=s,y=ge(s),x=u?.nodesRef.current.find(S=>S.id===d)?.context?.elements.floating;x&&(x.style.pointerEvents="");let R=l.pointerEventsScopeElement!==b?l.pointerEventsScopeElement:null,T=x!==b?x:null,w=l.handleCloseOptions?.getScope?.()??R??T??Dt(g,"[data-rootownerid]")??y.body;return Cn(l,{scopeElement:w,referenceElement:g,floatingElement:b}),()=>{h()}}},[o,i,a,s,l,f,u,d,h]),Yr.useEffect(()=>{if(!o)return;function g(){return!!(u&&d&>(u.nodesRef.current,d).length>0)}function b(S){let A=Je(n,"close",l.pointerType),H=()=>{e.setOpen(!1,K(z.triggerHover,S)),u?.events.emit("floating.closed",S)};A?l.openChangeTimeout.start(A,H):(l.openChangeTimeout.clear(),H())}function y(S){let A=he(S);if(!Or(A)){l.interactedInside=!1;return}l.interactedInside=Dt(A,"[aria-haspopup]")!=null}function x(){l.openChangeTimeout.clear(),m.clear(),u?.events.off("floating.closed",T),h()}function R(S){if(g()&&u){u.events.on("floating.closed",T);return}if(Rt(S.relatedTarget,e.context.triggerElements))return;let A=c.current.floatingContext?.nodeId??r,H=S.relatedTarget;if(!(u&&A&&$(H)&>(u.nodesRef.current,A,!1).some(Y=>Q(Y.context?.elements.floating,H)))){if(l.handler){l.handler(S);return}h(),f()&&!p()&&b(S)}}function T(S){!u||!d||g()||m.start(0,()=>{u.events.off("floating.closed",T),e.setOpen(!1,K(z.triggerHover,S)),u.events.emit("floating.closed",S)})}let w=s;return Ze(w&&J(w,"mouseenter",x),w&&J(w,"mouseleave",R),w&&J(w,"pointerdown",y,!0),()=>{u?.events.off("floating.closed",T)})},[o,s,e,c,n,r,f,p,h,l,u,d,m])}var Pt=v(L(),1),La=v(bt(),1);var Fd={current:null};function Xr(e,t={}){let{enabled:o=!0,delay:n=0,handleClose:r=null,mouseOnly:i=!1,restMs:s=0,move:a=!0,triggerElementRef:c=Fd,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:l,isClosing:m,shouldOpen:p,guardStaleOpen:f=!1}=t,{dataRef:h,events:g}=e.context,b=Tt(u),y=Jt(e),x=Pt.useRef(!1),R=Oe(r),T=Oe(n),w=Oe(s),S=Oe(o),A=Oe(p),H=Oe(m),k=V(()=>dn(h.current.openEvent?.type,y.interactedInside)),Y=V(()=>A.current?.()!==!1),Z=V((E,P,q)=>{let C=e.context.triggerElements;if(C.hasElement(P))return!E||!Q(E,P);if(!$(q))return!1;let O=q;return C.hasMatchingElement(X=>Q(X,O))&&(!E||!Q(E,O))}),F=V(()=>{if(!y.handler)return;ge(e.select("domReferenceElement")).removeEventListener("mousemove",y.handler),y.handler=void 0}),N=V(()=>{Gt(y)});return d&&(y.handleCloseOptions=r?.__options),Pt.useEffect(()=>F,[F]),Pt.useEffect(()=>{if(!o)return;function E(P){P.open?x.current=!1:(x.current=P.reason===z.triggerHover,F(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return g.on("openchange",E),()=>{g.off("openchange",E)}},[o,g,y,F]),Pt.useEffect(()=>{if(!o)return;function E(U,ae=!0){let ie=Je(T.current,"close",y.pointerType);ie?y.openChangeTimeout.start(ie,()=>{e.setOpen(!1,K(z.triggerHover,U)),b?.events.emit("floating.closed",U)}):ae&&(y.openChangeTimeout.clear(),e.setOpen(!1,K(z.triggerHover,U)),b?.events.emit("floating.closed",U))}let P=c.current??(d?e.select("domReferenceElement"):null);if(!$(P))return;function q(U){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,i&&!mt(y.pointerType))return;let ae=Ar(w.current),ie=Je(T.current,"open",y.pointerType),I=he(U),W=U.currentTarget??null,B=e.select("domReferenceElement"),j=W;if($(I)&&!e.context.triggerElements.hasElement(I)){for(let ve of e.context.triggerElements.elements())if(Q(ve,I)){j=ve;break}}$(W)&&$(B)&&!e.context.triggerElements.hasElement(W)&&Q(W,B)&&(j=B);let oe=j==null?!1:Z(B,j,I),le=e.select("open"),ue=H.current?.()??e.select("transitionStatus")==="ending",Ee=!le&&ue&&x.current,te=!oe&&$(j)&&$(B)&&Q(B,j)&&Ee,ce=ae>0&&!ie,de=oe&&(le||Ee)||te,Ye=!le||oe;if(de){Y()&&e.setOpen(!0,K(z.triggerHover,U,j));return}ce||(ie?y.openChangeTimeout.start(ie,()=>{Ye&&Y()&&e.setOpen(!0,K(z.triggerHover,U,j))}):Ye&&Y()&&e.setOpen(!0,K(z.triggerHover,U,j)))}function C(U){if(k()){N();return}F();let ae=e.select("domReferenceElement"),ie=ge(ae);y.restTimeout.clear(),y.restTimeoutPending=!1;let I=h.current.floatingContext??l?.();if(Rt(U.relatedTarget,e.context.triggerElements))return;if(R.current&&I){e.select("open")||y.openChangeTimeout.clear();let B=c.current;y.handler=R.current({...I,tree:b,x:U.clientX,y:U.clientY,onClose(){N(),F(),S.current&&!k()&&B===e.select("domReferenceElement")&&E(U,!0)}}),ie.addEventListener("mousemove",y.handler),y.handler(U);return}(y.pointerType!=="touch"||!Q(e.select("floatingElement"),U.relatedTarget))&&E(U)}function O(U){Q(P,U.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let X=f?J(P,"mouseout",O):void 0;return a?Ze(J(P,"mousemove",q,{once:!0}),J(P,"mouseenter",q),J(P,"mouseleave",C),X):Ze(J(P,"mouseenter",q),J(P,"mouseleave",C),X)},[F,N,h,T,e,o,R,y,d,Z,k,i,a,w,c,b,S,l,H,Y,f]),Pt.useMemo(()=>{if(!o)return;function E(P){y.pointerType=P.pointerType}return{onPointerDown:E,onPointerEnter:E,onMouseMove(P){let{nativeEvent:q}=P,C=P.currentTarget,O=e.select("domReferenceElement"),X=e.select("open"),U=Z(O,C,P.target);if(i&&!mt(y.pointerType))return;if(X&&U&&y.handleCloseOptions?.blockPointerEvents){let I=e.select("floatingElement");if(I){let W=y.handleCloseOptions?.getScope?.()??C.ownerDocument.body;Cn(y,{scopeElement:W,referenceElement:C,floatingElement:I})}}let ae=Ar(w.current);if(X&&!U||ae===0||!U&&y.restTimeoutPending&&P.movementX**2+P.movementY**2<2)return;y.restTimeout.clear();function ie(){if(y.restTimeoutPending=!1,k())return;let I=e.select("open");!y.blockMouseMove&&(!I||U)&&Y()&&e.setOpen(!0,K(z.triggerHover,q,C))}y.pointerType==="touch"?La.flushSync(()=>{ie()}):U&&X?ie():(y.restTimeoutPending=!0,y.restTimeout.start(ae,ie))}}},[o,y,k,Z,i,e,w,Y])}var Fa=.1,Vd=Fa*Fa,ee=.5;function Pn(e,t,o,n,r,i){return n>=t!=i>=t&&e<=(r-o)*(t-n)/(i-n)+o}function _n(e,t,o,n,r,i,s,a,c,u){let d=!1;return Pn(e,t,o,n,r,i)&&(d=!d),Pn(e,t,r,i,s,a)&&(d=!d),Pn(e,t,s,a,c,u)&&(d=!d),Pn(e,t,c,u,o,n)&&(d=!d),d}function Hd(e,t,o){return e>=o.x&&e<=o.x+o.width&&t>=o.y&&t<=o.y+o.height}function On(e,t,o,n,r,i){let s=Math.min(o,r),a=Math.max(o,r),c=Math.min(n,i),u=Math.max(n,i);return e>=s&&e<=a&&t>=c&&t<=u}function Kr(e={}){let{blockPointerEvents:t=!1}=e,o=new Ue,n=({x:r,y:i,placement:s,elements:a,onClose:c,nodeId:u,tree:d})=>{let l=s?.split("-")[0],m=!1,p=null,f=null,h=typeof performance<"u"?performance.now():0;function g(y,x){let R=performance.now(),T=R-h;if(p===null||f===null||T===0)return p=y,f=x,h=R,!1;let w=y-p,S=x-f,A=w*w+S*S,H=T*T*Vd;return p=y,f=x,h=R,A<H}function b(){o.clear(),c()}return function(x){o.clear();let R=a.domReference,T=a.floating;if(!R||!T||l==null||r==null||i==null)return;let{clientX:w,clientY:S}=x,A=he(x),H=x.type==="mouseleave",k=Q(T,A),Y=Q(R,A);if(k&&(m=!0,!H))return;if(Y&&(m=!1,!H)){m=!0;return}if(H&&$(x.relatedTarget)&&Q(T,x.relatedTarget))return;function Z(){return!!(d&>(d.nodesRef.current,u).length>0)}function F(){Z()||b()}if(Z())return;let N=R.getBoundingClientRect(),E=T.getBoundingClientRect(),P=r>E.right-E.width/2,q=i>E.bottom-E.height/2,C=E.width>N.width,O=E.height>N.height,X=(C?N:E).left,U=(C?N:E).right,ae=(O?N:E).top,ie=(O?N:E).bottom;if(l==="top"&&i>=N.bottom-1||l==="bottom"&&i<=N.top+1||l==="left"&&r>=N.right-1||l==="right"&&r<=N.left+1){F();return}let I=!1;switch(l){case"top":I=On(w,S,X,N.top+1,U,E.bottom-1);break;case"bottom":I=On(w,S,X,E.top+1,U,N.bottom-1);break;case"left":I=On(w,S,E.right-1,ie,N.left+1,ae);break;case"right":I=On(w,S,N.right-1,ie,E.left+1,ae);break;default:}if(I)return;if(m&&!Hd(w,S,N)){F();return}if(!H&&g(w,S)){F();return}let W=!1;switch(l){case"top":{let B=C?ee/2:ee*4,j=C||P?r+B:r-B,oe=C?r-B:P?r+B:r-B,le=i+ee+1,ue=P||C?E.bottom-ee:E.top,Ee=P?C?E.bottom-ee:E.top:E.bottom-ee;W=_n(w,S,j,le,oe,le,E.left,ue,E.right,Ee);break}case"bottom":{let B=C?ee/2:ee*4,j=C||P?r+B:r-B,oe=C?r-B:P?r+B:r-B,le=i-ee,ue=P||C?E.top+ee:E.bottom,Ee=P?C?E.top+ee:E.bottom:E.top+ee;W=_n(w,S,j,le,oe,le,E.left,ue,E.right,Ee);break}case"left":{let B=O?ee/2:ee*4,j=O||q?i+B:i-B,oe=O?i-B:q?i+B:i-B,le=r+ee+1,ue=q||O?E.right-ee:E.left,Ee=q?O?E.right-ee:E.left:E.right-ee;W=_n(w,S,ue,E.top,Ee,E.bottom,le,j,le,oe);break}case"right":{let B=O?ee/2:ee*4,j=O||q?i+B:i-B,oe=O?i-B:q?i+B:i-B,le=r-ee,ue=q||O?E.left+ee:E.right,Ee=q?O?E.left+ee:E.right:E.left+ee;W=_n(w,S,le,j,le,oe,ue,E.top,Ee,E.bottom);break}default:}W?m||o.start(40,F):F()}};return n.__options={...e,blockPointerEvents:t},n}function Va(e,t,o){let{reference:n,floating:r}=e,i=Ae(t),s=Co(t),a=To(s),c=ye(t),u=i==="y",d=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2,p;switch(c){case"top":p={x:d,y:n.y-r.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:l};break;case"left":p={x:n.x-r.width,y:l};break;default:p={x:n.x,y:n.y}}let f=Fe(t);return f&&(p[s]+=m*(f==="end"?1:-1)*(o&&u?-1:1)),p}async function Ha(e,t){var o;t===void 0&&(t={});let{x:n,y:r,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:l="floating",altBoundary:m=!1,padding:p=0}=ft(t,e),f=hn(p),g=a[m?l==="floating"?"reference":"floating":l],b=Lt(await i.getClippingRect({element:(o=await(i.isElement==null?void 0:i.isElement(g)))==null||o?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),y=l==="floating"?{x:n,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),R=await(i.isElement==null?void 0:i.isElement(x))&&await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1},T=Lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:c}):y);return{top:(b.top-T.top+f.top)/R.y,bottom:(T.bottom-b.bottom+f.bottom)/R.y,left:(b.left-T.left+f.left)/R.x,right:(T.right-b.right+f.right)/R.x}}var Bd=50,Ba=async(e,t,o)=>{let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:s}=o,a=s.detectOverflow?s:{...s,detectOverflow:Ha},c=await(s.isRTL==null?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:l}=Va(u,n,c),m=n,p=0,f={};for(let h=0;h<i.length;h++){let g=i[h];if(!g)continue;let{name:b,fn:y}=g,{x,y:R,data:T,reset:w}=await y({x:d,y:l,initialPlacement:n,placement:m,strategy:r,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});d=x??d,l=R??l,f[b]={...f[b],...T},w&&p<Bd&&(p++,typeof w=="object"&&(w.placement&&(m=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:d,y:l}=Va(u,m,c)),h=-1)}return{x:d,y:l,placement:m,strategy:r,middlewareData:f}};var ja=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;let{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...g}=ft(e,t);if((o=i.arrow)!=null&&o.alignmentOffset)return{};let b=ye(r),y=Ae(a),x=ye(a)===a,R=await(c.isRTL==null?void 0:c.isRTL(u.floating)),T=m||(x||!h?[Eo(a)]:Gs(a)),w=f!=="none";!m&&w&&T.push(...Js(a,h,f,R));let S=[a,...T],A=await c.detectOverflow(t,g),H=[],k=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&H.push(A[b]),l){let N=Ks(r,s,R);H.push(A[N[0]],A[N[1]])}if(k=[...k,{placement:r,overflows:H}],!H.every(N=>N<=0)){var Y,Z;let N=(((Y=i.flip)==null?void 0:Y.index)||0)+1,E=S[N];if(E&&(!(l==="alignment"?y!==Ae(E):!1)||k.every(C=>Ae(C.placement)===y?C.overflows[0]>0:!0)))return{data:{index:N,overflows:k},reset:{placement:E}};let P=(Z=k.filter(q=>q.overflows[0]<=0).sort((q,C)=>q.overflows[1]-C.overflows[1])[0])==null?void 0:Z.placement;if(!P)switch(p){case"bestFit":{var F;let q=(F=k.filter(C=>{if(w){let O=Ae(C.placement);return O===y||O==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(O=>O>0).reduce((O,X)=>O+X,0)]).sort((C,O)=>C[1]-O[1])[0])==null?void 0:F[0];q&&(P=q);break}case"initialPlacement":P=a;break}if(r!==P)return{reset:{placement:P}}}return{}}}};var Ua=new Set(["left","top"]);async function jd(e,t){let{placement:o,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),s=ye(o),a=Fe(o),c=Ae(o)==="y",u=Ua.has(s)?-1:1,d=i&&c?-1:1,l=ft(t,e),{mainAxis:m,crossAxis:p,alignmentAxis:f}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof f=="number"&&(p=a==="end"?f*-1:f),c?{x:p*d,y:m*u}:{x:m*u,y:p*d}}var za=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;let{x:r,y:i,placement:s,middlewareData:a}=t,c=await jd(t,e);return s===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:s}}}}},Wa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:n,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:y=>{let{x,y:R}=y;return{x,y:R}}},...u}=ft(e,t),d={x:o,y:n},l=await i.detectOverflow(t,u),m=Ae(r),p=gn(m),f=d[p],h=d[m],g=(y,x)=>mn(x+l[y==="y"?"top":"left"],x,x-l[y==="y"?"bottom":"right"]);s&&(f=g(p,f)),a&&(h=g(m,h));let b=c.fn({...t,[p]:f,[m]:h});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[p]:s,[m]:a}}}}}},$a=function(e){return e===void 0&&(e={}),{options:e,fn(t){var o,n;let{x:r,y:i,placement:s,rects:a,middlewareData:c}=t,{offset:u=0,mainAxis:d=!0,crossAxis:l=!0}=ft(e,t),m={x:r,y:i},p=Ae(s),f=gn(p),h=m[f],g=m[p],b=ft(u,t),y=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(o=b.mainAxis)!=null?o:0,crossAxis:(n=b.crossAxis)!=null?n:0};if(d){let T=f==="y"?"height":"width",w=a.reference[f]-a.floating[T]+y.mainAxis,S=a.reference[f]+a.reference[T]-y.mainAxis;h<w?h=w:h>S&&(h=S)}if(l){var x,R;let T=f==="y"?"width":"height",w=Ua.has(ye(s)),S=a.reference[p]-a.floating[T]+(w&&((x=c.offset)==null?void 0:x[p])||0)+(w?0:y.crossAxis),A=a.reference[p]+a.reference[T]+(w?0:((R=c.offset)==null?void 0:R[p])||0)-(w?y.crossAxis:0);g<S?g=S:g>A&&(g=A)}return{[f]:h,[p]:g}}}},Ya=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:o,rects:n,platform:r,elements:i}=t,{apply:s=()=>{},...a}=ft(e,t),c=await r.detectOverflow(t,a),u=ye(o),d=Fe(o),l=Ae(o)==="y",{width:m,height:p}=n.floating,f,h;u==="top"||u==="bottom"?(f=u,h=d===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,f=d==="end"?"top":"bottom");let g=p-c.top-c.bottom,b=m-c.left-c.right,y=Et(p-c[f],g),x=Et(m-c[h],b),R=t.middlewareData.shift,T=!R,w=y,S=x;R!=null&&R.enabled.x&&(S=b),R!=null&&R.enabled.y&&(w=g),T&&!d&&(l?S=m-2*Qe(c.left,c.right):w=p-2*Qe(c.top,c.bottom)),await s({...t,availableWidth:S,availableHeight:w});let A=await r.getDimensions(i.floating);return m!==A.width||p!==A.height?{reset:{rects:!0}}:{}}}};function Ka(e){let t=Se(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=me(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n,a=St(o)!==i||St(n)!==s;return a&&(o=i,n=s),{width:o,height:n,$:a}}function Jr(e){return $(e)?e:e.contextElement}function Zt(e){let t=Jr(e);if(!me(t))return ut(1);let o=t.getBoundingClientRect(),{width:n,height:r,$:i}=Ka(t),s=(i?St(o.width):o.width)/n,a=(i?St(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Ud=ut(0);function Ga(e){let t=re(e);return!sn()||!t.visualViewport?Ud:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zd(e,t,o){return t===void 0&&(t=!1),!!o&&t&&o===re(e)}function Ht(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);let r=e.getBoundingClientRect(),i=Jr(e),s=ut(1);t&&(n?$(n)&&(s=Zt(n)):s=Zt(e));let a=zd(i,o,n)?Ga(i):ut(0),c=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,d=r.width/s.x,l=r.height/s.y;if(i&&n){let m=re(i),p=$(n)?re(n):n,f=m,h=an(f);for(;h&&p!==f;){let g=Zt(h),b=h.getBoundingClientRect(),y=Se(h),x=b.left+(h.clientLeft+parseFloat(y.paddingLeft))*g.x,R=b.top+(h.clientTop+parseFloat(y.paddingTop))*g.y;c*=g.x,u*=g.y,d*=g.x,l*=g.y,c+=x,u+=R,f=re(h),h=an(f)}}return Lt({width:d,height:l,x:c,y:u})}function An(e,t){let o=bo(e).scrollLeft;return t?t.left+o:Ht(lt(e)).left+o}function Ja(e,t){let o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-An(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function Wd(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e,i=r==="fixed",s=lt(n),a=t?vo(t.floating):!1;if(n===s||a&&i)return o;let c={scrollLeft:0,scrollTop:0},u=ut(1),d=ut(0),l=me(n);if((l||!i)&&((kt(n)!=="body"||xo(s))&&(c=bo(n)),l)){let p=Ht(n);u=Zt(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}let m=s&&!l&&!i?Ja(s,c):ut(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-c.scrollLeft*u.x+d.x+m.x,y:o.y*u.y-c.scrollTop*u.y+d.y+m.y}}function $d(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Yd(e){let t=bo(e),o=e.ownerDocument.body,n=Qe(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=Qe(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),i=-t.scrollLeft+An(e),s=-t.scrollTop;return Se(o).direction==="rtl"&&(i+=Qe(e.clientWidth,o.clientWidth)-n),{width:n,height:r,x:i,y:s}}var qd=25;function Xd(e,t,o){o===void 0&&(o="viewport");let n=o==="layoutViewport",r=re(e),i=lt(e),s=r.visualViewport,a=i.clientWidth,c=i.clientHeight,u=0,d=0;if(s){let m=!sn()||t==="fixed";n?m||(u=-s.offsetLeft,d=-s.offsetTop):(a=s.width,c=s.height,m&&(u=s.offsetLeft,d=s.offsetTop))}if(An(i)<=0){let m=i.ownerDocument,p=m.body,f=getComputedStyle(p),h=m.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(i.clientWidth-p.clientWidth-h),b=getComputedStyle(i).scrollbarGutter==="stable both-edges"?g/2:g;b<=qd&&(a-=b)}return{width:a,height:c,x:u,y:d}}function Kd(e,t){let o=Ht(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=Zt(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,u=n*i.y;return{width:s,height:a,x:c,y:u}}function qa(e,t,o){let n;if(t==="viewport"||t==="layoutViewport")n=Xd(e,o,t);else if(t==="document")n=Yd(lt(e));else if($(t))n=Kd(t,o);else{let r=Ga(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lt(n)}function Gd(e,t){let o=t.get(e);if(o)return o;let n=wt(e,[],!1).filter(a=>$(a)&&kt(a)!=="body"),r=null,i=Se(e).position==="fixed",s=i?at(e):e;for(;$(s)&&!ct(s);){let a=Se(s),c=rn(s),u=r?r.position:i?"fixed":"";!c&&(u==="fixed"||u==="absolute"&&a.position==="static")?n=n.filter(l=>l!==s):r=a,s=at(s)}return t.set(e,n),n}function Jd(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e,s=[...o==="clippingAncestors"?vo(t)?[]:Gd(t,this._c):[].concat(o),n],a=qa(t,s[0],r),c=a.top,u=a.right,d=a.bottom,l=a.left;for(let m=1;m<s.length;m++){let p=qa(t,s[m],r);c=Qe(p.top,c),u=Et(p.right,u),d=Et(p.bottom,d),l=Qe(p.left,l)}return{width:u-l,height:d-c,x:l,y:c}}function Zd(e){let{width:t,height:o}=Ka(e);return{width:t,height:o}}function Qd(e,t,o){let n=me(t),r=lt(t),i=o==="fixed",s=Ht(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=ut(0);if((n||!i)&&((kt(t)!=="body"||xo(r))&&(a=bo(t)),n)){let m=Ht(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}!n&&r&&(c.x=An(r));let u=r&&!n&&!i?Ja(r,a):ut(0),d=s.left+a.scrollLeft-c.x-u.x,l=s.top+a.scrollTop-c.y-u.y;return{x:d,y:l,width:s.width,height:s.height}}function Gr(e){return Se(e).position==="static"}function Xa(e,t){if(!me(e)||Se(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return lt(e)===o&&(o=o.ownerDocument.body),o}function Za(e,t){let o=re(e);if(vo(e))return o;if(!me(e)){let r=at(e);for(;r&&!ct(r);){if($(r)&&!Gr(r))return r;r=at(r)}return o}let n=Xa(e,t);for(;n&&Cs(n)&&Gr(n);)n=Xa(n,t);return n&&ct(n)&&Gr(n)&&!rn(n)?o:n||Ps(e)||o}var ep=async function(e){let t=this.getOffsetParent||Za,o=this.getDimensions,n=await o(e.floating);return{reference:Qd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function tp(e){return Se(e).direction==="rtl"}var Zr={convertOffsetParentRelativeRectToViewportRelativeRect:Wd,getDocumentElement:lt,getClippingRect:Jd,getOffsetParent:Za,getElementRects:ep,getClientRects:$d,getDimensions:Zd,getScale:Zt,isElement:$,isRTL:tp};function Qa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function op(e,t,o){let n=null,r,i=lt(e);function s(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function a(d,l){d===void 0&&(d=!1),l===void 0&&(l=1),s();let m=e.getBoundingClientRect(),{left:p,top:f,width:h,height:g}=m;if(d||t(),!h||!g)return;let b=So(f),y=So(i.clientWidth-(p+h)),x=So(i.clientHeight-(f+g)),R=So(p),w={rootMargin:-b+"px "+-y+"px "+-x+"px "+-R+"px",threshold:Qe(0,Et(1,l))||1},S=!0;function A(H){let k=H[0].intersectionRatio;if(!Qa(m,e.getBoundingClientRect()))return a();if(k!==l){if(!S)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(A,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,w)}n.observe(e)}let c=re(e),u=()=>a(o);return c.addEventListener("resize",u),a(!0),()=>{c.removeEventListener("resize",u),s()}}function Oo(e,t,o,n){n===void 0&&(n={});let{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Jr(e),d=r||i?[...u?wt(u):[],...t?wt(t):[]]:[];d.forEach(b=>{r&&b.addEventListener("scroll",o),i&&b.addEventListener("resize",o)});let l=u&&a?op(u,o,i):null,m=-1,p=null;s&&(p=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),o()}),u&&!c&&p.observe(u),t&&p.observe(t));let f,h=c?Ht(e):null;c&&g();function g(){let b=Ht(e);h&&!Qa(h,b)&&o(),h=b,f=requestAnimationFrame(g)}return o(),()=>{var b;d.forEach(y=>{r&&y.removeEventListener("scroll",o),i&&y.removeEventListener("resize",o)}),l?.(),(b=p)==null||b.disconnect(),p=null,c&&cancelAnimationFrame(f)}}var el=za;var tl=Wa,ol=ja,nl=Ya;var rl=$a,In=(e,t,o)=>{let n=new Map,r=o??{},i={...Zr,...r.platform,_c:n};return Ba(e,t,{...r,platform:i})};var fe=v(L(),1),sl=v(L(),1),al=v(bt(),1),rp=typeof document<"u",ip=function(){},kn=rp?sl.useLayoutEffect:ip;function Nn(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 o,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(n=o;n--!==0;)if(!Nn(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),o=r.length,o!==Object.keys(t).length)return!1;for(n=o;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=o;n--!==0;){let i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!Nn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ll(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function il(e,t){let o=ll(e);return Math.round(t*o)/o}function Qr(e){let t=fe.useRef(e);return kn(()=>{t.current=e}),t}function cl(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,l]=fe.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=fe.useState(n);Nn(m,n)||p(n);let[f,h]=fe.useState(null),[g,b]=fe.useState(null),y=fe.useCallback(C=>{C!==w.current&&(w.current=C,h(C))},[]),x=fe.useCallback(C=>{C!==S.current&&(S.current=C,b(C))},[]),R=i||f,T=s||g,w=fe.useRef(null),S=fe.useRef(null),A=fe.useRef(d),H=c!=null,k=Qr(c),Y=Qr(r),Z=Qr(u),F=fe.useCallback(()=>{if(!w.current||!S.current)return;let C={placement:t,strategy:o,middleware:m};Y.current&&(C.platform=Y.current),In(w.current,S.current,C).then(O=>{let X={...O,isPositioned:Z.current!==!1};N.current&&!Nn(A.current,X)&&(A.current=X,al.flushSync(()=>{l(X)}))})},[m,t,o,Y,Z]);kn(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,l(C=>({...C,isPositioned:!1})))},[u]);let N=fe.useRef(!1);kn(()=>(N.current=!0,()=>{N.current=!1}),[]),kn(()=>{if(R&&(w.current=R),T&&(S.current=T),R&&T){if(k.current)return k.current(R,T,F);F()}},[R,T,F,k,H]);let E=fe.useMemo(()=>({reference:w,floating:S,setReference:y,setFloating:x}),[y,x]),P=fe.useMemo(()=>({reference:R,floating:T}),[R,T]),q=fe.useMemo(()=>{let C={position:o,left:0,top:0};if(!P.floating)return C;let O=il(P.floating,d.x),X=il(P.floating,d.y);return a?{...C,transform:"translate("+O+"px, "+X+"px)",...ll(P.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:O,top:X}},[o,a,P.floating,d.x,d.y]);return fe.useMemo(()=>({...d,update:F,refs:E,elements:P,floatingStyles:q}),[d,F,E,P,q])}var ei=(e,t)=>{let o=el(e);return{name:o.name,fn:o.fn,options:[e,t]}},ti=(e,t)=>{let o=tl(e);return{name:o.name,fn:o.fn,options:[e,t]}},oi=(e,t)=>({fn:rl(e).fn,options:[e,t]}),ni=(e,t)=>{let o=ol(e);return{name:o.name,fn:o.fn,options:[e,t]}},ri=(e,t)=>{let o=nl(e);return{name:o.name,fn:o.fn,options:[e,t]}};var Mn=class extends Ct{setState(t){}update(t){}set(t,o){}notifyAll(){}};function ul(e){return zt(19)?e:e?"true":void 0}var Dn=v(L(),1),ii=Dn.createContext(void 0);function Qt(){return Dn.useContext(ii)?.direction??"ltr"}var Ve=v(L(),1);var We=v(L(),1);function fl(e){let{nodeId:t,externalTree:o,rootContext:n}=e,r=n.useState("referenceElement"),i=n.useState("floatingElement"),s=n.useState("domReferenceElement"),a=n.useState("open"),c=n.useState("floatingId"),[u,d]=We.useState(null),l=We.useRef(null),m=Tt(o),p=We.useMemo(()=>({reference:r,floating:i,domReference:s}),[r,i,s]),f=cl({...e,elements:{...p,...u&&{reference:u}}}),h=We.useCallback(x=>{let R=$(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;d(R),f.refs.setReference(R)},[f.refs]),g=We.useMemo(()=>({...f.refs,setPositionReference:h,domReference:l}),[f.refs,h]),b=We.useMemo(()=>({...f.elements,domReference:s}),[f.elements,s]),y=We.useMemo(()=>({...f,dataRef:n.context.dataRef,open:a,onOpenChange:n.setOpen,events:n.context.events,floatingId:c,refs:g,elements:b,nodeId:t,rootStore:n}),[f,g,b,t,n,a,c]);return M(()=>{s&&(l.current=s)},[s]),M(()=>{n.context.dataRef.current.floatingContext=y;let x=m?.nodesRef.current.find(R=>R.id===t);x&&(x.context=y)}),We.useMemo(()=>({...f,context:y,refs:g,elements:b,rootStore:n}),[f,g,b,y,n])}var sp=e=>({name:"arrow",options:e,async fn(t){let{x:o,y:n,placement:r,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=ft(e,t)||{};if(u==null)return{};let l=hn(d),m={x:o,y:n},p=Co(r),f=To(p),h=await s.getDimensions(u),g=p==="y",b=g?"top":"left",y=g?"bottom":"right",x=g?"clientHeight":"clientWidth",R=i.reference[f]+i.reference[p]-m[p]-i.floating[f],T=m[p]-i.reference[p],w=a.floating[x]||i.floating[f],S=R/2-T/2,A=w/2-h[f]/2-1,H=Math.min(l[b],A),k=Math.min(l[y],A),Y=H,Z=w-h[f]-k,F=w/2-h[f]/2+S,N=mn(Y,F,Z),E=!c.arrow&&Fe(r)!=null&&F!==N&&i.reference[f]/2-(F<Y?H:k)-h[f]/2<0,P=E?F<Y?F-Y:F-Z:0;return{[p]:m[p]+P,data:{[p]:N,centerOffset:F-N-P,...E&&{alignmentOffset:P}},reset:E}}}),dl=(e,t)=>{let{name:o,fn:n}=sp(e);return{name:o,fn:n,options:[e,t]}};var pl={name:"hide",async fn(e){let{width:t,height:o,x:n,y:r}=e.rects.reference,i=t===0&&o===0&&n===0&&r===0,s=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:s.top-o>=0||s.right-t>=0||s.bottom-o>=0||s.left-t>=0||i}}}};var eo={sideX:"left",sideY:"top"};var Ln="--available-width",Fn="--available-height",ml="--anchor-width",gl="--anchor-height",hl="--transform-origin",yl="--positioner-width",xl="--positioner-height";var bl=Ln,wl=Fn;function Sl(e,t,o){let n=e==="inline-start"||e==="inline-end";return{top:"top",right:n?o?"inline-start":"inline-end":"right",bottom:"bottom",left:n?o?"inline-end":"inline-start":"left"}[t]}function Rl(e,t,o){let{rects:n,placement:r}=e;return{side:Sl(t,ye(r),o),align:Fe(r)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function Tl(e){return ap(e,fl)}function ap(e,t){let{anchor:o,positionMethod:n="absolute",side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,collisionBoundary:c,collisionPadding:u=5,sticky:d=!1,arrowPadding:l=5,disableAnchorTracking:m=!1,inline:p,keepMounted:f=!1,floatingRootContext:h,mounted:g,collisionAvoidance:b,shift:y,nodeId:x,adaptiveOrigin:R,lazyFlip:T=!1,externalTree:w}=e,S=b.side||"flip",A=b.align||"flip",H=b.fallbackAxisSide||"end",k=y?.crossAxis??!1,Y=y?.rootBoundary,Z=typeof o=="function"?o:void 0,F=V(Z),N=Z?F:o,E=Oe(o),P=Oe(g),C=Qt()==="rtl",[O,X]=Ve.useState(null);!g&&O!==null&&X(null);let U=T==="placement",ae=O?ye(O):null,ie=O&&U?Fe(O)||"center":null,I=ae||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":C?"left":"right","inline-start":C?"right":"left"}[r],W=ie||s,B=W==="center"?I:`$I}-$W}`,j=u;typeof j=="number"?j={top:j,right:j,bottom:j,left:j}:j&&(j={top:j.top||0,right:j.right||0,bottom:j.bottom||0,left:j.left||0});let oe=1,le=r==="bottom"?oe:0,ue=r==="top"?oe:0,Ee=r==="right"?oe:0,te=r==="left"?oe:0,ce={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:j},de=Ve.useRef(null),Ye=Oe(i),ve=Oe(a),lo=typeof i!="function"?i:0,ht=typeof a!="function"?a:0,Ne=[];p&&Ne.push(p),Ne.push(ei(G=>{let De=Rl(G,r,C),je=typeof Ye.current=="function"?Ye.current(De):Ye.current,Pe=typeof ve.current=="function"?ve.current(De):ve.current;return{mainAxis:je,crossAxis:Pe,alignmentAxis:Pe}},[lo,ht,C,r]));let Do=A==="none"&&S!=="shift",Lo=!Do&&(d||k||S==="shift"),Fo=S==="none"?null:ni({...ce,padding:{top:j.top+oe+le,right:j.right+oe+te,bottom:j.bottom+oe+ue,left:j.left+oe+Ee},mainAxis:!k&&S==="flip",crossAxis:A==="flip"?"alignment":!1,fallbackAxisSideDirection:H}),Vo=Do?null:ti({...ce,rootBoundary:Y,mainAxis:A!=="none",crossAxis:Lo,limiter:d||k?void 0:oi(G=>{if(!de.current)return{};let{width:De,height:je}=de.current.getBoundingClientRect(),Pe=Ae(ye(G.placement)),yt=Pe==="y"?De:je,qe=Pe==="y"?j.left+j.right:j.top+j.bottom;return{offset:yt/2+qe/2}})},[ce,d,k,Y,j,A]);S==="shift"||A==="shift"||W==="center"?Ne.push(Vo,Fo):Ne.push(Fo,Vo),Ne.push(ri({...ce,apply({elements:{floating:G},availableWidth:De,availableHeight:je,rects:Pe}){if(!P.current)return;let yt=G.style;yt.setProperty(bl,`$De}px`),yt.setProperty(wl,`$je}px`);let qe=re(G).devicePixelRatio||1,{x:Wo,y:Ut,width:$o,height:xt}=Pe.reference,fo=(Math.round((Wo+$o)*qe)-Math.round(Wo*qe))/qe,po=(Math.round((Ut+xt)*qe)-Math.round(Ut*qe))/qe;yt.setProperty(ml,`$fo}px`),yt.setProperty(gl,`$po}px`)}}),dl(G=>({element:de.current||ge(G.elements.floating).createElement("div"),padding:de.current?l:0}),[l]),{name:"transformOrigin",fn(G){let{elements:{floating:De},middlewareData:je,placement:Pe,platform:yt,rects:qe,y:Wo}=G,Ut=ye(Pe),$o=Fe(Pe),xt=Ae(Ut)==="y",fo=de.current,po=typeof i=="function"?i(Rl(G,r,C)):i,Yo;if(!fo&&$o&&Math.abs(xt?je.shift?.x||0:je.shift?.y||0)<=1)Yo=$o==="start"===(xt&&yt.isRTL?.(De)===!0)?"100%":"0%";else{let du=xt?je.arrow?.x||0:je.arrow?.y||0,pu=xt?fo?.clientWidth||0:fo?.clientHeight||0;Yo=`$du+pu/2}px`}let rr=Ut==="top"||Ut==="left"?`calc(100% + $po}px)`:`${-po}px`;return Lo&&xt&&Math.abs(je.shift?.y||0)>po&&(rr=`$qe.reference.y+qe.reference.height/2-Wo}px`),De.style.setProperty(hl,xt?`$Yo} $rr}`:`$rr} $Yo}`),{}}},pl,R),M(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let co=Ve.useMemo(()=>({ancestorScroll:!m,elementResize:!m&&typeof ResizeObserver<"u",layoutShift:!m&&typeof IntersectionObserver<"u"}),[m]),{refs:_,elements:D,x:be,y:we,middlewareData:He,update:_t,placement:tt,context:Me,isPositioned:Be,floatingStyles:uo}=t({rootContext:h,open:f?g:void 0,placement:B,middleware:Ne,strategy:n,whileElementsMounted:f?void 0:(...G)=>Oo(...G,co),nodeId:x,externalTree:w}),{sideX:Ho,sideY:Bo}=He.adaptiveOrigin||eo,Bt=Be?n:"fixed",jo=Ve.useMemo(()=>{let G;return Be?R?G={position:Bt,[Ho]:be,[Bo]:we}:G={...uo,position:Bt}:G={position:Bt,top:0,left:0},G[bl]="100vw",G[wl]="100vh",Be||(G.opacity=0),G},[R,Bt,Ho,be,Bo,we,uo,Be]),jt=Ve.useRef(null);M(()=>{if(!g)return;let G=E.current,De=typeof G=="function"?G():G,Pe=(El(De)?De.current:De)||null||null;Pe!==jt.current&&(_.setPositionReference(Pe),jt.current=Pe)},[g,_,N,E]),Ve.useEffect(()=>{if(!g)return;let G=E.current;typeof G!="function"&&El(G)&&G.current!==jt.current&&(_.setPositionReference(G.current),jt.current=G.current)},[g,_,N,E]),Ve.useEffect(()=>{if(f&&g&&D.reference&&D.floating)return Oo(D.reference,D.floating,_t,co)},[f,g,D,_t,co]);let Ot=ye(tt),Uo=Sl(r,Ot,C),zo=Fe(tt)||"center",Bi=!!He.hide?.referenceHidden;M(()=>{T&&g&&Be&&(Ot!==I||U&&zo!==W)&&X(tt)},[T,U,g,Be,tt,Ot,zo,I,W]);let ji=Ve.useMemo(()=>({position:"absolute",top:He.arrow?.y,left:He.arrow?.x}),[He.arrow]),Ui=He.arrow?.centerOffset!==0;return Ve.useMemo(()=>({positionerStyles:jo,arrowStyles:ji,arrowRef:de,arrowUncentered:Ui,side:Uo,align:zo,physicalSide:Ot,anchorHidden:Bi,refs:_,context:Me,isPositioned:Be,update:_t}),[jo,ji,de,Ui,Uo,zo,Ot,Bi,_,Me,Be,_t])}function El(e){return e!=null&&"current"in e}function Vn(e){return e==="starting"?Zs:ne}function Cl(e,t,{styles:o,transitionStatus:n,props:r,refs:i,hidden:s,inert:a=!1}){let c={...o};return a&&(c.pointerEvents="none"),_e("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:s,style:c},Vn(n),r],stateAttributesMapping:wo})}var xe=v(L(),1),Fl=v(bt(),1);var Pl=v(L(),1);function _l(e){let[t,o]=Pl.useState({current:e,previous:null});return Object.is(e,t.current)||o({current:e,previous:t.current}),t.previous}var jn=v(L(),1);function si(e){let t=Se(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=me(e),i=r?e.offsetWidth:o,s=r?e.offsetHeight:n;return(St(o)!==i||St(n)!==s)&&(o=i,n=s),{width:o,height:n}}var Ao="--popup-width",Io="--popup-height";function Il(e){let{popupElement:t,positionerElement:o,content:n,mounted:r,onMeasureLayout:i,onMeasureLayoutComplete:s,side:a,direction:c}=e,u=Yt(t,!0),d=$t(),l=jn.useRef(null),m=V(i),p=V(s),f=jn.useMemo(()=>lp(a,c),[a,c]);M(()=>{if(!r){l.current=null;return}if(!t||!o)return;let h=Al(t,f);ai(t,"auto");let g=Bn(t,"position","static"),b=Bn(t,"transform","none"),y=Bn(t,"scale","1"),x=Al(o,{[Ln]:"max-content",[Fn]:"max-content"});function R(){g(),b(),x(),y()}if(m?.(),l.current===null){Hn(o,"max-content");let A=si(t);return l.current=A,Hn(o,A),R(),p?.(null,A),h}Hn(o,"max-content");let T=l.current,w=si(t);l.current=w,ai(t,T),R(),p?.(T,w),Hn(o,w);let S=new AbortController;return d.request(()=>{ai(t,w),u(()=>{t.style.setProperty(Ao,"auto"),t.style.setProperty(Io,"auto")},S.signal)}),()=>{S.abort(),d.cancel(),h()}},[n,t,o,u,d,r,m,p,f])}function lp(e,t){let o=e==="top",n=e==="left"||e===(t==="rtl"?"inline-end":"inline-start");return!o&&!n?ne:{position:"absolute",[o?"bottom":"top"]:"0",[n?"right":"left"]:"0"}}function Bn(e,t,o){let n=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,n)}}function Al(e,t){let o=[];for(let[n,r]of Object.entries(t))o.push(Bn(e,n,r));return o.length?()=>{o.forEach(n=>n())}:Xe}function ai(e,t){let o=t==="auto"?"auto":`$t.width}px`,n=t==="auto"?"auto":`$t.height}px`;e.style.setProperty(Ao,o),e.style.setProperty(Io,n)}function Hn(e,t){let o=t==="max-content"?"max-content":`$t.width}px`,n=t==="max-content"?"max-content":`$t.height}px`;e.style.setProperty(yl,o),e.style.setProperty(xl,n)}var kl=v(L(),1);var Nl=v(se(),1),Un=function(t){let{direction:o="ltr"}=t,n=kl.useMemo(()=>({direction:o}),[o]);return(0,Nl.jsx)(ii.Provider,{value:n,children:t.children})};var Ml={name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:n},elements:{floating:r},platform:i,strategy:s,placement:a}=e,c=re(r),u=c.getComputedStyle(r);if(!(u.transitionDuration!=="0s"&&u.transitionDuration!==""))return{x:t,y:o,data:eo};let l=await i.getOffsetParent?.(r),m={width:0,height:0};if(s==="fixed"&&c?.visualViewport)m={width:c.visualViewport.width,height:c.visualViewport.height};else if(l===c){let y=ge(r);m={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(l)&&(m=await i.getDimensions(l));let p=ye(a),f=t,h=o;p==="left"&&(f=m.width-(t+n.width)),p==="top"&&(h=m.height-(o+n.height));let g=p==="left"?"right":eo.sideX,b=p==="top"?"bottom":eo.sideY;return{x:f,y:h,data:{sideX:g,sideY:b}}}};var Dl="data-activation-direction";var to=v(se(),1),Vl={activationDirection:e=>e?{[Dl]:e}:null};function Hl(e){let{store:t,side:o,children:n}=e,r=Qt(),i=t.useState("activeTriggerElement"),s=t.useState("activeTriggerId"),a=t.useState("open"),c=t.useState("payload"),u=t.useState("mounted"),d=t.useState("popupElement"),l=t.useState("positionerElement"),m=_l(a?i:null),p=dp(s,c),f=xe.useRef(null),[h,g]=xe.useState(null),[b,y]=xe.useState(null),x=xe.useRef(null),R=xe.useRef(null),T=Yt(x,!0),w=$t(),S=xe.useRef(null),[A,H]=xe.useState(null),[k,Y]=xe.useState(!1);M(()=>(t.set("adaptiveOrigin",Ml),()=>{t.set("adaptiveOrigin",void 0)}),[t]);let Z=V(()=>{x.current?.style.setProperty("animation","none"),x.current?.style.setProperty("transition","none"),R.current?.style.setProperty("display","none")}),F=V(O=>{x.current?.style.removeProperty("animation"),x.current?.style.removeProperty("transition"),R.current?.style.removeProperty("display"),O&&H(O)}),N=V(()=>{S.current?.abort();let O=new AbortController;S.current=O,T(()=>{g(null),H(null),f.current=null},O.signal)}),E=xe.useRef(null);M(()=>{(!a||!u)&&(E.current=null)},[a,u]),M(()=>{if(a&&i&&m&&i!==m&&E.current!==i&&f.current){g(f.current),Y(!0);let O=fp(m,i);y(O),E.current=i}},[a,i,m]),M(()=>{h!=null&&(S.current?.abort(),Y(!0),w.request(()=>{Fl.flushSync(()=>{Y(!1)}),N()}))},[p,h,N,w]),M(()=>{let O=x.current;if(!O)return;let X=ge(O).createElement("div");for(let U of Array.from(O.childNodes))X.appendChild(U.cloneNode(!0));f.current=X});let P=h!=null,q;P?q=(0,to.jsxs)(xe.Fragment,{children:[(0,to.jsx)("div",{"data-previous":!0,inert:ul(!0),ref:R,style:{...A?{[Ao]:`$A.width}px`,[Io]:`$A.height}px`}:null,position:"absolute"},"data-ending-style":k?void 0:""},"previous"),(0,to.jsx)("div",{"data-current":!0,ref:x,"data-starting-style":k?"":void 0,children:n},p)]}):q=(0,to.jsx)("div",{"data-current":!0,ref:x,children:n},p),M(()=>{let O=R.current;!O||!h||O.replaceChildren(...Array.from(h.childNodes))},[h]),Il({popupElement:d,positionerElement:l,mounted:u,content:c,onMeasureLayout:Z,onMeasureLayoutComplete:F,side:o,direction:r});let C={activationDirection:up(b),transitioning:P};return{children:q,state:C}}function up(e){if(e)return`$Ll(e.horizontal,5,"right","left")} $Ll(e.vertical,5,"down","up")}`}function Ll(e,t,o,n){return e>t?o:e<-t?n:""}function fp(e,t){let o=e.getBoundingClientRect(),n=t.getBoundingClientRect(),r={x:o.left+o.width/2,y:o.top+o.height/2},i={x:n.left+n.width/2,y:n.top+n.height/2};return{horizontal:i.x-r.x,vertical:i.y-r.y}}function dp(e,t){let[o,n]=xe.useState(0),r=xe.useRef(e),i=xe.useRef(t),s=xe.useRef(!1);return M(()=>{let a=r.current,c=i.current,u=e!==a,d=t!==c;u?(n(l=>l+1),s.current=!d):s.current&&d&&(n(l=>l+1),s.current=!1),r.current=e,i.current=t},[e,t]),`$e??"current"}-$o}`}var zn=v(L(),1),Bl=v(bt(),1);var jl=v(se(),1),Ul=zn.forwardRef(function(t,o){let{children:n,container:r,className:i,render:s,style:a,...c}=t,{node:u,subtree:d}=oa({container:r,ref:o,componentProps:t,elementProps:c});return!d&&!u?null:(0,jl.jsxs)(zn.Fragment,{children:[d,u&&Bl.createPortal(n,u)]})});var ke={};ot(ke,{Arrow:()=>ac,Handle:()=>No,Popup:()=>ic,Portal:()=>tc,Positioner:()=>nc,Provider:()=>cc,Root:()=>Xl,Trigger:()=>Zl,Viewport:()=>fc,createHandle:()=>dc});var oo=v(L(),1);var Wn=v(L(),1),li=Wn.createContext(void 0);function $e(e){let t=Wn.useContext(li);if(t===void 0&&!e)throw new Error(nt(72));return t}var zl=v(L(),1);var Wl={...Na,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},$n=class extends Ct{constructor(t,o,n){let r=new Po;super(Yl(t,r,o,n),ql(r),Wl)}setOpen=(t,o)=>{da(this,t,o,{extraState:{openChangeReason:o.reason}})};cancelPendingOpen(t){this.state.floatingRootContext.dispatchOpenChange(!1,K(z.triggerPress,t))}};function $l(){let e=new Po,t=new Mn(Object.freeze(Yl(void 0,e)),Object.freeze(ql(e)),Wl);return Object.assign(t,{setOpen:Xe,cancelPendingOpen:Xe})}function Yl(e,t,o,n=!1){return{...Ia(t,o,n),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function ql(e){return{popupRef:zl.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var ko=v(se(),1),Xl=Br(function(t){let{disabled:o=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:s="none",actionsRef:a,onOpenChange:c,onOpenChangeComplete:u,handle:d,triggerId:l,defaultTriggerId:m=null,children:p}=t,f=ua((Y,Z)=>new $n({open:n,openProp:r,activeTriggerId:m,triggerIdProp:l},Y,Z));f.useControlledProp("openProp",r),f.useControlledProp("triggerIdProp",l),f.useContextCallback("onOpenChange",c),f.useContextCallback("onOpenChangeComplete",u);let h=f.useState("open"),g=!o&&h,b=f.useState("activeTriggerId"),y=f.useState("mounted"),x=f.useState("payload");f.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:i,disabled:o}),ma(f,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:R,transitionStatus:T}=ga(g,f),w=f.useState("isInstantPhase"),S=f.useState("instantType"),A=f.useState("lastOpenChangeReason"),H=oo.useRef(null);M(()=>{h&&o&&f.setOpen(!1,K(z.disabled))},[h,o,f]),M(()=>{T==="ending"&&A===z.none||T!=="ending"&&w?(S!=="delay"&&(H.current=S),f.set("instantType","delay")):H.current!==null&&(f.set("instantType",H.current),H.current=null)},[T,w,A,S,f]),M(()=>{g&&b==null&&f.set("payload",void 0)},[f,b,g]),oo.useImperativeHandle(a,()=>({unmount:R,close:()=>f.setOpen(!1,K(z.imperativeAction))}),[R,f]);let k=g||y||!o&&s!=="none";return(0,ko.jsxs)(li.Provider,{value:f,children:[d&&(0,ko.jsx)(fa,{handle:d,store:f}),k&&(0,ko.jsx)(pp,{store:f,disabled:o,trackCursorAxis:s}),typeof p=="function"?p({payload:x}):p]})});function pp({store:e,disabled:t,trackCursorAxis:o}){let n=e.useState("floatingRootContext"),r=Mr(n,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),i=Nr(n,{enabled:!t&&o!=="none",axis:o==="none"?void 0:o}),s=oo.useMemo(()=>Ke(i.reference,r.reference),[i.reference,r.reference]);return ha(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:r.floating??ne}),null}var qn=v(L(),1);var Yn=v(L(),1),ci=Yn.createContext(void 0);function Kl(){return Yn.useContext(ci)}var Gl="data-base-ui-tooltip-trigger";function Jl(e){let t=he(e);return $(t)?t:null}var Zl=Pa(function(t,o){let{render:n,className:r,style:i,handle:s,payload:a,disabled:c,delay:u,closeOnClick:d=!0,closeDelay:l,id:m,...p}=t,f=$e(!0),g=Da(s)??f;if(!g)throw new Error(nt(82));let b=Ts(m),y=g.useState("isTriggerActive",b),x=g.useState("isOpenedByTrigger",b),R=g.useState("floatingRootContext"),T=qn.useRef(null),w=l??0,{registerTrigger:S,isMountedByThisTrigger:A}=pa(b,T,g,{payload:a,closeOnClick:d,closeDelay:w}),H=Kl(),{activeIdRef:k,delayRef:Y,isInstantPhase:Z,hasProvider:F}=kr(R,{open:x}),N=Jt(R);g.useSyncedValue("isInstantPhase",Z);let E=g.useState("disabled"),P=c??E,q=Oe(P),C=g.useState("trackCursorAxis"),O=g.useState("disableHoverablePopup"),X=qn.useRef(!1),U=ze(),ae=qn.useRef(void 0);function ie(){return F&&k.current!=null?0:u??H??600}function I(te){let ce=T.current;if(!ce||!te)return!1;let de=Dt(te,`[$Gl}]`);return de!==null&&de!==ce&&Q(ce,de)}function W(te){let ce=I(te);return X.current=ce,ce&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,U.clear()),ce}let B=Xr(R,{enabled:!P,mouseOnly:!0,move:!1,handleClose:!O&&C!=="both"?Kr():null,restMs:ie,delay(){return l==null&&F?{close:Je(Y.current,"close")}:{close:w}},triggerElementRef:T,isActiveTrigger:y,isClosing:()=>g.select("transitionStatus")==="ending",shouldOpen(){return!X.current}}),j=Wr(R,{enabled:!P}).reference,oe=te=>{let ce=X.current,de=Jl(te),Ye=W(de),ve=T.current,lo=ve&&de&&Q(ve,de);if(Ye&&g.select("open")&&g.select("lastOpenChangeReason")===z.triggerHover){g.setOpen(!1,K(z.triggerHover,te));return}if(ce&&!Ye&&lo&&!q.current&&!g.select("open")&&ve&&mt(ae.current)){let ht=()=>{!X.current&&!q.current&&!g.select("open")&&g.setOpen(!0,K(z.triggerHover,te,ve))},Ne=ie();Ne===0?(U.clear(),ht()):U.start(Ne,ht)}},le=g.useState("appliedTriggerProps",A||C!=="none");return _e("button",t,{state:{open:x},ref:[o,S,T],props:[B,j,le,{onMouseOver(te){oe(te.nativeEvent)},onFocus(te){I(Jl(te.nativeEvent))&&te.preventBaseUIHandler()},onMouseLeave(){X.current=!1,U.clear(),ae.current=void 0},onPointerEnter(te){ae.current=te.pointerType},onPointerDown(te){ae.current=te.pointerType,g.set("closeOnClick",d),d&&!g.select("open")&&g.cancelPendingOpen(te.nativeEvent)},onClick(te){d&&!g.select("open")&&g.cancelPendingOpen(te.nativeEvent)},id:b,[Ro]:P?"":void 0,[Gl]:P?void 0:""},p],stateAttributesMapping:Hs})});var ec=v(L(),1);var Xn=v(L(),1),ui=Xn.createContext(void 0);function Ql(){let e=Xn.useContext(ui);if(e===void 0)throw new Error(nt(70));return e}var fi=v(se(),1),tc=ec.forwardRef(function(t,o){let{keepMounted:n=!1,...r}=t;return $e().useState("mounted")||n?(0,fi.jsx)(ui.Provider,{value:n,children:(0,fi.jsx)(Ul,{ref:o,...r})}):null});var Gn=v(L(),1);var Kn=v(L(),1),di=Kn.createContext(void 0);function no(){let e=Kn.useContext(di);if(e===void 0)throw new Error(nt(71));return e}var oc=v(se(),1),nc=Gn.forwardRef(function(t,o){let{render:n,className:r,anchor:i,positionMethod:s="absolute",side:a="top",align:c="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:l="clipping-ancestors",collisionPadding:m=5,arrowPadding:p=5,sticky:f=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=Qs,style:b,...y}=t,x=$e(),R=Ql(),T=x.useState("open"),w=x.useState("mounted"),S=x.useState("trackCursorAxis"),A=x.useState("disableHoverablePopup"),H=x.useState("floatingRootContext"),k=x.useState("instantType"),Y=x.useState("transitionStatus"),Z=x.useState("adaptiveOrigin"),F=Tl({anchor:i,positionMethod:s,floatingRootContext:H,mounted:w,side:a,sideOffset:u,align:c,alignOffset:d,collisionBoundary:l,collisionPadding:m,sticky:f,arrowPadding:p,disableAnchorTracking:h,keepMounted:R,collisionAvoidance:g,adaptiveOrigin:Z}),N=Gn.useMemo(()=>({open:T,side:F.side,align:F.align,anchorHidden:F.anchorHidden,instant:S!=="none"?"tracking-cursor":k}),[T,F.side,F.align,F.anchorHidden,S,k]),E=Cl(t,N,{styles:F.positionerStyles,transitionStatus:Y,props:y,refs:[o,x.useStateSetter("positionerElement")],hidden:!w,inert:!T||S==="both"||A});return(0,oc.jsx)(di.Provider,{value:F,children:E})});var rc=v(L(),1);var ic=rc.forwardRef(function(t,o){let{render:n,className:r,style:i,...s}=t,a=$e(),{side:c,align:u}=no(),d=a.useState("open"),l=a.useState("instantType"),m=a.useState("transitionStatus"),p=a.useState("popupProps"),f=a.useState("floatingRootContext"),h=a.useState("disabled"),g=a.useState("closeDelay");Zo({open:d,ref:a.context.popupRef,onComplete(){d&&a.context.onOpenChangeComplete?.(!0)}}),qr(f,{enabled:!h,closeDelay:g});let b=a.useStateSetter("popupElement");return _e("div",t,{state:{open:d,side:c,align:u,instant:l,transitionStatus:m},ref:[o,a.context.popupRef,b],props:[ca,p,Vn(m),s],stateAttributesMapping:Bs})});var sc=v(L(),1);var ac=sc.forwardRef(function(t,o){let{render:n,className:r,style:i,...s}=t,a=$e(),{arrowRef:c,side:u,align:d,arrowUncentered:l,arrowStyles:m}=no(),p=a.useState("open"),f=a.useState("instantType");return _e("div",t,{state:{open:p,side:u,align:d,uncentered:l,instant:f},ref:[o,c],props:[{style:m,"aria-hidden":!0},s],stateAttributesMapping:wo})});var lc=v(L(),1);var pi=v(se(),1),cc=function(t){let{delay:o,closeDelay:n,timeout:r=400}=t,i=lc.useMemo(()=>({open:o,close:n}),[o,n]);return(0,pi.jsx)(ci.Provider,{value:o,children:(0,pi.jsx)(Ir,{delay:i,timeoutMs:r,children:t.children})})};var uc=v(L(),1);var fc=uc.forwardRef(function(t,o){let{render:n,className:r,style:i,children:s,...a}=t,c=$e(),u=no(),d=c.useState("instantType"),{children:l,state:m}=Hl({store:c,side:u.side,children:s}),p={activationDirection:m.activationDirection,transitioning:m.transitioning,instant:d};return _e("div",t,{state:p,ref:o,props:[a,{children:l}],stateAttributesMapping:Vl})});var No=class extends xn{constructor(){super($l(),"Tooltip")}open(t){this.openByTrigger(t)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}};function dc(){return new No}function ro(e){return _e(e.defaultTagName??"div",e,e)}var gc=v(st(),1),mi="data-wp-hash";function gi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&gp(document)),e.__wpStyleRuntime}function mp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$mi}]`))if(o.getAttribute(mi)===t)return!0;return!1}function hc(e,t,o){if(!e.head)return;let n=gi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(mp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(mi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function gp(e){let t=gi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)hc(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function yc(e,t){let o=gi();o.styles.set(e,t);for(let n of o.documents.keys())hc(n,e,t)}typeof process>"u",yc("3167e7d116",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');var pc={text:"_83ed8a8da5dd50ea__text","heading-2xl":"_14437cfb77831647__heading-2xl","heading-xl":"_3c78b7fa9b4072dd__heading-xl","heading-lg":"aa58f227716bcde2__heading-lg","heading-md":"fc4da56d8dfe52c4__heading-md","heading-sm":"a9b78c7c82e8dff7__heading-sm","body-xl":"_305ff559e52180d5__body-xl","body-lg":"ca1aa3fc2029e958__body-lg","body-md":"_131101940be12424__body-md","body-sm":"_0e8d87a42c1f75fa__body-sm"};typeof process>"u",yc("abb19c3171","._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._400bf7ee0c6061a9__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");var mc={button:"_6defc79820e382c6__button",input:"d2cff2e5dea83bd1__input",textarea:"_547d86373d02e108__textarea",div:"_8c15fd0ed9f28ba4__div",p:"_43cec3e1eec1066d__p",heading:"e97669c6d9a38497__heading",a:"_2c0831b0499dbd6e__a",ol:"c59a0ebebd71fa4a__ol",li:"_46b5cb0c8e24e8c9__li",span:"_400bf7ee0c6061a9__span"},hi=(0,gc.forwardRef)(function({variant:t="body-md",render:o,className:n,...r},i){return ro({render:o,defaultTagName:"span",ref:i,props:Ke(r,{className:it(pc.text,mc.heading,mc.p,pc[t],n)})})});var Jn=v(st(),1),yi=(0,Jn.forwardRef)(({icon:e,size:t=24,style:o,...n},r)=>{let i=e.props.style,s=i||o?{...i,...o}:void 0;return(0,Jn.cloneElement)(e,{width:t,height:t,...n,...s?{style:s}:{},ref:r})});var Zn=v(Rs(),1),xi=v(se(),1),vi=(0,xi.jsx)(Zn.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:(0,xi.jsx)(Zn.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"})});var vc=v(st(),1),bi="data-wp-hash";function wi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&yp(document)),e.__wpStyleRuntime}function hp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$bi}]`))if(o.getAttribute(bi)===t)return!0;return!1}function bc(e,t,o){if(!e.head)return;let n=wi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(hp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(bi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function yp(e){let t=wi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)bc(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function xp(e,t){let o=wi();o.styles.set(e,t);for(let n of o.documents.keys())bc(n,e,t)}typeof process>"u",xp("15abcab4d0",".f37b9e2e191ebd66__visually-hidden{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;overflow-wrap:normal;padding:0;position:absolute;width:1px;word-break:normal}");var vp={"visually-hidden":"f37b9e2e191ebd66__visually-hidden"},Ri=(0,vc.forwardRef)(function({render:t,...o},n){return ro({render:t,ref:n,props:Ke({className:vp["visually-hidden"]},o,{"data-visually-hidden":""})})});var wc=v(st(),1);function Ei(e,t,o){return(0,wc.cloneElement)(e??t,{children:o})}var Ti="data-wp-hash";function Ci(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&wp(document)),e.__wpStyleRuntime}function bp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$Ti}]`))if(o.getAttribute(Ti)===t)return!0;return!1}function Ec(e,t,o){if(!e.head)return;let n=Ci(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(bp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Ti,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function wp(e){let t=Ci();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Ec(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Rp(e,t){let o=Ci();o.styles.set(e,t);for(let n of o.documents.keys())Ec(n,e,t)}typeof process>"u",Rp("be37f31c1e","._11fc52b637ff8a7e__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._11fc52b637ff8a7e__slot>*{pointer-events:auto}}}");var Rc={slot:"_11fc52b637ff8a7e__slot"},Sc="data-wp-compat-overlay-slot";function Ep(){return typeof document>"u"?null:document}function Sp(){let e;try{e=window.top?.wp}catch{}let t=e??window.wp;return typeof t?.components=="object"&&t.components!==null}var pt=null;function Si(e){return e.setAttribute("aria-hidden","false"),e}function Tp(e){let t=e.createElement("div");return t.setAttribute(Sc,""),Rc.slot&&t.classList.add(Rc.slot),e.body.appendChild(t),t}function Tc(){if(typeof window>"u"||!Sp()&&window.__wpUiCompatOverlaySlotEnabled!==!0)return;let e=Ep();if(!e||!e.body)return;if(pt&&pt.ownerDocument===e&&pt.isConnected)return Si(pt);let t=e.querySelector(`[$Sc}]`);return t instanceof HTMLDivElement?(pt=Si(t),pt):(pt?.isConnected&&pt.remove(),pt=Si(Tp(e)),pt)}var Cc=v(io(),1),Pc=v(se(),1);function _c({children:e}){return(0,Pc.jsx)(Un,{direction:(0,Cc.isRTL)()?"rtl":"ltr",children:e})}var so={};ot(so,{Popup:()=>Wc,Portal:()=>Qn,Positioner:()=>er,Provider:()=>Gc,Root:()=>Xc,Trigger:()=>qc});var Uc=v(st(),1);var Oc=v(st(),1);var Ac=v(se(),1),Qn=(0,Oc.forwardRef)(function({container:t,...o},n){return(0,Ac.jsx)(ke.Portal,{container:t===void 0?Tc():t,...o,ref:n})});var Ic=v(st(),1),Mc=v(se(),1),Pi="data-wp-hash";function _i(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Pp(document)),e.__wpStyleRuntime}function Cp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$Pi}]`))if(o.getAttribute(Pi)===t)return!0;return!1}function kc(e,t,o){if(!e.head)return;let n=_i(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Cp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Pi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Pp(e){let t=_i();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)kc(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Nc(e,t){let o=_i();o.styles.set(e,t);for(let n of o.documents.keys())kc(n,e,t)}typeof process>"u",Nc("10f3806643","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._336cd3e4e743482f__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");var _p={"box-sizing":"_336cd3e4e743482f__box-sizing"};typeof process>"u",Nc("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var Op={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},er=(0,Ic.forwardRef)(function({align:t="center",className:o,side:n="top",sideOffset:r=4,...i},s){return(0,Mc.jsx)(ke.Positioner,{ref:s,align:t,side:n,sideOffset:r,...i,className:it(_p["box-sizing"],Op.positioner,o)})});var Ap=v(Lc(),1);var Hc=v(Vc(),1),{lock:UR,unlock:Bc}=(0,Hc.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/ui");function Ip(){let e=Ap;if(e.ThemeProvider)return e.ThemeProvider;if(!e.privateApis)throw new Error("@wordpress/ui: @wordpress/theme must expose `ThemeProvider` or `privateApis.ThemeProvider`.");return Bc(e.privateApis).ThemeProvider}var jc=Ip();var Mo=v(se(),1),Oi="data-wp-hash";function Ai(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Np(document)),e.__wpStyleRuntime}function kp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$Oi}]`))if(o.getAttribute(Oi)===t)return!0;return!1}function zc(e,t,o){if(!e.head)return;let n=Ai(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(kp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Oi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Np(e){let t=Ai();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)zc(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Mp(e,t){let o=Ai();o.styles.set(e,t);for(let n of o.documents.keys())zc(n,e,t)}typeof process>"u",Mp("19fcc06039",'@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._480b748dd3510e64__positioner{z-index:var(--wp-ui-tooltip-z-index,initial)}._50096b232db7709d__popup{--_wp-ui-elevation-sm:0 1px 2px rgba(0,0,0,.05),0 2px 3px rgba(0,0,0,.04),0 6px 6px rgba(0,0,0,.03),0 8px 8px rgba(0,0,0,.02);background-color:var(--wpds-color-background-surface-neutral-strong,#fff);border-radius:var(--wpds-border-radius-md,4px);box-shadow:var(--_wp-ui-elevation-sm);color:var(--wpds-color-foreground-content-neutral,#1e1e1e);font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-sm,12px);line-height:1.4;padding:var(--wpds-dimension-padding-xs,4px) var(--wpds-dimension-padding-sm,8px);@media (forced-colors:active){border-bottom-color:CanvasText;border-bottom-style:solid;border-bottom-width:1px;border-left-color:CanvasText;border-left-style:solid;border-left-width:1px;border-right-color:CanvasText;border-right-style:solid;border-right-width:1px;border-top-color:CanvasText;border-top-style:solid;border-top-width:1px}}}}');var Dp={positioner:"_480b748dd3510e64__positioner",popup:"_50096b232db7709d__popup"},Lp={background:"#1e1e1e"},Wc=(0,Uc.forwardRef)(function({portal:t,positioner:o,children:n,className:r,...i},s){let a=(0,Mo.jsx)(jc,{color:Lp,children:(0,Mo.jsx)(ke.Popup,{ref:s,className:it(Dp.popup,r),...i,children:n})}),c=Ei(o,(0,Mo.jsx)(er,{}),a);return Ei(t,(0,Mo.jsx)(Qn,{}),c)});var $c=v(st(),1),Yc=v(se(),1),qc=(0,$c.forwardRef)(function(t,o){return(0,Yc.jsx)(ke.Trigger,{ref:o,...t})});var Ii=v(se(),1);function Xc(e){return(0,Ii.jsx)(_c,{children:(0,Ii.jsx)(ke.Root,{...e})})}var Kc=v(se(),1);function Gc({...e}){return(0,Kc.jsx)(ke.Provider,{...e})}var Jc=v(st(),1),ki="data-wp-hash";function Ni(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Vp(document)),e.__wpStyleRuntime}function Fp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$ki}]`))if(o.getAttribute(ki)===t)return!0;return!1}function Zc(e,t,o){if(!e.head)return;let n=Ni(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Fp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(ki,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Vp(e){let t=Ni();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)Zc(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Hp(e,t){let o=Ni();o.styles.set(e,t);for(let n of o.documents.keys())Zc(n,e,t)}typeof process>"u",Hp("32aba35fe1","@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");var Bp={stack:"_19ce0419607e1896__stack"},jp={xs:"var(--wpds-dimension-gap-xs, 4px)",sm:"var(--wpds-dimension-gap-sm, 8px)",md:"var(--wpds-dimension-gap-md, 12px)",lg:"var(--wpds-dimension-gap-lg, 16px)",xl:"var(--wpds-dimension-gap-xl, 24px)","2xl":"var(--wpds-dimension-gap-2xl, 32px)","3xl":"var(--wpds-dimension-gap-3xl, 40px)"},Mi=(0,Jc.forwardRef)(function({direction:t,gap:o,align:n,justify:r,wrap:i,render:s,...a},c){let u={gap:o&&jp[o],alignItems:n,justifyContent:r,flexDirection:t,flexWrap:i};return ro({render:s,ref:c,props:Ke(a,{style:u,className:Bp.stack})})});var eu=v(se(),1);function Qc(e){return typeof e.excerpt=="string"?(0,Di.decodeEntities)(e.excerpt):(0,Di.decodeEntities)(e.excerpt?.raw||"")}var tu={getValue:({item:e})=>Qc(e),render:({item:e})=>{let t=Qc(e);return t?(0,eu.jsx)(hi,{children:t}):null}};var ao=v(io(),1),ou=v(se(),1),Up=[{value:"fully",label:(0,ao._x)("Synced","pattern (singular)"),description:(0,ao.__)("Patterns that are kept in sync across the site.")},{value:"unsynced",label:(0,ao._x)("Not synced","pattern (singular)"),description:(0,ao.__)("Patterns that can be changed freely without affecting the site.")}];function zp(e){return e.type&&e.type!=="wp_block"||e.meta?.wp_pattern_sync_status==="unsynced"?"unsynced":e.wp_pattern_sync_status||"fully"}var nu={render:({item:e})=>{let t=zp(e),o=Up.find(({value:n})=>n===t)?.label;return o?(0,ou.jsx)("span",{className:`fields-field__pattern-sync-status fields-field__pattern-sync-status-$t}`,children:o}):null}};var tr=v(sr(),1),ru=v(io(),1);function or(e,t=(0,ru.__)("(no title)")){let o="";return typeof e.title=="string"?o=(0,tr.decodeEntities)(e.title):e.title&&"rendered"in e.title?o=(0,tr.decodeEntities)(e.title.rendered??""):e.title&&"raw"in e.title&&(o=(0,tr.decodeEntities)(e.title.raw??"")),o||t}var lu=v(io(),1);var iu=v(io(),1);var nr=v(se(),1),Li="data-wp-hash";function Fi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&$p(document)),e.__wpStyleRuntime}function Wp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$Li}]`))if(o.getAttribute(Li)===t)return!0;return!1}function su(e,t,o){if(!e.head)return;let n=Fi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Wp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Li,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function $p(e){let t=Fi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)su(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Yp(e,t){let o=Fi();o.styles.set(e,t);for(let n of o.documents.keys())su(n,e,t)}typeof process>"u",Yp("cd9f81046b",".f17c7d5418aade3c__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}._86b9872383a1ab5e__pattern-title>span:first-child{flex:1}");var qp={title:"f17c7d5418aade3c__title","pattern-title":"_86b9872383a1ab5e__pattern-title"};function au({item:e,className:t,children:o}){let n=or(e);return(0,nr.jsxs)(Mi,{direction:"row",align:"center",justify:"flex-start",gap:"sm",className:it("fields-field__title",qp.title,t),children:[(0,nr.jsx)("span",{children:n||(0,iu.__)("(no title)")}),o]})}var et=v(se(),1),Vi="data-wp-hash";function Hi(){let e=globalThis;return e.__wpStyleRuntime||(e.__wpStyleRuntime={documents:new Map,styles:new Map,injectedStyles:new WeakMap},typeof document<"u"&&Kp(document)),e.__wpStyleRuntime}function Xp(e,t){if(!e.head)return!1;for(let o of e.head.querySelectorAll(`style[$Vi}]`))if(o.getAttribute(Vi)===t)return!0;return!1}function cu(e,t,o){if(!e.head)return;let n=Hi(),r=n.injectedStyles.get(e);if(r||(r=new Set,n.injectedStyles.set(e,r)),r.has(t))return;if(Xp(e,t)){r.add(t);return}let i=e.createElement("style");i.setAttribute(Vi,t),i.appendChild(e.createTextNode(o)),e.head.appendChild(i),r.add(t)}function Kp(e){let t=Hi();t.documents.set(e,(t.documents.get(e)??0)+1);for(let[o,n]of t.styles)cu(e,o,n);return()=>{let o=t.documents.get(e);if(o!==void 0){if(o<=1){t.documents.delete(e);return}t.documents.set(e,o-1)}}}function Gp(e,t){let o=Hi();o.styles.set(e,t);for(let n of o.documents.keys())cu(n,e,t)}typeof process>"u",Gp("cd9f81046b",".f17c7d5418aade3c__title>span:first-child{display:block;flex-grow:0;overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}._86b9872383a1ab5e__pattern-title>span:first-child{flex:1}");var Jp={title:"f17c7d5418aade3c__title","pattern-title":"_86b9872383a1ab5e__pattern-title"};function uu({item:e}){let t=(0,lu.__)("This pattern cannot be edited.");return(0,et.jsx)(au,{item:e,className:it("fields-field__pattern-title",Jp["pattern-title"]),children:e.type==="pattern"&&(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(Ri,{children:t}),(0,et.jsxs)(so.Root,{children:[(0,et.jsx)(so.Trigger,{render:(0,et.jsx)(yi,{icon:vi,size:24})}),(0,et.jsx)(so.Popup,{children:t})]})]})})}var fu={getValue:({item:e})=>or(e),render:uu};var Zp={excerpt:tu,"sync-status":nu,title:fu},KE=Zp;export{KE as default}; 2 /*! Bundled license information: 3 4 use-sync-external-store/cjs/use-sync-external-store-shim.production.js: 5 (** 6 * @license React 7 * use-sync-external-store-shim.production.js 8 * 9 * Copyright (c) Meta Platforms, Inc. and affiliates. 10 * 11 * This source code is licensed under the MIT license found in the 12 * LICENSE file in the root directory of this source tree. 13 *) 14 15 use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js: 16 (** 17 * @license React 18 * use-sync-external-store-shim/with-selector.production.js 19 * 20 * Copyright (c) Meta Platforms, Inc. and affiliates. 21 * 22 * This source code is licensed under the MIT license found in the 23 * LICENSE file in the root directory of this source tree. 24 *) 25 */
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Oct 21 08:20:34 2026 | Cross-referenced by PHPXref |