@inploi/plugin-job-alerts 5.3.1 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +5 -40
- package/dist/plugin-job-alerts.cjs +4 -44
- package/dist/plugin-job-alerts.js +4 -44
- package/package.json +8 -8
package/cdn/index.js
CHANGED
|
@@ -1,45 +1,10 @@
|
|
|
1
|
-
var Km=Object.defineProperty;var Xm=(Ct,Te,Wt)=>Te in Ct?Km(Ct,Te,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):Ct[Te]=Wt;var ue=(Ct,Te,Wt)=>Xm(Ct,typeof Te!="symbol"?Te+"":Te,Wt);(function(){"use strict";function Ct(e,t){if(!e)throw new Error(t)}let Te;function Wt(e){return{lang:(e==null?void 0:e.lang)??(Te==null?void 0:Te.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(Te==null?void 0:Te.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(Te==null?void 0:Te.abortPipeEarly)}}let Dr;function kl(e){return Dr==null?void 0:Dr.get(e)}let $r;function Ol(e){return $r==null?void 0:$r.get(e)}let Lr;function Tl(e,t){var n;return(n=Lr==null?void 0:Lr.get(e))==null?void 0:n.get(t)}function Mr(e){var n,r;const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor)==null?void 0:r.name))??"null":t}function Fe(e,t,n,r,o){const i=o&&"input"in o?o.input:n.value,s=(o==null?void 0:o.expected)??e.expects??null,a=(o==null?void 0:o.received)??Mr(i),l={kind:e.kind,type:e.type,input:i,expected:s,received:a,message:`Invalid ${t}: ${s?`Expected ${s} but r`:"R"}eceived ${a}`,requirement:e.requirement,path:o==null?void 0:o.path,issues:o==null?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},c=e.kind==="schema",f=(o==null?void 0:o.message)??e.message??Tl(e.reference,l.lang)??(c?Ol(l.lang):null)??r.message??kl(l.lang);f!==void 0&&(l.message=typeof f=="function"?f(l):f),c&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}function We(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Wt())}}}function Cl(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Ii(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}const Pl=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function ji(e){return{kind:"validation",type:"email",reference:ji,expects:null,async:!1,requirement:Pl,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&&Fe(this,"email",t,n),t}}}function Fr(e,t){return{kind:"validation",type:"max_length",reference:Fr,async:!1,expects:`<=${e}`,requirement:e,message:t,"~run"(n,r){return n.typed&&n.value.length>this.requirement&&Fe(this,"length",n,r,{received:`${n.value.length}`}),n}}}function Vr(e,t){return{kind:"validation",type:"min_length",reference:Vr,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(n,r){return n.typed&&n.value.length<this.requirement&&Fe(this,"length",n,r,{received:`${n.value.length}`}),n}}}function Br(){return{kind:"transformation",type:"trim",reference:Br,async:!1,"~run"(e){return e.value=e.value.trim(),e}}}function Al(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function Hr(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Wr(e,t){return{kind:"schema",type:"array",reference:Wr,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return We(this)},"~run"(n,r){var i;const o=n.value;if(Array.isArray(o)){n.typed=!0,n.value=[];for(let s=0;s<o.length;s++){const a=o[s],l=this.item["~run"]({value:a},r);if(l.issues){const c={type:"array",origin:"value",input:o,key:s,value:a};for(const f of l.issues)f.path?f.path.unshift(c):f.path=[c],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value.push(l.value)}}else Fe(this,"type",n,r);return n}}}function Ni(e,t){return{kind:"schema",type:"literal",reference:Ni,expects:Mr(e),async:!1,literal:e,message:t,get"~standard"(){return We(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:Fe(this,"type",n,r),n}}}function pe(e,t){return{kind:"schema",type:"nullable",reference:pe,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return We(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=Hr(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function et(e){return{kind:"schema",type:"number",reference:et,expects:"number",async:!1,message:e,get"~standard"(){return We(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:Fe(this,"type",t,n),t}}}function Ke(e,t){return{kind:"schema",type:"object",reference:Ke,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return We(this)},"~run"(n,r){var i;const o=n.value;if(o&&typeof o=="object"){n.typed=!0,n.value={};for(const s in this.entries){const a=this.entries[s];if(s in o||(a.type==="exact_optional"||a.type==="optional"||a.type==="nullish")&&a.default!==void 0){const l=s in o?o[s]:Hr(a),c=a["~run"]({value:l},r);if(c.issues){const f={type:"object",origin:"value",input:o,key:s,value:l};for(const u of c.issues)u.path?u.path.unshift(f):u.path=[f],(i=n.issues)==null||i.push(u);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value[s]=c.value}else if(a.fallback!==void 0)n.value[s]=Al(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(Fe(this,"key",n,r,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:o,key:s,value:o[s]}]}),r.abortEarly))break}}else Fe(this,"type",n,r);return n}}}function Pt(e,t){return{kind:"schema",type:"optional",reference:Pt,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return We(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=Hr(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function yt(e,t){return{kind:"schema",type:"picklist",reference:yt,expects:Ii(e.map(Mr),"|"),async:!1,options:e,message:t,get"~standard"(){return We(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:Fe(this,"type",n,r),n}}}function Bn(e,t,n){return{kind:"schema",type:"record",reference:Bn,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return We(this)},"~run"(r,o){var s,a;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const l in i)if(Cl(i,l)){const c=i[l],f=this.key["~run"]({value:l},o);if(f.issues){const p={type:"object",origin:"key",input:i,key:l,value:c};for(const d of f.issues)d.path=[p],(s=r.issues)==null||s.push(d);if(r.issues||(r.issues=f.issues),o.abortEarly){r.typed=!1;break}}const u=this.value["~run"]({value:c},o);if(u.issues){const p={type:"object",origin:"value",input:i,key:l,value:c};for(const d of u.issues)d.path?d.path.unshift(p):d.path=[p],(a=r.issues)==null||a.push(d);if(r.issues||(r.issues=u.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!u.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=u.value)}}else Fe(this,"type",r,o);return r}}}function Z(e){return{kind:"schema",type:"string",reference:Z,expects:"string",async:!1,message:e,get"~standard"(){return We(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:Fe(this,"type",t,n),t}}}function Di(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function $i(e,t){return{kind:"schema",type:"union",reference:$i,expects:Ii(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return We(this)},"~run"(n,r){let o,i,s;for(const a of this.options){const l=a["~run"]({value:n.value},r);if(l.typed)if(l.issues)i?i.push(l):i=[l];else{o=l;break}else s?s.push(l):s=[l]}if(o)return o;if(i){if(i.length===1)return i[0];Fe(this,"type",n,r,{issues:Di(i)}),n.typed=!0}else{if((s==null?void 0:s.length)===1)return s[0];Fe(this,"type",n,r,{issues:Di(s)})}return n}}}function Li(){return{kind:"schema",type:"unknown",reference:Li,expects:"unknown",async:!1,get"~standard"(){return We(this)},"~run"(e){return e.typed=!0,e}}}function Hn(...e){return{...e[0],pipe:e,get"~standard"(){return We(this)},"~run"(t,n){for(const r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}var Il=e=>e;function jl(){return{"~standard":{vendor:"inploi",version:1,validate:e=>({value:e})}}}var Nl=["agent","sdk","form","integration","migration"],Dl=["APPLIED","SHORTLISTED","INTERVIEWED","OFFERED","HIRED","REJECTED","WITHDRAWN"],$l=["screening","cv_match","interview","overall"],Ll=["PENDING","SCHEDULED","IN_PROGRESS","COMPLETED","CANCELLED"],Ml=["careers_site","chatbot","plugin_job_search","ats_import","referral","agency","other","unknown"],Fl=yt(Nl),Vl=yt(Dl),Bl=Hn(Z(),Br(),Vr(1),Fr(100)),Hl=yt($l),Wl=yt(Ll),Ul=Hn(Z(),Br(),Vr(1),Fr(100)),zl=yt(Ml),Mi=Ke({id:Z(),email:pe(Z()),firstName:pe(Z()),lastName:pe(Z()),phone:pe(Z()),source:pe(Fl),identifiedAt:pe(Z()),createdAt:Z(),updatedAt:Z()}),Ur=Bn(Z(),Li()),Yl=Ke({id:Z(),applicationId:Z(),status:Wl,scheduledAt:pe(Z()),completedAt:pe(Z()),meta:pe(Ur),createdAt:Z(),updatedAt:Z()}),ql=Ke({score:et(),reason:Z(),confidence:et()}),Fi=Ke({id:Z(),candidateId:Z(),jobId:et(),stage:Bl,stageGroup:Vl,stageEnteredAt:Z(),rating:pe(et()),disqualifiedAt:pe(Z()),disqualificationReason:pe(Ul),disqualificationNote:pe(Z()),source:zl,sourceDetail:pe(Z()),sessionId:pe(et()),externalApplicationId:pe(Z()),meta:pe(Ur),context:pe(Ur),scoredAt:pe(Z()),createdAt:Z(),updatedAt:Z()}),Gl=Ke({id:Z(),applicationId:Z(),scoreType:Hl,score:pe(et()),reason:pe(Z()),categories:pe(Bn(Z(),ql)),scoredBy:pe(Z()),createdAt:Z()});({...Fi.entries},{...Mi.entries});var Vi=["DAILY","WEEKLY","MONTHLY"],Kl=Bn(Z(),$i([Z(),Wr(Z()),Ke({type:Ni("provided"),lat:et(),lng:et(),radius:et(),unit:Pt(yt(["miles","km"])),label:Pt(Z())})])),Xl={pathname:"/search/save",method:"POST",schema:{response:jl(),body:Ke({contact:Ke({email:Hn(Pt(Z()),Z(),ji()),first_name:Pt(Z()),last_name:Pt(Z())}),alerts:Hn(Pt(Z()),Z(),yt(Vi)),filters:Kl})}},bn,V,Bi,Hi,At,Wi,Ui,zi,Yi,zr,Yr,qr,qi,Wn={},Un=[],Zl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,xn=Array.isArray;function tt(e,t){for(var n in t)e[n]=t[n];return e}function Gr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function be(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?bn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return En(e,s,r,o,null)}function En(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Bi,__i:-1,__u:0};return o==null&&V.vnode!=null&&V.vnode(i),i}function It(){return{current:null}}function Ee(e){return e.children}function Ue(e,t){this.props=e,this.context=t}function Ut(e,t){if(t==null)return e.__?Ut(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ut(e):null}function Jl(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=tt({},t);i.__v=t.__v+1,V.vnode&&V.vnode(i),Xr(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Ut(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,Qi(r,i,o),t.__e=t.__=null,i.__e!=n&&Gi(i)}}function Gi(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Gi(e)}function Kr(e){(!e.__d&&(e.__d=!0)&&At.push(e)&&!zn.__r++||Wi!=V.debounceRendering)&&((Wi=V.debounceRendering)||Ui)(zn)}function zn(){for(var e,t=1;At.length;)At.length>t&&At.sort(zi),e=At.shift(),t=At.length,Jl(e);zn.__r=0}function Ki(e,t,n,r,o,i,s,a,l,c,f){var u,p,d,m,h,v,y,g=r&&r.__k||Un,_=t.length;for(l=Ql(n,t,g,l,_),u=0;u<_;u++)(d=n.__k[u])!=null&&(p=d.__i!=-1&&g[d.__i]||Wn,d.__i=u,v=Xr(e,d,p,o,i,s,a,l,c,f),m=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&Jr(p.ref,null,d),f.push(d.ref,d.__c||m,d)),h==null&&m!=null&&(h=m),(y=!!(4&d.__u))||p.__k===d.__k?l=Xi(d,l,e,y):typeof d.type=="function"&&v!==void 0?l=v:m&&(l=m.nextSibling),d.__u&=-7);return n.__e=h,l}function Ql(e,t,n,r,o){var i,s,a,l,c,f=n.length,u=f,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=En(null,s,null,null,null):xn(s)?s=e.__k[i]=En(Ee,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=En(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,l=i+p,s.__=e,s.__b=e.__b+1,a=null,(c=s.__i=eu(s,n,l,u))!=-1&&(u--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(o>f?p--:o<f&&p++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<f;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Ut(a)),ts(a,a));return r}function Xi(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Xi(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ut(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function pt(e,t){return t=t||[],e==null||typeof e=="boolean"||(xn(e)?e.some(function(n){pt(n,t)}):t.push(e)),t}function eu(e,t,n,r){var o,i,s,a=e.key,l=e.type,c=t[n],f=c!=null&&(2&c.__u)==0;if(c===null&&a==null||f&&a==c.key&&l==c.type)return n;if(r>(f?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((c=t[s=o>=0?o--:i++])!=null&&(2&c.__u)==0&&a==c.key&&l==c.type)return s}return-1}function Zi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Zl.test(t)?n:n+"px"}function Yn(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Zi(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Zi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Yi,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=zr,e.addEventListener(t,i?qr:Yr,i)):e.removeEventListener(t,i?qr:Yr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ji(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=zr++;else if(t.t<n.u)return;return n(V.event?V.event(t):t)}}}function Xr(e,t,n,r,o,i,s,a,l,c){var f,u,p,d,m,h,v,y,g,_,w,S,E,x,O,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=V.__b)&&f(t);e:if(typeof A=="function")try{if(y=t.props,g="prototype"in A&&A.prototype.render,_=(f=A.contextType)&&r[f.__c],w=f?_?_.props.value:f.__:r,n.__c?v=(u=t.__c=n.__c).__=u.__E:(g?t.__c=u=new A(y,w):(t.__c=u=new Ue(y,w),u.constructor=A,u.render=nu),_&&_.sub(u),u.state||(u.state={}),u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),g&&u.__s==null&&(u.__s=u.state),g&&A.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=tt({},u.__s)),tt(u.__s,A.getDerivedStateFromProps(y,u.__s))),d=u.props,m=u.state,u.__v=t,p)g&&A.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),g&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(g&&A.getDerivedStateFromProps==null&&y!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,w),t.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,w)===!1){t.__v!=n.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),Un.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,w),g&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,m,h)})}if(u.context=w,u.props=y,u.__P=e,u.__e=!1,S=V.__r,E=0,g)u.state=u.__s,u.__d=!1,S&&S(t),f=u.render(u.props,u.state,u.context),Un.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,S&&S(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(r=tt(tt({},r),u.getChildContext())),g&&!p&&u.getSnapshotBeforeUpdate!=null&&(h=u.getSnapshotBeforeUpdate(d,m)),x=f!=null&&f.type===Ee&&f.key==null?es(f.props.children):f,a=Ki(e,xn(x)?x:[x],t,n,r,o,i,s,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),v&&(u.__E=u.__=null)}catch(T){if(t.__v=null,l||i!=null)if(T.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(O=i.length;O--;)Gr(i[O]);Zr(t)}else t.__e=n.__e,t.__k=n.__k,T.then||Zr(t);V.__e(T,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=tu(n.__e,t,n,r,o,i,s,l,c);return(f=V.diffed)&&f(t),128&t.__u?void 0:a}function Zr(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Zr))}function Qi(e,t,n){for(var r=0;r<n.length;r++)Jr(n[r],n[++r],n[++r]);V.__c&&V.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){V.__e(i,o.__v)}})}function es(e){return typeof e!="object"||e==null||e.__b>0?e:xn(e)?e.map(es):tt({},e)}function tu(e,t,n,r,o,i,s,a,l){var c,f,u,p,d,m,h,v=n.props||Wn,y=t.props,g=t.type;if(g=="svg"?o="http://www.w3.org/2000/svg":g=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((d=i[c])&&"setAttribute"in d==!!g&&(g?d.localName==g:d.nodeType==3)){e=d,i[c]=null;break}}if(e==null){if(g==null)return document.createTextNode(y);e=document.createElementNS(o,g,y.is&&y),a&&(V.__m&&V.__m(t,i),a=!1),i=null}if(g==null)v===y||a&&e.data==y||(e.data=y);else{if(i=i&&bn.call(e.childNodes),!a&&i!=null)for(v={},c=0;c<e.attributes.length;c++)v[(d=e.attributes[c]).name]=d.value;for(c in v)d=v[c],c=="dangerouslySetInnerHTML"?u=d:c=="children"||c in y||c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y||Yn(e,c,null,d,o);for(c in y)d=y[c],c=="children"?p=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?m=d:c=="checked"?h=d:a&&typeof d!="function"||v[c]===d||Yn(e,c,d,v[c],o);if(f)a||u&&(f.__html==u.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Ki(t.type=="template"?e.content:e,xn(p)?p:[p],t,n,r,g=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Ut(n,0),a,l),i!=null)for(c=i.length;c--;)Gr(i[c]);a||(c="value",g=="progress"&&m==null?e.removeAttribute("value"):m!=null&&(m!==e[c]||g=="progress"&&!m||g=="option"&&m!=v[c])&&Yn(e,c,m,v[c],o),c="checked",h!=null&&h!=e[c]&&Yn(e,c,h,v[c],o))}return e}function Jr(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){V.__e(o,n)}}function ts(e,t,n){var r,o;if(V.unmount&&V.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Jr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){V.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ts(r[o],t,n||typeof e.type!="function");n||Gr(e.__e),e.__c=e.__=e.__e=void 0}function nu(e,t,n){return this.constructor(e,n)}function zt(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),V.__&&V.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Xr(t,e=(!r&&n||t).__k=be(Ee,null,[e]),o||Wn,Wn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?bn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Qi(i,e,s)}function Qr(e,t){zt(e,t,Qr)}function ru(e,t,n){var r,o,i,s,a=tt({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?bn.call(arguments,2):n),En(e.type,a,r||e.key,o||e.ref,null)}function ze(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,Kr(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+qi++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}bn=Un.slice,V={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Bi=0,Hi=function(e){return e!=null&&e.constructor===void 0},Ue.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=tt({},this.state),typeof e=="function"&&(e=e(tt({},n),this.props)),e&&tt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Kr(this))},Ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Kr(this))},Ue.prototype.render=Ee,At=[],Ui=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zi=function(e,t){return e.__v.__b-t.__v.__b},zn.__r=0,Yi=/(PointerCapture)$|Capture$/i,zr=0,Yr=Ji(!1),qr=Ji(!0),qi=0;var ou="diffed",ns="__c",eo="__s",Yt="__c",rs="__k",to="__d",qt="__s",os=/[\s\n\\/='"\0<>]/,is=/^(xlink|xmlns|xml)([A-Z])/,iu=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,su=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,au=new Set(["draggable","spellcheck"]);function ss(e){e.__g!==void 0?e.__g|=8:e[to]=!0}function cu(e){e.__g!==void 0?e.__g&=-9:e[to]=!1}function as(e){return e.__g!==void 0?!!(8&e.__g):e[to]===!0}var lu=/["&<]/;function qn(e){if(e.length===0||lu.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var cs={},uu=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),fu=/[A-Z]/g;function du(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:cs[n]||(cs[n]=n.replace(fu,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||uu.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function ls(){this.__d=!0}function pu(e,t){return{__v:e,context:t,props:e.props,setState:ls,forceUpdate:ls,__d:!0,__h:new Array(0)}}var no,jt,Sn,Rn,ro={},us=[],Gt=Array.isArray,oo=Object.assign,Ne="",io="<!--$s-->",so="<!--/$s-->";function hu(e,t,n){var r=V[eo];V[eo]=!0,no=V.__b,jt=V[ou],Sn=V.__r,Rn=V.unmount;var o=be(Ee,null);o[rs]=[e];try{var i=_t(e,t||ro,!1,void 0,o,!1,n);return Gt(i)?i.join(Ne):i}catch(s){throw s.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):s}finally{V[ns]&&V[ns](e,us),V[eo]=r,us.length=0}}function fs(e,t){var n,r=e.type,o=!0;return e[Yt]?(o=!1,(n=e[Yt]).state=n[qt]):n=new r(e.props,t),e[Yt]=n,n.__v=e,n.props=e.props,n.context=t,ss(n),n.state==null&&(n.state=ro),n[qt]==null&&(n[qt]=n.state),r.getDerivedStateFromProps?n.state=oo({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[qt]!==n.state?n[qt]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),Sn&&Sn(e),n.render(n.props,n.state,t)}function _t(e,t,n,r,o,i,s){if(e==null||e===!0||e===!1||e===Ne)return Ne;var a=typeof e;if(a!="object")return a=="function"?Ne:a=="string"?qn(e):e+Ne;if(Gt(e)){var l,c=Ne;o[rs]=e;for(var f=e.length,u=0;u<f;u++){var p=e[u];if(p!=null&&typeof p!="boolean"){var d,m=_t(p,t,n,r,o,i,s);typeof m=="string"?c+=m:(l||(l=new Array(f)),c&&l.push(c),c=Ne,Gt(m)?(d=l).push.apply(d,m):l.push(m))}}return l?(c&&l.push(c),l):c}if(e.constructor!==void 0)return Ne;e.__=o,no&&no(e);var h=e.type,v=e.props;if(typeof h=="function"){var y,g,_,w=t;if(h===Ee){if("tpl"in v){for(var S=Ne,E=0;E<v.tpl.length;E++)if(S+=v.tpl[E],v.exprs&&E<v.exprs.length){var x=v.exprs[E];if(x==null)continue;typeof x!="object"||x.constructor!==void 0&&!Gt(x)?S+=x:S+=_t(x,t,n,r,e,i,s)}return S}if("UNSTABLE_comment"in v)return"<!--"+qn(v.UNSTABLE_comment)+"-->";g=v.children}else{if((y=h.contextType)!=null){var O=t[y.__c];w=O?O.props.value:y.__}var A=h.prototype&&typeof h.prototype.render=="function";if(A)g=fs(e,w),_=e[Yt];else{e[Yt]=_=pu(e,w);for(var T=0;as(_)&&T++<25;){cu(_),Sn&&Sn(e);try{g=h.call(_,v,w)}catch(ie){throw ie}}ss(_)}if(_.getChildContext!=null&&(t=oo({},t,_.getChildContext())),A&&V.errorBoundaries&&(h.getDerivedStateFromError||_.componentDidCatch)){g=g!=null&&g.type===Ee&&g.key==null&&g.props.tpl==null?g.props.children:g;try{return _t(g,t,n,r,e,i,!1)}catch(ie){return h.getDerivedStateFromError&&(_[qt]=h.getDerivedStateFromError(ie)),_.componentDidCatch&&_.componentDidCatch(ie,ro),as(_)?(g=fs(e,t),(_=e[Yt]).getChildContext!=null&&(t=oo({},t,_.getChildContext())),_t(g=g!=null&&g.type===Ee&&g.key==null&&g.props.tpl==null?g.props.children:g,t,n,r,e,i,s)):Ne}finally{jt&&jt(e),Rn&&Rn(e)}}}g=g!=null&&g.type===Ee&&g.key==null&&g.props.tpl==null?g.props.children:g;try{var $=_t(g,t,n,r,e,i,s);return jt&&jt(e),V.unmount&&V.unmount(e),e._suspended?typeof $=="string"?io+$+so:Gt($)?($.unshift(io),$.push(so),$):$.then(function(ie){return io+ie+so}):$}catch(ie){if(s&&s.onError){var j=(function M(U){return s.onError(U,e,function(se,Q){try{return _t(se,t,n,r,Q,i,s)}catch(ee){return M(ee)}})})(ie);if(j!==void 0)return j;var R=V.__e;return R&&R(ie,e),Ne}throw ie}}var N,k="<"+h,D=Ne;for(var F in v){var b=v[F];if(typeof(b=gu(b)?b.value:b)!="function"||F==="class"||F==="className"){switch(F){case"children":N=b;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in v)continue;F="for";break;case"className":if("class"in v)continue;F="class";break;case"defaultChecked":F="checked";break;case"defaultSelected":F="selected";break;case"defaultValue":case"value":switch(F="value",h){case"textarea":N=b;continue;case"select":r=b;continue;case"option":r!=b||"selected"in v||(k+=" selected")}break;case"dangerouslySetInnerHTML":D=b&&b.__html;continue;case"style":typeof b=="object"&&(b=du(b));break;case"acceptCharset":F="accept-charset";break;case"httpEquiv":F="http-equiv";break;default:if(is.test(F))F=F.replace(is,"$1:$2").toLowerCase();else{if(os.test(F))continue;F[4]!=="-"&&!au.has(F)||b==null?n?su.test(F)&&(F=F==="panose1"?"panose-1":F.replace(/([A-Z])/g,"-$1").toLowerCase()):iu.test(F)&&(F=F.toLowerCase()):b+=Ne}}b!=null&&b!==!1&&(k=b===!0||b===Ne?k+" "+F:k+" "+F+'="'+(typeof b=="string"?qn(b):b+Ne)+'"')}}if(os.test(h))throw new Error(h+" is not a valid HTML tag name in "+k+">");if(D||(typeof N=="string"?D=qn(N):N!=null&&N!==!1&&N!==!0&&(D=_t(N,t,h==="svg"||h!=="foreignObject"&&n,r,e,i,s))),jt&&jt(e),Rn&&Rn(e),!D&&mu.has(h))return k+"/>";var I="</"+h+">",G=k+">";return Gt(D)?[G].concat(D,[I]):typeof D!="string"?[G,D,I]:G+D+I}var mu=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function gu(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}var vu=0;function P(e,t,n,r,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--vu,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return V.vnode&&V.vnode(c),c}const yu={bell:P("path",{d:"M10 17a2.4 2.4 0 0 0 2.5 2.3A2.4 2.4 0 0 0 15 17m-7.5-6.5c0-4 1.9-6 5-6s5 2 5 6c0 3.3 1 4.3 1.4 5.1v.6c0 .2-.3.3-.5.3H6.7a.6.6 0 0 1-.5-.3.6.6 0 0 1 0-.6c.5-.8 1.3-1.9 1.3-5.1Z"}),x:P("path",{d:"M8 8l8 8M8 16l8 -8"}),"chevron-up-down":P("path",{d:"M8 9l4 -4l4 4 M8 15l4 4l4 -4"})},_u=({theme:e})=>P("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:P("defs",{children:Object.entries(yu).map(([t,n])=>P("symbol",{id:`i-icon-${t}`,children:P("g",{fill:"none","stroke-width":e.mode==="dark"?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})}))})}),ds=({name:e,...t})=>P("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:P("use",{href:`#i-icon-${e}`})});var ht,he,ao,ps,Kt=0,hs=[],ye=V,ms=ye.__b,gs=ye.__r,vs=ye.diffed,ys=ye.__c,_s=ye.unmount,ws=ye.__;function Nt(e,t){ye.__h&&ye.__h(he,e,Kt||t),Kt=0;var n=he.__H||(he.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function _e(e){return Kt=1,Gn(xs,e)}function Gn(e,t,n){var r=Nt(ht++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):xs(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=he,!he.__f)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,l,c);var u=r.__c.props!==a;return f.some(function(p){if(p.__N){var d=p.__[0];p.__=p.__N,p.__N=void 0,d!==p.__[0]&&(u=!0)}}),i&&i.call(this,a,l,c)||u};he.__f=!0;var i=he.shouldComponentUpdate,s=he.componentWillUpdate;he.componentWillUpdate=function(a,l,c){if(this.__e){var f=i;i=void 0,o(a,l,c),i=f}s&&s.call(this,a,l,c)},he.shouldComponentUpdate=o}return r.__N||r.__}function me(e,t){var n=Nt(ht++,3);!ye.__s&&uo(n.__H,t)&&(n.__=e,n.u=t,he.__H.__h.push(n))}function mt(e,t){var n=Nt(ht++,4);!ye.__s&&uo(n.__H,t)&&(n.__=e,n.u=t,he.__h.push(n))}function z(e){return Kt=5,q(function(){return{current:e}},[])}function Kn(e,t,n){Kt=6,mt(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function q(e,t){var n=Nt(ht++,7);return uo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fe(e,t){return Kt=8,q(function(){return e},t)}function Ve(e){var t=he.context[e.__c],n=Nt(ht++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(he)),t.props.value):e.__}function wt(e,t){ye.useDebugValue&&ye.useDebugValue(t?t(e):e)}function wu(e){var t=Nt(ht++,10),n=_e();return t.__=e,he.componentDidCatch||(he.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function co(){var e=Nt(ht++,11);if(!e.__){for(var t=he.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function bu(){for(var e;e=hs.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Xn),t.__h.some(lo),t.__h=[]}catch(n){t.__h=[],ye.__e(n,e.__v)}}}ye.__b=function(e){he=null,ms&&ms(e)},ye.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ws&&ws(e,t)},ye.__r=function(e){gs&&gs(e),ht=0;var t=(he=e.__c).__H;t&&(ao===he?(t.__h=[],he.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Xn),t.__h.some(lo),t.__h=[],ht=0)),ao=he},ye.diffed=function(e){vs&&vs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(hs.push(t)!==1&&ps===ye.requestAnimationFrame||((ps=ye.requestAnimationFrame)||xu)(bu)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ao=he=null},ye.__c=function(e,t){t.some(function(n){try{n.__h.some(Xn),n.__h=n.__h.filter(function(r){return!r.__||lo(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ye.__e(r,n.__v)}}),ys&&ys(e,t)},ye.unmount=function(e){_s&&_s(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Xn(r)}catch(o){t=o}}),n.__H=void 0,t&&ye.__e(t,n.__v))};var bs=typeof requestAnimationFrame=="function";function xu(e){var t,n=function(){clearTimeout(r),bs&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);bs&&(t=requestAnimationFrame(n))}function Xn(e){var t=he,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),he=t}function lo(e){var t=he;e.__c=e.__(),he=t}function uo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function xs(e,t){return typeof t=="function"?t(e):t}function Es(e,t){for(var n in t)e[n]=t[n];return e}function fo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function po(e,t){var n=t(),r=_e({t:{__:n,u:t}}),o=r[0].t,i=r[1];return mt(function(){o.__=n,o.u=t,ho(o)&&i({t:o})},[e,n,t]),me(function(){return ho(o)&&i({t:o}),e(function(){ho(o)&&i({t:o})})},[e]),n}function ho(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function mo(e){e()}function go(e){return e}function vo(){return[!1,mo]}var yo=mt;function Zn(e,t){this.props=e,this.context=t}function Ss(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:fo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,be(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Zn.prototype=new Ue).isPureReactComponent=!0,Zn.prototype.shouldComponentUpdate=function(e,t){return fo(this.props,e)||fo(this.state,t)};var Rs=V.__b;V.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Rs&&Rs(e)};var Eu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function nt(e){function t(n){var r=Es({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Eu,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ks=function(e,t){return e==null?null:pt(pt(e).map(t))},Os={map:ks,forEach:ks,count:function(e){return e?pt(e).length:0},only:function(e){var t=pt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:pt},Su=V.__e;V.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Su(e,t,n,r)};var Ts=V.unmount;function Cs(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Es({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Cs(r,t,n)})),e}function Ps(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ps(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function kn(){this.__u=0,this.o=null,this.__b=null}function As(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Is(e){var t,n,r,o=null;function i(s){if(t||(t=e()).then(function(a){a&&(o=a.default||a),r=!0},function(a){n=a,r=!0}),n)throw n;if(!r)throw t;return o?be(o,s):null}return i.displayName="Lazy",i.__f=!0,i}function Xt(){this.i=null,this.l=null}V.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ts&&Ts(e)},(kn.prototype=new Ue).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=As(r.__v),i=!1,s=function(){i||r.__z||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var a=n.__P;n.__P=null;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Ps(c,c.__c.__P,c.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.__P=a,f.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},kn.prototype.componentWillUnmount=function(){this.o=[]},kn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Cs(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&be(Ee,null,e.fallback);return o&&(o.__u&=-33),[be(Ee,null,t.__a?null:e.children),o]};var js=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Ru(e){return this.getChildContext=function(){return e.context},e.children}function ku(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){zt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}zt(be(Ru,{context:t.context},e.__v),t.v)}function Jn(e,t){var n=be(ku,{__v:e,h:t});return n.containerInfo=t,n}(Xt.prototype=new Ue).__a=function(e){var t=this,n=As(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),js(t,e,r)):o()};n?n(i):i()}},Xt.prototype.render=function(e){this.i=null,this.l=new Map;var t=pt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Xt.prototype.componentDidUpdate=Xt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){js(e,n,t)})};var Ns=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ou=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Tu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Cu=/[A-Z0-9]/g,Pu=typeof document<"u",Au=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ds(e,t,n){return t.__k==null&&(t.textContent=""),zt(e,t),typeof n=="function"&&n(),e?e.__c:null}function $s(e,t,n){return Qr(e,t),typeof n=="function"&&n(),e?e.__c:null}Ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ls=V.event;function Iu(){}function ju(){return this.cancelBubble}function Nu(){return this.defaultPrevented}V.event=function(e){return Ls&&(e=Ls(e)),e.persist=Iu,e.isPropagationStopped=ju,e.isDefaultPrevented=Nu,e.nativeEvent=e};var _o,Du={enumerable:!1,configurable:!0,get:function(){return this.class}},Ms=V.vnode;V.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Pu&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Au(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Tu.test(s)&&(s=l):l=s="oninput":i&&Ou.test(s)?s=s.replace(Cu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=pt(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=pt(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Du)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=Ns,Ms&&Ms(e)};var Fs=V.__r;V.__r=function(e){Fs&&Fs(e),_o=e.__c};var Vs=V.diffed;V.diffed=function(e){Vs&&Vs(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),_o=null};var Bs={ReactCurrentDispatcher:{current:{readContext:function(e){return _o.__n[e.__c].props.value},useCallback:fe,useContext:Ve,useDebugValue:wt,useDeferredValue:go,useEffect:me,useId:co,useImperativeHandle:Kn,useInsertionEffect:yo,useLayoutEffect:mt,useMemo:q,useReducer:Gn,useRef:z,useState:_e,useSyncExternalStore:po,useTransition:vo}}},Hs="18.3.1";function Ws(e){return be.bind(null,e)}function Zt(e){return!!e&&e.$$typeof===Ns}function Us(e){return Zt(e)&&e.type===Ee}function zs(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function wo(e){return Zt(e)?ru.apply(null,arguments):e}function Ys(e){return!!e.__k&&(zt(null,e),!0)}function qs(e){return e&&(e.base||e.nodeType===1&&e)||null}var Gs=function(e,t){return e(t)},rt=function(e,t){return e(t)},Ks=Ee,Xs=Zt,$u={useState:_e,useId:co,useReducer:Gn,useEffect:me,useLayoutEffect:mt,useInsertionEffect:yo,useTransition:vo,useDeferredValue:go,useSyncExternalStore:po,startTransition:mo,useRef:z,useImperativeHandle:Kn,useMemo:q,useCallback:fe,useContext:Ve,useDebugValue:wt,version:"18.3.1",Children:Os,render:Ds,hydrate:$s,unmountComponentAtNode:Ys,createPortal:Jn,createElement:be,createContext:ze,createFactory:Ws,cloneElement:wo,createRef:It,Fragment:Ee,isValidElement:Zt,isElement:Xs,isFragment:Us,isMemo:zs,findDOMNode:qs,Component:Ue,PureComponent:Zn,memo:Ss,forwardRef:nt,flushSync:rt,unstable_batchedUpdates:Gs,StrictMode:Ks,Suspense:kn,SuspenseList:Xt,lazy:Is,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Bs};const bo=Object.freeze(Object.defineProperty({__proto__:null,Children:Os,Component:Ue,Fragment:Ee,PureComponent:Zn,StrictMode:Ks,Suspense:kn,SuspenseList:Xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Bs,cloneElement:wo,createContext:ze,createElement:be,createFactory:Ws,createPortal:Jn,createRef:It,default:$u,findDOMNode:qs,flushSync:rt,forwardRef:nt,hydrate:$s,isElement:Xs,isFragment:Us,isMemo:zs,isValidElement:Zt,lazy:Is,memo:Ss,render:Ds,startTransition:mo,unmountComponentAtNode:Ys,unstable_batchedUpdates:Gs,useCallback:fe,useContext:Ve,useDebugValue:wt,useDeferredValue:go,useEffect:me,useErrorBoundary:wu,useId:co,useImperativeHandle:Kn,useInsertionEffect:yo,useLayoutEffect:mt,useMemo:q,useReducer:Gn,useRef:z,useState:_e,useSyncExternalStore:po,useTransition:vo,version:Hs},Symbol.toStringTag,{value:"Module"}));function Qn(){return typeof window<"u"}function er(e){return xo(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Lu(e){var t;return(t=(xo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xo(e){return Qn()?e instanceof Node||e instanceof ot(e).Node:!1}function Ce(e){return Qn()?e instanceof Element||e instanceof ot(e).Element:!1}function it(e){return Qn()?e instanceof HTMLElement||e instanceof ot(e).HTMLElement:!1}function Eo(e){return!Qn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}const Mu=new Set(["inline","contents"]);function Zs(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Mu.has(o)}function Fu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vu=new Set(["html","body","#document"]);function So(e){return Vu.has(er(e))}function tr(e){return ot(e).getComputedStyle(e)}function Bu(e){if(er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Eo(e)&&e.host||Lu(e);return Eo(t)?t.host:t}const Jt=typeof navigator<"u",Ro=Yu(),Js=Gu(),Qs=qu(),Hu=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Wu=Ro.platform==="MacIntel"&&Ro.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Ro.platform),Uu=Jt&&/apple/i.test(navigator.vendor),ko=Jt&&/android/i.test(Js)||/android/i.test(Qs);Jt&&Js.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const zu=Qs.includes("jsdom/");function Yu(){if(!Jt)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e!=null&&e.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function qu(){if(!Jt)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Gu(){if(!Jt)return"";const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform??""}function Qt(e){return(e==null?void 0:e.ownerDocument)||document}const ae=typeof document<"u"?mt:()=>{},ea={};function st(e,t){const n=z(ea);return n.current===ea&&(n.current=e(t)),n}const Ku=[];function Oo(e){me(e,Ku)}const On=0;class bt{constructor(){ue(this,"currentId",On);ue(this,"clear",()=>{this.currentId!==On&&(clearTimeout(this.currentId),this.currentId=On)});ue(this,"disposeEffect",()=>this.clear)}static create(){return new bt}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=On,n()},t)}isStarted(){return this.currentId!==On}}function Dt(){const e=st(bt.create).current;return Oo(e.disposeEffect),e}const nr=null;let ta=globalThis.requestAnimationFrame;class Xu{constructor(){ue(this,"callbacks",[]);ue(this,"callbacksCount",0);ue(this,"nextId",1);ue(this,"startId",1);ue(this,"isScheduled",!1);ue(this,"tick",t=>{var o;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i<n.length;i+=1)(o=n[i])==null||o.call(n,t)})}request(t){const n=this.nextId;this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1;const r=process.env.NODE_ENV==="test"&&ta!==requestAnimationFrame&&(ta=requestAnimationFrame,!0);return(!this.isScheduled||r)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const rr=new Xu;class at{constructor(){ue(this,"currentId",nr);ue(this,"cancel",()=>{this.currentId!==nr&&(rr.cancel(this.currentId),this.currentId=nr)});ue(this,"disposeEffect",()=>this.cancel)}static create(){return new at}static request(t){return rr.request(t)}static cancel(t){return rr.cancel(t)}request(t){this.cancel(),this.currentId=rr.request(()=>{this.currentId=nr,t()})}}function or(){const e=st(at.create).current;return Oo(e.disposeEffect),e}function na(){}const De=Object.freeze({});let ra={},oa={},ia="";function Zu(e){if(typeof document>"u")return!1;const t=Qt(e);return ot(t).innerWidth-t.documentElement.clientWidth>0}function Ju(e){const t=Qt(e),n=t.documentElement,r=t.body,o=Zs(n)?n:r,i=o.style.overflow;return o.style.overflow="hidden",()=>{o.style.overflow=i}}function Qu(e){var p,d;const t=Qt(e),n=t.documentElement,r=t.body,o=ot(n);let i=0,s=0;const a=at.create(),l=typeof CSS<"u"&&((p=CSS.supports)==null?void 0:p.call(CSS,"scrollbar-gutter","stable"));if(Hu&&(((d=o.visualViewport)==null?void 0:d.scale)??1)!==1)return()=>{};function c(){const m=o.getComputedStyle(n),h=o.getComputedStyle(r),g=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,s=n.scrollLeft,ra={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ia=n.style.scrollBehavior,oa={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const _=n.scrollHeight>n.clientHeight,w=n.scrollWidth>n.clientWidth,S=m.overflowY==="scroll"||h.overflowY==="scroll",E=m.overflowX==="scroll"||h.overflowX==="scroll",x=Math.max(0,o.innerWidth-n.clientWidth),O=Math.max(0,o.innerHeight-n.clientHeight),A=parseFloat(h.marginTop)+parseFloat(h.marginBottom),T=parseFloat(h.marginLeft)+parseFloat(h.marginRight),$=Zs(n)?n:r;if(l){n.style.scrollbarGutter=g,$.style.overflowY="hidden",$.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:g,overflowY:"hidden",overflowX:"hidden"}),(_||S)&&(n.style.overflowY="scroll"),(w||E)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:A||O?`calc(100dvh - ${A+O}px)`:"100dvh",width:T||x?`calc(100vw - ${T+x}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function f(){Object.assign(n.style,ra),Object.assign(r.style,oa),l||(n.scrollTop=i,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=ia)}function u(){f(),a.request(c)}return c(),o.addEventListener("resize",u),()=>{a.cancel(),f(),typeof o.removeEventListener=="function"&&o.removeEventListener("resize",u)}}class ef{constructor(){ue(this,"lockCount",0);ue(this,"restore",null);ue(this,"timeoutLock",bt.create());ue(this,"timeoutUnlock",bt.create());ue(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});ue(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Qt(t).documentElement,o=ot(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=na;return}const i=Wu||!Zu(t);this.restore=i?Ju(t):Qu(t)}}const tf=new ef;function nf(e=!0,t=null){ae(()=>{if(e)return tf.acquire(t)},[e,t])}function Xe(e){const t=st(rf,e).current;return t.next=e,ae(t.effect),t}function rf(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const To=bo[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],of=To&&To!==mt?To:e=>e();function J(e){const t=st(sf).current;return t.next=e,of(t.effect),t.trampoline}function sf(){const e={next:void 0,callback:af,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function af(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}const Co="data-base-ui-focusable",sa="active",aa="selected",ca="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function en(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function de(e,t){var r;if(!e||!t)return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e.contains(t))return!0;if(n&&Eo(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Ye(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ze(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function cf(e){return e.matches("html,body")}function Oe(e){return(e==null?void 0:e.ownerDocument)||document}function la(e){return it(e)&&e.matches(ca)}function ua(e){return e?e.getAttribute("role")==="combobox"&&la(e):!1}function Po(e){return e?e.hasAttribute(Co)?e:e.querySelector(`[${Co}]`)||e:null}function $t(e,t,n=!0){return e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...$t(e,o.id,n)])}function fa(e,t){var o;let n=[],r=(o=e.find(i=>i.id===t))==null?void 0:o.parentId;for(;r;){const i=e.find(s=>s.id===r);r=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function lf(e){e.preventDefault(),e.stopPropagation()}function uf(e){return"nativeEvent"in e}function ff(e){return e.mozInputSource===0&&e.isTrusted?!0:ko&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function df(e){return zu?!1:!ko&&e.width===0&&e.height===0||ko&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function tn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function da(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function xt(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const pf=Math.min,hf=Math.max,pa=Math.round;function mf(e,t,n){return hf(e,pf(t,n))}function gf(e,t){return typeof e=="function"?e(t):e}function nn(e){return e.split("-")[0]}function Ao(e){return e.split("-")[1]}function vf(e){return e==="x"?"y":"x"}function yf(e){return e==="y"?"height":"width"}const _f=new Set(["top","bottom"]);function Io(e){return _f.has(nn(e))?"y":"x"}function wf(e){return vf(Io(e))}function bf(e){return{top:0,right:0,bottom:0,left:0,...e}}function xf(e){return typeof e!="number"?bf(e):{top:e,right:e,bottom:e,left:e}}/*!
|
|
2
|
-
* tabbable 6.3.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/var Ef=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ir=Ef.join(","),ha=typeof Element>"u",rn=ha?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sr=!ha&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Tn=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&Tn(t.parentNode);return s},Sf=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},ma=function(t,n,r){if(Tn(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ir));return n&&rn.call(t,ir)&&o.unshift(t),o=o.filter(r),o},ar=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!Tn(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=ar(l,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var f=rn.call(s,ir);f&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var u=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),p=!Tn(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(u&&p){var d=ar(u===!0?s.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},ga=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},va=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Sf(t))&&!ga(t)?0:t.tabIndex},Rf=function(t,n){var r=va(t);return r<0&&n&&!ga(t)?0:r},kf=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},ya=function(t){return t.tagName==="INPUT"},Of=function(t){return ya(t)&&t.type==="hidden"},Tf=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Cf=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Pf=function(t){if(!t.name)return!0;var n=t.form||sr(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=Cf(o,t.form);return!i||i===t},Af=function(t){return ya(t)&&t.type==="radio"},If=function(t){return Af(t)&&!Pf(t)},jf=function(t){var n,r=t&&sr(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&o;){var c,f,u;r=sr(o),o=(c=r)===null||c===void 0?void 0:c.host,i=!!((f=o)!==null&&f!==void 0&&(u=f.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},_a=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Nf=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var s=rn.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(rn.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var c=t.parentElement,f=sr(t);if(c&&!c.shadowRoot&&o(c)===!0)return _a(t);t.assignedSlot?t=t.assignedSlot:!c&&f!==t.ownerDocument?t=f.host:t=c}t=l}if(jf(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _a(t);return!1},Df=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return rn.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},jo=function(t,n){return!(n.disabled||Tn(n)||Of(n)||Nf(n,t)||Tf(n)||Df(n))},No=function(t,n){return!(If(n)||va(n)<0||!jo(t,n))},$f=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},wa=function(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=Rf(a,s),c=s?wa(o.candidates):a;l===0?s?n.push.apply(n,c):n.push(a):r.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),r.sort(kf).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Cn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ar([t],n.includeContainer,{filter:No.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:$f}):r=ma(t,n.includeContainer,No.bind(null,n)),wa(r)},Lf=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ar([t],n.includeContainer,{filter:jo.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=ma(t,n.includeContainer,jo.bind(null,n)),r},ba=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return rn.call(t,ir)===!1?!1:No(n,t)};const on=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function xa(e,t){const n=Cn(e,on()),r=n.length;if(r===0)return;const o=en(Oe(e)),i=n.indexOf(o),s=i===-1?t===1?0:r-1:i+t;return n[s]}function Do(e){return xa(Oe(e).body,1)||e}function Ea(e){return xa(Oe(e).body,-1)||e}function Sa(e,t){if(!e)return null;const n=Cn(Oe(e).body,on()),r=n.length;if(r===0)return null;const o=n.indexOf(e);if(o===-1)return null;const i=(o+t+r)%r;return n[i]}function Mf(e){return Sa(e,1)}function Ff(e){return Sa(e,-1)}function sn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!de(n,r)}function Vf(e){Cn(e,on()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Ra(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Bf={...bo};let ka=0;function Hf(e,t="mui"){const[n,r]=_e(e),o=e||n;return me(()=>{n==null&&(ka+=1,r(`${t}-${ka}`))},[n,t]),o}const Oa=Bf.useId;function an(e,t){if(Oa!==void 0){const n=Oa();return e??(t?`${t}-${n}`:n)}return Hf(e,t)}function Ta(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}class Wf{constructor(){ue(this,"nodesRef",{current:[]});ue(this,"events",Ta())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const $o=ze(null);process.env.NODE_ENV!=="production"&&($o.displayName="FloatingNodeContext");const Lo=ze(null);process.env.NODE_ENV!=="production"&&(Lo.displayName="FloatingTreeContext");const Lt=()=>{var e;return((e=Ve($o))==null?void 0:e.id)||null},cn=e=>{const t=Ve(Lo);return e??t};function Uf(e){const t=an(),n=cn(e),r=Lt();return ae(()=>{if(!t)return;const o={id:t,parentId:r};return n==null||n.addNode(o),()=>{n==null||n.removeNode(o)}},[n,t,r]),t}function zf(e){const{children:t,id:n}=e,r=Lt();return P($o.Provider,{value:q(()=>({id:n,parentId:r}),[n,r]),children:t})}function Yf(e){const{children:t,externalTree:n}=e,r=st(()=>n??new Wf).current;return P(Lo.Provider,{value:r,children:t})}const qf=500,Gf={style:{transition:"none"}},Ca="data-base-ui-click-trigger",Kf={fallbackAxisSide:"end"},Xf={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Zf="none",Et="trigger-press",qe="trigger-hover",Pa="outside-press",Pn="focus-out",Aa="escape-key",Jf="imperative-action";function Re(e,t,n,r){let o=!1,i=!1;const s=De;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...s}}function An(e){return`data-base-ui-${e}`}function Mo(e,t,n){if(n&&!tn(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function cr(e,t,n,r){const o=st(Ia).current;return ed(o,e,t,n,r)&&ja(o,[e,t,n,r]),o.callback}function Qf(e){const t=st(Ia).current;return td(t,e)&&ja(t,e),t.callback}function Ia(){return{callback:null,cleanup:null,refs:[]}}function ed(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function td(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function ja(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const s=i(n);typeof s=="function"&&(r[o]=s);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const s=r[o];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}}}}}}}const Na={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1},Mt=nt(function(t,n){const[r,o]=_e();return ae(()=>{Uu&&o("button")},[]),P("span",{...t,ref:n,style:Na,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});process.env.NODE_ENV!=="production"&&(Mt.displayName="FocusGuard");let Da=0;function Fo(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Da);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():Da=requestAnimationFrame(i)}const ln={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function $a(e){return e==="inert"?ln.inert:e==="aria-hidden"?ln["aria-hidden"]:ln.none}let lr=new WeakSet,ur={},Vo=0;const La=e=>e&&(e.host||La(e.parentNode)),nd=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=La(n);return e.contains(r)?r:null}).filter(n=>n!=null);function rd(e,t,n,r){const o="data-base-ui-inert",i=r?"inert":n?"aria-hidden":null,s=nd(t,e),a=new Set,l=new Set(s),c=[];ur[o]||(ur[o]=new WeakMap);const f=ur[o];s.forEach(u),p(t),a.clear();function u(d){!d||a.has(d)||(a.add(d),d.parentNode&&u(d.parentNode))}function p(d){!d||l.has(d)||[].forEach.call(d.children,m=>{if(er(m)!=="script")if(a.has(m))p(m);else{const h=i?m.getAttribute(i):null,v=h!==null&&h!=="false",y=$a(i),g=(y.get(m)||0)+1,_=(f.get(m)||0)+1;y.set(m,g),f.set(m,_),c.push(m),g===1&&v&&lr.add(m),_===1&&m.setAttribute(o,""),!v&&i&&m.setAttribute(i,i==="inert"?"":"true")}})}return Vo+=1,()=>{c.forEach(d=>{const m=$a(i),v=(m.get(d)||0)-1,y=(f.get(d)||0)-1;m.set(d,v),f.set(d,y),v||(!lr.has(d)&&i&&d.removeAttribute(i),lr.delete(d)),y||d.removeAttribute(o)}),Vo-=1,Vo||(ln.inert=new WeakMap,ln["aria-hidden"]=new WeakMap,ln.none=new WeakMap,lr=new WeakSet,ur={})}}function od(e,t=!1,n=!1){const r=Oe(e[0]).body;return rd(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const id=parseInt(Hs,10);function Bo(e){return id>=e}function Ma(e){if(!Zt(e))return null;const t=e,n=t.props;return(Bo(19)?n==null?void 0:n.ref:t.ref)??null}function Ho(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function sd(e,t){const n={};for(const r in e){const o=e[r];if(t!=null&&t.hasOwnProperty(r)){const i=t[r](o);i!=null&&Object.assign(n,i);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function ad(e,t){return typeof e=="function"?e(t):e}function cd(e,t){return typeof e=="function"?e(t):e}const In={};function Fa(e,t,n,r,o){let i={...Wo(e,In)};return t&&(i=fr(i,t)),n&&(i=fr(i,n)),r&&(i=fr(i,r)),i}function ld(e){if(e.length===0)return In;if(e.length===1)return Wo(e[0],In);let t={...Wo(e[0],In)};for(let n=1;n<e.length;n+=1)t=fr(t,e[n]);return t}function fr(e,t){return Va(t)?t(e):ud(e,t)}function ud(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Ho(e.style,r);break}case"className":{e[n]=Ba(e.className,r);break}default:fd(n,r)?e[n]=dd(e[n],r):e[n]=r}}return e}function fd(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function Va(e){return typeof e=="function"}function Wo(e,t){return Va(e)?e(t):e??In}function dd(e,t){return t?e?n=>{if(pd(n)){const o=n;Uo(o);const i=t(o);return o.baseUIHandlerPrevented||e==null||e(o),i}const r=t(n);return e==null||e(n),r}:t:e}function Uo(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ba(e,t){return t?e?t+" "+e:t:e}function pd(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function dr(e,t,n={}){const r=t.render,o=hd(t,n);if(n.enabled===!1)return null;const i=n.state??De;return md(e,r,o,i)}function hd(e,t={}){const{className:n,style:r,render:o}=e,{state:i=De,ref:s,props:a,stateAttributesMapping:l,enabled:c=!0}=t,f=c?ad(n,i):void 0,u=c?cd(r,i):void 0,p=c?sd(i,l):De,d=c?Ho(p,Array.isArray(a)?ld(a):a)??De:De;return typeof document<"u"&&(c?Array.isArray(s)?d.ref=Qf([d.ref,Ma(o),...s]):d.ref=cr(d.ref,Ma(o),s):cr(null,null)),c?(f!==void 0&&(d.className=Ba(d.className,f)),u!==void 0&&(d.style=Ho(d.style,u)),d):De}function md(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=Fa(n,t.props);return o.ref=n.ref,wo(t,o)}if(e&&typeof e=="string")return gd(e,n);throw new Error(process.env.NODE_ENV!=="production"?"Base UI: Render element or function are not defined.":xt(8))}function gd(e,t){return e==="button"?be("button",{type:"button",...t,key:t.key}):e==="img"?be("img",{alt:"",...t,key:t.key}):be(e,t)}const zo=ze(null);process.env.NODE_ENV!=="production"&&(zo.displayName="PortalContext");const Ha=()=>Ve(zo),vd=An("portal");function yd(e={}){const{ref:t,container:n,componentProps:r=De,elementProps:o,elementState:i}=e,s=an(),a=Ha(),l=a==null?void 0:a.portalNode,[c,f]=_e(null),[u,p]=_e(null),d=z(null);ae(()=>{if(n===null){d.current&&(d.current=null,p(null),f(null));return}if(s==null)return;const v=(n&&(xo(n)?n:n.current))??l??document.body;if(v==null){d.current&&(d.current=null,p(null),f(null));return}d.current!==v&&(d.current=v,p(null),f(v))},[n,l,s]);const m=dr("div",r,{ref:[t,p],state:i,props:[{id:s,[vd]:""},o]});return{portalNode:u,portalSubtree:c&&m?Jn(m,c):null}}const Wa=nt(function(t,n){const{children:r,container:o,className:i,render:s,renderGuards:a,...l}=t,{portalNode:c,portalSubtree:f}=yd({container:o,ref:n,componentProps:t,elementProps:l}),u=z(null),p=z(null),d=z(null),m=z(null),[h,v]=_e(null),y=h==null?void 0:h.modal,g=h==null?void 0:h.open,_=typeof a=="boolean"?a:!!h&&!h.modal&&h.open&&!!c;me(()=>{if(!c||y)return;function S(E){c&&sn(E)&&(E.type==="focusin"?Ra:Vf)(c)}return c.addEventListener("focusin",S,!0),c.addEventListener("focusout",S,!0),()=>{c.removeEventListener("focusin",S,!0),c.removeEventListener("focusout",S,!0)}},[c,y]),me(()=>{!c||g||Ra(c)},[g,c]);const w=q(()=>({beforeOutsideRef:u,afterOutsideRef:p,beforeInsideRef:d,afterInsideRef:m,portalNode:c,setFocusManagerState:v}),[c]);return P(Ee,{children:[f,P(zo.Provider,{value:w,children:[_&&c&&P(Mt,{"data-type":"outside",ref:u,onFocus:S=>{var E;if(sn(S,c))(E=d.current)==null||E.focus();else{const x=h?h.domReference:null,O=Ea(x);O==null||O.focus()}}}),_&&c&&P("span",{"aria-owns":c.id,style:Xf}),c&&Jn(r,c),_&&c&&P(Mt,{"data-type":"outside",ref:p,onFocus:S=>{var E;if(sn(S,c))(E=m.current)==null||E.focus();else{const x=h?h.domReference:null,O=Do(x);O==null||O.focus(),h!=null&&h.closeOnFocusOut&&(h==null||h.onOpenChange(!1,Re(Pn,S.nativeEvent)))}}})]})]})});process.env.NODE_ENV!=="production"&&(Wa.displayName="FloatingPortal");function Ft(e){return e==null?e:"current"in e?e.current:e}function _d(e,t){const n=ot(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Ua=20;let St=[];function Yo(){St=St.filter(e=>e.isConnected)}function wd(e){Yo(),e&&er(e)!=="body"&&(St.push(e),St.length>Ua&&(St=St.slice(-Ua)))}function qo(){return Yo(),St[St.length-1]}function bd(e){if(!e)return null;const t=on();return ba(e,t)?e:Cn(e,t)[0]||e}function xd(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():tr(e).display!=="none"}function za(e,t){var s;if(!t.current.includes("floating")&&!((s=e.getAttribute("role"))!=null&&s.includes("dialog")))return;const n=on(),o=Lf(e,n).filter(a=>{const l=a.getAttribute("data-tabindex")||"";return ba(a,n)||a.hasAttribute("data-tabindex")&&!l.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||o.length===0?i!=="0"&&e.setAttribute("tabindex","0"):(i!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Ed(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:i=!0,returnFocus:s=!0,restoreFocus:a=!1,modal:l=!0,closeOnFocusOut:c=!0,openInteractionType:f="",getInsideElements:u=()=>[],nextFocusableElement:p,previousFocusableElement:d,beforeContentFocusGuardRef:m,externalTree:h}=e,v="rootStore"in t?t.rootStore:t,y=v.useState("open"),g=v.useState("domReferenceElement"),_=v.useState("floatingElement"),{events:w,dataRef:S}=v.context,E=J(()=>{var L;return(L=S.current.floatingContext)==null?void 0:L.nodeId}),x=J(u),O=i===!1,A=ua(g)&&O,T=Xe(o),$=Xe(i),j=Xe(s),R=Xe(f),N=cn(h),k=Ha(),D=z(null),F=z(null),b=z(!1),I=z(!1),G=z(!1),ie=z(-1),M=z(""),U=z(""),se=Dt(),Q=Dt(),ee=or(),ne=k!=null,K=Po(_),Se=J((L=K)=>L?Cn(L,on()):[]),ke=J(L=>{const H=Se(L);return T.current.map(()=>H).filter(Boolean).flat()});me(()=>{if(r||!l)return;function L(te){te.key==="Tab"&&de(K,en(Oe(K)))&&Se().length===0&&!A&&lf(te)}const H=Oe(K);return H.addEventListener("keydown",L),()=>{H.removeEventListener("keydown",L)}},[r,g,K,l,T,A,Se,ke]),me(()=>{if(r||!_)return;function L(H){const te=Ye(H),le=Se().indexOf(te);le!==-1&&(ie.current=le)}return _.addEventListener("focusin",L),()=>{_.removeEventListener("focusin",L)}},[r,_,Se]),me(()=>{if(r||!y)return;const L=Oe(K);function H(){G.current=!1}function te(le){const X=Ye(le),W=de(_,X)||de(g,X)||de(k==null?void 0:k.portalNode,X);G.current=!W,U.current=le.pointerType||"keyboard"}function oe(){U.current="keyboard"}return L.addEventListener("pointerdown",te,!0),L.addEventListener("pointerup",H,!0),L.addEventListener("pointercancel",H,!0),L.addEventListener("keydown",oe,!0),()=>{L.removeEventListener("pointerdown",te,!0),L.removeEventListener("pointerup",H,!0),L.removeEventListener("pointercancel",H,!0),L.removeEventListener("keydown",oe,!0)}},[r,_,g,K,y,k]),me(()=>{if(r||!c)return;function L(){I.current=!0,Q.start(0,()=>{I.current=!1})}function H(X){const W=X.relatedTarget,xe=X.currentTarget,ve=Ye(X);queueMicrotask(()=>{const $e=E(),Ht=v.context.triggerElements,vn=!(de(g,W)||de(_,W)||de(W,_)||de(k==null?void 0:k.portalNode,W)||W!=null&&Ht.hasElement(W)||Ht.hasMatchingElement(je=>de(je,W))||W!=null&&W.hasAttribute(An("focus-guard"))||N&&($t(N.nodesRef.current,$e).find(je=>{var Me,Le;return de((Me=je.context)==null?void 0:Me.elements.floating,W)||de((Le=je.context)==null?void 0:Le.elements.domReference,W)})||fa(N.nodesRef.current,$e).find(je=>{var Me,Le,ft;return[(Me=je.context)==null?void 0:Me.elements.floating,Po((Le=je.context)==null?void 0:Le.elements.floating)].includes(W)||((ft=je.context)==null?void 0:ft.elements.domReference)===W})));if(xe===g&&K&&za(K,T),a&&xe!==g&&!xd(ve)&&en(Oe(K))===Oe(K).body){if(it(K)&&(K.focus(),a==="popup")){ee.request(()=>{K.focus()});return}const je=ie.current,Me=Se(),Le=Me[je]||Me[Me.length-1]||K;it(Le)&&Le.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(A||!l)&&W&&vn&&!I.current&&(A||W!==qo())&&(b.current=!0,v.setOpen(!1,Re(Pn,X)))})}function te(){G.current||(S.current.insideReactTree=!0,se.start(0,()=>{S.current.insideReactTree=!1}))}const oe=it(g)?g:null,le=[];if(!(!_&&!oe))return oe&&(oe.addEventListener("focusout",H),oe.addEventListener("pointerdown",L),le.push(()=>{oe.removeEventListener("focusout",H),oe.removeEventListener("pointerdown",L)})),_&&(_.addEventListener("focusout",H),k&&(_.addEventListener("focusout",te,!0),le.push(()=>{_.removeEventListener("focusout",te,!0)})),le.push(()=>{_.removeEventListener("focusout",H)})),()=>{le.forEach(X=>{X()})}},[r,g,_,K,l,N,k,v,c,a,Se,A,E,T,S,se,Q,ee]);const C=z(null),Y=z(null),B=cr(C,m,k==null?void 0:k.beforeInsideRef),Ae=cr(Y,k==null?void 0:k.afterInsideRef);me(()=>{var X,W,xe;if(r||!_||!y)return;const L=Array.from(((X=k==null?void 0:k.portalNode)==null?void 0:X.querySelectorAll(`[${An("portal")}]`))||[]),te=(xe=(W=(N?fa(N.nodesRef.current,E()):[]).find(ve=>{var $e;return ua((($e=ve.context)==null?void 0:$e.elements.domReference)||null)}))==null?void 0:W.context)==null?void 0:xe.elements.domReference,oe=[_,te,...L,...x(),D.current,F.current,C.current,Y.current,k==null?void 0:k.beforeOutsideRef.current,k==null?void 0:k.afterOutsideRef.current,Ft(d),Ft(p),A?g:null].filter(ve=>ve!=null),le=od(oe,l||A);return()=>{le()}},[y,r,g,_,l,T,k,A,N,E,x,p,d]),ae(()=>{if(!y||r||!it(K))return;const L=Oe(K),H=en(L);queueMicrotask(()=>{const te=ke(K),oe=$.current,le=typeof oe=="function"?oe(R.current||""):oe;if(le===void 0||le===!1)return;let X;le===!0||le===null?X=te[0]||K:X=Ft(le),X=X||te[0]||K,!de(K,H)&&Fo(X,{preventScroll:X===K})})},[r,y,K,O,ke,$,R]),ae(()=>{if(r||!K)return;const L=Oe(K),H=en(L);wd(H);function te(X){if(X.open||(M.current=_d(X.nativeEvent,U.current)),X.reason===qe&&X.nativeEvent.type==="mouseleave"&&(b.current=!0),X.reason===Pa)if(X.nested)b.current=!1;else if(ff(X.nativeEvent)||df(X.nativeEvent))b.current=!1;else{let W=!1;document.createElement("div").focus({get preventScroll(){return W=!0,!1}}),W?b.current=!1:b.current=!0}}w.on("openchange",te);const oe=L.createElement("span");oe.setAttribute("tabindex","-1"),oe.setAttribute("aria-hidden","true"),Object.assign(oe.style,Na),ne&&g&&g.insertAdjacentElement("afterend",oe);function le(){const X=j.current;let W=typeof X=="function"?X(M.current):X;if(W===void 0||W===!1)return null;if(W===null&&(W=!0),typeof W=="boolean"){const ve=g||qo();return ve&&ve.isConnected?ve:oe}const xe=g||qo()||oe;return Ft(W)||xe}return()=>{w.off("openchange",te);const X=en(L),W=de(_,X)||N&&$t(N.nodesRef.current,E(),!1).some(ve=>{var $e;return de(($e=ve.context)==null?void 0:$e.elements.floating,X)}),xe=le();queueMicrotask(()=>{const ve=bd(xe),$e=typeof j.current!="boolean";j.current&&!b.current&&it(ve)&&(!(!$e&&ve!==X&&X!==L.body)||W)&&ve.focus({preventScroll:!0}),oe.remove()})}},[r,_,K,j,S,w,N,ne,g,E]),me(()=>{queueMicrotask(()=>{b.current=!1})},[r]),me(()=>{if(r||!y)return;function L(te){const oe=Ye(te);oe!=null&&oe.closest(`[${Ca}]`)&&(I.current=!0)}const H=Oe(K);return H.addEventListener("pointerdown",L,!0),()=>{H.removeEventListener("pointerdown",L,!0)}},[r,y,K]),ae(()=>{if(!r&&k)return k.setFocusManagerState({modal:l,closeOnFocusOut:c,open:y,onOpenChange:v.setOpen,domReference:g}),()=>{k.setFocusManagerState(null)}},[r,k,l,y,v,c,g]),ae(()=>{if(!(r||!K))return za(K,T),()=>{queueMicrotask(Yo)}},[r,K,T]);const re=!r&&(l?!A:!0)&&(ne||l);return P(Ee,{children:[re&&P(Mt,{"data-type":"inside",ref:B,onFocus:L=>{var H;if(l){const te=ke();Fo(te[te.length-1])}else if(k!=null&&k.portalNode)if(b.current=!1,sn(L,k.portalNode)){const te=Do(g);te==null||te.focus()}else(H=Ft(d??k.beforeOutsideRef))==null||H.focus()}}),n,re&&P(Mt,{"data-type":"inside",ref:Ae,onFocus:L=>{var H;if(l)Fo(ke()[0]);else if(k!=null&&k.portalNode)if(c&&(b.current=!0),sn(L,k.portalNode)){const te=Ea(g);te==null||te.focus()}else(H=Ft(p??k.afterOutsideRef))==null||H.focus()}})]})}function Sd(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:o=!0,event:i="click",toggle:s=!0,ignoreMouse:a=!1,stickIfOpen:l=!0,touchOpenDelay:c=0}=t,f=z(void 0),u=or(),p=Dt(),d=q(()=>({onPointerDown(m){f.current=m.pointerType},onMouseDown(m){const h=f.current,v=m.nativeEvent,y=n.select("open");if(m.button!==0||i==="click"||tn(h,!0)&&a)return;const g=r.current.openEvent,_=g==null?void 0:g.type,w=n.select("domReferenceElement")!==m.currentTarget,S=y&&w||!(y&&s&&(!(g&&l)||_==="click"||_==="mousedown"));if(la(v.target)){const x=Re(Et,v,v.target);S&&h==="touch"&&c>0?p.start(c,()=>{n.setOpen(!0,x)}):n.setOpen(S,x);return}const E=m.currentTarget;u.request(()=>{const x=Re(Et,v,E);S&&h==="touch"&&c>0?p.start(c,()=>{n.setOpen(!0,x)}):n.setOpen(S,x)})},onClick(m){if(i==="mousedown-only")return;const h=f.current;if(i==="mousedown"&&h){f.current=void 0;return}if(tn(h,!0)&&a)return;const v=n.select("open"),y=r.current.openEvent,g=n.select("domReferenceElement")!==m.currentTarget,_=v&&g||!(v&&s&&(!(y&&l)||da(y))),w=Re(Et,m.nativeEvent,m.currentTarget);_&&h==="touch"&&c>0?p.start(c,()=>{n.setOpen(!0,w)}):n.setOpen(_,w)},onKeyDown(){f.current=void 0}}),[r,i,a,n,l,s,u,p,c]);return q(()=>o?{reference:d}:De,[o,d])}const Rd=["top","right","bottom","left"],un=Math.min,Be=Math.max,pr=Math.round,hr=Math.floor,ct=e=>({x:e,y:e}),kd={left:"right",right:"left",bottom:"top",top:"bottom"};function Ya(e,t,n){return Be(e,un(t,n))}function Rt(e,t){return typeof e=="function"?e(t):e}function gt(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function Go(e){return e==="x"?"y":"x"}function qa(e){return e==="y"?"height":"width"}function lt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ga(e){return Go(lt(e))}function Od(e,t,n){n===void 0&&(n=!1);const r=jn(e),o=Ga(e),i=qa(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=mr(s)),[s,mr(s)]}function Td(e){const t=mr(e);return[Ko(e),t,Ko(t)]}function Ko(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ka=["left","right"],Xa=["right","left"],Cd=["top","bottom"],Pd=["bottom","top"];function Ad(e,t,n){switch(e){case"top":case"bottom":return n?t?Xa:Ka:t?Ka:Xa;case"left":case"right":return t?Cd:Pd;default:return[]}}function Id(e,t,n,r){const o=jn(e);let i=Ad(gt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ko)))),i}function mr(e){const t=gt(e);return kd[t]+e.slice(t.length)}function jd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nd(e){return typeof e!="number"?jd(e):{top:e,right:e,bottom:e,left:e}}function gr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Za(e,t,n){let{reference:r,floating:o}=e;const i=lt(t),s=Ga(t),a=qa(s),l=gt(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let d;switch(l){case"top":d={x:f,y:r.y-o.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-o.width,y:u};break;default:d={x:r.x,y:r.y}}switch(jn(t)){case"start":d[s]-=p*(n&&c?-1:1);break;case"end":d[s]+=p*(n&&c?-1:1);break}return d}async function Dd(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:p=!1,padding:d=0}=Rt(t,e),m=Nd(d),v=a[p?u==="floating"?"reference":"floating":u],y=gr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),g=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},S=gr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:_,strategy:l}):g);return{top:(y.top-S.top+m.top)/w.y,bottom:(S.bottom-y.bottom+m.bottom)/w.y,left:(y.left-S.left+m.left)/w.x,right:(S.right-y.right+m.right)/w.x}}const $d=50,Ld=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:Dd},l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Za(c,r,l),p=r,d=0;const m={};for(let h=0;h<i.length;h++){const v=i[h];if(!v)continue;const{name:y,fn:g}=v,{x:_,y:w,data:S,reset:E}=await g({x:f,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});f=_??f,u=w??u,m[y]={...m[y],...S},E&&d<$d&&(d++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=Za(c,p,l)),h=-1)}return{x:f,y:u,placement:p,strategy:o,middlewareData:m}},Md=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Rt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=gt(o),g=lt(a),_=gt(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(_||!h?[mr(a)]:Td(a)),E=m!=="none";!p&&E&&S.push(...Id(a,h,m,w));const x=[a,...S],O=await l.detectOverflow(t,v),A=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&A.push(O[y]),u){const N=Od(o,s,w);A.push(O[N[0]],O[N[1]])}if(T=[...T,{placement:o,overflows:A}],!A.every(N=>N<=0)){var $,j;const N=((($=i.flip)==null?void 0:$.index)||0)+1,k=x[N];if(k&&(!(u==="alignment"?g!==lt(k):!1)||T.every(b=>lt(b.placement)===g?b.overflows[0]>0:!0)))return{data:{index:N,overflows:T},reset:{placement:k}};let D=(j=T.filter(F=>F.overflows[0]<=0).sort((F,b)=>F.overflows[1]-b.overflows[1])[0])==null?void 0:j.placement;if(!D)switch(d){case"bestFit":{var R;const F=(R=T.filter(b=>{if(E){const I=lt(b.placement);return I===g||I==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(I=>I>0).reduce((I,G)=>I+G,0)]).sort((b,I)=>b[1]-I[1])[0])==null?void 0:R[0];F&&(D=F);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Ja(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qa(e){return Rd.some(t=>e[t]>=0)}const Fd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=Rt(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Ja(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Qa(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Ja(s,n.floating);return{data:{escapedOffsets:a,escaped:Qa(a)}}}default:return{}}}}},ec=new Set(["left","top"]);async function Vd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=gt(n),a=jn(n),l=lt(n)==="y",c=ec.has(s)?-1:1,f=i&&l?-1:1,u=Rt(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*f,y:p*c}:{x:p*c,y:d*f}}const Bd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Vd(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Hd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:g,y:_}=y;return{x:g,y:_}}},...c}=Rt(e,t),f={x:n,y:r},u=await i.detectOverflow(t,c),p=lt(gt(o)),d=Go(p);let m=f[d],h=f[p];if(s){const y=d==="y"?"top":"left",g=d==="y"?"bottom":"right",_=m+u[y],w=m-u[g];m=Ya(_,m,w)}if(a){const y=p==="y"?"top":"left",g=p==="y"?"bottom":"right",_=h+u[y],w=h-u[g];h=Ya(_,h,w)}const v=l.fn({...t,[d]:m,[p]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:s,[p]:a}}}}}},Wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Rt(e,t),f={x:n,y:r},u=lt(o),p=Go(u);let d=f[p],m=f[u];const h=Rt(a,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const _=p==="y"?"height":"width",w=i.reference[p]-i.floating[_]+v.mainAxis,S=i.reference[p]+i.reference[_]-v.mainAxis;d<w?d=w:d>S&&(d=S)}if(c){var y,g;const _=p==="y"?"width":"height",w=ec.has(gt(o)),S=i.reference[u]-i.floating[_]+(w&&((y=s.offset)==null?void 0:y[u])||0)+(w?0:v.crossAxis),E=i.reference[u]+i.reference[_]+(w?0:((g=s.offset)==null?void 0:g[u])||0)-(w?v.crossAxis:0);m<S?m=S:m>E&&(m=E)}return{[p]:d,[u]:m}}}},Ud=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Rt(e,t),f=await s.detectOverflow(t,c),u=gt(o),p=jn(o),d=lt(o)==="y",{width:m,height:h}=i.floating;let v,y;u==="top"||u==="bottom"?(v=u,y=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,v=p==="end"?"top":"bottom");const g=h-f.top-f.bottom,_=m-f.left-f.right,w=un(h-f[v],g),S=un(m-f[y],_),E=!t.middlewareData.shift;let x=w,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(x=g),E&&!p){const T=Be(f.left,0),$=Be(f.right,0),j=Be(f.top,0),R=Be(f.bottom,0);d?O=m-2*(T!==0||$!==0?T+$:Be(f.left,f.right)):x=h-2*(j!==0||R!==0?j+R:Be(f.top,f.bottom))}await l({...t,availableWidth:O,availableHeight:x});const A=await s.getDimensions(a.floating);return m!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function vr(){return typeof window<"u"}function fn(e){return tc(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(tc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function tc(e){return vr()?e instanceof Node||e instanceof He(e).Node:!1}function Je(e){return vr()?e instanceof Element||e instanceof He(e).Element:!1}function vt(e){return vr()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function nc(e){return!vr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function Nn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function zd(e){return/^(table|td|th)$/.test(fn(e))}function yr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Yd=/transform|translate|scale|rotate|perspective|filter/,qd=/paint|layout|strict|content/,Vt=e=>!!e&&e!=="none";let Xo;function Zo(e){const t=Je(e)?Qe(e):e;return Vt(t.transform)||Vt(t.translate)||Vt(t.scale)||Vt(t.rotate)||Vt(t.perspective)||!Jo()&&(Vt(t.backdropFilter)||Vt(t.filter))||Yd.test(t.willChange||"")||qd.test(t.contain||"")}function Gd(e){let t=kt(e);for(;vt(t)&&!dn(t);){if(Zo(t))return t;if(yr(t))return null;t=kt(t)}return null}function Jo(){return Xo==null&&(Xo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xo}function dn(e){return/^(html|body|#document)$/.test(fn(e))}function Qe(e){return He(e).getComputedStyle(e)}function _r(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kt(e){if(fn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nc(e)&&e.host||ut(e);return nc(t)?t.host:t}function rc(e){const t=kt(e);return dn(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&Nn(t)?t:rc(t)}function Ot(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=rc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=He(o);if(i){const a=Qo(s);return t.concat(s,s.visualViewport||[],Nn(o)?o:[],a&&n?Ot(a):[])}else return t.concat(o,Ot(o,[],n))}function Qo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oc(e){const t=Qe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=pr(n)!==i||pr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ei(e){return Je(e)?e:e.contextElement}function pn(e){const t=ei(e);if(!vt(t))return ct(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=oc(t);let s=(i?pr(n.width):n.width)/r,a=(i?pr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Kd=ct(0);function ic(e){const t=He(e);return!Jo()||!t.visualViewport?Kd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==He(e)?!1:t}function Bt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ei(e);let s=ct(1);t&&(r?Je(r)&&(s=pn(r)):s=pn(e));const a=Xd(i,n,r)?ic(i):ct(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(i){const p=He(i),d=r&&Je(r)?He(r):r;let m=p,h=Qo(m);for(;h&&r&&d!==m;){const v=pn(h),y=h.getBoundingClientRect(),g=Qe(h),_=y.left+(h.clientLeft+parseFloat(g.paddingLeft))*v.x,w=y.top+(h.clientTop+parseFloat(g.paddingTop))*v.y;l*=v.x,c*=v.y,f*=v.x,u*=v.y,l+=_,c+=w,m=He(h),h=Qo(m)}}return gr({width:f,height:u,x:l,y:c})}function wr(e,t){const n=_r(e).scrollLeft;return t?t.left+n:Bt(ut(e)).left+n}function sc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-wr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Zd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ut(r),a=t?yr(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ct(1);const f=ct(0),u=vt(r);if((u||!u&&!i)&&((fn(r)!=="body"||Nn(s))&&(l=_r(r)),u)){const d=Bt(r);c=pn(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}const p=s&&!u&&!i?sc(s,l):ct(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-l.scrollTop*c.y+f.y+p.y}}function Jd(e){return Array.from(e.getClientRects())}function Qd(e){const t=ut(e),n=_r(e),r=e.ownerDocument.body,o=Be(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Be(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+wr(e);const a=-n.scrollTop;return Qe(r).direction==="rtl"&&(s+=Be(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const ac=25;function ep(e,t){const n=He(e),r=ut(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const f=Jo();(!f||f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=wr(r);if(c<=0){const f=r.ownerDocument,u=f.body,p=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-u.clientWidth-d);m<=ac&&(i-=m)}else c<=ac&&(i+=c);return{width:i,height:s,x:a,y:l}}function tp(e,t){const n=Bt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=vt(e)?pn(e):ct(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function cc(e,t,n){let r;if(t==="viewport")r=ep(e,n);else if(t==="document")r=Qd(ut(e));else if(Je(t))r=tp(t,n);else{const o=ic(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gr(r)}function lc(e,t){const n=kt(e);return n===t||!Je(n)||dn(n)?!1:Qe(n).position==="fixed"||lc(n,t)}function np(e,t){const n=t.get(e);if(n)return n;let r=Ot(e,[],!1).filter(a=>Je(a)&&fn(a)!=="body"),o=null;const i=Qe(e).position==="fixed";let s=i?kt(e):e;for(;Je(s)&&!dn(s);){const a=Qe(s),l=Zo(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Nn(s)&&!l&&lc(e,s))?r=r.filter(f=>f!==s):o=a,s=kt(s)}return t.set(e,r),r}function rp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?yr(t)?[]:np(t,this._c):[].concat(n),r],a=cc(t,s[0],o);let l=a.top,c=a.right,f=a.bottom,u=a.left;for(let p=1;p<s.length;p++){const d=cc(t,s[p],o);l=Be(d.top,l),c=un(d.right,c),f=un(d.bottom,f),u=Be(d.left,u)}return{width:c-u,height:f-l,x:u,y:l}}function op(e){const{width:t,height:n}=oc(e);return{width:t,height:n}}function ip(e,t,n){const r=vt(t),o=ut(t),i=n==="fixed",s=Bt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ct(0);function c(){l.x=wr(o)}if(r||!r&&!i)if((fn(t)!=="body"||Nn(o))&&(a=_r(t)),r){const d=Bt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&c();i&&!r&&o&&c();const f=o&&!r&&!i?sc(o,a):ct(0),u=s.left+a.scrollLeft-l.x-f.x,p=s.top+a.scrollTop-l.y-f.y;return{x:u,y:p,width:s.width,height:s.height}}function ti(e){return Qe(e).position==="static"}function uc(e,t){if(!vt(e)||Qe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function fc(e,t){const n=He(e);if(yr(e))return n;if(!vt(e)){let o=kt(e);for(;o&&!dn(o);){if(Je(o)&&!ti(o))return o;o=kt(o)}return n}let r=uc(e,t);for(;r&&zd(r)&&ti(r);)r=uc(r,t);return r&&dn(r)&&ti(r)&&!Zo(r)?n:r||Gd(e)||n}const sp=async function(e){const t=this.getOffsetParent||fc,n=this.getDimensions,r=await n(e.floating);return{reference:ip(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ap(e){return Qe(e).direction==="rtl"}const cp={convertOffsetParentRelativeRectToViewportRelativeRect:Zd,getDocumentElement:ut,getClippingRect:rp,getOffsetParent:fc,getElementRects:sp,getClientRects:Jd,getDimensions:op,getScale:pn,isElement:Je,isRTL:ap};function dc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lp(e,t){let n=null,r;const o=ut(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:f,top:u,width:p,height:d}=c;if(a||t(),!p||!d)return;const m=hr(u),h=hr(o.clientWidth-(f+p)),v=hr(o.clientHeight-(u+d)),y=hr(f),_={rootMargin:-m+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Be(0,un(1,l))||1};let w=!0;function S(E){const x=E[0].intersectionRatio;if(x!==l){if(!w)return s();x?s(!1,x):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x===1&&!dc(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(S,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,_)}n.observe(e)}return s(!0),i}function pc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ei(e),f=o||i?[...c?Ot(c):[],...t?Ot(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=c&&a?lp(c,n):null;let p=-1,d=null;s&&(d=new ResizeObserver(y=>{let[g]=y;g&&g.target===c&&d&&t&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=d)==null||_.observe(t)})),n()}),c&&!l&&d.observe(c),t&&d.observe(t));let m,h=l?Bt(e):null;l&&v();function v(){const y=Bt(e);h&&!dc(h,y)&&n(),h=y,m=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),u==null||u(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const up=Bd,fp=Hd,dp=Md,pp=Ud,hp=Fd,mp=Wd,gp=(e,t,n)=>{const r=new Map,o={platform:cp,...n},i={...o.platform,_c:r};return Ld(e,t,{...o,platform:i})};var vp=typeof document<"u",yp=function(){},br=vp?mt:yp;function xr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!xr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function hc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mc(e,t){const n=hc(e);return Math.round(t*n)/n}function ni(e){const t=z(e);return br(()=>{t.current=e}),t}function _p(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[f,u]=_e({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=_e(r);xr(p,r)||d(r);const[m,h]=_e(null),[v,y]=_e(null),g=fe(b=>{b!==E.current&&(E.current=b,h(b))},[]),_=fe(b=>{b!==x.current&&(x.current=b,y(b))},[]),w=i||m,S=s||v,E=z(null),x=z(null),O=z(f),A=l!=null,T=ni(l),$=ni(o),j=ni(c),R=fe(()=>{if(!E.current||!x.current)return;const b={placement:t,strategy:n,middleware:p};$.current&&(b.platform=$.current),gp(E.current,x.current,b).then(I=>{const G={...I,isPositioned:j.current!==!1};N.current&&!xr(O.current,G)&&(O.current=G,rt(()=>{u(G)}))})},[p,t,n,$,j]);br(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(b=>({...b,isPositioned:!1})))},[c]);const N=z(!1);br(()=>(N.current=!0,()=>{N.current=!1}),[]),br(()=>{if(w&&(E.current=w),S&&(x.current=S),w&&S){if(T.current)return T.current(w,S,R);R()}},[w,S,R,T,A]);const k=q(()=>({reference:E,floating:x,setReference:g,setFloating:_}),[g,_]),D=q(()=>({reference:w,floating:S}),[w,S]),F=q(()=>{const b={position:n,left:0,top:0};if(!D.floating)return b;const I=mc(D.floating,f.x),G=mc(D.floating,f.y);return a?{...b,transform:"translate("+I+"px, "+G+"px)",...hc(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:G}},[n,a,D.floating,f.x,f.y]);return q(()=>({...f,update:R,refs:k,elements:D,floatingStyles:F}),[f,R,k,D,F])}const wp=(e,t)=>({...up(e),options:[e,t]}),bp=(e,t)=>({...fp(e),options:[e,t]}),xp=(e,t)=>({...mp(e),options:[e,t]}),Ep=(e,t)=>({...dp(e),options:[e,t]}),Sp=(e,t)=>({...pp(e),options:[e,t]}),Rp=(e,t)=>({...hp(e),options:[e,t]}),kp={intentional:"onClick",sloppy:"onPointerDown"};function Op(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function Tp(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("referenceElement"),s=n.useState("domReferenceElement"),{onOpenChange:a,dataRef:l}=n.context,{enabled:c=!0,escapeKey:f=!0,outsidePress:u=!0,outsidePressEvent:p="sloppy",referencePress:d=!1,referencePressEvent:m="sloppy",ancestorScroll:h=!1,bubbles:v,externalTree:y}=t,g=cn(y),_=J(typeof u=="function"?u:()=>!1),w=typeof u=="function"?_:u,S=z(!1),{escapeKey:E,outsidePress:x}=Op(v),O=z(null),A=Dt(),T=Dt(),$=J(()=>{T.clear(),l.current.insideReactTree=!1}),j=z(!1),R=z(""),N=J(C=>{R.current=C.pointerType}),k=J(()=>{const C=R.current,Y=C==="pen"||!C?"mouse":C,B=typeof p=="function"?p():p;return typeof B=="string"?B:B[Y]}),D=J(C=>{var L;if(!r||!c||!f||C.key!=="Escape"||j.current)return;const Y=(L=l.current.floatingContext)==null?void 0:L.nodeId,B=g?$t(g.nodesRef.current,Y):[];if(!E&&B.length>0){let H=!0;if(B.forEach(te=>{var oe;(oe=te.context)!=null&&oe.open&&!te.context.dataRef.current.__escapeKeyBubbles&&(H=!1)}),!H)return}const Ae=uf(C)?C.nativeEvent:C,re=Re(Aa,Ae);n.setOpen(!1,re),!E&&!re.isPropagationAllowed&&C.stopPropagation()}),F=J(C=>{const Y=k();return Y==="intentional"&&C.type!=="click"||Y==="sloppy"&&C.type==="click"}),b=J(()=>{l.current.insideReactTree=!0,T.start(0,$)}),I=J((C,Y=!1)=>{var X;if(F(C)){$();return}if(l.current.insideReactTree){$();return}if(k()==="intentional"&&Y||typeof w=="function"&&!w(C))return;const B=Ye(C),Ae=`[${An("inert")}]`,re=Oe(n.select("floatingElement")).querySelectorAll(Ae),L=n.context.triggerElements;if(B&&(L.hasElement(B)||L.hasMatchingElement(W=>de(W,B))))return;let H=Ce(B)?B:null;for(;H&&!So(H);){const W=Bu(H);if(So(W)||!Ce(W))break;H=W}if(re.length&&Ce(B)&&!cf(B)&&!de(B,n.select("floatingElement"))&&Array.from(re).every(W=>!de(H,W)))return;if(it(B)&&!("touches"in C)){const W=So(B),xe=tr(B),ve=/auto|scroll/,$e=W||ve.test(xe.overflowX),Ht=W||ve.test(xe.overflowY),vn=$e&&B.clientWidth>0&&B.scrollWidth>B.clientWidth,je=Ht&&B.clientHeight>0&&B.scrollHeight>B.clientHeight,Me=xe.direction==="rtl",Le=je&&(Me?C.offsetX<=B.offsetWidth-B.clientWidth:C.offsetX>B.clientWidth),ft=vn&&C.offsetY>B.clientHeight;if(Le||ft)return}const te=(X=l.current.floatingContext)==null?void 0:X.nodeId,oe=g&&$t(g.nodesRef.current,te).some(W=>{var xe;return Ze(C,(xe=W.context)==null?void 0:xe.elements.floating)});if(Ze(C,n.select("floatingElement"))||Ze(C,n.select("domReferenceElement"))||oe)return;const le=g?$t(g.nodesRef.current,te):[];if(le.length>0){let W=!0;if(le.forEach(xe=>{var ve;(ve=xe.context)!=null&&ve.open&&!xe.context.dataRef.current.__outsidePressBubbles&&(W=!1)}),!W)return}n.setOpen(!1,Re(Pa,C)),$()}),G=J(C=>{k()!=="sloppy"||C.pointerType==="touch"||!n.select("open")||!c||Ze(C,n.select("floatingElement"))||Ze(C,n.select("domReferenceElement"))||I(C)}),ie=J(C=>{if(k()!=="sloppy"||!n.select("open")||!c||Ze(C,n.select("floatingElement"))||Ze(C,n.select("domReferenceElement")))return;const Y=C.touches[0];Y&&(O.current={startTime:Date.now(),startX:Y.clientX,startY:Y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},A.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}),M=J(C=>{const Y=Ye(C);function B(){ie(C),Y==null||Y.removeEventListener(C.type,B)}Y==null||Y.addEventListener(C.type,B)}),U=J(C=>{const Y=S.current;if(S.current=!1,A.clear(),C.type==="mousedown"&&O.current&&!O.current.dismissOnMouseDown)return;const B=Ye(C);function Ae(){C.type==="pointerdown"?G(C):I(C,Y),B==null||B.removeEventListener(C.type,Ae)}B==null||B.addEventListener(C.type,Ae)}),se=J(C=>{if(k()!=="sloppy"||!O.current||Ze(C,n.select("floatingElement"))||Ze(C,n.select("domReferenceElement")))return;const Y=C.touches[0];if(!Y)return;const B=Math.abs(Y.clientX-O.current.startX),Ae=Math.abs(Y.clientY-O.current.startY),re=Math.sqrt(B*B+Ae*Ae);re>5&&(O.current.dismissOnTouchEnd=!0),re>10&&(I(C),A.clear(),O.current=null)}),Q=J(C=>{const Y=Ye(C);function B(){se(C),Y==null||Y.removeEventListener(C.type,B)}Y==null||Y.addEventListener(C.type,B)}),ee=J(C=>{k()!=="sloppy"||!O.current||Ze(C,n.select("floatingElement"))||Ze(C,n.select("domReferenceElement"))||(O.current.dismissOnTouchEnd&&I(C),A.clear(),O.current=null)}),ne=J(C=>{const Y=Ye(C);function B(){ee(C),Y==null||Y.removeEventListener(C.type,B)}Y==null||Y.addEventListener(C.type,B)});me(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=E,l.current.__outsidePressBubbles=x;const C=new bt;function Y(H){n.setOpen(!1,Re(Zf,H))}function B(){C.clear(),j.current=!0}function Ae(){C.start(Fu()?5:0,()=>{j.current=!1})}const re=Oe(o);re.addEventListener("pointerdown",N,!0),f&&(re.addEventListener("keydown",D),re.addEventListener("compositionstart",B),re.addEventListener("compositionend",Ae)),w&&(re.addEventListener("click",U,!0),re.addEventListener("pointerdown",U,!0),re.addEventListener("touchstart",M,!0),re.addEventListener("touchmove",Q,!0),re.addEventListener("touchend",ne,!0),re.addEventListener("mousedown",U,!0));let L=[];return h&&(Ce(s)&&(L=Ot(s)),Ce(o)&&(L=L.concat(Ot(o))),!Ce(i)&&i&&i.contextElement&&(L=L.concat(Ot(i.contextElement)))),L=L.filter(H=>{var te;return H!==((te=re.defaultView)==null?void 0:te.visualViewport)}),L.forEach(H=>{H.addEventListener("scroll",Y,{passive:!0})}),()=>{re.removeEventListener("pointerdown",N,!0),f&&(re.removeEventListener("keydown",D),re.removeEventListener("compositionstart",B),re.removeEventListener("compositionend",Ae)),w&&(re.removeEventListener("click",U,!0),re.removeEventListener("pointerdown",U,!0),re.removeEventListener("touchstart",M,!0),re.removeEventListener("touchmove",Q,!0),re.removeEventListener("touchend",ne,!0),re.removeEventListener("mousedown",U,!0)),L.forEach(H=>{H.removeEventListener("scroll",Y)}),C.clear()}},[l,o,i,s,f,w,r,a,h,c,E,x,D,I,U,G,M,Q,ne,N,n]),me($,[w,$]);const K=q(()=>({onKeyDown:D,...d&&{[kp[m]]:C=>{n.setOpen(!1,Re(Et,C.nativeEvent))},...m!=="intentional"&&{onClick(C){n.setOpen(!1,Re(Et,C.nativeEvent))}}}}),[D,n,d,m]),Se=J(C=>{const Y=Ye(C.nativeEvent);!de(n.select("floatingElement"),Y)||C.button!==0||(S.current=!0)}),ke=q(()=>({onKeyDown:D,onPointerDown:Se,onMouseDown:Se,onMouseUp:Se,onClickCapture:b,onMouseDownCapture:b,onPointerDownCapture:b,onMouseUpCapture:b,onTouchEndCapture:b,onTouchMoveCapture:b}),[D,Se,b]);return q(()=>c?{reference:K,floating:ke,trigger:K}:{},[c,K,ke])}var Cp=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
1
|
+
var Zg=Object.defineProperty;var Jg=(Ct,dt,Ut)=>dt in Ct?Zg(Ct,dt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ct[dt]=Ut;var ue=(Ct,dt,Ut)=>Jg(Ct,typeof dt!="symbol"?dt+"":dt,Ut);(function(){"use strict";function Ct(e,t){if(!e)throw new Error(t)}const dt={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function Ut(e){return dt}let Nr;function Ol(e){return Nr==null?void 0:Nr.get(e)}let Dr;function Tl(e){return Dr==null?void 0:Dr.get(e)}let Lr;function Cl(e,t){var n;return(n=Lr==null?void 0:Lr.get(e))==null?void 0:n.get(t)}function Mr(e){var n,r;const t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor)==null?void 0:r.name))??"null":t}function Me(e,t,n,r,o){const i=o&&"input"in o?o.input:n.value,s=(o==null?void 0:o.expected)??e.expects??null,a=(o==null?void 0:o.received)??Mr(i),l={kind:e.kind,type:e.type,input:i,expected:s,received:a,message:`Invalid ${t}: ${s?`Expected ${s} but r`:"R"}eceived ${a}`,requirement:e.requirement,path:o==null?void 0:o.path,issues:o==null?void 0:o.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},c=e.kind==="schema",f=(o==null?void 0:o.message)??e.message??Cl(e.reference,l.lang)??(c?Tl(l.lang):null)??r.message??Ol(l.lang);f!==void 0&&(l.message=typeof f=="function"?f(l):f),c&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}const Ii=new WeakMap;function He(e){let t=Ii.get(e);return t||(t={version:1,vendor:"valibot",validate(n){return e["~run"]({value:n},Ut())}},Ii.set(e,t)),t}function Pl(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function ji(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}const Al=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function $i(e){return{kind:"validation",type:"email",reference:$i,expects:null,async:!1,requirement:Al,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&&Me(this,"email",t,n),t}}}function Fr(e,t){return{kind:"validation",type:"max_length",reference:Fr,async:!1,expects:`<=${e}`,requirement:e,message:t,"~run"(n,r){return n.typed&&n.value.length>this.requirement&&Me(this,"length",n,r,{received:`${n.value.length}`}),n}}}function Vr(e,t){return{kind:"validation",type:"min_length",reference:Vr,async:!1,expects:`>=${e}`,requirement:e,message:t,"~run"(n,r){return n.typed&&n.value.length<this.requirement&&Me(this,"length",n,r,{received:`${n.value.length}`}),n}}}function Br(){return{kind:"transformation",type:"trim",reference:Br,async:!1,"~run"(e){return e.value=e.value.trim(),e}}}function Il(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function Hr(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Ur(e,t){return{kind:"schema",type:"array",reference:Ur,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return He(this)},"~run"(n,r){var i;const o=n.value;if(Array.isArray(o)){n.typed=!0,n.value=[];for(let s=0;s<o.length;s++){const a=o[s],l=this.item["~run"]({value:a},r);if(l.issues){const c={type:"array",origin:"value",input:o,key:s,value:a};for(const f of l.issues)f.path?f.path.unshift(c):f.path=[c],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value.push(l.value)}}else Me(this,"type",n,r);return n}}}function Ni(e,t){return{kind:"schema",type:"literal",reference:Ni,expects:Mr(e),async:!1,literal:e,message:t,get"~standard"(){return He(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:Me(this,"type",n,r),n}}}function pe(e,t){return{kind:"schema",type:"nullable",reference:pe,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return He(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=Hr(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function Qe(e){return{kind:"schema",type:"number",reference:Qe,expects:"number",async:!1,message:e,get"~standard"(){return He(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:Me(this,"type",t,n),t}}}function Ge(e,t){return{kind:"schema",type:"object",reference:Ge,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return He(this)},"~run"(n,r){var i;const o=n.value;if(o&&typeof o=="object"){n.typed=!0,n.value={};for(const s in this.entries){const a=this.entries[s];if(s in o||(a.type==="exact_optional"||a.type==="optional"||a.type==="nullish")&&a.default!==void 0){const l=s in o?o[s]:Hr(a),c=a["~run"]({value:l},r);if(c.issues){const f={type:"object",origin:"value",input:o,key:s,value:l};for(const u of c.issues)u.path?u.path.unshift(f):u.path=[f],(i=n.issues)==null||i.push(u);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value[s]=c.value}else if(a.fallback!==void 0)n.value[s]=Il(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(Me(this,"key",n,r,{input:void 0,expected:`"${s}"`,path:[{type:"object",origin:"key",input:o,key:s,value:o[s]}]}),r.abortEarly))break}}else Me(this,"type",n,r);return n}}}function Pt(e,t){return{kind:"schema",type:"optional",reference:Pt,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return He(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=Hr(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function yt(e,t){return{kind:"schema",type:"picklist",reference:yt,expects:ji(e.map(Mr),"|"),async:!1,options:e,message:t,get"~standard"(){return He(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:Me(this,"type",n,r),n}}}function Bn(e,t,n){return{kind:"schema",type:"record",reference:Bn,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return He(this)},"~run"(r,o){var s,a;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const l in i)if(Pl(i,l)){const c=i[l],f=this.key["~run"]({value:l},o);if(f.issues){const p={type:"object",origin:"key",input:i,key:l,value:c};for(const d of f.issues)d.path=[p],(s=r.issues)==null||s.push(d);if(r.issues||(r.issues=f.issues),o.abortEarly){r.typed=!1;break}}const u=this.value["~run"]({value:c},o);if(u.issues){const p={type:"object",origin:"value",input:i,key:l,value:c};for(const d of u.issues)d.path?d.path.unshift(p):d.path=[p],(a=r.issues)==null||a.push(d);if(r.issues||(r.issues=u.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!u.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=u.value)}}else Me(this,"type",r,o);return r}}}function Z(e){return{kind:"schema",type:"string",reference:Z,expects:"string",async:!1,message:e,get"~standard"(){return He(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:Me(this,"type",t,n),t}}}function Di(e){let t;if(e)for(const n of e)if(t)for(const r of n.issues)t.push(r);else t=n.issues;return t}function Li(e,t){return{kind:"schema",type:"union",reference:Li,expects:ji(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return He(this)},"~run"(n,r){let o,i,s;for(const a of this.options){const l=a["~run"]({value:n.value},r);if(l.typed)if(l.issues)i?i.push(l):i=[l];else{o=l;break}else s?s.push(l):s=[l]}if(o)return o;if(i){if(i.length===1)return i[0];Me(this,"type",n,r,{issues:Di(i)}),n.typed=!0}else{if((s==null?void 0:s.length)===1)return s[0];Me(this,"type",n,r,{issues:Di(s)})}return n}}}function Mi(){return{kind:"schema",type:"unknown",reference:Mi,expects:"unknown",async:!1,get"~standard"(){return He(this)},"~run"(e){return e.typed=!0,e}}}function Hn(...e){return{...e[0],pipe:e,get"~standard"(){return He(this)},"~run"(t,n){for(const r of e)if(r.kind!=="metadata"){if(t.issues&&(r.kind==="schema"||r.kind==="transformation")){t.typed=!1;break}(!t.issues||!n.abortEarly&&!n.abortPipeEarly)&&(t=r["~run"](t,n))}return t}}}var jl=e=>e;function $l(){return{"~standard":{vendor:"inploi",version:1,validate:e=>({value:e})}}}var Nl=["agent","sdk","form","integration","migration"],Dl=["APPLIED","SHORTLISTED","INTERVIEWED","OFFERED","HIRED","REJECTED","WITHDRAWN"],Ll=["screening","cv_match","interview","overall"],Ml=["PENDING","SCHEDULED","IN_PROGRESS","COMPLETED","CANCELLED"],Fl=["careers_site","chatbot","plugin_job_search","ats_import","referral","agency","other","unknown"],Vl=yt(Nl),Bl=yt(Dl),Hl=Hn(Z(),Br(),Vr(1),Fr(100)),Ul=yt(Ll),Wl=yt(Ml),zl=Hn(Z(),Br(),Vr(1),Fr(100)),Yl=yt(Fl),Fi=Ge({id:Z(),email:pe(Z()),firstName:pe(Z()),lastName:pe(Z()),phone:pe(Z()),source:pe(Vl),identifiedAt:pe(Z()),createdAt:Z(),updatedAt:Z()}),Wr=Bn(Z(),Mi()),ql=Ge({id:Z(),applicationId:Z(),status:Wl,scheduledAt:pe(Z()),completedAt:pe(Z()),meta:pe(Wr),createdAt:Z(),updatedAt:Z()}),Gl=Ge({score:Qe(),reason:Z(),confidence:Qe()}),Vi=Ge({id:Z(),candidateId:Z(),jobId:Qe(),stage:Hl,stageGroup:Bl,stageEnteredAt:Z(),rating:pe(Qe()),disqualifiedAt:pe(Z()),disqualificationReason:pe(zl),disqualificationNote:pe(Z()),source:Yl,sourceDetail:pe(Z()),sessionId:pe(Qe()),externalApplicationId:pe(Z()),meta:pe(Wr),context:pe(Wr),scoredAt:pe(Z()),createdAt:Z(),updatedAt:Z()}),Kl=Ge({id:Z(),applicationId:Z(),scoreType:Ul,score:pe(Qe()),reason:pe(Z()),categories:pe(Bn(Z(),Gl)),scoredBy:pe(Z()),createdAt:Z()});({...Vi.entries},{...Fi.entries});var Bi=["DAILY","WEEKLY","MONTHLY"],Xl=Bn(Z(),Li([Z(),Ur(Z()),Ge({type:Ni("provided"),lat:Qe(),lng:Qe(),radius:Qe(),unit:Pt(yt(["miles","km"])),label:Pt(Z())})])),Zl={pathname:"/search/save",method:"POST",schema:{response:$l(),body:Ge({contact:Ge({email:Hn(Pt(Z()),Z(),$i()),first_name:Pt(Z()),last_name:Pt(Z())}),alerts:Hn(Pt(Z()),Z(),yt(Bi)),filters:Xl})}},bn,V,Hi,Ui,At,Wi,zi,Yi,qi,zr,Yr,qr,Gi,Un={},Wn=[],Jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,xn=Array.isArray;function et(e,t){for(var n in t)e[n]=t[n];return e}function Gr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function be(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?bn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return En(e,s,r,o,null)}function En(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Hi,__i:-1,__u:0};return o==null&&V.vnode!=null&&V.vnode(i),i}function It(){return{current:null}}function Ee(e){return e.children}function Ue(e,t){this.props=e,this.context=t}function Wt(e,t){if(t==null)return e.__?Wt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Wt(e):null}function Ql(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=et({},t);i.__v=t.__v+1,V.vnode&&V.vnode(i),Xr(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Wt(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,es(r,i,o),t.__e=t.__=null,i.__e!=n&&Ki(i)}}function Ki(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Ki(e)}function Kr(e){(!e.__d&&(e.__d=!0)&&At.push(e)&&!zn.__r++||Wi!=V.debounceRendering)&&((Wi=V.debounceRendering)||zi)(zn)}function zn(){for(var e,t=1;At.length;)At.length>t&&At.sort(Yi),e=At.shift(),t=At.length,Ql(e);zn.__r=0}function Xi(e,t,n,r,o,i,s,a,l,c,f){var u,p,d,g,h,v,y,m=r&&r.__k||Wn,_=t.length;for(l=eu(n,t,m,l,_),u=0;u<_;u++)(d=n.__k[u])!=null&&(p=d.__i!=-1&&m[d.__i]||Un,d.__i=u,v=Xr(e,d,p,o,i,s,a,l,c,f),g=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&Jr(p.ref,null,d),f.push(d.ref,d.__c||g,d)),h==null&&g!=null&&(h=g),(y=!!(4&d.__u))||p.__k===d.__k?l=Zi(d,l,e,y):typeof d.type=="function"&&v!==void 0?l=v:g&&(l=g.nextSibling),d.__u&=-7);return n.__e=h,l}function eu(e,t,n,r,o){var i,s,a,l,c,f=n.length,u=f,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=En(null,s,null,null,null):xn(s)?s=e.__k[i]=En(Ee,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=En(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,l=i+p,s.__=e,s.__b=e.__b+1,a=null,(c=s.__i=tu(s,n,l,u))!=-1&&(u--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(o>f?p--:o<f&&p++),typeof s.type!="function"&&(s.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<f;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Wt(a)),ns(a,a));return r}function Zi(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Zi(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Wt(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function pt(e,t){return t=t||[],e==null||typeof e=="boolean"||(xn(e)?e.some(function(n){pt(n,t)}):t.push(e)),t}function tu(e,t,n,r){var o,i,s,a=e.key,l=e.type,c=t[n],f=c!=null&&(2&c.__u)==0;if(c===null&&a==null||f&&a==c.key&&l==c.type)return n;if(r>(f?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((c=t[s=o>=0?o--:i++])!=null&&(2&c.__u)==0&&a==c.key&&l==c.type)return s}return-1}function Ji(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Jl.test(t)?n:n+"px"}function Yn(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ji(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Ji(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(qi,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=zr,e.addEventListener(t,i?qr:Yr,i)):e.removeEventListener(t,i?qr:Yr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Qi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=zr++;else if(t.t<n.u)return;return n(V.event?V.event(t):t)}}}function Xr(e,t,n,r,o,i,s,a,l,c){var f,u,p,d,g,h,v,y,m,_,w,S,E,x,O,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=V.__b)&&f(t);e:if(typeof A=="function")try{if(y=t.props,m="prototype"in A&&A.prototype.render,_=(f=A.contextType)&&r[f.__c],w=f?_?_.props.value:f.__:r,n.__c?v=(u=t.__c=n.__c).__=u.__E:(m?t.__c=u=new A(y,w):(t.__c=u=new Ue(y,w),u.constructor=A,u.render=ru),_&&_.sub(u),u.state||(u.state={}),u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),m&&u.__s==null&&(u.__s=u.state),m&&A.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=et({},u.__s)),et(u.__s,A.getDerivedStateFromProps(y,u.__s))),d=u.props,g=u.state,u.__v=t,p)m&&A.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),m&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(m&&A.getDerivedStateFromProps==null&&y!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,w),t.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,w)===!1){t.__v!=n.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),Wn.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,w),m&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,g,h)})}if(u.context=w,u.props=y,u.__P=e,u.__e=!1,S=V.__r,E=0,m)u.state=u.__s,u.__d=!1,S&&S(t),f=u.render(u.props,u.state,u.context),Wn.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,S&&S(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(r=et(et({},r),u.getChildContext())),m&&!p&&u.getSnapshotBeforeUpdate!=null&&(h=u.getSnapshotBeforeUpdate(d,g)),x=f!=null&&f.type===Ee&&f.key==null?ts(f.props.children):f,a=Xi(e,xn(x)?x:[x],t,n,r,o,i,s,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),v&&(u.__E=u.__=null)}catch(T){if(t.__v=null,l||i!=null)if(T.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(O=i.length;O--;)Gr(i[O]);Zr(t)}else t.__e=n.__e,t.__k=n.__k,T.then||Zr(t);V.__e(T,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=nu(n.__e,t,n,r,o,i,s,l,c);return(f=V.diffed)&&f(t),128&t.__u?void 0:a}function Zr(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Zr))}function es(e,t,n){for(var r=0;r<n.length;r++)Jr(n[r],n[++r],n[++r]);V.__c&&V.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){V.__e(i,o.__v)}})}function ts(e){return typeof e!="object"||e==null||e.__b>0?e:xn(e)?e.map(ts):et({},e)}function nu(e,t,n,r,o,i,s,a,l){var c,f,u,p,d,g,h,v=n.props||Un,y=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((d=i[c])&&"setAttribute"in d==!!m&&(m?d.localName==m:d.nodeType==3)){e=d,i[c]=null;break}}if(e==null){if(m==null)return document.createTextNode(y);e=document.createElementNS(o,m,y.is&&y),a&&(V.__m&&V.__m(t,i),a=!1),i=null}if(m==null)v===y||a&&e.data==y||(e.data=y);else{if(i=i&&bn.call(e.childNodes),!a&&i!=null)for(v={},c=0;c<e.attributes.length;c++)v[(d=e.attributes[c]).name]=d.value;for(c in v)d=v[c],c=="dangerouslySetInnerHTML"?u=d:c=="children"||c in y||c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y||Yn(e,c,null,d,o);for(c in y)d=y[c],c=="children"?p=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?g=d:c=="checked"?h=d:a&&typeof d!="function"||v[c]===d||Yn(e,c,d,v[c],o);if(f)a||u&&(f.__html==u.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Xi(t.type=="template"?e.content:e,xn(p)?p:[p],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Wt(n,0),a,l),i!=null)for(c=i.length;c--;)Gr(i[c]);a||(c="value",m=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[c]||m=="progress"&&!g||m=="option"&&g!=v[c])&&Yn(e,c,g,v[c],o),c="checked",h!=null&&h!=e[c]&&Yn(e,c,h,v[c],o))}return e}function Jr(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){V.__e(o,n)}}function ns(e,t,n){var r,o;if(V.unmount&&V.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Jr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){V.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ns(r[o],t,n||typeof e.type!="function");n||Gr(e.__e),e.__c=e.__=e.__e=void 0}function ru(e,t,n){return this.constructor(e,n)}function zt(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),V.__&&V.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Xr(t,e=(!r&&n||t).__k=be(Ee,null,[e]),o||Un,Un,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?bn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),es(i,e,s)}function Qr(e,t){zt(e,t,Qr)}function ou(e,t,n){var r,o,i,s,a=et({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?bn.call(arguments,2):n),En(e.type,a,r||e.key,o||e.ref,null)}function We(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,Kr(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+Gi++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}bn=Wn.slice,V={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Hi=0,Ui=function(e){return e!=null&&e.constructor===void 0},Ue.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=et({},this.state),typeof e=="function"&&(e=e(et({},n),this.props)),e&&et(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Kr(this))},Ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Kr(this))},Ue.prototype.render=Ee,At=[],zi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Yi=function(e,t){return e.__v.__b-t.__v.__b},zn.__r=0,qi=/(PointerCapture)$|Capture$/i,zr=0,Yr=Qi(!1),qr=Qi(!0),Gi=0;var iu="diffed",rs="__c",eo="__s",Yt="__c",os="__k",to="__d",qt="__s",is=/[\s\n\\/='"\0<>]/,ss=/^(xlink|xmlns|xml)([A-Z])/,su=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,au=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,cu=new Set(["draggable","spellcheck"]);function as(e){e.__g!==void 0?e.__g|=8:e[to]=!0}function lu(e){e.__g!==void 0?e.__g&=-9:e[to]=!1}function cs(e){return e.__g!==void 0?!!(8&e.__g):e[to]===!0}var uu=/["&<]/;function qn(e){if(e.length===0||uu.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var ls={},fu=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),du=/[A-Z]/g;function pu(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:ls[n]||(ls[n]=n.replace(du,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||fu.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function us(){this.__d=!0}function hu(e,t){return{__v:e,context:t,props:e.props,setState:us,forceUpdate:us,__d:!0,__h:new Array(0)}}var no,jt,Sn,kn,ro={},fs=[],Gt=Array.isArray,oo=Object.assign,je="",io="<!--$s-->",so="<!--/$s-->";function gu(e,t,n){var r=V[eo];V[eo]=!0,no=V.__b,jt=V[iu],Sn=V.__r,kn=V.unmount;var o=be(Ee,null);o[os]=[e];try{var i=_t(e,t||ro,!1,void 0,o,!1,n);return Gt(i)?i.join(je):i}catch(s){throw s.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):s}finally{V[rs]&&V[rs](e,fs),V[eo]=r,fs.length=0}}function ds(e,t){var n,r=e.type,o=!0;return e[Yt]?(o=!1,(n=e[Yt]).state=n[qt]):n=new r(e.props,t),e[Yt]=n,n.__v=e,n.props=e.props,n.context=t,as(n),n.state==null&&(n.state=ro),n[qt]==null&&(n[qt]=n.state),r.getDerivedStateFromProps?n.state=oo({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[qt]!==n.state?n[qt]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),Sn&&Sn(e),n.render(n.props,n.state,t)}function _t(e,t,n,r,o,i,s){if(e==null||e===!0||e===!1||e===je)return je;var a=typeof e;if(a!="object")return a=="function"?je:a=="string"?qn(e):e+je;if(Gt(e)){var l,c=je;o[os]=e;for(var f=e.length,u=0;u<f;u++){var p=e[u];if(p!=null&&typeof p!="boolean"){var d,g=_t(p,t,n,r,o,i,s);typeof g=="string"?c+=g:(l||(l=new Array(f)),c&&l.push(c),c=je,Gt(g)?(d=l).push.apply(d,g):l.push(g))}}return l?(c&&l.push(c),l):c}if(e.constructor!==void 0)return je;e.__=o,no&&no(e);var h=e.type,v=e.props;if(typeof h=="function"){var y,m,_,w=t;if(h===Ee){if("tpl"in v){for(var S=je,E=0;E<v.tpl.length;E++)if(S+=v.tpl[E],v.exprs&&E<v.exprs.length){var x=v.exprs[E];if(x==null)continue;typeof x!="object"||x.constructor!==void 0&&!Gt(x)?S+=x:S+=_t(x,t,n,r,e,i,s)}return S}if("UNSTABLE_comment"in v)return"<!--"+qn(v.UNSTABLE_comment)+"-->";m=v.children}else{if((y=h.contextType)!=null){var O=t[y.__c];w=O?O.props.value:y.__}var A=h.prototype&&typeof h.prototype.render=="function";if(A)m=ds(e,w),_=e[Yt];else{e[Yt]=_=hu(e,w);for(var T=0;cs(_)&&T++<25;){lu(_),Sn&&Sn(e);try{m=h.call(_,v,w)}catch(ie){throw ie}}as(_)}if(_.getChildContext!=null&&(t=oo({},t,_.getChildContext())),A&&V.errorBoundaries&&(h.getDerivedStateFromError||_.componentDidCatch)){m=m!=null&&m.type===Ee&&m.key==null&&m.props.tpl==null?m.props.children:m;try{return _t(m,t,n,r,e,i,!1)}catch(ie){return h.getDerivedStateFromError&&(_[qt]=h.getDerivedStateFromError(ie)),_.componentDidCatch&&_.componentDidCatch(ie,ro),cs(_)?(m=ds(e,t),(_=e[Yt]).getChildContext!=null&&(t=oo({},t,_.getChildContext())),_t(m=m!=null&&m.type===Ee&&m.key==null&&m.props.tpl==null?m.props.children:m,t,n,r,e,i,s)):je}finally{jt&&jt(e),kn&&kn(e)}}}m=m!=null&&m.type===Ee&&m.key==null&&m.props.tpl==null?m.props.children:m;try{var D=_t(m,t,n,r,e,i,s);return jt&&jt(e),V.unmount&&V.unmount(e),e._suspended?typeof D=="string"?io+D+so:Gt(D)?(D.unshift(io),D.push(so),D):D.then(function(ie){return io+ie+so}):D}catch(ie){if(s&&s.onError){var j=(function M(W){return s.onError(W,e,function(se,Q){try{return _t(se,t,n,r,Q,i,s)}catch(ee){return M(ee)}})})(ie);if(j!==void 0)return j;var k=V.__e;return k&&k(ie,e),je}throw ie}}var $,R="<"+h,N=je;for(var F in v){var b=v[F];if(typeof(b=vu(b)?b.value:b)!="function"||F==="class"||F==="className"){switch(F){case"children":$=b;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in v)continue;F="for";break;case"className":if("class"in v)continue;F="class";break;case"defaultChecked":F="checked";break;case"defaultSelected":F="selected";break;case"defaultValue":case"value":switch(F="value",h){case"textarea":$=b;continue;case"select":r=b;continue;case"option":r!=b||"selected"in v||(R+=" selected")}break;case"dangerouslySetInnerHTML":N=b&&b.__html;continue;case"style":typeof b=="object"&&(b=pu(b));break;case"acceptCharset":F="accept-charset";break;case"httpEquiv":F="http-equiv";break;default:if(ss.test(F))F=F.replace(ss,"$1:$2").toLowerCase();else{if(is.test(F))continue;F[4]!=="-"&&!cu.has(F)||b==null?n?au.test(F)&&(F=F==="panose1"?"panose-1":F.replace(/([A-Z])/g,"-$1").toLowerCase()):su.test(F)&&(F=F.toLowerCase()):b+=je}}b!=null&&b!==!1&&(R=b===!0||b===je?R+" "+F:R+" "+F+'="'+(typeof b=="string"?qn(b):b+je)+'"')}}if(is.test(h))throw new Error(h+" is not a valid HTML tag name in "+R+">");if(N||(typeof $=="string"?N=qn($):$!=null&&$!==!1&&$!==!0&&(N=_t($,t,h==="svg"||h!=="foreignObject"&&n,r,e,i,s))),jt&&jt(e),kn&&kn(e),!N&&mu.has(h))return R+"/>";var I="</"+h+">",G=R+">";return Gt(N)?[G].concat(N,[I]):typeof N!="string"?[G,N,I]:G+N+I}var mu=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function vu(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}var yu=0;function P(e,t,n,r,o,i){t||(t={});var s,a,l=t;if("ref"in l)for(a in l={},t)a=="ref"?s=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--yu,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return V.vnode&&V.vnode(c),c}const _u={bell:P("path",{d:"M10 17a2.4 2.4 0 0 0 2.5 2.3A2.4 2.4 0 0 0 15 17m-7.5-6.5c0-4 1.9-6 5-6s5 2 5 6c0 3.3 1 4.3 1.4 5.1v.6c0 .2-.3.3-.5.3H6.7a.6.6 0 0 1-.5-.3.6.6 0 0 1 0-.6c.5-.8 1.3-1.9 1.3-5.1Z"}),x:P("path",{d:"M8 8l8 8M8 16l8 -8"}),"chevron-up-down":P("path",{d:"M8 9l4 -4l4 4 M8 15l4 4l4 -4"})},wu=({theme:e})=>P("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:P("defs",{children:Object.entries(_u).map(([t,n])=>P("symbol",{id:`i-icon-${t}`,children:P("g",{fill:"none","stroke-width":e.mode==="dark"?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})}))})}),ps=({name:e,...t})=>P("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:P("use",{href:`#i-icon-${e}`})});var ht,he,ao,hs,Kt=0,gs=[],ye=V,ms=ye.__b,vs=ye.__r,ys=ye.diffed,_s=ye.__c,ws=ye.unmount,bs=ye.__;function $t(e,t){ye.__h&&ye.__h(he,e,Kt||t),Kt=0;var n=he.__H||(he.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function _e(e){return Kt=1,Gn(Es,e)}function Gn(e,t,n){var r=$t(ht++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Es(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=he,!he.__f)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,l,c);var u=r.__c.props!==a;return f.some(function(p){if(p.__N){var d=p.__[0];p.__=p.__N,p.__N=void 0,d!==p.__[0]&&(u=!0)}}),i&&i.call(this,a,l,c)||u};he.__f=!0;var i=he.shouldComponentUpdate,s=he.componentWillUpdate;he.componentWillUpdate=function(a,l,c){if(this.__e){var f=i;i=void 0,o(a,l,c),i=f}s&&s.call(this,a,l,c)},he.shouldComponentUpdate=o}return r.__N||r.__}function ge(e,t){var n=$t(ht++,3);!ye.__s&&uo(n.__H,t)&&(n.__=e,n.u=t,he.__H.__h.push(n))}function gt(e,t){var n=$t(ht++,4);!ye.__s&&uo(n.__H,t)&&(n.__=e,n.u=t,he.__h.push(n))}function z(e){return Kt=5,q(function(){return{current:e}},[])}function Kn(e,t,n){Kt=6,gt(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function q(e,t){var n=$t(ht++,7);return uo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fe(e,t){return Kt=8,q(function(){return e},t)}function Fe(e){var t=he.context[e.__c],n=$t(ht++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(he)),t.props.value):e.__}function wt(e,t){ye.useDebugValue&&ye.useDebugValue(t?t(e):e)}function bu(e){var t=$t(ht++,10),n=_e();return t.__=e,he.componentDidCatch||(he.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function co(){var e=$t(ht++,11);if(!e.__){for(var t=he.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function xu(){for(var e;e=gs.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Xn),t.__h.some(lo),t.__h=[]}catch(n){t.__h=[],ye.__e(n,e.__v)}}}ye.__b=function(e){he=null,ms&&ms(e)},ye.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bs&&bs(e,t)},ye.__r=function(e){vs&&vs(e),ht=0;var t=(he=e.__c).__H;t&&(ao===he?(t.__h=[],he.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Xn),t.__h.some(lo),t.__h=[],ht=0)),ao=he},ye.diffed=function(e){ys&&ys(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gs.push(t)!==1&&hs===ye.requestAnimationFrame||((hs=ye.requestAnimationFrame)||Eu)(xu)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ao=he=null},ye.__c=function(e,t){t.some(function(n){try{n.__h.some(Xn),n.__h=n.__h.filter(function(r){return!r.__||lo(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ye.__e(r,n.__v)}}),_s&&_s(e,t)},ye.unmount=function(e){ws&&ws(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Xn(r)}catch(o){t=o}}),n.__H=void 0,t&&ye.__e(t,n.__v))};var xs=typeof requestAnimationFrame=="function";function Eu(e){var t,n=function(){clearTimeout(r),xs&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);xs&&(t=requestAnimationFrame(n))}function Xn(e){var t=he,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),he=t}function lo(e){var t=he;e.__c=e.__(),he=t}function uo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Es(e,t){return typeof t=="function"?t(e):t}function Ss(e,t){for(var n in t)e[n]=t[n];return e}function fo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function po(e,t){var n=t(),r=_e({t:{__:n,u:t}}),o=r[0].t,i=r[1];return gt(function(){o.__=n,o.u=t,ho(o)&&i({t:o})},[e,n,t]),ge(function(){return ho(o)&&i({t:o}),e(function(){ho(o)&&i({t:o})})},[e]),n}function ho(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function go(e){e()}function mo(e){return e}function vo(){return[!1,go]}var yo=gt;function Zn(e,t){this.props=e,this.context=t}function ks(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:fo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,be(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Zn.prototype=new Ue).isPureReactComponent=!0,Zn.prototype.shouldComponentUpdate=function(e,t){return fo(this.props,e)||fo(this.state,t)};var Rs=V.__b;V.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Rs&&Rs(e)};var Su=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tt(e){function t(n){var r=Ss({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Su,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Os=function(e,t){return e==null?null:pt(pt(e).map(t))},Ts={map:Os,forEach:Os,count:function(e){return e?pt(e).length:0},only:function(e){var t=pt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:pt},ku=V.__e;V.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}ku(e,t,n,r)};var Cs=V.unmount;function Ps(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ss({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ps(r,t,n)})),e}function As(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return As(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Rn(){this.__u=0,this.o=null,this.__b=null}function Is(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function js(e){var t,n,r,o=null;function i(s){if(t||(t=e()).then(function(a){a&&(o=a.default||a),r=!0},function(a){n=a,r=!0}),n)throw n;if(!r)throw t;return o?be(o,s):null}return i.displayName="Lazy",i.__f=!0,i}function Xt(){this.i=null,this.l=null}V.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Cs&&Cs(e)},(Rn.prototype=new Ue).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Is(r.__v),i=!1,s=function(){i||r.__z||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var a=n.__P;n.__P=null;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=As(c,c.__c.__P,c.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.__P=a,f.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Rn.prototype.componentWillUnmount=function(){this.o=[]},Rn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ps(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&be(Ee,null,e.fallback);return o&&(o.__u&=-33),[be(Ee,null,t.__a?null:e.children),o]};var $s=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Ru(e){return this.getChildContext=function(){return e.context},e.children}function Ou(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){zt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}zt(be(Ru,{context:t.context},e.__v),t.v)}function Jn(e,t){var n=be(Ou,{__v:e,h:t});return n.containerInfo=t,n}(Xt.prototype=new Ue).__a=function(e){var t=this,n=Is(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),$s(t,e,r)):o()};n?n(i):i()}},Xt.prototype.render=function(e){this.i=null,this.l=new Map;var t=pt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Xt.prototype.componentDidUpdate=Xt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){$s(e,n,t)})};var Ns=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Cu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pu=/[A-Z0-9]/g,Au=typeof document<"u",Iu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ds(e,t,n){return t.__k==null&&(t.textContent=""),zt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ls(e,t,n){return Qr(e,t),typeof n=="function"&&n(),e?e.__c:null}Ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ms=V.event;function ju(){}function $u(){return this.cancelBubble}function Nu(){return this.defaultPrevented}V.event=function(e){return Ms&&(e=Ms(e)),e.persist=ju,e.isPropagationStopped=$u,e.isDefaultPrevented=Nu,e.nativeEvent=e};var _o,Du={enumerable:!1,configurable:!0,get:function(){return this.class}},Fs=V.vnode;V.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Au&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Iu(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Cu.test(s)&&(s=l):l=s="oninput":i&&Tu.test(s)?s=s.replace(Pu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=pt(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=pt(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Du)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=Ns,Fs&&Fs(e)};var Vs=V.__r;V.__r=function(e){Vs&&Vs(e),_o=e.__c};var Bs=V.diffed;V.diffed=function(e){Bs&&Bs(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),_o=null};var Hs={ReactCurrentDispatcher:{current:{readContext:function(e){return _o.__n[e.__c].props.value},useCallback:fe,useContext:Fe,useDebugValue:wt,useDeferredValue:mo,useEffect:ge,useId:co,useImperativeHandle:Kn,useInsertionEffect:yo,useLayoutEffect:gt,useMemo:q,useReducer:Gn,useRef:z,useState:_e,useSyncExternalStore:po,useTransition:vo}}},Us="18.3.1";function Ws(e){return be.bind(null,e)}function Zt(e){return!!e&&e.$$typeof===Ns}function zs(e){return Zt(e)&&e.type===Ee}function Ys(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function wo(e){return Zt(e)?ou.apply(null,arguments):e}function qs(e){return!!e.__k&&(zt(null,e),!0)}function Gs(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ks=function(e,t){return e(t)},nt=function(e,t){return e(t)},Xs=Ee,Zs=Zt,Lu={useState:_e,useId:co,useReducer:Gn,useEffect:ge,useLayoutEffect:gt,useInsertionEffect:yo,useTransition:vo,useDeferredValue:mo,useSyncExternalStore:po,startTransition:go,useRef:z,useImperativeHandle:Kn,useMemo:q,useCallback:fe,useContext:Fe,useDebugValue:wt,version:"18.3.1",Children:Ts,render:Ds,hydrate:Ls,unmountComponentAtNode:qs,createPortal:Jn,createElement:be,createContext:We,createFactory:Ws,cloneElement:wo,createRef:It,Fragment:Ee,isValidElement:Zt,isElement:Zs,isFragment:zs,isMemo:Ys,findDOMNode:Gs,Component:Ue,PureComponent:Zn,memo:ks,forwardRef:tt,flushSync:nt,unstable_batchedUpdates:Ks,StrictMode:Xs,Suspense:Rn,SuspenseList:Xt,lazy:js,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hs};const bo=Object.freeze(Object.defineProperty({__proto__:null,Children:Ts,Component:Ue,Fragment:Ee,PureComponent:Zn,StrictMode:Xs,Suspense:Rn,SuspenseList:Xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hs,cloneElement:wo,createContext:We,createElement:be,createFactory:Ws,createPortal:Jn,createRef:It,default:Lu,findDOMNode:Gs,flushSync:nt,forwardRef:tt,hydrate:Ls,isElement:Zs,isFragment:zs,isMemo:Ys,isValidElement:Zt,lazy:js,memo:ks,render:Ds,startTransition:go,unmountComponentAtNode:qs,unstable_batchedUpdates:Ks,useCallback:fe,useContext:Fe,useDebugValue:wt,useDeferredValue:mo,useEffect:ge,useErrorBoundary:bu,useId:co,useImperativeHandle:Kn,useInsertionEffect:yo,useLayoutEffect:gt,useMemo:q,useReducer:Gn,useRef:z,useState:_e,useSyncExternalStore:po,useTransition:vo,version:Us},Symbol.toStringTag,{value:"Module"}));function Qn(){return typeof window<"u"}function er(e){return xo(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mu(e){var t;return(t=(xo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xo(e){return Qn()?e instanceof Node||e instanceof rt(e).Node:!1}function Te(e){return Qn()?e instanceof Element||e instanceof rt(e).Element:!1}function ot(e){return Qn()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function Eo(e){return!Qn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const Fu=new Set(["inline","contents"]);function Js(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Fu.has(o)}function Vu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Bu=new Set(["html","body","#document"]);function So(e){return Bu.has(er(e))}function tr(e){return rt(e).getComputedStyle(e)}function Hu(e){if(er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Eo(e)&&e.host||Mu(e);return Eo(t)?t.host:t}const Jt=typeof navigator<"u",ko=qu(),Qs=Ku(),ea=Gu(),Uu=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Wu=ko.platform==="MacIntel"&&ko.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(ko.platform),zu=Jt&&/apple/i.test(navigator.vendor),Ro=Jt&&/android/i.test(Qs)||/android/i.test(ea);Jt&&Qs.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const Yu=ea.includes("jsdom/");function qu(){if(!Jt)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e!=null&&e.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function Gu(){if(!Jt)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Ku(){if(!Jt)return"";const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform??""}function Qt(e){return(e==null?void 0:e.ownerDocument)||document}const ae=typeof document<"u"?gt:()=>{},ta={};function it(e,t){const n=z(ta);return n.current===ta&&(n.current=e(t)),n}const Xu=[];function Oo(e){ge(e,Xu)}const On=0;class bt{constructor(){ue(this,"currentId",On);ue(this,"clear",()=>{this.currentId!==On&&(clearTimeout(this.currentId),this.currentId=On)});ue(this,"disposeEffect",()=>this.clear)}static create(){return new bt}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=On,n()},t)}isStarted(){return this.currentId!==On}}function Nt(){const e=it(bt.create).current;return Oo(e.disposeEffect),e}const nr=null;let na=globalThis.requestAnimationFrame;class Zu{constructor(){ue(this,"callbacks",[]);ue(this,"callbacksCount",0);ue(this,"nextId",1);ue(this,"startId",1);ue(this,"isScheduled",!1);ue(this,"tick",t=>{var o;this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let i=0;i<n.length;i+=1)(o=n[i])==null||o.call(n,t)})}request(t){const n=this.nextId;this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1;const r=process.env.NODE_ENV==="test"&&na!==requestAnimationFrame&&(na=requestAnimationFrame,!0);return(!this.isScheduled||r)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const rr=new Zu;class st{constructor(){ue(this,"currentId",nr);ue(this,"cancel",()=>{this.currentId!==nr&&(rr.cancel(this.currentId),this.currentId=nr)});ue(this,"disposeEffect",()=>this.cancel)}static create(){return new st}static request(t){return rr.request(t)}static cancel(t){return rr.cancel(t)}request(t){this.cancel(),this.currentId=rr.request(()=>{this.currentId=nr,t()})}}function or(){const e=it(st.create).current;return Oo(e.disposeEffect),e}function ra(){}const $e=Object.freeze({});let oa={},ia={},sa="";function Ju(e){if(typeof document>"u")return!1;const t=Qt(e);return rt(t).innerWidth-t.documentElement.clientWidth>0}function Qu(e){const t=Qt(e),n=t.documentElement,r=t.body,o=Js(n)?n:r,i=o.style.overflow;return o.style.overflow="hidden",()=>{o.style.overflow=i}}function ef(e){var p,d;const t=Qt(e),n=t.documentElement,r=t.body,o=rt(n);let i=0,s=0;const a=st.create(),l=typeof CSS<"u"&&((p=CSS.supports)==null?void 0:p.call(CSS,"scrollbar-gutter","stable"));if(Uu&&(((d=o.visualViewport)==null?void 0:d.scale)??1)!==1)return()=>{};function c(){const g=o.getComputedStyle(n),h=o.getComputedStyle(r),m=(g.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,s=n.scrollLeft,oa={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},sa=n.style.scrollBehavior,ia={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const _=n.scrollHeight>n.clientHeight,w=n.scrollWidth>n.clientWidth,S=g.overflowY==="scroll"||h.overflowY==="scroll",E=g.overflowX==="scroll"||h.overflowX==="scroll",x=Math.max(0,o.innerWidth-n.clientWidth),O=Math.max(0,o.innerHeight-n.clientHeight),A=parseFloat(h.marginTop)+parseFloat(h.marginBottom),T=parseFloat(h.marginLeft)+parseFloat(h.marginRight),D=Js(n)?n:r;if(l){n.style.scrollbarGutter=m,D.style.overflowY="hidden",D.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:m,overflowY:"hidden",overflowX:"hidden"}),(_||S)&&(n.style.overflowY="scroll"),(w||E)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:A||O?`calc(100dvh - ${A+O}px)`:"100dvh",width:T||x?`calc(100vw - ${T+x}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=s,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function f(){Object.assign(n.style,oa),Object.assign(r.style,ia),l||(n.scrollTop=i,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=sa)}function u(){f(),a.request(c)}return c(),o.addEventListener("resize",u),()=>{a.cancel(),f(),typeof o.removeEventListener=="function"&&o.removeEventListener("resize",u)}}class tf{constructor(){ue(this,"lockCount",0);ue(this,"restore",null);ue(this,"timeoutLock",bt.create());ue(this,"timeoutUnlock",bt.create());ue(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});ue(this,"unlock",()=>{var t;this.lockCount===0&&this.restore&&((t=this.restore)==null||t.call(this),this.restore=null)})}acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}lock(t){if(this.lockCount===0||this.restore!==null)return;const r=Qt(t).documentElement,o=rt(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=ra;return}const i=Wu||!Ju(t);this.restore=i?Qu(t):ef(t)}}const nf=new tf;function rf(e=!0,t=null){ae(()=>{if(e)return nf.acquire(t)},[e,t])}function Ke(e){const t=it(of,e).current;return t.next=e,ae(t.effect),t}function of(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const To=bo[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],sf=To&&To!==gt?To:e=>e();function J(e){const t=it(af).current;return t.next=e,sf(t.effect),t.trampoline}function af(){const e={next:void 0,callback:cf,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function cf(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}const Co="data-base-ui-focusable",aa="active",ca="selected",la="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function en(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function de(e,t){var r;if(!e||!t)return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e.contains(t))return!0;if(n&&Eo(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function ze(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Xe(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function lf(e){return e.matches("html,body")}function Oe(e){return(e==null?void 0:e.ownerDocument)||document}function ua(e){return ot(e)&&e.matches(la)}function fa(e){return e?e.getAttribute("role")==="combobox"&&ua(e):!1}function Po(e){return e?e.hasAttribute(Co)?e:e.querySelector(`[${Co}]`)||e:null}function Dt(e,t,n=!0){return e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...Dt(e,o.id,n)])}function da(e,t){var o;let n=[],r=(o=e.find(i=>i.id===t))==null?void 0:o.parentId;for(;r;){const i=e.find(s=>s.id===r);r=i==null?void 0:i.parentId,i&&(n=n.concat(i))}return n}function uf(e){e.preventDefault(),e.stopPropagation()}function ff(e){return"nativeEvent"in e}function df(e){return e.mozInputSource===0&&e.isTrusted?!0:Ro&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function pf(e){return Yu?!1:!Ro&&e.width===0&&e.height===0||Ro&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function tn(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function pa(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function xt(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const hf=Math.min,gf=Math.max,ha=Math.round;function mf(e,t,n){return gf(e,hf(t,n))}function vf(e,t){return typeof e=="function"?e(t):e}function nn(e){return e.split("-")[0]}function Ao(e){return e.split("-")[1]}function yf(e){return e==="x"?"y":"x"}function _f(e){return e==="y"?"height":"width"}const wf=new Set(["top","bottom"]);function Io(e){return wf.has(nn(e))?"y":"x"}function bf(e){return yf(Io(e))}function xf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ef(e){return typeof e!="number"?xf(e):{top:e,right:e,bottom:e,left:e}}var Sf=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ir=Sf.join(","),ga=typeof Element>"u",rn=ga?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sr=!ga&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Tn=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&Tn(t.parentNode);return s},kf=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},ma=function(t,n,r){if(Tn(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ir));return n&&rn.call(t,ir)&&o.unshift(t),o=o.filter(r),o},ar=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!Tn(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),l=a.length?a:s.children,c=ar(l,!0,r);r.flatten?o.push.apply(o,c):o.push({scopeParent:s,candidates:c})}else{var f=rn.call(s,ir);f&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var u=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),p=!Tn(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(u&&p){var d=ar(u===!0?s.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return o},va=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ya=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||kf(t))&&!va(t)?0:t.tabIndex},Rf=function(t,n){var r=ya(t);return r<0&&n&&!va(t)?0:r},Of=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},_a=function(t){return t.tagName==="INPUT"},Tf=function(t){return _a(t)&&t.type==="hidden"},Cf=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Pf=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Af=function(t){if(!t.name)return!0;var n=t.form||sr(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=Pf(o,t.form);return!i||i===t},If=function(t){return _a(t)&&t.type==="radio"},jf=function(t){return If(t)&&!Af(t)},$f=function(t){var n,r=t&&sr(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,a,l;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&o;){var c,f,u;r=sr(o),o=(c=r)===null||c===void 0?void 0:c.host,i=!!((f=o)!==null&&f!==void 0&&(u=f.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},wa=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Nf=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var s=rn.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(rn.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var c=t.parentElement,f=sr(t);if(c&&!c.shadowRoot&&o(c)===!0)return wa(t);t.assignedSlot?t=t.assignedSlot:!c&&f!==t.ownerDocument?t=f.host:t=c}t=l}if($f(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return wa(t);return!1},Df=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return rn.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},jo=function(t,n){return!(n.disabled||Tn(n)||Tf(n)||Nf(n,t)||Cf(n)||Df(n))},$o=function(t,n){return!(jf(n)||ya(n)<0||!jo(t,n))},Lf=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},ba=function(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,l=Rf(a,s),c=s?ba(o.candidates):a;l===0?s?n.push.apply(n,c):n.push(a):r.push({documentOrder:i,tabIndex:l,item:o,isScope:s,content:c})}),r.sort(Of).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Cn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ar([t],n.includeContainer,{filter:$o.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Lf}):r=ma(t,n.includeContainer,$o.bind(null,n)),ba(r)},Mf=function(t,n){n=n||{};var r;return n.getShadowRoot?r=ar([t],n.includeContainer,{filter:jo.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=ma(t,n.includeContainer,jo.bind(null,n)),r},xa=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return rn.call(t,ir)===!1?!1:$o(n,t)};const on=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ea(e,t){const n=Cn(e,on()),r=n.length;if(r===0)return;const o=en(Oe(e)),i=n.indexOf(o),s=i===-1?t===1?0:r-1:i+t;return n[s]}function No(e){return Ea(Oe(e).body,1)||e}function Sa(e){return Ea(Oe(e).body,-1)||e}function ka(e,t){if(!e)return null;const n=Cn(Oe(e).body,on()),r=n.length;if(r===0)return null;const o=n.indexOf(e);if(o===-1)return null;const i=(o+t+r)%r;return n[i]}function Ff(e){return ka(e,1)}function Vf(e){return ka(e,-1)}function sn(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!de(n,r)}function Bf(e){Cn(e,on()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Ra(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Hf={...bo};let Oa=0;function Uf(e,t="mui"){const[n,r]=_e(e),o=e||n;return ge(()=>{n==null&&(Oa+=1,r(`${t}-${Oa}`))},[n,t]),o}const Ta=Hf.useId;function an(e,t){if(Ta!==void 0){const n=Ta();return e??(t?`${t}-${n}`:n)}return Uf(e,t)}function Ca(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}class Wf{constructor(){ue(this,"nodesRef",{current:[]});ue(this,"events",Ca())}addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const Do=We(null);process.env.NODE_ENV!=="production"&&(Do.displayName="FloatingNodeContext");const Lo=We(null);process.env.NODE_ENV!=="production"&&(Lo.displayName="FloatingTreeContext");const Lt=()=>{var e;return((e=Fe(Do))==null?void 0:e.id)||null},cn=e=>{const t=Fe(Lo);return e??t};function zf(e){const t=an(),n=cn(e),r=Lt();return ae(()=>{if(!t)return;const o={id:t,parentId:r};return n==null||n.addNode(o),()=>{n==null||n.removeNode(o)}},[n,t,r]),t}function Yf(e){const{children:t,id:n}=e,r=Lt();return P(Do.Provider,{value:q(()=>({id:n,parentId:r}),[n,r]),children:t})}function qf(e){const{children:t,externalTree:n}=e,r=it(()=>n??new Wf).current;return P(Lo.Provider,{value:r,children:t})}const Gf=500,Kf={style:{transition:"none"}},Pa="data-base-ui-click-trigger",Xf={fallbackAxisSide:"end"},Zf={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Jf="none",Et="trigger-press",Ye="trigger-hover",Aa="outside-press",Pn="focus-out",Ia="escape-key",Qf="imperative-action";function ke(e,t,n,r){let o=!1,i=!1;const s=$e;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...s}}function An(e){return`data-base-ui-${e}`}function Mo(e,t,n){if(n&&!tn(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function cr(e,t,n,r){const o=it(ja).current;return td(o,e,t,n,r)&&$a(o,[e,t,n,r]),o.callback}function ed(e){const t=it(ja).current;return nd(t,e)&&$a(t,e),t.callback}function ja(){return{callback:null,cleanup:null,refs:[]}}function td(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function nd(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function $a(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const s=i(n);typeof s=="function"&&(r[o]=s);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const s=r[o];typeof s=="function"?s():i(null);break}case"object":{i.current=null;break}}}}}}}const Na={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1},Mt=tt(function(t,n){const[r,o]=_e();return ae(()=>{zu&&o("button")},[]),P("span",{...t,ref:n,style:Na,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});process.env.NODE_ENV!=="production"&&(Mt.displayName="FocusGuard");let Da=0;function Fo(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Da);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():Da=requestAnimationFrame(i)}const ln={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function La(e){return e==="inert"?ln.inert:e==="aria-hidden"?ln["aria-hidden"]:ln.none}let lr=new WeakSet,ur={},Vo=0;const Ma=e=>e&&(e.host||Ma(e.parentNode)),rd=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Ma(n);return e.contains(r)?r:null}).filter(n=>n!=null);function od(e,t,n,r){const o="data-base-ui-inert",i=r?"inert":n?"aria-hidden":null,s=rd(t,e),a=new Set,l=new Set(s),c=[];ur[o]||(ur[o]=new WeakMap);const f=ur[o];s.forEach(u),p(t),a.clear();function u(d){!d||a.has(d)||(a.add(d),d.parentNode&&u(d.parentNode))}function p(d){!d||l.has(d)||[].forEach.call(d.children,g=>{if(er(g)!=="script")if(a.has(g))p(g);else{const h=i?g.getAttribute(i):null,v=h!==null&&h!=="false",y=La(i),m=(y.get(g)||0)+1,_=(f.get(g)||0)+1;y.set(g,m),f.set(g,_),c.push(g),m===1&&v&&lr.add(g),_===1&&g.setAttribute(o,""),!v&&i&&g.setAttribute(i,i==="inert"?"":"true")}})}return Vo+=1,()=>{c.forEach(d=>{const g=La(i),v=(g.get(d)||0)-1,y=(f.get(d)||0)-1;g.set(d,v),f.set(d,y),v||(!lr.has(d)&&i&&d.removeAttribute(i),lr.delete(d)),y||d.removeAttribute(o)}),Vo-=1,Vo||(ln.inert=new WeakMap,ln["aria-hidden"]=new WeakMap,ln.none=new WeakMap,lr=new WeakSet,ur={})}}function id(e,t=!1,n=!1){const r=Oe(e[0]).body;return od(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const sd=parseInt(Us,10);function Bo(e){return sd>=e}function Fa(e){if(!Zt(e))return null;const t=e,n=t.props;return(Bo(19)?n==null?void 0:n.ref:t.ref)??null}function Ho(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function ad(e,t){const n={};for(const r in e){const o=e[r];if(t!=null&&t.hasOwnProperty(r)){const i=t[r](o);i!=null&&Object.assign(n,i);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function cd(e,t){return typeof e=="function"?e(t):e}function ld(e,t){return typeof e=="function"?e(t):e}const In={};function Va(e,t,n,r,o){let i={...Uo(e,In)};return t&&(i=fr(i,t)),n&&(i=fr(i,n)),r&&(i=fr(i,r)),i}function ud(e){if(e.length===0)return In;if(e.length===1)return Uo(e[0],In);let t={...Uo(e[0],In)};for(let n=1;n<e.length;n+=1)t=fr(t,e[n]);return t}function fr(e,t){return Ba(t)?t(e):fd(e,t)}function fd(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Ho(e.style,r);break}case"className":{e[n]=Ha(e.className,r);break}default:dd(n,r)?e[n]=pd(e[n],r):e[n]=r}}return e}function dd(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function Ba(e){return typeof e=="function"}function Uo(e,t){return Ba(e)?e(t):e??In}function pd(e,t){return t?e?n=>{if(hd(n)){const o=n;Wo(o);const i=t(o);return o.baseUIHandlerPrevented||e==null||e(o),i}const r=t(n);return e==null||e(n),r}:t:e}function Wo(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ha(e,t){return t?e?t+" "+e:t:e}function hd(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function dr(e,t,n={}){const r=t.render,o=gd(t,n);if(n.enabled===!1)return null;const i=n.state??$e;return md(e,r,o,i)}function gd(e,t={}){const{className:n,style:r,render:o}=e,{state:i=$e,ref:s,props:a,stateAttributesMapping:l,enabled:c=!0}=t,f=c?cd(n,i):void 0,u=c?ld(r,i):void 0,p=c?ad(i,l):$e,d=c?Ho(p,Array.isArray(a)?ud(a):a)??$e:$e;return typeof document<"u"&&(c?Array.isArray(s)?d.ref=ed([d.ref,Fa(o),...s]):d.ref=cr(d.ref,Fa(o),s):cr(null,null)),c?(f!==void 0&&(d.className=Ha(d.className,f)),u!==void 0&&(d.style=Ho(d.style,u)),d):$e}function md(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=Va(n,t.props);return o.ref=n.ref,wo(t,o)}if(e&&typeof e=="string")return vd(e,n);throw new Error(process.env.NODE_ENV!=="production"?"Base UI: Render element or function are not defined.":xt(8))}function vd(e,t){return e==="button"?be("button",{type:"button",...t,key:t.key}):e==="img"?be("img",{alt:"",...t,key:t.key}):be(e,t)}const zo=We(null);process.env.NODE_ENV!=="production"&&(zo.displayName="PortalContext");const Ua=()=>Fe(zo),yd=An("portal");function _d(e={}){const{ref:t,container:n,componentProps:r=$e,elementProps:o,elementState:i}=e,s=an(),a=Ua(),l=a==null?void 0:a.portalNode,[c,f]=_e(null),[u,p]=_e(null),d=z(null);ae(()=>{if(n===null){d.current&&(d.current=null,p(null),f(null));return}if(s==null)return;const v=(n&&(xo(n)?n:n.current))??l??document.body;if(v==null){d.current&&(d.current=null,p(null),f(null));return}d.current!==v&&(d.current=v,p(null),f(v))},[n,l,s]);const g=dr("div",r,{ref:[t,p],state:i,props:[{id:s,[yd]:""},o]});return{portalNode:u,portalSubtree:c&&g?Jn(g,c):null}}const Wa=tt(function(t,n){const{children:r,container:o,className:i,render:s,renderGuards:a,...l}=t,{portalNode:c,portalSubtree:f}=_d({container:o,ref:n,componentProps:t,elementProps:l}),u=z(null),p=z(null),d=z(null),g=z(null),[h,v]=_e(null),y=h==null?void 0:h.modal,m=h==null?void 0:h.open,_=typeof a=="boolean"?a:!!h&&!h.modal&&h.open&&!!c;ge(()=>{if(!c||y)return;function S(E){c&&sn(E)&&(E.type==="focusin"?Ra:Bf)(c)}return c.addEventListener("focusin",S,!0),c.addEventListener("focusout",S,!0),()=>{c.removeEventListener("focusin",S,!0),c.removeEventListener("focusout",S,!0)}},[c,y]),ge(()=>{!c||m||Ra(c)},[m,c]);const w=q(()=>({beforeOutsideRef:u,afterOutsideRef:p,beforeInsideRef:d,afterInsideRef:g,portalNode:c,setFocusManagerState:v}),[c]);return P(Ee,{children:[f,P(zo.Provider,{value:w,children:[_&&c&&P(Mt,{"data-type":"outside",ref:u,onFocus:S=>{var E;if(sn(S,c))(E=d.current)==null||E.focus();else{const x=h?h.domReference:null,O=Sa(x);O==null||O.focus()}}}),_&&c&&P("span",{"aria-owns":c.id,style:Zf}),c&&Jn(r,c),_&&c&&P(Mt,{"data-type":"outside",ref:p,onFocus:S=>{var E;if(sn(S,c))(E=g.current)==null||E.focus();else{const x=h?h.domReference:null,O=No(x);O==null||O.focus(),h!=null&&h.closeOnFocusOut&&(h==null||h.onOpenChange(!1,ke(Pn,S.nativeEvent)))}}})]})]})});process.env.NODE_ENV!=="production"&&(Wa.displayName="FloatingPortal");function Ft(e){return e==null?e:"current"in e?e.current:e}function wd(e,t){const n=rt(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const za=20;let St=[];function Yo(){St=St.filter(e=>e.isConnected)}function bd(e){Yo(),e&&er(e)!=="body"&&(St.push(e),St.length>za&&(St=St.slice(-za)))}function qo(){return Yo(),St[St.length-1]}function xd(e){if(!e)return null;const t=on();return xa(e,t)?e:Cn(e,t)[0]||e}function Ed(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():tr(e).display!=="none"}function Ya(e,t){var s;if(!t.current.includes("floating")&&!((s=e.getAttribute("role"))!=null&&s.includes("dialog")))return;const n=on(),o=Mf(e,n).filter(a=>{const l=a.getAttribute("data-tabindex")||"";return xa(a,n)||a.hasAttribute("data-tabindex")&&!l.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||o.length===0?i!=="0"&&e.setAttribute("tabindex","0"):(i!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Sd(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:i=!0,returnFocus:s=!0,restoreFocus:a=!1,modal:l=!0,closeOnFocusOut:c=!0,openInteractionType:f="",getInsideElements:u=()=>[],nextFocusableElement:p,previousFocusableElement:d,beforeContentFocusGuardRef:g,externalTree:h}=e,v="rootStore"in t?t.rootStore:t,y=v.useState("open"),m=v.useState("domReferenceElement"),_=v.useState("floatingElement"),{events:w,dataRef:S}=v.context,E=J(()=>{var L;return(L=S.current.floatingContext)==null?void 0:L.nodeId}),x=J(u),O=i===!1,A=fa(m)&&O,T=Ke(o),D=Ke(i),j=Ke(s),k=Ke(f),$=cn(h),R=Ua(),N=z(null),F=z(null),b=z(!1),I=z(!1),G=z(!1),ie=z(-1),M=z(""),W=z(""),se=Nt(),Q=Nt(),ee=or(),ne=R!=null,K=Po(_),Se=J((L=K)=>L?Cn(L,on()):[]),Re=J(L=>{const H=Se(L);return T.current.map(()=>H).filter(Boolean).flat()});ge(()=>{if(r||!l)return;function L(te){te.key==="Tab"&&de(K,en(Oe(K)))&&Se().length===0&&!A&&uf(te)}const H=Oe(K);return H.addEventListener("keydown",L),()=>{H.removeEventListener("keydown",L)}},[r,m,K,l,T,A,Se,Re]),ge(()=>{if(r||!_)return;function L(H){const te=ze(H),le=Se().indexOf(te);le!==-1&&(ie.current=le)}return _.addEventListener("focusin",L),()=>{_.removeEventListener("focusin",L)}},[r,_,Se]),ge(()=>{if(r||!y)return;const L=Oe(K);function H(){G.current=!1}function te(le){const X=ze(le),U=de(_,X)||de(m,X)||de(R==null?void 0:R.portalNode,X);G.current=!U,W.current=le.pointerType||"keyboard"}function oe(){W.current="keyboard"}return L.addEventListener("pointerdown",te,!0),L.addEventListener("pointerup",H,!0),L.addEventListener("pointercancel",H,!0),L.addEventListener("keydown",oe,!0),()=>{L.removeEventListener("pointerdown",te,!0),L.removeEventListener("pointerup",H,!0),L.removeEventListener("pointercancel",H,!0),L.removeEventListener("keydown",oe,!0)}},[r,_,m,K,y,R]),ge(()=>{if(r||!c)return;function L(){I.current=!0,Q.start(0,()=>{I.current=!1})}function H(X){const U=X.relatedTarget,xe=X.currentTarget,ve=ze(X);queueMicrotask(()=>{const Ne=E(),Ht=v.context.triggerElements,vn=!(de(m,U)||de(_,U)||de(U,_)||de(R==null?void 0:R.portalNode,U)||U!=null&&Ht.hasElement(U)||Ht.hasMatchingElement(Ie=>de(Ie,U))||U!=null&&U.hasAttribute(An("focus-guard"))||$&&(Dt($.nodesRef.current,Ne).find(Ie=>{var Le,De;return de((Le=Ie.context)==null?void 0:Le.elements.floating,U)||de((De=Ie.context)==null?void 0:De.elements.domReference,U)})||da($.nodesRef.current,Ne).find(Ie=>{var Le,De,ut;return[(Le=Ie.context)==null?void 0:Le.elements.floating,Po((De=Ie.context)==null?void 0:De.elements.floating)].includes(U)||((ut=Ie.context)==null?void 0:ut.elements.domReference)===U})));if(xe===m&&K&&Ya(K,T),a&&xe!==m&&!Ed(ve)&&en(Oe(K))===Oe(K).body){if(ot(K)&&(K.focus(),a==="popup")){ee.request(()=>{K.focus()});return}const Ie=ie.current,Le=Se(),De=Le[Ie]||Le[Le.length-1]||K;ot(De)&&De.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(A||!l)&&U&&vn&&!I.current&&(A||U!==qo())&&(b.current=!0,v.setOpen(!1,ke(Pn,X)))})}function te(){G.current||(S.current.insideReactTree=!0,se.start(0,()=>{S.current.insideReactTree=!1}))}const oe=ot(m)?m:null,le=[];if(!(!_&&!oe))return oe&&(oe.addEventListener("focusout",H),oe.addEventListener("pointerdown",L),le.push(()=>{oe.removeEventListener("focusout",H),oe.removeEventListener("pointerdown",L)})),_&&(_.addEventListener("focusout",H),R&&(_.addEventListener("focusout",te,!0),le.push(()=>{_.removeEventListener("focusout",te,!0)})),le.push(()=>{_.removeEventListener("focusout",H)})),()=>{le.forEach(X=>{X()})}},[r,m,_,K,l,$,R,v,c,a,Se,A,E,T,S,se,Q,ee]);const C=z(null),Y=z(null),B=cr(C,g,R==null?void 0:R.beforeInsideRef),Pe=cr(Y,R==null?void 0:R.afterInsideRef);ge(()=>{var X,U,xe;if(r||!_||!y)return;const L=Array.from(((X=R==null?void 0:R.portalNode)==null?void 0:X.querySelectorAll(`[${An("portal")}]`))||[]),te=(xe=(U=($?da($.nodesRef.current,E()):[]).find(ve=>{var Ne;return fa(((Ne=ve.context)==null?void 0:Ne.elements.domReference)||null)}))==null?void 0:U.context)==null?void 0:xe.elements.domReference,oe=[_,te,...L,...x(),N.current,F.current,C.current,Y.current,R==null?void 0:R.beforeOutsideRef.current,R==null?void 0:R.afterOutsideRef.current,Ft(d),Ft(p),A?m:null].filter(ve=>ve!=null),le=id(oe,l||A);return()=>{le()}},[y,r,m,_,l,T,R,A,$,E,x,p,d]),ae(()=>{if(!y||r||!ot(K))return;const L=Oe(K),H=en(L);queueMicrotask(()=>{const te=Re(K),oe=D.current,le=typeof oe=="function"?oe(k.current||""):oe;if(le===void 0||le===!1)return;let X;le===!0||le===null?X=te[0]||K:X=Ft(le),X=X||te[0]||K,!de(K,H)&&Fo(X,{preventScroll:X===K})})},[r,y,K,O,Re,D,k]),ae(()=>{if(r||!K)return;const L=Oe(K),H=en(L);bd(H);function te(X){if(X.open||(M.current=wd(X.nativeEvent,W.current)),X.reason===Ye&&X.nativeEvent.type==="mouseleave"&&(b.current=!0),X.reason===Aa)if(X.nested)b.current=!1;else if(df(X.nativeEvent)||pf(X.nativeEvent))b.current=!1;else{let U=!1;document.createElement("div").focus({get preventScroll(){return U=!0,!1}}),U?b.current=!1:b.current=!0}}w.on("openchange",te);const oe=L.createElement("span");oe.setAttribute("tabindex","-1"),oe.setAttribute("aria-hidden","true"),Object.assign(oe.style,Na),ne&&m&&m.insertAdjacentElement("afterend",oe);function le(){const X=j.current;let U=typeof X=="function"?X(M.current):X;if(U===void 0||U===!1)return null;if(U===null&&(U=!0),typeof U=="boolean"){const ve=m||qo();return ve&&ve.isConnected?ve:oe}const xe=m||qo()||oe;return Ft(U)||xe}return()=>{w.off("openchange",te);const X=en(L),U=de(_,X)||$&&Dt($.nodesRef.current,E(),!1).some(ve=>{var Ne;return de((Ne=ve.context)==null?void 0:Ne.elements.floating,X)}),xe=le();queueMicrotask(()=>{const ve=xd(xe),Ne=typeof j.current!="boolean";j.current&&!b.current&&ot(ve)&&(!(!Ne&&ve!==X&&X!==L.body)||U)&&ve.focus({preventScroll:!0}),oe.remove()})}},[r,_,K,j,S,w,$,ne,m,E]),ge(()=>{queueMicrotask(()=>{b.current=!1})},[r]),ge(()=>{if(r||!y)return;function L(te){const oe=ze(te);oe!=null&&oe.closest(`[${Pa}]`)&&(I.current=!0)}const H=Oe(K);return H.addEventListener("pointerdown",L,!0),()=>{H.removeEventListener("pointerdown",L,!0)}},[r,y,K]),ae(()=>{if(!r&&R)return R.setFocusManagerState({modal:l,closeOnFocusOut:c,open:y,onOpenChange:v.setOpen,domReference:m}),()=>{R.setFocusManagerState(null)}},[r,R,l,y,v,c,m]),ae(()=>{if(!(r||!K))return Ya(K,T),()=>{queueMicrotask(Yo)}},[r,K,T]);const re=!r&&(l?!A:!0)&&(ne||l);return P(Ee,{children:[re&&P(Mt,{"data-type":"inside",ref:B,onFocus:L=>{var H;if(l){const te=Re();Fo(te[te.length-1])}else if(R!=null&&R.portalNode)if(b.current=!1,sn(L,R.portalNode)){const te=No(m);te==null||te.focus()}else(H=Ft(d??R.beforeOutsideRef))==null||H.focus()}}),n,re&&P(Mt,{"data-type":"inside",ref:Pe,onFocus:L=>{var H;if(l)Fo(Re()[0]);else if(R!=null&&R.portalNode)if(c&&(b.current=!0),sn(L,R.portalNode)){const te=Sa(m);te==null||te.focus()}else(H=Ft(p??R.afterOutsideRef))==null||H.focus()}})]})}function kd(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.context.dataRef,{enabled:o=!0,event:i="click",toggle:s=!0,ignoreMouse:a=!1,stickIfOpen:l=!0,touchOpenDelay:c=0}=t,f=z(void 0),u=or(),p=Nt(),d=q(()=>({onPointerDown(g){f.current=g.pointerType},onMouseDown(g){const h=f.current,v=g.nativeEvent,y=n.select("open");if(g.button!==0||i==="click"||tn(h,!0)&&a)return;const m=r.current.openEvent,_=m==null?void 0:m.type,w=n.select("domReferenceElement")!==g.currentTarget,S=y&&w||!(y&&s&&(!(m&&l)||_==="click"||_==="mousedown"));if(ua(v.target)){const x=ke(Et,v,v.target);S&&h==="touch"&&c>0?p.start(c,()=>{n.setOpen(!0,x)}):n.setOpen(S,x);return}const E=g.currentTarget;u.request(()=>{const x=ke(Et,v,E);S&&h==="touch"&&c>0?p.start(c,()=>{n.setOpen(!0,x)}):n.setOpen(S,x)})},onClick(g){if(i==="mousedown-only")return;const h=f.current;if(i==="mousedown"&&h){f.current=void 0;return}if(tn(h,!0)&&a)return;const v=n.select("open"),y=r.current.openEvent,m=n.select("domReferenceElement")!==g.currentTarget,_=v&&m||!(v&&s&&(!(y&&l)||pa(y))),w=ke(Et,g.nativeEvent,g.currentTarget);_&&h==="touch"&&c>0?p.start(c,()=>{n.setOpen(!0,w)}):n.setOpen(_,w)},onKeyDown(){f.current=void 0}}),[r,i,a,n,l,s,u,p,c]);return q(()=>o?{reference:d}:$e,[o,d])}const Rd=["top","right","bottom","left"],un=Math.min,Ve=Math.max,pr=Math.round,hr=Math.floor,at=e=>({x:e,y:e}),Od={left:"right",right:"left",bottom:"top",top:"bottom"};function qa(e,t,n){return Ve(e,un(t,n))}function kt(e,t){return typeof e=="function"?e(t):e}function mt(e){return e.split("-")[0]}function jn(e){return e.split("-")[1]}function Go(e){return e==="x"?"y":"x"}function Ga(e){return e==="y"?"height":"width"}function ct(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Ka(e){return Go(ct(e))}function Td(e,t,n){n===void 0&&(n=!1);const r=jn(e),o=Ka(e),i=Ga(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=gr(s)),[s,gr(s)]}function Cd(e){const t=gr(e);return[Ko(e),t,Ko(t)]}function Ko(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Xa=["left","right"],Za=["right","left"],Pd=["top","bottom"],Ad=["bottom","top"];function Id(e,t,n){switch(e){case"top":case"bottom":return n?t?Za:Xa:t?Xa:Za;case"left":case"right":return t?Pd:Ad;default:return[]}}function jd(e,t,n,r){const o=jn(e);let i=Id(mt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ko)))),i}function gr(e){const t=mt(e);return Od[t]+e.slice(t.length)}function $d(e){return{top:0,right:0,bottom:0,left:0,...e}}function Nd(e){return typeof e!="number"?$d(e):{top:e,right:e,bottom:e,left:e}}function mr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ja(e,t,n){let{reference:r,floating:o}=e;const i=ct(t),s=Ka(t),a=Ga(s),l=mt(t),c=i==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let d;switch(l){case"top":d={x:f,y:r.y-o.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-o.width,y:u};break;default:d={x:r.x,y:r.y}}switch(jn(t)){case"start":d[s]-=p*(n&&c?-1:1);break;case"end":d[s]+=p*(n&&c?-1:1);break}return d}async function Dd(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:p=!1,padding:d=0}=kt(t,e),g=Nd(d),v=a[p?u==="floating"?"reference":"floating":u],y=mr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),m=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(_))?await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1}:{x:1,y:1},S=mr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:m,offsetParent:_,strategy:l}):m);return{top:(y.top-S.top+g.top)/w.y,bottom:(S.bottom-y.bottom+g.bottom)/w.y,left:(y.left-S.left+g.left)/w.x,right:(S.right-y.right+g.right)/w.x}}const Ld=50,Md=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:Dd},l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Ja(c,r,l),p=r,d=0;const g={};for(let h=0;h<i.length;h++){const v=i[h];if(!v)continue;const{name:y,fn:m}=v,{x:_,y:w,data:S,reset:E}=await m({x:f,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:c,platform:a,elements:{reference:e,floating:t}});f=_??f,u=w??u,g[y]={...g[y],...S},E&&d<Ld&&(d++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=Ja(c,p,l)),h=-1)}return{x:f,y:u,placement:p,strategy:o,middlewareData:g}},Fd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...v}=kt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=mt(o),m=ct(a),_=mt(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=p||(_||!h?[gr(a)]:Cd(a)),E=g!=="none";!p&&E&&S.push(...jd(a,h,g,w));const x=[a,...S],O=await l.detectOverflow(t,v),A=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&A.push(O[y]),u){const $=Td(o,s,w);A.push(O[$[0]],O[$[1]])}if(T=[...T,{placement:o,overflows:A}],!A.every($=>$<=0)){var D,j;const $=(((D=i.flip)==null?void 0:D.index)||0)+1,R=x[$];if(R&&(!(u==="alignment"?m!==ct(R):!1)||T.every(b=>ct(b.placement)===m?b.overflows[0]>0:!0)))return{data:{index:$,overflows:T},reset:{placement:R}};let N=(j=T.filter(F=>F.overflows[0]<=0).sort((F,b)=>F.overflows[1]-b.overflows[1])[0])==null?void 0:j.placement;if(!N)switch(d){case"bestFit":{var k;const F=(k=T.filter(b=>{if(E){const I=ct(b.placement);return I===m||I==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(I=>I>0).reduce((I,G)=>I+G,0)]).sort((b,I)=>b[1]-I[1])[0])==null?void 0:k[0];F&&(N=F);break}case"initialPlacement":N=a;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Qa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ec(e){return Rd.some(t=>e[t]>=0)}const Vd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=kt(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=Qa(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ec(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=Qa(s,n.floating);return{data:{escapedOffsets:a,escaped:ec(a)}}}default:return{}}}}},tc=new Set(["left","top"]);async function Bd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=mt(n),a=jn(n),l=ct(n)==="y",c=tc.has(s)?-1:1,f=i&&l?-1:1,u=kt(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof g=="number"&&(d=a==="end"?g*-1:g),l?{x:d*f,y:p*c}:{x:p*c,y:d*f}}const Hd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Bd(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ud=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:m,y:_}=y;return{x:m,y:_}}},...c}=kt(e,t),f={x:n,y:r},u=await i.detectOverflow(t,c),p=ct(mt(o)),d=Go(p);let g=f[d],h=f[p];if(s){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",_=g+u[y],w=g-u[m];g=qa(_,g,w)}if(a){const y=p==="y"?"top":"left",m=p==="y"?"bottom":"right",_=h+u[y],w=h-u[m];h=qa(_,h,w)}const v=l.fn({...t,[d]:g,[p]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:s,[p]:a}}}}}},Wd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=kt(e,t),f={x:n,y:r},u=ct(o),p=Go(u);let d=f[p],g=f[u];const h=kt(a,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const _=p==="y"?"height":"width",w=i.reference[p]-i.floating[_]+v.mainAxis,S=i.reference[p]+i.reference[_]-v.mainAxis;d<w?d=w:d>S&&(d=S)}if(c){var y,m;const _=p==="y"?"width":"height",w=tc.has(mt(o)),S=i.reference[u]-i.floating[_]+(w&&((y=s.offset)==null?void 0:y[u])||0)+(w?0:v.crossAxis),E=i.reference[u]+i.reference[_]+(w?0:((m=s.offset)==null?void 0:m[u])||0)-(w?v.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[p]:d,[u]:g}}}},zd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=kt(e,t),f=await s.detectOverflow(t,c),u=mt(o),p=jn(o),d=ct(o)==="y",{width:g,height:h}=i.floating;let v,y;u==="top"||u==="bottom"?(v=u,y=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,v=p==="end"?"top":"bottom");const m=h-f.top-f.bottom,_=g-f.left-f.right,w=un(h-f[v],m),S=un(g-f[y],_),E=!t.middlewareData.shift;let x=w,O=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(x=m),E&&!p){const T=Ve(f.left,0),D=Ve(f.right,0),j=Ve(f.top,0),k=Ve(f.bottom,0);d?O=g-2*(T!==0||D!==0?T+D:Ve(f.left,f.right)):x=h-2*(j!==0||k!==0?j+k:Ve(f.top,f.bottom))}await l({...t,availableWidth:O,availableHeight:x});const A=await s.getDimensions(a.floating);return g!==A.width||h!==A.height?{reset:{rects:!0}}:{}}}};function vr(){return typeof window<"u"}function fn(e){return nc(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(nc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function nc(e){return vr()?e instanceof Node||e instanceof Be(e).Node:!1}function Ze(e){return vr()?e instanceof Element||e instanceof Be(e).Element:!1}function vt(e){return vr()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function rc(e){return!vr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}function $n(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Yd(e){return/^(table|td|th)$/.test(fn(e))}function yr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const qd=/transform|translate|scale|rotate|perspective|filter/,Gd=/paint|layout|strict|content/,Vt=e=>!!e&&e!=="none";let Xo;function Zo(e){const t=Ze(e)?Je(e):e;return Vt(t.transform)||Vt(t.translate)||Vt(t.scale)||Vt(t.rotate)||Vt(t.perspective)||!Jo()&&(Vt(t.backdropFilter)||Vt(t.filter))||qd.test(t.willChange||"")||Gd.test(t.contain||"")}function Kd(e){let t=Rt(e);for(;vt(t)&&!dn(t);){if(Zo(t))return t;if(yr(t))return null;t=Rt(t)}return null}function Jo(){return Xo==null&&(Xo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xo}function dn(e){return/^(html|body|#document)$/.test(fn(e))}function Je(e){return Be(e).getComputedStyle(e)}function _r(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(fn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rc(e)&&e.host||lt(e);return rc(t)?t.host:t}function oc(e){const t=Rt(e);return dn(t)?e.ownerDocument?e.ownerDocument.body:e.body:vt(t)&&$n(t)?t:oc(t)}function Ot(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=oc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Be(o);if(i){const a=Qo(s);return t.concat(s,s.visualViewport||[],$n(o)?o:[],a&&n?Ot(a):[])}else return t.concat(o,Ot(o,[],n))}function Qo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ic(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=pr(n)!==i||pr(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ei(e){return Ze(e)?e:e.contextElement}function pn(e){const t=ei(e);if(!vt(t))return at(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ic(t);let s=(i?pr(n.width):n.width)/r,a=(i?pr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Xd=at(0);function sc(e){const t=Be(e);return!Jo()||!t.visualViewport?Xd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Be(e)?!1:t}function Bt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ei(e);let s=at(1);t&&(r?Ze(r)&&(s=pn(r)):s=pn(e));const a=Zd(i,n,r)?sc(i):at(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(i){const p=Be(i),d=r&&Ze(r)?Be(r):r;let g=p,h=Qo(g);for(;h&&r&&d!==g;){const v=pn(h),y=h.getBoundingClientRect(),m=Je(h),_=y.left+(h.clientLeft+parseFloat(m.paddingLeft))*v.x,w=y.top+(h.clientTop+parseFloat(m.paddingTop))*v.y;l*=v.x,c*=v.y,f*=v.x,u*=v.y,l+=_,c+=w,g=Be(h),h=Qo(g)}}return mr({width:f,height:u,x:l,y:c})}function wr(e,t){const n=_r(e).scrollLeft;return t?t.left+n:Bt(lt(e)).left+n}function ac(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-wr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Jd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=lt(r),a=t?yr(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=at(1);const f=at(0),u=vt(r);if((u||!u&&!i)&&((fn(r)!=="body"||$n(s))&&(l=_r(r)),u)){const d=Bt(r);c=pn(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}const p=s&&!u&&!i?ac(s,l):at(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-l.scrollTop*c.y+f.y+p.y}}function Qd(e){return Array.from(e.getClientRects())}function ep(e){const t=lt(e),n=_r(e),r=e.ownerDocument.body,o=Ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+wr(e);const a=-n.scrollTop;return Je(r).direction==="rtl"&&(s+=Ve(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const cc=25;function tp(e,t){const n=Be(e),r=lt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const f=Jo();(!f||f&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=wr(r);if(c<=0){const f=r.ownerDocument,u=f.body,p=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-u.clientWidth-d);g<=cc&&(i-=g)}else c<=cc&&(i+=c);return{width:i,height:s,x:a,y:l}}function np(e,t){const n=Bt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=vt(e)?pn(e):at(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function lc(e,t,n){let r;if(t==="viewport")r=tp(e,n);else if(t==="document")r=ep(lt(e));else if(Ze(t))r=np(t,n);else{const o=sc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mr(r)}function uc(e,t){const n=Rt(e);return n===t||!Ze(n)||dn(n)?!1:Je(n).position==="fixed"||uc(n,t)}function rp(e,t){const n=t.get(e);if(n)return n;let r=Ot(e,[],!1).filter(a=>Ze(a)&&fn(a)!=="body"),o=null;const i=Je(e).position==="fixed";let s=i?Rt(e):e;for(;Ze(s)&&!dn(s);){const a=Je(s),l=Zo(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||$n(s)&&!l&&uc(e,s))?r=r.filter(f=>f!==s):o=a,s=Rt(s)}return t.set(e,r),r}function op(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?yr(t)?[]:rp(t,this._c):[].concat(n),r],a=lc(t,s[0],o);let l=a.top,c=a.right,f=a.bottom,u=a.left;for(let p=1;p<s.length;p++){const d=lc(t,s[p],o);l=Ve(d.top,l),c=un(d.right,c),f=un(d.bottom,f),u=Ve(d.left,u)}return{width:c-u,height:f-l,x:u,y:l}}function ip(e){const{width:t,height:n}=ic(e);return{width:t,height:n}}function sp(e,t,n){const r=vt(t),o=lt(t),i=n==="fixed",s=Bt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=at(0);function c(){l.x=wr(o)}if(r||!r&&!i)if((fn(t)!=="body"||$n(o))&&(a=_r(t)),r){const d=Bt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&c();i&&!r&&o&&c();const f=o&&!r&&!i?ac(o,a):at(0),u=s.left+a.scrollLeft-l.x-f.x,p=s.top+a.scrollTop-l.y-f.y;return{x:u,y:p,width:s.width,height:s.height}}function ti(e){return Je(e).position==="static"}function fc(e,t){if(!vt(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return lt(e)===n&&(n=n.ownerDocument.body),n}function dc(e,t){const n=Be(e);if(yr(e))return n;if(!vt(e)){let o=Rt(e);for(;o&&!dn(o);){if(Ze(o)&&!ti(o))return o;o=Rt(o)}return n}let r=fc(e,t);for(;r&&Yd(r)&&ti(r);)r=fc(r,t);return r&&dn(r)&&ti(r)&&!Zo(r)?n:r||Kd(e)||n}const ap=async function(e){const t=this.getOffsetParent||dc,n=this.getDimensions,r=await n(e.floating);return{reference:sp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cp(e){return Je(e).direction==="rtl"}const lp={convertOffsetParentRelativeRectToViewportRelativeRect:Jd,getDocumentElement:lt,getClippingRect:op,getOffsetParent:dc,getElementRects:ap,getClientRects:Qd,getDimensions:ip,getScale:pn,isElement:Ze,isRTL:cp};function pc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function up(e,t){let n=null,r;const o=lt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:f,top:u,width:p,height:d}=c;if(a||t(),!p||!d)return;const g=hr(u),h=hr(o.clientWidth-(f+p)),v=hr(o.clientHeight-(u+d)),y=hr(f),_={rootMargin:-g+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Ve(0,un(1,l))||1};let w=!0;function S(E){const x=E[0].intersectionRatio;if(x!==l){if(!w)return s();x?s(!1,x):r=setTimeout(()=>{s(!1,1e-7)},1e3)}x===1&&!pc(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(S,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,_)}n.observe(e)}return s(!0),i}function hc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ei(e),f=o||i?[...c?Ot(c):[],...t?Ot(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=c&&a?up(c,n):null;let p=-1,d=null;s&&(d=new ResizeObserver(y=>{let[m]=y;m&&m.target===c&&d&&t&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=d)==null||_.observe(t)})),n()}),c&&!l&&d.observe(c),t&&d.observe(t));let g,h=l?Bt(e):null;l&&v();function v(){const y=Bt(e);h&&!pc(h,y)&&n(),h=y,g=requestAnimationFrame(v)}return n(),()=>{var y;f.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),u==null||u(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(g)}}const fp=Hd,dp=Ud,pp=Fd,hp=zd,gp=Vd,mp=Wd,vp=(e,t,n)=>{const r=new Map,o={platform:lp,...n},i={...o.platform,_c:r};return Md(e,t,{...o,platform:i})};var yp=typeof document<"u",_p=function(){},br=yp?gt:_p;function xr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!xr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function gc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mc(e,t){const n=gc(e);return Math.round(t*n)/n}function ni(e){const t=z(e);return br(()=>{t.current=e}),t}function wp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[f,u]=_e({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=_e(r);xr(p,r)||d(r);const[g,h]=_e(null),[v,y]=_e(null),m=fe(b=>{b!==E.current&&(E.current=b,h(b))},[]),_=fe(b=>{b!==x.current&&(x.current=b,y(b))},[]),w=i||g,S=s||v,E=z(null),x=z(null),O=z(f),A=l!=null,T=ni(l),D=ni(o),j=ni(c),k=fe(()=>{if(!E.current||!x.current)return;const b={placement:t,strategy:n,middleware:p};D.current&&(b.platform=D.current),vp(E.current,x.current,b).then(I=>{const G={...I,isPositioned:j.current!==!1};$.current&&!xr(O.current,G)&&(O.current=G,nt(()=>{u(G)}))})},[p,t,n,D,j]);br(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(b=>({...b,isPositioned:!1})))},[c]);const $=z(!1);br(()=>($.current=!0,()=>{$.current=!1}),[]),br(()=>{if(w&&(E.current=w),S&&(x.current=S),w&&S){if(T.current)return T.current(w,S,k);k()}},[w,S,k,T,A]);const R=q(()=>({reference:E,floating:x,setReference:m,setFloating:_}),[m,_]),N=q(()=>({reference:w,floating:S}),[w,S]),F=q(()=>{const b={position:n,left:0,top:0};if(!N.floating)return b;const I=mc(N.floating,f.x),G=mc(N.floating,f.y);return a?{...b,transform:"translate("+I+"px, "+G+"px)",...gc(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:G}},[n,a,N.floating,f.x,f.y]);return q(()=>({...f,update:k,refs:R,elements:N,floatingStyles:F}),[f,k,R,N,F])}const bp=(e,t)=>({...fp(e),options:[e,t]}),xp=(e,t)=>({...dp(e),options:[e,t]}),Ep=(e,t)=>({...mp(e),options:[e,t]}),Sp=(e,t)=>({...pp(e),options:[e,t]}),kp=(e,t)=>({...hp(e),options:[e,t]}),Rp=(e,t)=>({...gp(e),options:[e,t]}),Op={intentional:"onClick",sloppy:"onPointerDown"};function Tp(e){return{escapeKey:typeof e=="boolean"?e:(e==null?void 0:e.escapeKey)??!1,outsidePress:typeof e=="boolean"?e:(e==null?void 0:e.outsidePress)??!0}}function Cp(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("referenceElement"),s=n.useState("domReferenceElement"),{onOpenChange:a,dataRef:l}=n.context,{enabled:c=!0,escapeKey:f=!0,outsidePress:u=!0,outsidePressEvent:p="sloppy",referencePress:d=!1,referencePressEvent:g="sloppy",ancestorScroll:h=!1,bubbles:v,externalTree:y}=t,m=cn(y),_=J(typeof u=="function"?u:()=>!1),w=typeof u=="function"?_:u,S=z(!1),{escapeKey:E,outsidePress:x}=Tp(v),O=z(null),A=Nt(),T=Nt(),D=J(()=>{T.clear(),l.current.insideReactTree=!1}),j=z(!1),k=z(""),$=J(C=>{k.current=C.pointerType}),R=J(()=>{const C=k.current,Y=C==="pen"||!C?"mouse":C,B=typeof p=="function"?p():p;return typeof B=="string"?B:B[Y]}),N=J(C=>{var L;if(!r||!c||!f||C.key!=="Escape"||j.current)return;const Y=(L=l.current.floatingContext)==null?void 0:L.nodeId,B=m?Dt(m.nodesRef.current,Y):[];if(!E&&B.length>0){let H=!0;if(B.forEach(te=>{var oe;(oe=te.context)!=null&&oe.open&&!te.context.dataRef.current.__escapeKeyBubbles&&(H=!1)}),!H)return}const Pe=ff(C)?C.nativeEvent:C,re=ke(Ia,Pe);n.setOpen(!1,re),!E&&!re.isPropagationAllowed&&C.stopPropagation()}),F=J(C=>{const Y=R();return Y==="intentional"&&C.type!=="click"||Y==="sloppy"&&C.type==="click"}),b=J(()=>{l.current.insideReactTree=!0,T.start(0,D)}),I=J((C,Y=!1)=>{var X;if(F(C)){D();return}if(l.current.insideReactTree){D();return}if(R()==="intentional"&&Y||typeof w=="function"&&!w(C))return;const B=ze(C),Pe=`[${An("inert")}]`,re=Oe(n.select("floatingElement")).querySelectorAll(Pe),L=n.context.triggerElements;if(B&&(L.hasElement(B)||L.hasMatchingElement(U=>de(U,B))))return;let H=Te(B)?B:null;for(;H&&!So(H);){const U=Hu(H);if(So(U)||!Te(U))break;H=U}if(re.length&&Te(B)&&!lf(B)&&!de(B,n.select("floatingElement"))&&Array.from(re).every(U=>!de(H,U)))return;if(ot(B)&&!("touches"in C)){const U=So(B),xe=tr(B),ve=/auto|scroll/,Ne=U||ve.test(xe.overflowX),Ht=U||ve.test(xe.overflowY),vn=Ne&&B.clientWidth>0&&B.scrollWidth>B.clientWidth,Ie=Ht&&B.clientHeight>0&&B.scrollHeight>B.clientHeight,Le=xe.direction==="rtl",De=Ie&&(Le?C.offsetX<=B.offsetWidth-B.clientWidth:C.offsetX>B.clientWidth),ut=vn&&C.offsetY>B.clientHeight;if(De||ut)return}const te=(X=l.current.floatingContext)==null?void 0:X.nodeId,oe=m&&Dt(m.nodesRef.current,te).some(U=>{var xe;return Xe(C,(xe=U.context)==null?void 0:xe.elements.floating)});if(Xe(C,n.select("floatingElement"))||Xe(C,n.select("domReferenceElement"))||oe)return;const le=m?Dt(m.nodesRef.current,te):[];if(le.length>0){let U=!0;if(le.forEach(xe=>{var ve;(ve=xe.context)!=null&&ve.open&&!xe.context.dataRef.current.__outsidePressBubbles&&(U=!1)}),!U)return}n.setOpen(!1,ke(Aa,C)),D()}),G=J(C=>{R()!=="sloppy"||C.pointerType==="touch"||!n.select("open")||!c||Xe(C,n.select("floatingElement"))||Xe(C,n.select("domReferenceElement"))||I(C)}),ie=J(C=>{if(R()!=="sloppy"||!n.select("open")||!c||Xe(C,n.select("floatingElement"))||Xe(C,n.select("domReferenceElement")))return;const Y=C.touches[0];Y&&(O.current={startTime:Date.now(),startX:Y.clientX,startY:Y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},A.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}),M=J(C=>{const Y=ze(C);function B(){ie(C),Y==null||Y.removeEventListener(C.type,B)}Y==null||Y.addEventListener(C.type,B)}),W=J(C=>{const Y=S.current;if(S.current=!1,A.clear(),C.type==="mousedown"&&O.current&&!O.current.dismissOnMouseDown)return;const B=ze(C);function Pe(){C.type==="pointerdown"?G(C):I(C,Y),B==null||B.removeEventListener(C.type,Pe)}B==null||B.addEventListener(C.type,Pe)}),se=J(C=>{if(R()!=="sloppy"||!O.current||Xe(C,n.select("floatingElement"))||Xe(C,n.select("domReferenceElement")))return;const Y=C.touches[0];if(!Y)return;const B=Math.abs(Y.clientX-O.current.startX),Pe=Math.abs(Y.clientY-O.current.startY),re=Math.sqrt(B*B+Pe*Pe);re>5&&(O.current.dismissOnTouchEnd=!0),re>10&&(I(C),A.clear(),O.current=null)}),Q=J(C=>{const Y=ze(C);function B(){se(C),Y==null||Y.removeEventListener(C.type,B)}Y==null||Y.addEventListener(C.type,B)}),ee=J(C=>{R()!=="sloppy"||!O.current||Xe(C,n.select("floatingElement"))||Xe(C,n.select("domReferenceElement"))||(O.current.dismissOnTouchEnd&&I(C),A.clear(),O.current=null)}),ne=J(C=>{const Y=ze(C);function B(){ee(C),Y==null||Y.removeEventListener(C.type,B)}Y==null||Y.addEventListener(C.type,B)});ge(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=E,l.current.__outsidePressBubbles=x;const C=new bt;function Y(H){n.setOpen(!1,ke(Jf,H))}function B(){C.clear(),j.current=!0}function Pe(){C.start(Vu()?5:0,()=>{j.current=!1})}const re=Oe(o);re.addEventListener("pointerdown",$,!0),f&&(re.addEventListener("keydown",N),re.addEventListener("compositionstart",B),re.addEventListener("compositionend",Pe)),w&&(re.addEventListener("click",W,!0),re.addEventListener("pointerdown",W,!0),re.addEventListener("touchstart",M,!0),re.addEventListener("touchmove",Q,!0),re.addEventListener("touchend",ne,!0),re.addEventListener("mousedown",W,!0));let L=[];return h&&(Te(s)&&(L=Ot(s)),Te(o)&&(L=L.concat(Ot(o))),!Te(i)&&i&&i.contextElement&&(L=L.concat(Ot(i.contextElement)))),L=L.filter(H=>{var te;return H!==((te=re.defaultView)==null?void 0:te.visualViewport)}),L.forEach(H=>{H.addEventListener("scroll",Y,{passive:!0})}),()=>{re.removeEventListener("pointerdown",$,!0),f&&(re.removeEventListener("keydown",N),re.removeEventListener("compositionstart",B),re.removeEventListener("compositionend",Pe)),w&&(re.removeEventListener("click",W,!0),re.removeEventListener("pointerdown",W,!0),re.removeEventListener("touchstart",M,!0),re.removeEventListener("touchmove",Q,!0),re.removeEventListener("touchend",ne,!0),re.removeEventListener("mousedown",W,!0)),L.forEach(H=>{H.removeEventListener("scroll",Y)}),C.clear()}},[l,o,i,s,f,w,r,a,h,c,E,x,N,I,W,G,M,Q,ne,$,n]),ge(D,[w,D]);const K=q(()=>({onKeyDown:N,...d&&{[Op[g]]:C=>{n.setOpen(!1,ke(Et,C.nativeEvent))},...g!=="intentional"&&{onClick(C){n.setOpen(!1,ke(Et,C.nativeEvent))}}}}),[N,n,d,g]),Se=J(C=>{const Y=ze(C.nativeEvent);!de(n.select("floatingElement"),Y)||C.button!==0||(S.current=!0)}),Re=q(()=>({onKeyDown:N,onPointerDown:Se,onMouseDown:Se,onMouseUp:Se,onClickCapture:b,onMouseDownCapture:b,onPointerDownCapture:b,onMouseUpCapture:b,onTouchEndCapture:b,onTouchMoveCapture:b}),[N,Se,b]);return q(()=>c?{reference:K,floating:Re,trigger:K}:{},[c,K,Re])}var Pp=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
5
2
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
6
3
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
7
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},
|
|
4
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},Ap=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:s}=e,a=r(()=>({}),...o);if(!(a.apply(null,i)===a.apply(null,s))){let c;try{throw new Error}catch(f){({stack:c}=f)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
8
5
|
This means your output selector will likely run more frequently than intended.
|
|
9
6
|
Avoid returning a new reference inside your input selector, e.g.
|
|
10
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:s,stack:c})}},Ap={inputStabilityCheck:"once",identityFunctionCheck:"once"},Er=Symbol("NOT_FOUND");function Ip(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function jp(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Np(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var gc=e=>Array.isArray(e)?e:[e];function Dp(e){const t=Array.isArray(e[0])?e[0]:e;return Np(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function vc(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var $p=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...Ap,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:Cp},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Pp}}};function Lp(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Er},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Mp(e,t){let n=[];function r(a){const l=n.findIndex(c=>t(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return Er}function o(a,l){r(a)===Er&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var Fp=(e,t)=>e===t;function Vp(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function Bp(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Fp,maxSize:o=1,resultEqualityCheck:i}=n,s=Vp(r);let a=0;const l=o<=1?Lp(s):Mp(o,s);function c(){let f=l.get(arguments);if(f===Er){if(f=e.apply(null,arguments),a++,i){const p=l.getEntries().find(d=>i(d.value,f));p&&(f=p.value,a!==0&&a--)}l.put(arguments,f)}return f}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Hp=class{constructor(e){this.value=e}deref(){return this.value}},Wp=typeof WeakRef<"u"?WeakRef:Hp,Up=0,yc=1;function Sr(){return{s:Up,v:void 0,o:null,p:null}}function _c(e,t={}){let n=Sr();const{resultEqualityCheck:r}=t;let o,i=0;function s(){var u;let a=n;const{length:l}=arguments;for(let p=0,d=l;p<d;p++){const m=arguments[p];if(typeof m=="function"||typeof m=="object"&&m!==null){let h=a.o;h===null&&(a.o=h=new WeakMap);const v=h.get(m);v===void 0?(a=Sr(),h.set(m,a)):a=v}else{let h=a.p;h===null&&(a.p=h=new Map);const v=h.get(m);v===void 0?(a=Sr(),h.set(m,a)):a=v}}const c=a;let f;if(a.s===yc)f=a.v;else if(f=e.apply(null,arguments),i++,r){const p=((u=o==null?void 0:o.deref)==null?void 0:u.call(o))??o;p!=null&&r(p,f)&&(f=p,i!==0&&i--),o=typeof f=="object"&&f!==null||typeof f=="function"?new Wp(f):f}return c.s=yc,c.v=f,f}return s.clearCache=()=>{n=Sr(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function wc(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),Ip(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...l},{memoize:u,memoizeOptions:p=[],argsMemoize:d=_c,argsMemoizeOptions:m=[],devModeChecks:h={}}=f,v=gc(p),y=gc(m),g=Dp(o),_=u(function(){return i++,c.apply(null,arguments)},...v);let w=!0;const S=d(function(){s++;const x=vc(g,arguments);if(a=_.apply(null,x),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:O,inputStabilityCheck:A}=$p(w,h);if(O.shouldRun&&O.run(c,x,a),A.shouldRun){const T=vc(g,arguments);A.run({inputSelectorResults:x,inputSelectorResultsCopy:T},{memoize:u,memoizeOptions:v},arguments)}w&&(w=!1)}return a},...y);return Object.assign(S,{resultFunc:c,memoizedResultFunc:_,dependencies:g,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:u,argsMemoize:d})};return Object.assign(r,{withTypes:()=>r}),r}var zp=wc(_c),Yp=Object.assign((e,t=zp)=>{jp(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>Yp});wc({memoize:Bp,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const ce=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of selectors":xt(1));let a;if(e)a=e;else throw new Error("Missing arguments");return a};function qp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ri={exports:{}},oi={};const Rr=qp(bo);/**
|
|
11
|
-
* @license React
|
|
12
|
-
* use-sync-external-store-shim.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var bc;function Gp(){if(bc)return oi;bc=1;var e=Rr;function t(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(u,p){var d=p(),m=r({inst:{value:d,getSnapshot:p}}),h=m[0].inst,v=m[1];return i(function(){h.value=d,h.getSnapshot=p,l(h)&&v({inst:h})},[u,d,p]),o(function(){return l(h)&&v({inst:h}),u(function(){l(h)&&v({inst:h})})},[u]),s(d),d}function l(u){var p=u.getSnapshot;u=u.value;try{var d=p();return!n(u,d)}catch{return!0}}function c(u,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return oi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,oi}var ii={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* use-sync-external-store-shim.development.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var xc;function Kp(){return xc||(xc=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}function t(d,m){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=m();if(!u){var v=m();i(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}v=s({inst:{value:h,getSnapshot:m}});var y=v[0].inst,g=v[1];return l(function(){y.value=h,y.getSnapshot=m,n(y)&&g({inst:y})},[d,h,m]),a(function(){return n(y)&&g({inst:y}),d(function(){n(y)&&g({inst:y})})},[d]),c(h),h}function n(d){var m=d.getSnapshot;d=d.value;try{var h=m();return!i(d,h)}catch{return!0}}function r(d,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=Rr,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,f=!1,u=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ii.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ii}process.env.NODE_ENV==="production"?ri.exports=Gp():ri.exports=Kp();var si=ri.exports,ai={exports:{}},ci={};/**
|
|
27
|
-
* @license React
|
|
28
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Ec;function Xp(){if(Ec)return ci;Ec=1;var e=Rr,t=si;function n(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return ci.useSyncExternalStoreWithSelector=function(c,f,u,p,d){var m=i(null);if(m.current===null){var h={hasValue:!1,value:null};m.current=h}else h=m.current;m=a(function(){function y(E){if(!g){if(g=!0,_=E,E=p(E),d!==void 0&&h.hasValue){var x=h.value;if(d(x,E))return w=x}return w=E}if(x=w,r(_,E))return x;var O=p(E);return d!==void 0&&d(x,O)?(_=E,x):(_=E,w=O)}var g=!1,_,w,S=u===void 0?null:u;return[function(){return y(f())},S===null?void 0:function(){return y(S())}]},[f,u,p,d]);var v=o(c,m[0],m[1]);return s(function(){h.hasValue=!0,h.value=v},[v]),l(v),v},ci}var li={};/**
|
|
35
|
-
* @license React
|
|
36
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Sc;function Zp(){return Sc||(Sc=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Rr,n=si,r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;li.useSyncExternalStoreWithSelector=function(c,f,u,p,d){var m=i(null);if(m.current===null){var h={hasValue:!1,value:null};m.current=h}else h=m.current;m=a(function(){function y(E){if(!g){if(g=!0,_=E,E=p(E),d!==void 0&&h.hasValue){var x=h.value;if(d(x,E))return w=x}return w=E}if(x=w,r(_,E))return x;var O=p(E);return d!==void 0&&d(x,O)?(_=E,x):(_=E,w=O)}var g=!1,_,w,S=u===void 0?null:u;return[function(){return y(f())},S===null?void 0:function(){return y(S())}]},[f,u,p,d]);var v=o(c,m[0],m[1]);return s(function(){h.hasValue=!0,h.value=v},[v]),l(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),li}process.env.NODE_ENV==="production"?ai.exports=Xp():ai.exports=Zp();var Jp=ai.exports;const Qp=Bo(19)?th:nh;function eh(e,t,n,r,o){return Qp(e,t,n,r,o)}function th(e,t,n,r,o){const i=fe(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return si.useSyncExternalStore(e.subscribe,i,i)}function nh(e,t,n,r,o){return Jp.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}class Dn{constructor(t){ue(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));ue(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){Dn.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||Dn.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};Dn.prototype.setState.call(this,t)}}class Rc extends Dn{constructor(n,r={},o){super(n);ue(this,"controlledValues",new Map);ue(this,"select",(n,r,o,i)=>{const s=this.selectors[n];return s(this.state,r,o,i)});ue(this,"useState",(n,r,o,i)=>{wt(n);const s=this.selectors[n];return eh(this,s,r,o,i)});this.context=r,this.selectors=o}useSyncedValue(n,r){wt(n),ae(()=>{this.state[n]!==r&&this.set(n,r)},[n,r])}useSyncedValueWithCleanup(n,r){ae(()=>(this.state[n]!==r&&this.set(n,r),()=>{this.set(n,void 0)}),[n,r])}useSyncedValues(n){if(process.env.NODE_ENV!=="production"){wt(n,s=>Object.keys(s));const o=z(Object.keys(n)).current,i=Object.keys(n);(o.length!==i.length||o.some((s,a)=>s!==i[a]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const r=Object.values(n);ae(()=>{this.update(n)},r)}useControlledProp(n,r,o){wt(n);const i=r!==void 0;if(process.env.NODE_ENV!=="production"){const s=this.controlledValues.get(n);s!==void 0&&s!==i&&console.error(`A component is changing the ${i?"":"un"}controlled state of ${n.toString()} to be ${i?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}this.controlledValues.has(n)||(this.controlledValues.set(n,i),!i&&!Object.is(this.state[n],o)&&super.setState({...this.state,[n]:o})),ae(()=>{i&&!Object.is(this.state[n],r)&&super.setState({...this.state,[n]:r})},[n,r,o,i])}set(n,r){this.controlledValues.get(n)!==!0&&super.set(n,r)}update(n){const r={...n};for(const o in r)if(Object.hasOwn(r,o)&&this.controlledValues.get(o)===!0){delete r[o];continue}super.update(r)}setState(n){const r={...n};for(const o in r)if(Object.hasOwn(r,o)&&this.controlledValues.get(o)===!0){delete r[o];continue}super.setState({...this.state,...r})}useContextCallback(n,r){wt(n);const o=J(r??na);this.context[n]=o}useStateSetter(n){const r=z(void 0);return r.current===void 0&&(r.current=o=>{this.set(n,o)}),r.current}observe(n,r){let o;typeof n=="function"?o=n:o=this.selectors[n];let i=o(this.state);return r(i,i,this),this.subscribe(s=>{const a=o(s);if(!Object.is(i,a)){const l=i;i=a,r(a,l,this)}})}}const rh={open:ce(e=>e.open),domReferenceElement:ce(e=>e.domReferenceElement),referenceElement:ce(e=>e.positionReference??e.referenceElement),floatingElement:ce(e=>e.floatingElement),floatingId:ce(e=>e.floatingId)};class ui extends Rc{constructor(n){const{nested:r,noEmit:o,onOpenChange:i,triggerElements:s,...a}=n;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:Ta(),nested:r,noEmit:o,triggerElements:s},rh);ue(this,"setOpen",(n,r)=>{var o,i;if((!n||!this.state.open||da(r.event))&&(this.context.dataRef.current.openEvent=n?r.event:void 0),!this.context.noEmit){const s={open:n,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",s)}(i=(o=this.context).onOpenChange)==null||i.call(o,n,r)})}}function oh(e,t=!1,n=!1){const[r,o]=_e(e&&t?"idle":void 0),[i,s]=_e(e);return e&&!i&&(s(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),ae(()=>{if(!e&&i&&r!=="ending"&&n){const a=at.request(()=>{o("ending")});return()=>{at.cancel(a)}}},[e,i,r,n]),ae(()=>{if(!e||t)return;const a=at.request(()=>{rt(()=>{o(void 0)})});return()=>{at.cancel(a)}},[t,e]),ae(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const a=at.request(()=>{o("idle")});return()=>{at.cancel(a)}},[t,e,i,o,r]),q(()=>({mounted:i,setMounted:s,transitionStatus:r}),[i,r])}function fi(e,t=!1,n=!0){const r=or();return J((o,i=null)=>{r.cancel();const s=Ft(e);s!=null&&(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function a(){s&&Promise.all(s.getAnimations().map(l=>l.finished)).then(()=>{i!=null&&i.aborted||rt(o)}).catch(()=>{if(n){if(i!=null&&i.aborted)return;rt(o)}else s.getAnimations().length>0&&s.getAnimations().some(l=>l.pending||l.playState!=="finished")&&a()})}t?r.request(a):a()}))})}function kc(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=Xe(n),s=J(o),a=fi(r,n);me(()=>{t&&a(()=>{n===i.current&&s()})},[t,n,s,a,i])}function ih(e,t){const n=z(null);return fe(r=>{if(e!==void 0&&(n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null),r!==null))return n.current=e,t.context.triggerElements.add(e,r),()=>{n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null)}},[t,e])}function sh(e,t,n,r){const o=n.useState("isMountedByTrigger",e),i=ih(e,n),s=J(a=>{const l=i(a);return a!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:a,...r}),l});return ae(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:o}}function ah(e){const t=e.useState("open");ae(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function ch(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=oh(e);t.useSyncedValues({mounted:r,transitionStatus:i});const s=J(()=>{var l,c;o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n==null||n(),(c=(l=t.context).onOpenChangeComplete)==null||c.call(l,!1)}),a=t.useState("preventUnmountingOnClose");return kc({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||s()}}),{forceUnmount:s,transitionStatus:i}}class di{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);if(r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n),process.env.NODE_ENV!=="production"&&this.elements.size!==this.idMap.size))throw new Error(process.env.NODE_ENV!=="production"?"Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.":xt(87))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function lh(){return new ui({open:!1,floatingElement:null,referenceElement:null,triggerElements:new di,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function uh(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:lh(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:De,inactiveTriggerProps:De,popupProps:De}}const fh={open:ce(e=>e.open),mounted:ce(e=>e.mounted),transitionStatus:ce(e=>e.transitionStatus),floatingRootContext:ce(e=>e.floatingRootContext),preventUnmountingOnClose:ce(e=>e.preventUnmountingOnClose),payload:ce(e=>e.payload),activeTriggerId:ce(e=>e.activeTriggerId),activeTriggerElement:ce(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ce((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:ce((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:ce((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:ce((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ce(e=>e.popupProps),popupElement:ce(e=>e.popupElement),positionerElement:ce(e=>e.positionerElement)};function dh(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=an(),i=Lt()!=null;if(process.env.NODE_ENV!=="production"){const a=r.reference;a&&!Ce(a)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const s=st(()=>new ui({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new di,floatingId:o,nested:i,noEmit:e.noEmit||!1})).current;return ae(()=>{const a={open:t,floatingId:o};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=Ce(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),s.update(a)},[t,o,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=i,s.context.noEmit=e.noEmit||!1,s}function ph(e={}){const{nodeId:t,externalTree:n}=e,r=dh(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[s,a]=_e(null),l=z(null),c=cn(n);ae(()=>{i.domReference&&(l.current=i.domReference)},[i.domReference]);const f=_p({...e,elements:{...i,...s&&{reference:s}}}),u=fe(x=>{const O=Ce(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;a(O),f.refs.setReference(O)},[f.refs]),[p,d]=_e(null),[m,h]=_e(null);o.useSyncedValue("referenceElement",p),o.useSyncedValue("domReferenceElement",Ce(p)?p:null),o.useSyncedValue("floatingElement",m);const v=fe(x=>{(Ce(x)||x===null)&&(l.current=x,d(x)),(Ce(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!Ce(x))&&f.refs.setReference(x)},[f.refs,d]),y=fe(x=>{h(x),f.refs.setFloating(x)},[f.refs]),g=q(()=>({...f.refs,setReference:v,setFloating:y,setPositionReference:u,domReference:l}),[f.refs,v,y,u]),_=q(()=>({...f.elements,domReference:i.domReference}),[f.elements,i.domReference]),w=o.useState("open"),S=o.useState("floatingId"),E=q(()=>({...f,dataRef:o.context.dataRef,open:w,onOpenChange:o.setOpen,events:o.context.events,floatingId:S,refs:g,elements:_,nodeId:t,rootStore:o}),[f,g,_,t,o,w,S]);return ae(()=>{o.context.dataRef.current.floatingContext=E;const x=c==null?void 0:c.nodesRef.current.find(O=>O.id===t);x&&(x.context=E)}),q(()=>({...f,context:E,refs:g,elements:_,rootStore:o}),[f,g,_,E,o])}function hh(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=an(),s=Lt()!=null,a=t.useState("open"),l=t.useState("activeTriggerElement"),c=t.useState(r?"popupElement":"positionerElement"),f=t.context.triggerElements,u=st(()=>new ui({open:a,referenceElement:l,floatingElement:c,triggerElements:f,onOpenChange:o,floatingId:i,nested:s,noEmit:n})).current;return ae(()=>{const p={open:a,floatingId:i,referenceElement:l,floatingElement:c};Ce(l)&&(p.domReferenceElement=l),u.update(p)},[a,i,l,c,u]),u.context.onOpenChange=o,u.context.nested=s,u.context.noEmit=n,u}const pi=An("safe-polygon"),mh=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${ca}`;function gh(e){return e?!!e.closest(mh):!1}function Oc(e){const t=z(void 0),n=z(!1),r=z(void 0),o=z(!0),i=z(!1),s=z(()=>{}),a=z(!1),l=Dt(),c=Dt(),f=z(void 0);return q(()=>{const u=e.context.dataRef.current;return u.hoverInteractionState||(u.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:i,unbindMouseMoveRef:s,restTimeoutPendingRef:a,openChangeTimeout:l,restTimeout:c,handleCloseOptionsRef:f}),u.hoverInteractionState},[e,t,n,r,o,i,s,a,l,c,f])}const vh=new Set(["click","mousedown"]);function yh(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),{dataRef:s}=n.context,{enabled:a=!0,closeDelay:l=0,externalTree:c}=t,{pointerTypeRef:f,interactedInsideRef:u,handlerRef:p,performedPointerEventsMutationRef:d,unbindMouseMoveRef:m,restTimeoutPendingRef:h,openChangeTimeout:v,handleCloseOptionsRef:y}=Oc(n),g=cn(c),_=Lt(),w=J(()=>u.current?!0:s.current.openEvent?vh.has(s.current.openEvent.type):!1),S=J(()=>{var $;const T=($=s.current.openEvent)==null?void 0:$.type;return(T==null?void 0:T.includes("mouse"))&&T!=="mousedown"}),E=fe((T,$=!0)=>{const j=_h(l,f.current);j&&!p.current?v.start(j,()=>n.setOpen(!1,Re(qe,T))):$&&(v.clear(),n.setOpen(!1,Re(qe,T)))},[l,p,n,f,v]),x=J(()=>{m.current(),p.current=void 0}),O=J(()=>{if(d.current){const T=Oe(o).body;T.style.pointerEvents="",T.removeAttribute(pi),d.current=!1}}),A=J(T=>{const $=Ye(T);if(!gh($)){u.current=!1;return}u.current=!0});ae(()=>{r||(f.current=void 0,h.current=!1,u.current=!1,x(),O())},[r,f,h,u,x,O]),me(()=>()=>{x()},[x]),me(()=>O,[O]),ae(()=>{var T,$,j;if(a&&r&&(T=y.current)!=null&&T.blockPointerEvents&&S()&&Ce(i)&&o){d.current=!0;const R=Oe(o).body;R.setAttribute(pi,"");const N=i,k=o,D=(j=($=g==null?void 0:g.nodesRef.current.find(F=>F.id===_))==null?void 0:$.context)==null?void 0:j.elements.floating;return D&&(D.style.pointerEvents=""),R.style.pointerEvents="none",N.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{R.style.pointerEvents="",N.style.pointerEvents="",k.style.pointerEvents=""}}},[a,r,i,o,y,S,g,_,d]),me(()=>{if(!a)return;function T(N){if(w()||!s.current.floatingContext)return;const k=n.context.triggerElements;N.relatedTarget&&k.hasElement(N.relatedTarget)||(O(),x(),w()||E(N))}function $(N){var k;v.clear(),O(),(k=p.current)==null||k.call(p,N),x()}function j(N){w()||E(N,!1)}const R=o;return R&&(R.addEventListener("mouseleave",T),R.addEventListener("mouseenter",$),R.addEventListener("mouseleave",j),R.addEventListener("pointerdown",A,!0)),()=>{R&&(R.removeEventListener("mouseleave",T),R.removeEventListener("mouseenter",$),R.removeEventListener("mouseleave",j),R.removeEventListener("pointerdown",A,!0))}})}function _h(e,t){return t&&!tn(t)?0:typeof e=="function"?e():e}function hi(e){return typeof e=="function"?e():e}const wh={current:null};function bh(e,t={}){var F;const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:o}=n.context,{enabled:i=!0,delay:s=0,handleClose:a=null,mouseOnly:l=!1,restMs:c=0,move:f=!0,triggerElementRef:u=wh,externalTree:p,isActiveTrigger:d=!0}=t,m=cn(p),{pointerTypeRef:h,interactedInsideRef:v,handlerRef:y,blockMouseMoveRef:g,performedPointerEventsMutationRef:_,unbindMouseMoveRef:w,restTimeoutPendingRef:S,openChangeTimeout:E,restTimeout:x,handleCloseOptionsRef:O}=Oc(n),A=Xe(a),T=Xe(s),$=Xe(c);d&&(O.current=(F=A.current)==null?void 0:F.__options);const j=J(()=>v.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),R=fe((b,I=!0)=>{const G=Mo(T.current,"close",h.current);G&&!y.current?E.start(G,()=>n.setOpen(!1,Re(qe,b))):I&&(E.clear(),n.setOpen(!1,Re(qe,b)))},[T,y,n,h,E]),N=J(()=>{w.current(),y.current=void 0}),k=J(()=>{if(_.current){const b=Oe(n.select("domReferenceElement")).body;b.style.pointerEvents="",b.removeAttribute(pi),_.current=!1}});me(()=>{if(!i)return;function b(I){I.open||(E.clear(),x.clear(),g.current=!0,S.current=!1)}return o.on("openchange",b),()=>{o.off("openchange",b)}},[i,o,E,x,g,S]);const D=J(b=>{var G;if(j()||!r.current.floatingContext)return;const I=n.context.triggerElements;b.relatedTarget&&I.hasElement(b.relatedTarget)||(G=A.current)==null||G.call(A,{...r.current.floatingContext,tree:m,x:b.clientX,y:b.clientY,onClose(){k(),N(),j()||R(b)}})(b)});return me(()=>{if(!i)return;const b=u.current??(d?n.select("domReferenceElement"):null);if(!Ce(b))return;function I(M){if(E.clear(),g.current=!1,l&&!tn(h.current)||hi($.current)>0&&!Mo(T.current,"open"))return;const U=Mo(T.current,"open",h.current),se=n.select("domReferenceElement"),Q=n.context.triggerElements,ee=(Q.hasElement(M.target)||Q.hasMatchingElement(K=>de(K,M.target)))&&(!se||!de(se,M.target)),ne=M.currentTarget??null;U?E.start(U,()=>{n.select("open")||n.setOpen(!0,Re(qe,M,ne))}):(!n.select("open")||ee)&&n.setOpen(!0,Re(qe,M,ne))}function G(M){if(j()){k();return}w.current();const U=n.select("domReferenceElement"),se=Oe(U);x.clear(),S.current=!1;const Q=n.context.triggerElements;if(M.relatedTarget&&Q.hasElement(M.relatedTarget))return;if(A.current&&r.current.floatingContext){n.select("open")||E.clear(),y.current=A.current({...r.current.floatingContext,tree:m,x:M.clientX,y:M.clientY,onClose(){k(),N(),j()||R(M,!0)}});const ne=y.current;ne(M),se.addEventListener("mousemove",ne),w.current=()=>{se.removeEventListener("mousemove",ne)};return}(h.current==="touch"?!de(n.select("floatingElement"),M.relatedTarget):!0)&&R(M)}function ie(M){D(M)}return n.select("open")&&b.addEventListener("mouseleave",ie),f&&b.addEventListener("mousemove",I,{once:!0}),b.addEventListener("mouseenter",I),b.addEventListener("mouseleave",G),()=>{b.removeEventListener("mouseleave",ie),f&&b.removeEventListener("mousemove",I),b.removeEventListener("mouseenter",I),b.removeEventListener("mouseleave",G)}},[N,k,g,r,T,R,n,i,A,D,d,j,l,f,h,$,x,S,E,u,m,w,y]),q(()=>{function b(I){h.current=I.pointerType}return{onPointerDown:b,onPointerEnter:b,onMouseMove(I){const{nativeEvent:G}=I,ie=I.currentTarget,M=n.select("domReferenceElement"),U=n.context.triggerElements,se=n.select("open"),Q=(U.hasElement(I.target)||U.hasMatchingElement(ne=>de(ne,I.target)))&&(!M||!de(M,I.target));if(l&&!tn(h.current)||se&&!Q||hi($.current)===0||!Q&&S.current&&I.movementX**2+I.movementY**2<2)return;x.clear();function ee(){!g.current&&(!se||Q)&&n.setOpen(!0,Re(qe,G,ie))}h.current==="touch"?rt(()=>{ee()}):Q&&se?ee():(S.current=!0,x.start(hi($.current),ee))}}},[g,l,n,h,$,x,S])}function Tc(e=[]){const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=e.map(c=>c==null?void 0:c.trigger),i=fe(c=>kr(c,e,"reference"),t),s=fe(c=>kr(c,e,"floating"),n),a=fe(c=>kr(c,e,"item"),r),l=fe(c=>kr(c,e,"trigger"),o);return q(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a,getTriggerProps:l}),[i,s,a,l])}function kr(e,t,n){var s;const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[Co]="");for(const a in e)o&&e&&(a===sa||a===aa)||(i[a]=e[a]);for(let a=0;a<t.length;a+=1){let l;const c=(s=t[a])==null?void 0:s[n];typeof c=="function"?l=e?c(e):null:l=c,l&&Cc(i,l,o,r)}return Cc(i,e,o,r),i}function Cc(e,t,n,r){var o;for(const i in t){const s=t[i];n&&(i===sa||i===aa)||(i.startsWith("on")?(r.has(i)||r.set(i,[]),typeof s=="function"&&((o=r.get(i))==null||o.push(s),e[i]=(...a)=>{var l;return(l=r.get(i))==null?void 0:l.map(c=>c(...a)).find(c=>c!==void 0)})):e[i]=s)}}const xh=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Eh(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),i=n.useState("domReferenceElement"),s=n.useState("floatingElement"),{enabled:a=!0,role:l="dialog"}=t,c=an(),f=(i==null?void 0:i.id)||c,u=q(()=>{var _;return((_=Po(s))==null?void 0:_.id)||o},[s,o]),p=xh.get(l)??l,m=Lt()!=null,h=q(()=>p==="tooltip"||l==="label"?De:{"aria-haspopup":p==="alertdialog"?"dialog":p,"aria-expanded":"false",...p==="listbox"&&{role:"combobox"},...p==="menu"&&m&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[p,m,l]),v=q(()=>p==="tooltip"||l==="label"?{[`aria-${l==="label"?"labelledby":"describedby"}`]:r?u:void 0}:{...h,"aria-expanded":r?"true":"false","aria-controls":r?u:void 0,...p==="menu"&&{id:f}},[p,u,r,f,l,h]),y=q(()=>{const _={id:u,...p&&{role:p}};return p==="tooltip"||l==="label"?_:{..._,...p==="menu"&&{"aria-labelledby":f}}},[p,u,f,l]),g=fe(({active:_,selected:w})=>{const S={role:"option",..._&&{id:`${u}-fui-option`}};switch(l){case"select":case"combobox":return{...S,"aria-selected":w}}return{}},[u,l]);return q(()=>a?{reference:v,floating:y,item:g,trigger:h}:{},[a,v,y,h,g])}function Pc(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=t[s]||[0,0],[f,u]=t[a]||[0,0];c>=r!=u>=r&&n<=(f-l)*(r-c)/(u-c)+l&&(o=!o)}return o}function Sh(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Rh(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new bt;let i=!1,s=null,a=null,l=typeof performance<"u"?performance.now():0;function c(u,p){const d=performance.now(),m=d-l;if(s===null||a===null||m===0)return s=u,a=p,l=d,null;const h=u-s,v=p-a,g=Math.sqrt(h*h+v*v)/m;return s=u,a=p,l=d,g}const f=({x:u,y:p,placement:d,elements:m,onClose:h,nodeId:v,tree:y})=>function(_){function w(){o.clear(),h()}if(o.clear(),!m.domReference||!m.floating||d==null||u==null||p==null)return;const{clientX:S,clientY:E}=_,x=[S,E],O=Ye(_),A=_.type==="mouseleave",T=de(m.floating,O),$=de(m.domReference,O),j=m.domReference.getBoundingClientRect(),R=m.floating.getBoundingClientRect(),N=d.split("-")[0],k=u>R.right-R.width/2,D=p>R.bottom-R.height/2,F=Sh(x,j),b=R.width>j.width,I=R.height>j.height,G=(b?j:R).left,ie=(b?j:R).right,M=(I?j:R).top,U=(I?j:R).bottom;if(T&&(i=!0,!A))return;if($&&(i=!1),$&&!A){i=!0;return}if(A&&Ce(_.relatedTarget)&&de(m.floating,_.relatedTarget)||y&&$t(y.nodesRef.current,v).some(({context:ee})=>ee==null?void 0:ee.open))return;if(N==="top"&&p>=j.bottom-1||N==="bottom"&&p<=j.top+1||N==="left"&&u>=j.right-1||N==="right"&&u<=j.left+1)return w();let se=[];switch(N){case"top":se=[[G,j.top+1],[G,R.bottom-1],[ie,R.bottom-1],[ie,j.top+1]];break;case"bottom":se=[[G,R.top+1],[G,j.bottom-1],[ie,j.bottom-1],[ie,R.top+1]];break;case"left":se=[[R.right-1,U],[R.right-1,M],[j.left+1,M],[j.left+1,U]];break;case"right":se=[[j.right-1,U],[j.right-1,M],[R.left+1,M],[R.left+1,U]];break}function Q([ee,ne]){switch(N){case"top":{const K=[b?ee+t/2:k?ee+t*4:ee-t*4,ne+t+1],Se=[b?ee-t/2:k?ee+t*4:ee-t*4,ne+t+1],ke=[[R.left,k||b?R.bottom-t:R.top],[R.right,k?b?R.bottom-t:R.top:R.bottom-t]];return[K,Se,...ke]}case"bottom":{const K=[b?ee+t/2:k?ee+t*4:ee-t*4,ne-t],Se=[b?ee-t/2:k?ee+t*4:ee-t*4,ne-t],ke=[[R.left,k||b?R.top+t:R.bottom],[R.right,k?b?R.top+t:R.bottom:R.top+t]];return[K,Se,...ke]}case"left":{const K=[ee+t+1,I?ne+t/2:D?ne+t*4:ne-t*4],Se=[ee+t+1,I?ne-t/2:D?ne+t*4:ne-t*4];return[...[[D||I?R.right-t:R.left,R.top],[D?I?R.right-t:R.left:R.right-t,R.bottom]],K,Se]}case"right":{const K=[ee-t,I?ne+t/2:D?ne+t*4:ne-t*4],Se=[ee-t,I?ne-t/2:D?ne+t*4:ne-t*4],ke=[[D||I?R.left+t:R.right,R.top],[D?I?R.left+t:R.right:R.left+t,R.bottom]];return[K,Se,...ke]}default:return[]}}if(!Pc([S,E],se)){if(i&&!F)return w();if(!A&&r){const ee=c(_.clientX,_.clientY);if(ee!==null&&ee<.1)return w()}Pc([S,E],Q([u,p]))?!i&&r&&o.start(40,w):w()}};return f.__options={blockPointerEvents:n},f}const mi=ze(void 0);process.env.NODE_ENV!=="production"&&(mi.displayName="PopoverRootContext");function $n(e){const t=Ve(mi);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.":xt(47));return t}function kh(){return{...uh(),disabled:!1,modal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0}}const Oh={...fh,disabled:ce(e=>e.disabled),instantType:ce(e=>e.instantType),openMethod:ce(e=>e.openMethod),openChangeReason:ce(e=>e.openChangeReason),modal:ce(e=>e.modal),stickIfOpen:ce(e=>e.stickIfOpen),titleElementId:ce(e=>e.titleElementId),descriptionElementId:ce(e=>e.descriptionElementId),openOnHover:ce(e=>e.openOnHover),closeDelay:ce(e=>e.closeDelay)};class gi extends Rc{constructor(n){const r={...kh(),...n};r.open&&(n==null?void 0:n.mounted)===void 0&&(r.mounted=!0);super(r,{popupRef:It(),backdropRef:It(),internalBackdropRef:It(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:It(),beforeContentFocusGuardRef:It(),stickIfOpenTimeout:new bt,triggerElements:new di},Oh);ue(this,"setOpen",(n,r)=>{var f,u;const o=r.reason===qe,i=r.reason===Et&&r.event.detail===0,s=!n&&(r.reason===Aa||r.reason==null);if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(u=(f=this.context).onOpenChange)==null||u.call(f,n,r),r.isCanceled)return;const a={open:n,nativeEvent:r.event,reason:r.reason,nested:this.state.nested,triggerElement:r.trigger},l=this.state.floatingRootContext.context.events;l==null||l.emit("openchange",a);const c=()=>{var m;const p={open:n,openChangeReason:r.reason},d=((m=r.trigger)==null?void 0:m.id)??null;(d||n)&&(p.activeTriggerId=d,p.activeTriggerElement=r.trigger??null),this.update(p)};o?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(qf,()=>{this.set("stickIfOpen",!1)}),rt(c)):c(),i||s?this.set("instantType",i?"click":"dismiss"):r.reason===Pn?this.set("instantType","focus"):this.set("instantType",void 0)});ue(this,"disposeEffect",()=>this.context.stickIfOpenTimeout.disposeEffect())}static useStore(n,r){const o=st(()=>n??new gi(r)).current;return Oo(o.disposeEffect),o}}function Th(e){const t=z(""),n=fe(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:fe(o=>{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o&&e(o,o.pointerType),e(o,t.current),t.current=""},[e]),onPointerDown:n}}function Ch(e){const[t,n]=_e(null),r=J((a,l)=>{e||n(l)}),o=fe(()=>{n(null)},[]),{onClick:i,onPointerDown:s}=Th(r);return q(()=>({openMethod:t,reset:o,triggerProps:{onClick:i,onPointerDown:s}}),[t,o,i,s])}function Ac({props:e}){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:o,onOpenChangeComplete:i,modal:s=!1,handle:a,triggerId:l,defaultTriggerId:c=null}=e,f=gi.useStore(a==null?void 0:a.store,{open:n??r,modal:s,activeTriggerId:l!==void 0?l:c});f.useControlledProp("open",n,r),f.useControlledProp("activeTriggerId",l,c);const u=f.useState("open"),p=f.useState("positionerElement"),d=f.useState("payload"),m=f.useState("openChangeReason");f.useContextCallback("onOpenChange",o),f.useContextCallback("onOpenChangeComplete",i);const{openMethod:h,triggerProps:v,reset:y}=Ch(u);ah(f);const{forceUnmount:g}=ch(u,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null}),y()});nf(u&&s===!0&&m!==qe&&h!=="touch",p),me(()=>{u||f.context.stickIfOpenTimeout.clear()},[f,u]);const _=fe(k=>{const D=Re(k);return D.preventUnmountOnClose=()=>{f.set("preventUnmountingOnClose",!0)},D},[f]),w=fe(()=>{f.setOpen(!1,_(Jf))},[f,_]);Kn(e.actionsRef,()=>({unmount:g,close:w}),[g,w]);const S=hh({popupStore:f,onOpenChange:f.setOpen}),E=Tp(S,{outsidePressEvent:{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),x=Eh(S),{getReferenceProps:O,getFloatingProps:A,getTriggerProps:T}=Tc([E,x]),$=q(()=>O(v),[O,v]),j=q(()=>T(v),[T,v]),R=q(()=>A(),[A]);f.useSyncedValues({modal:s,openMethod:h,activeTriggerProps:$,inactiveTriggerProps:j,popupProps:R,floatingRootContext:S,nested:Lt()!=null});const N=q(()=>({store:f}),[f]);return P(mi.Provider,{value:N,children:typeof t=="function"?t({payload:d}):t})}function Ph(e){return $n(!0)?P(Ac,{props:e}):P(Yf,{children:P(Ac,{props:e})})}let vi;process.env.NODE_ENV!=="production"&&(vi=new Set);function Ic(...e){if(process.env.NODE_ENV!=="production"){const t=e.join(" ");vi.has(t)||(vi.add(t),console.error(`Base UI: ${t}`))}}const jc=ze(void 0);process.env.NODE_ENV!=="production"&&(jc.displayName="CompositeRootContext");function Ah(e=!1){const t=Ve(jc);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.":xt(16));return t}function Ih(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,s=r&&t!==!1,a=r&&t===!1;return{props:q(()=>{const c={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return r||(c.tabIndex=o,!i&&n&&(c.tabIndex=t?o:-1)),(i&&(t||s)||!i&&n)&&(c["aria-disabled"]=n),i&&(!t||a)&&(c.disabled=n),c},[r,n,t,s,a,i,o])}}function jh(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,i=z(null),s=Ah(!0)!==void 0,a=J(()=>{const p=i.current;return!!((p==null?void 0:p.tagName)==="A"&&(p!=null&&p.href))}),{props:l}=Ih({focusableWhenDisabled:n,disabled:t,composite:s,tabIndex:r,isNativeButton:o});process.env.NODE_ENV!=="production"&&me(()=>{if(!i.current)return;const p=i.current.tagName==="BUTTON";o?p||Ic("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`."):p&&Ic("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")},[o]);const c=fe(()=>{const p=i.current;Nh(p)&&s&&t&&l.disabled===void 0&&p.disabled&&(p.disabled=!1)},[t,l.disabled,s]);ae(c,[c]);const f=fe((p={})=>{const{onClick:d,onMouseDown:m,onKeyUp:h,onKeyDown:v,onPointerDown:y,...g}=p;return Fa({type:o?"button":void 0,onClick(w){if(t){w.preventDefault();return}d==null||d(w)},onMouseDown(w){t||m==null||m(w)},onKeyDown(w){if(t||(Uo(w),v==null||v(w)),w.baseUIHandlerPrevented)return;const S=w.target===w.currentTarget&&!o&&!a()&&!t,E=w.key==="Enter",x=w.key===" ";S&&((x||E)&&w.preventDefault(),E&&(d==null||d(w)))},onKeyUp(w){t||(Uo(w),h==null||h(w)),!w.baseUIHandlerPrevented&&w.target===w.currentTarget&&!o&&!t&&w.key===" "&&(d==null||d(w))},onPointerDown(w){if(t){w.preventDefault();return}y==null||y(w)}},o?void 0:{role:"button"},l,g)},[t,l,o,a]),u=J(p=>{i.current=p,c()});return{getButtonProps:f,buttonRef:u}}function Nh(e){return it(e)&&e.tagName==="BUTTON"}let Or=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const Dh={[Or.startingStyle]:""},$h={[Or.endingStyle]:""},Lh={transitionStatus(e){return e==="starting"?Dh:e==="ending"?$h:null}};let yi=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Or.startingStyle]="startingStyle",e[e.endingStyle=Or.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),_i=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const Mh={[_i.popupOpen]:""},Fh={[_i.popupOpen]:"",[_i.pressed]:""},Vh={[yi.open]:""},Bh={[yi.closed]:""},Hh={[yi.anchorHidden]:""},Wh={open(e){return e?Mh:null}},Uh={open(e){return e?Fh:null}},Nc={open(e){return e?Vh:Bh},anchorHidden(e){return e?Hh:null}},zh=300;function Yh(e){return an(e,"base-ui")}const Dc=nt(function(t,n){const{render:r,className:o,disabled:i=!1,nativeButton:s=!0,handle:a,payload:l,openOnHover:c=!1,delay:f=zh,closeDelay:u=0,id:p,...d}=t,m=$n(!0),h=(a==null?void 0:a.store)??(m==null?void 0:m.store);if(!h)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.":xt(74));const v=Yh(p),y=h.useState("isTriggerActive",v),g=h.useState("floatingRootContext"),_=h.useState("isOpenedByTrigger",v),w=z(null),{registerTrigger:S,isMountedByThisTrigger:E}=sh(v,w,h,{payload:l,disabled:i,openOnHover:c,closeDelay:u}),x=h.useState("openChangeReason"),O=h.useState("stickIfOpen"),A=h.useState("openMethod"),T=bh(g,{enabled:g!=null&&c&&(A!=="touch"||x!==Et),mouseOnly:!0,move:!1,handleClose:Rh(),restMs:f,delay:{close:u},triggerElementRef:w,isActiveTrigger:y}),$=Sd(g,{enabled:g!=null,stickIfOpen:O}),j=Tc([$]),R=h.useState("triggerProps",E),N=q(()=>({disabled:i,open:_}),[i,_]),{getButtonProps:k,buttonRef:D}=jh({disabled:i,native:s}),F=q(()=>({open(M){return M&&x===Et?Uh.open(M):Wh.open(M)}}),[x]),b=dr("button",t,{state:N,ref:[D,n,S,w],props:[j.getReferenceProps(),T,R,{[Ca]:"",id:v},d,k],stateAttributesMapping:F}),I=z(null),G=J(M=>{rt(()=>{h.setOpen(!1,Re(Pn,M.nativeEvent,M.currentTarget))});const U=Ff(I.current);U==null||U.focus()}),ie=J(M=>{var se;const U=h.select("positionerElement");if(U&&sn(M,U))(se=h.context.beforeContentFocusGuardRef.current)==null||se.focus();else{rt(()=>{h.setOpen(!1,Re(Pn,M.nativeEvent,M.currentTarget))});let Q=Mf(w.current);for(;Q!==null&&de(U,Q)||Q!=null&&Q.hasAttribute("aria-hidden");){const ee=Q;if(Q=Do(Q),Q===ee)break}Q==null||Q.focus()}});return y?P(Ee,{children:[P(Mt,{ref:I,onFocus:G}),P(Ee,{children:b},v),P(Mt,{ref:h.context.triggerFocusTargetRef,onFocus:ie})]}):P(Ee,{children:b},v)});process.env.NODE_ENV!=="production"&&(Dc.displayName="PopoverTrigger");const wi=ze(void 0);process.env.NODE_ENV!=="production"&&(wi.displayName="PopoverPortalContext");function qh(){const e=Ve(wi);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Portal> is missing.":xt(45));return e}const $c=nt(function(t,n){const{keepMounted:r=!1,...o}=t,{store:i}=$n();return i.useState("mounted")||r?P(wi.Provider,{value:r,children:P(Wa,{ref:n,...o,renderGuards:!1})}):null});process.env.NODE_ENV!=="production"&&($c.displayName="PopoverPortal");function Gh(e){return Bo(19)?e:e?"true":void 0}const bi=ze(void 0);process.env.NODE_ENV!=="production"&&(bi.displayName="PopoverPositionerContext");function Kh(){const e=Ve(bi);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.":xt(46));return e}const Lc=ze(void 0);process.env.NODE_ENV!=="production"&&(Lc.displayName="DirectionContext");function Mc(){const e=Ve(Lc);return(e==null?void 0:e.direction)??"ltr"}const Xh=e=>({name:"arrow",options:e,async fn(t){var I,G;const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:f=0,offsetParent:u="real"}=gf(e,t)||{};if(c==null)return{};const p=xf(f),d={x:n,y:r},m=wf(o),h=yf(m),v=await s.getDimensions(c),y=m==="y",g=y?"top":"left",_=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[m]-d[m]-i.floating[h],E=d[m]-i.reference[m],x=u==="real"?await((I=s.getOffsetParent)==null?void 0:I.call(s,c)):a.floating;let O=a.floating[w]||i.floating[h];(!O||!await((G=s.isElement)==null?void 0:G.call(s,x)))&&(O=a.floating[w]||i.floating[h]);const A=S/2-E/2,T=O/2-v[h]/2-1,$=Math.min(p[g],T),j=Math.min(p[_],T),R=$,N=O-v[h]-j,k=O/2-v[h]/2+A,D=mf(R,k,N),F=!l.arrow&&Ao(o)!=null&&k!==D&&i.reference[h]/2-(k<R?$:j)-v[h]/2<0,b=F?k<R?k-R:k-N:0;return{[m]:d[m]+b,data:{[m]:D,centerOffset:k-D-b,...F&&{alignmentOffset:b}},reset:F}}}),Zh=(e,t)=>({...Xh(e),options:[e,t]}),Jh={name:"hide",async fn(e){var a;const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:((a=(await Rp().fn(e)).data)==null?void 0:a.referenceHidden)||i}}}},Tr={sideX:"left",sideY:"top"},Qh={name:"adaptiveOrigin",async fn(e){var g,_;const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:i,strategy:s,placement:a}=e,l=ot(o),c=l.getComputedStyle(o);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:t,y:n,data:Tr};const u=await((g=i.getOffsetParent)==null?void 0:g.call(i,o));let p={width:0,height:0};if(s==="fixed"&&(l!=null&&l.visualViewport))p={width:l.visualViewport.width,height:l.visualViewport.height};else if(u===l){const w=Qt(o);p={width:w.documentElement.clientWidth,height:w.documentElement.clientHeight}}else await((_=i.isElement)==null?void 0:_.call(i,u))&&(p=await i.getDimensions(u));const d=nn(a);let m=t,h=n;d==="left"&&(m=p.width-(t+r.width)),d==="top"&&(h=p.height-(n+r.height));const v=d==="left"?"right":Tr.sideX,y=d==="top"?"bottom":Tr.sideY;return{x:m,y:h,data:{sideX:v,sideY:y}}}};function Fc(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function Vc(e,t,n){const{rects:r,placement:o}=e;return{side:Fc(t,nn(o),n),align:Ao(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function em(e){var wl,bl;const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:l=5,sticky:c=!1,arrowPadding:f=5,disableAnchorTracking:u=!1,keepMounted:p=!1,floatingRootContext:d,mounted:m,collisionAvoidance:h,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:g,lazyFlip:_=!1,externalTree:w}=e,[S,E]=_e(null);!m&&S!==null&&E(null);const x=h.side||"flip",O=h.align||"flip",A=h.fallbackAxisSide||"end",T=typeof t=="function"?t:void 0,$=J(T),j=T?$:t,R=Xe(t),k=Mc()==="rtl",D=S||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":k?"left":"right","inline-start":k?"right":"left"}[r],F=i==="center"?D:`${D}-${i}`;let b=l;const I=1,G=r==="bottom"?I:0,ie=r==="top"?I:0,M=r==="right"?I:0,U=r==="left"?I:0;typeof b=="number"?b={top:b+G,right:b+U,bottom:b+ie,left:b+M}:b&&(b={top:(b.top||0)+G,right:(b.right||0)+U,bottom:(b.bottom||0)+ie,left:(b.left||0)+M});const se={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:b},Q=z(null),ee=Xe(o),ne=Xe(s),ke=[wp(we=>{const Ie=Vc(we,r,k),dt=typeof ee.current=="function"?ee.current(Ie):ee.current,Ge=typeof ne.current=="function"?ne.current(Ie):ne.current;return{mainAxis:dt,crossAxis:Ge,alignmentAxis:Ge}},[typeof o!="function"?o:0,typeof s!="function"?s:0,k,r])],C=O==="none"&&x!=="shift",Y=!C&&(c||v||x==="shift"),B=x==="none"?null:Ep({...se,padding:{top:b.top+I,right:b.right+I,bottom:b.bottom+I,left:b.left+I},mainAxis:!v&&x==="flip",crossAxis:O==="flip"?"alignment":!1,fallbackAxisSideDirection:A}),Ae=C?null:bp(we=>{const Ie=Qt(we.elements.floating).documentElement;return{...se,rootBoundary:v?{x:0,y:0,width:Ie.clientWidth,height:Ie.clientHeight}:void 0,mainAxis:O!=="none",crossAxis:Y,limiter:c||v?void 0:xp(dt=>{if(!Q.current)return{};const{width:Ge,height:yn}=Q.current.getBoundingClientRect(),_n=Io(nn(dt.placement)),Nr=_n==="y"?Ge:yn,Pi=_n==="y"?b.left+b.right:b.top+b.bottom;return{offset:Nr/2+Pi/2}})}},[se,c,v,b,O]);x==="shift"||O==="shift"||i==="center"?ke.push(Ae,B):ke.push(B,Ae),ke.push(Sp({...se,apply({elements:{floating:we},rects:{reference:Ie},availableWidth:dt,availableHeight:Ge}){Object.entries({"--available-width":`${dt}px`,"--available-height":`${Ge}px`,"--anchor-width":`${Ie.width}px`,"--anchor-height":`${Ie.height}px`}).forEach(([yn,_n])=>{we.style.setProperty(yn,_n)})}}),Zh(()=>({element:Q.current||document.createElement("div"),padding:f,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn(we){var El,Sl,Rl;const{elements:Ie,middlewareData:dt,placement:Ge,rects:yn,y:_n}=we,Nr=nn(Ge),Pi=Io(Nr),wn=Q.current,Vm=((El=dt.arrow)==null?void 0:El.x)||0,Bm=((Sl=dt.arrow)==null?void 0:Sl.y)||0,Hm=(wn==null?void 0:wn.clientWidth)||0,Wm=(wn==null?void 0:wn.clientHeight)||0,Ai=Vm+Hm/2,xl=Bm+Wm/2,Um=Math.abs(((Rl=dt.shift)==null?void 0:Rl.y)||0),zm=yn.reference.height/2,Vn=typeof o=="function"?o(Vc(we,r,k)):o,Ym=Um>Vn,qm={top:`${Ai}px calc(100% + ${Vn}px)`,bottom:`${Ai}px ${-Vn}px`,left:`calc(100% + ${Vn}px) ${xl}px`,right:`${-Vn}px ${xl}px`}[Nr],Gm=`${Ai}px ${yn.reference.y+zm-_n}px`;return Ie.floating.style.setProperty("--transform-origin",Y&&Pi==="y"&&Ym?Gm:qm),{}}},Jh,g),ae(()=>{!m&&d&&d.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[m,d]);const re=q(()=>({elementResize:!u&&typeof ResizeObserver<"u",layoutShift:!u&&typeof IntersectionObserver<"u"}),[u]),{refs:L,elements:H,x:te,y:oe,middlewareData:le,update:X,placement:W,context:xe,isPositioned:ve,floatingStyles:$e}=ph({rootContext:d,placement:F,middleware:ke,strategy:n,whileElementsMounted:p?void 0:(...we)=>pc(...we,re),nodeId:y,externalTree:w}),{sideX:Ht,sideY:vn}=le.adaptiveOrigin||Tr,je=ve?n:"fixed",Me=q(()=>g?{position:je,[Ht]:te,[vn]:oe}:{position:je,...$e},[g,je,Ht,te,vn,oe,$e]),Le=z(null);ae(()=>{if(!m)return;const we=R.current,Ie=typeof we=="function"?we():we,Ge=(Bc(Ie)?Ie.current:Ie)||null||null;Ge!==Le.current&&(L.setPositionReference(Ge),Le.current=Ge)},[m,L,j,R]),me(()=>{if(!m)return;const we=R.current;typeof we!="function"&&Bc(we)&&we.current!==Le.current&&(L.setPositionReference(we.current),Le.current=we.current)},[m,L,j,R]),me(()=>{if(p&&m&&H.domReference&&H.floating)return pc(H.domReference,H.floating,X,re)},[p,m,H,X,re]);const ft=nn(W),ml=Fc(r,ft,k),gl=Ao(W)||"center",vl=!!((wl=le.hide)!=null&&wl.referenceHidden);ae(()=>{_&&m&&ve&&E(ft)},[_,m,ve,ft]);const yl=q(()=>{var we,Ie;return{position:"absolute",top:(we=le.arrow)==null?void 0:we.y,left:(Ie=le.arrow)==null?void 0:Ie.x}},[le.arrow]),_l=((bl=le.arrow)==null?void 0:bl.centerOffset)!==0;return q(()=>({positionerStyles:Me,arrowStyles:yl,arrowRef:Q,arrowUncentered:_l,side:ml,align:gl,physicalSide:ft,anchorHidden:vl,refs:L,context:xe,isPositioned:ve,update:X}),[Me,yl,Q,_l,ml,gl,ft,vl,L,xe,ve,X])}function Bc(e){return e!=null&&"current"in e}const Hc=nt(function(t,n){const{cutout:r,...o}=t;let i;if(r){const s=r==null?void 0:r.getBoundingClientRect();i=`polygon(
|
|
7
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:s,stack:c})}},Ip={inputStabilityCheck:"once",identityFunctionCheck:"once"},Er=Symbol("NOT_FOUND");function jp(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function $p(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Np(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var vc=e=>Array.isArray(e)?e:[e];function Dp(e){const t=Array.isArray(e[0])?e[0]:e;return Np(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function yc(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var Lp=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...Ip,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:Pp},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Ap}}};function Mp(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Er},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Fp(e,t){let n=[];function r(a){const l=n.findIndex(c=>t(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return Er}function o(a,l){r(a)===Er&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var Vp=(e,t)=>e===t;function Bp(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function Hp(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Vp,maxSize:o=1,resultEqualityCheck:i}=n,s=Bp(r);let a=0;const l=o<=1?Mp(s):Fp(o,s);function c(){let f=l.get(arguments);if(f===Er){if(f=e.apply(null,arguments),a++,i){const p=l.getEntries().find(d=>i(d.value,f));p&&(f=p.value,a!==0&&a--)}l.put(arguments,f)}return f}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Up=class{constructor(e){this.value=e}deref(){return this.value}},Wp=typeof WeakRef<"u"?WeakRef:Up,zp=0,_c=1;function Sr(){return{s:zp,v:void 0,o:null,p:null}}function wc(e,t={}){let n=Sr();const{resultEqualityCheck:r}=t;let o,i=0;function s(){var u;let a=n;const{length:l}=arguments;for(let p=0,d=l;p<d;p++){const g=arguments[p];if(typeof g=="function"||typeof g=="object"&&g!==null){let h=a.o;h===null&&(a.o=h=new WeakMap);const v=h.get(g);v===void 0?(a=Sr(),h.set(g,a)):a=v}else{let h=a.p;h===null&&(a.p=h=new Map);const v=h.get(g);v===void 0?(a=Sr(),h.set(g,a)):a=v}}const c=a;let f;if(a.s===_c)f=a.v;else if(f=e.apply(null,arguments),i++,r){const p=((u=o==null?void 0:o.deref)==null?void 0:u.call(o))??o;p!=null&&r(p,f)&&(f=p,i!==0&&i--),o=typeof f=="object"&&f!==null||typeof f=="function"?new Wp(f):f}return c.s=_c,c.v=f,f}return s.clearCache=()=>{n=Sr(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function bc(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),jp(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...n,...l},{memoize:u,memoizeOptions:p=[],argsMemoize:d=wc,argsMemoizeOptions:g=[],devModeChecks:h={}}=f,v=vc(p),y=vc(g),m=Dp(o),_=u(function(){return i++,c.apply(null,arguments)},...v);let w=!0;const S=d(function(){s++;const x=yc(m,arguments);if(a=_.apply(null,x),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:O,inputStabilityCheck:A}=Lp(w,h);if(O.shouldRun&&O.run(c,x,a),A.shouldRun){const T=yc(m,arguments);A.run({inputSelectorResults:x,inputSelectorResultsCopy:T},{memoize:u,memoizeOptions:v},arguments)}w&&(w=!1)}return a},...y);return Object.assign(S,{resultFunc:c,memoizedResultFunc:_,dependencies:m,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:u,argsMemoize:d})};return Object.assign(r,{withTypes:()=>r}),r}var Yp=bc(wc),qp=Object.assign((e,t=Yp)=>{$p(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>qp});bc({memoize:Hp,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const ce=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of selectors":xt(1));let a;if(e)a=e;else throw new Error("Missing arguments");return a};function Gp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ri={exports:{}},oi={};const kr=Gp(bo);var xc;function Kp(){if(xc)return oi;xc=1;var e=kr;function t(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(u,p){var d=p(),g=r({inst:{value:d,getSnapshot:p}}),h=g[0].inst,v=g[1];return i(function(){h.value=d,h.getSnapshot=p,l(h)&&v({inst:h})},[u,d,p]),o(function(){return l(h)&&v({inst:h}),u(function(){l(h)&&v({inst:h})})},[u]),s(d),d}function l(u){var p=u.getSnapshot;u=u.value;try{var d=p();return!n(u,d)}catch{return!0}}function c(u,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return oi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,oi}var ii={};var Ec;function Xp(){return Ec||(Ec=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}function t(d,g){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=g();if(!u){var v=g();i(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}v=s({inst:{value:h,getSnapshot:g}});var y=v[0].inst,m=v[1];return l(function(){y.value=h,y.getSnapshot=g,n(y)&&m({inst:y})},[d,h,g]),a(function(){return n(y)&&m({inst:y}),d(function(){n(y)&&m({inst:y})})},[d]),c(h),h}function n(d){var g=d.getSnapshot;d=d.value;try{var h=g();return!i(d,h)}catch{return!0}}function r(d,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=kr,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,f=!1,u=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ii.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ii}process.env.NODE_ENV==="production"?ri.exports=Kp():ri.exports=Xp();var si=ri.exports,ai={exports:{}},ci={};var Sc;function Zp(){if(Sc)return ci;Sc=1;var e=kr,t=si;function n(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return ci.useSyncExternalStoreWithSelector=function(c,f,u,p,d){var g=i(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=a(function(){function y(E){if(!m){if(m=!0,_=E,E=p(E),d!==void 0&&h.hasValue){var x=h.value;if(d(x,E))return w=x}return w=E}if(x=w,r(_,E))return x;var O=p(E);return d!==void 0&&d(x,O)?(_=E,x):(_=E,w=O)}var m=!1,_,w,S=u===void 0?null:u;return[function(){return y(f())},S===null?void 0:function(){return y(S())}]},[f,u,p,d]);var v=o(c,g[0],g[1]);return s(function(){h.hasValue=!0,h.value=v},[v]),l(v),v},ci}var li={};var kc;function Jp(){return kc||(kc=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=kr,n=si,r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;li.useSyncExternalStoreWithSelector=function(c,f,u,p,d){var g=i(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=a(function(){function y(E){if(!m){if(m=!0,_=E,E=p(E),d!==void 0&&h.hasValue){var x=h.value;if(d(x,E))return w=x}return w=E}if(x=w,r(_,E))return x;var O=p(E);return d!==void 0&&d(x,O)?(_=E,x):(_=E,w=O)}var m=!1,_,w,S=u===void 0?null:u;return[function(){return y(f())},S===null?void 0:function(){return y(S())}]},[f,u,p,d]);var v=o(c,g[0],g[1]);return s(function(){h.hasValue=!0,h.value=v},[v]),l(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),li}process.env.NODE_ENV==="production"?ai.exports=Zp():ai.exports=Jp();var Qp=ai.exports;const eh=Bo(19)?nh:rh;function th(e,t,n,r,o){return eh(e,t,n,r,o)}function nh(e,t,n,r,o){const i=fe(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return si.useSyncExternalStore(e.subscribe,i,i)}function rh(e,t,n,r,o){return Qp.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}class Nn{constructor(t){ue(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));ue(this,"getSnapshot",()=>this.state);this.state=t,this.listeners=new Set,this.updateTick=0}setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){Nn.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||Nn.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};Nn.prototype.setState.call(this,t)}}class Rc extends Nn{constructor(n,r={},o){super(n);ue(this,"controlledValues",new Map);ue(this,"select",(n,r,o,i)=>{const s=this.selectors[n];return s(this.state,r,o,i)});ue(this,"useState",(n,r,o,i)=>{wt(n);const s=this.selectors[n];return th(this,s,r,o,i)});this.context=r,this.selectors=o}useSyncedValue(n,r){wt(n),ae(()=>{this.state[n]!==r&&this.set(n,r)},[n,r])}useSyncedValueWithCleanup(n,r){ae(()=>(this.state[n]!==r&&this.set(n,r),()=>{this.set(n,void 0)}),[n,r])}useSyncedValues(n){if(process.env.NODE_ENV!=="production"){wt(n,s=>Object.keys(s));const o=z(Object.keys(n)).current,i=Object.keys(n);(o.length!==i.length||o.some((s,a)=>s!==i[a]))&&console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.")}const r=Object.values(n);ae(()=>{this.update(n)},r)}useControlledProp(n,r,o){wt(n);const i=r!==void 0;if(process.env.NODE_ENV!=="production"){const s=this.controlledValues.get(n);s!==void 0&&s!==i&&console.error(`A component is changing the ${i?"":"un"}controlled state of ${n.toString()} to be ${i?"un":""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}this.controlledValues.has(n)||(this.controlledValues.set(n,i),!i&&!Object.is(this.state[n],o)&&super.setState({...this.state,[n]:o})),ae(()=>{i&&!Object.is(this.state[n],r)&&super.setState({...this.state,[n]:r})},[n,r,o,i])}set(n,r){this.controlledValues.get(n)!==!0&&super.set(n,r)}update(n){const r={...n};for(const o in r)if(Object.hasOwn(r,o)&&this.controlledValues.get(o)===!0){delete r[o];continue}super.update(r)}setState(n){const r={...n};for(const o in r)if(Object.hasOwn(r,o)&&this.controlledValues.get(o)===!0){delete r[o];continue}super.setState({...this.state,...r})}useContextCallback(n,r){wt(n);const o=J(r??ra);this.context[n]=o}useStateSetter(n){const r=z(void 0);return r.current===void 0&&(r.current=o=>{this.set(n,o)}),r.current}observe(n,r){let o;typeof n=="function"?o=n:o=this.selectors[n];let i=o(this.state);return r(i,i,this),this.subscribe(s=>{const a=o(s);if(!Object.is(i,a)){const l=i;i=a,r(a,l,this)}})}}const oh={open:ce(e=>e.open),domReferenceElement:ce(e=>e.domReferenceElement),referenceElement:ce(e=>e.positionReference??e.referenceElement),floatingElement:ce(e=>e.floatingElement),floatingId:ce(e=>e.floatingId)};class ui extends Rc{constructor(n){const{nested:r,noEmit:o,onOpenChange:i,triggerElements:s,...a}=n;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:i,dataRef:{current:{}},events:Ca(),nested:r,noEmit:o,triggerElements:s},oh);ue(this,"setOpen",(n,r)=>{var o,i;if((!n||!this.state.open||pa(r.event))&&(this.context.dataRef.current.openEvent=n?r.event:void 0),!this.context.noEmit){const s={open:n,reason:r.reason,nativeEvent:r.event,nested:this.context.nested,triggerElement:r.trigger};this.context.events.emit("openchange",s)}(i=(o=this.context).onOpenChange)==null||i.call(o,n,r)})}}function ih(e,t=!1,n=!1){const[r,o]=_e(e&&t?"idle":void 0),[i,s]=_e(e);return e&&!i&&(s(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),ae(()=>{if(!e&&i&&r!=="ending"&&n){const a=st.request(()=>{o("ending")});return()=>{st.cancel(a)}}},[e,i,r,n]),ae(()=>{if(!e||t)return;const a=st.request(()=>{nt(()=>{o(void 0)})});return()=>{st.cancel(a)}},[t,e]),ae(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const a=st.request(()=>{o("idle")});return()=>{st.cancel(a)}},[t,e,i,o,r]),q(()=>({mounted:i,setMounted:s,transitionStatus:r}),[i,r])}function fi(e,t=!1,n=!0){const r=or();return J((o,i=null)=>{r.cancel();const s=Ft(e);s!=null&&(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function a(){s&&Promise.all(s.getAnimations().map(l=>l.finished)).then(()=>{i!=null&&i.aborted||nt(o)}).catch(()=>{if(n){if(i!=null&&i.aborted)return;nt(o)}else s.getAnimations().length>0&&s.getAnimations().some(l=>l.pending||l.playState!=="finished")&&a()})}t?r.request(a):a()}))})}function Oc(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=Ke(n),s=J(o),a=fi(r,n);ge(()=>{t&&a(()=>{n===i.current&&s()})},[t,n,s,a,i])}function sh(e,t){const n=z(null);return fe(r=>{if(e!==void 0&&(n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null),r!==null))return n.current=e,t.context.triggerElements.add(e,r),()=>{n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null)}},[t,e])}function ah(e,t,n,r){const o=n.useState("isMountedByTrigger",e),i=sh(e,n),s=J(a=>{const l=i(a);return a!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:a,...r}),l});return ae(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:o}}function ch(e){const t=e.useState("open");ae(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function lh(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=ih(e);t.useSyncedValues({mounted:r,transitionStatus:i});const s=J(()=>{var l,c;o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n==null||n(),(c=(l=t.context).onOpenChangeComplete)==null||c.call(l,!1)}),a=t.useState("preventUnmountingOnClose");return Oc({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||s()}}),{forceUnmount:s,transitionStatus:i}}class di{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);if(r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n),process.env.NODE_ENV!=="production"&&this.elements.size!==this.idMap.size))throw new Error(process.env.NODE_ENV!=="production"?"Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.":xt(87))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function uh(){return new ui({open:!1,floatingElement:null,referenceElement:null,triggerElements:new di,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function fh(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:uh(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:$e,inactiveTriggerProps:$e,popupProps:$e}}const dh={open:ce(e=>e.open),mounted:ce(e=>e.mounted),transitionStatus:ce(e=>e.transitionStatus),floatingRootContext:ce(e=>e.floatingRootContext),preventUnmountingOnClose:ce(e=>e.preventUnmountingOnClose),payload:ce(e=>e.payload),activeTriggerId:ce(e=>e.activeTriggerId),activeTriggerElement:ce(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:ce((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:ce((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:ce((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:ce((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:ce(e=>e.popupProps),popupElement:ce(e=>e.popupElement),positionerElement:ce(e=>e.positionerElement)};function ph(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=an(),i=Lt()!=null;if(process.env.NODE_ENV!=="production"){const a=r.reference;a&&!Te(a)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`","instead.")}const s=it(()=>new ui({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new di,floatingId:o,nested:i,noEmit:e.noEmit||!1})).current;return ae(()=>{const a={open:t,floatingId:o};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=Te(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),s.update(a)},[t,o,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=i,s.context.noEmit=e.noEmit||!1,s}function hh(e={}){const{nodeId:t,externalTree:n}=e,r=ph(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[s,a]=_e(null),l=z(null),c=cn(n);ae(()=>{i.domReference&&(l.current=i.domReference)},[i.domReference]);const f=wp({...e,elements:{...i,...s&&{reference:s}}}),u=fe(x=>{const O=Te(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;a(O),f.refs.setReference(O)},[f.refs]),[p,d]=_e(null),[g,h]=_e(null);o.useSyncedValue("referenceElement",p),o.useSyncedValue("domReferenceElement",Te(p)?p:null),o.useSyncedValue("floatingElement",g);const v=fe(x=>{(Te(x)||x===null)&&(l.current=x,d(x)),(Te(f.refs.reference.current)||f.refs.reference.current===null||x!==null&&!Te(x))&&f.refs.setReference(x)},[f.refs,d]),y=fe(x=>{h(x),f.refs.setFloating(x)},[f.refs]),m=q(()=>({...f.refs,setReference:v,setFloating:y,setPositionReference:u,domReference:l}),[f.refs,v,y,u]),_=q(()=>({...f.elements,domReference:i.domReference}),[f.elements,i.domReference]),w=o.useState("open"),S=o.useState("floatingId"),E=q(()=>({...f,dataRef:o.context.dataRef,open:w,onOpenChange:o.setOpen,events:o.context.events,floatingId:S,refs:m,elements:_,nodeId:t,rootStore:o}),[f,m,_,t,o,w,S]);return ae(()=>{o.context.dataRef.current.floatingContext=E;const x=c==null?void 0:c.nodesRef.current.find(O=>O.id===t);x&&(x.context=E)}),q(()=>({...f,context:E,refs:m,elements:_,rootStore:o}),[f,m,_,E,o])}function gh(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=an(),s=Lt()!=null,a=t.useState("open"),l=t.useState("activeTriggerElement"),c=t.useState(r?"popupElement":"positionerElement"),f=t.context.triggerElements,u=it(()=>new ui({open:a,referenceElement:l,floatingElement:c,triggerElements:f,onOpenChange:o,floatingId:i,nested:s,noEmit:n})).current;return ae(()=>{const p={open:a,floatingId:i,referenceElement:l,floatingElement:c};Te(l)&&(p.domReferenceElement=l),u.update(p)},[a,i,l,c,u]),u.context.onOpenChange=o,u.context.nested=s,u.context.noEmit=n,u}const pi=An("safe-polygon"),mh=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${la}`;function vh(e){return e?!!e.closest(mh):!1}function Tc(e){const t=z(void 0),n=z(!1),r=z(void 0),o=z(!0),i=z(!1),s=z(()=>{}),a=z(!1),l=Nt(),c=Nt(),f=z(void 0);return q(()=>{const u=e.context.dataRef.current;return u.hoverInteractionState||(u.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:i,unbindMouseMoveRef:s,restTimeoutPendingRef:a,openChangeTimeout:l,restTimeout:c,handleCloseOptionsRef:f}),u.hoverInteractionState},[e,t,n,r,o,i,s,a,l,c,f])}const yh=new Set(["click","mousedown"]);function _h(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),{dataRef:s}=n.context,{enabled:a=!0,closeDelay:l=0,externalTree:c}=t,{pointerTypeRef:f,interactedInsideRef:u,handlerRef:p,performedPointerEventsMutationRef:d,unbindMouseMoveRef:g,restTimeoutPendingRef:h,openChangeTimeout:v,handleCloseOptionsRef:y}=Tc(n),m=cn(c),_=Lt(),w=J(()=>u.current?!0:s.current.openEvent?yh.has(s.current.openEvent.type):!1),S=J(()=>{var D;const T=(D=s.current.openEvent)==null?void 0:D.type;return(T==null?void 0:T.includes("mouse"))&&T!=="mousedown"}),E=fe((T,D=!0)=>{const j=wh(l,f.current);j&&!p.current?v.start(j,()=>n.setOpen(!1,ke(Ye,T))):D&&(v.clear(),n.setOpen(!1,ke(Ye,T)))},[l,p,n,f,v]),x=J(()=>{g.current(),p.current=void 0}),O=J(()=>{if(d.current){const T=Oe(o).body;T.style.pointerEvents="",T.removeAttribute(pi),d.current=!1}}),A=J(T=>{const D=ze(T);if(!vh(D)){u.current=!1;return}u.current=!0});ae(()=>{r||(f.current=void 0,h.current=!1,u.current=!1,x(),O())},[r,f,h,u,x,O]),ge(()=>()=>{x()},[x]),ge(()=>O,[O]),ae(()=>{var T,D,j;if(a&&r&&(T=y.current)!=null&&T.blockPointerEvents&&S()&&Te(i)&&o){d.current=!0;const k=Oe(o).body;k.setAttribute(pi,"");const $=i,R=o,N=(j=(D=m==null?void 0:m.nodesRef.current.find(F=>F.id===_))==null?void 0:D.context)==null?void 0:j.elements.floating;return N&&(N.style.pointerEvents=""),k.style.pointerEvents="none",$.style.pointerEvents="auto",R.style.pointerEvents="auto",()=>{k.style.pointerEvents="",$.style.pointerEvents="",R.style.pointerEvents=""}}},[a,r,i,o,y,S,m,_,d]),ge(()=>{if(!a)return;function T($){if(w()||!s.current.floatingContext)return;const R=n.context.triggerElements;$.relatedTarget&&R.hasElement($.relatedTarget)||(O(),x(),w()||E($))}function D($){var R;v.clear(),O(),(R=p.current)==null||R.call(p,$),x()}function j($){w()||E($,!1)}const k=o;return k&&(k.addEventListener("mouseleave",T),k.addEventListener("mouseenter",D),k.addEventListener("mouseleave",j),k.addEventListener("pointerdown",A,!0)),()=>{k&&(k.removeEventListener("mouseleave",T),k.removeEventListener("mouseenter",D),k.removeEventListener("mouseleave",j),k.removeEventListener("pointerdown",A,!0))}})}function wh(e,t){return t&&!tn(t)?0:typeof e=="function"?e():e}function hi(e){return typeof e=="function"?e():e}const bh={current:null};function xh(e,t={}){var F;const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:o}=n.context,{enabled:i=!0,delay:s=0,handleClose:a=null,mouseOnly:l=!1,restMs:c=0,move:f=!0,triggerElementRef:u=bh,externalTree:p,isActiveTrigger:d=!0}=t,g=cn(p),{pointerTypeRef:h,interactedInsideRef:v,handlerRef:y,blockMouseMoveRef:m,performedPointerEventsMutationRef:_,unbindMouseMoveRef:w,restTimeoutPendingRef:S,openChangeTimeout:E,restTimeout:x,handleCloseOptionsRef:O}=Tc(n),A=Ke(a),T=Ke(s),D=Ke(c);d&&(O.current=(F=A.current)==null?void 0:F.__options);const j=J(()=>v.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),k=fe((b,I=!0)=>{const G=Mo(T.current,"close",h.current);G&&!y.current?E.start(G,()=>n.setOpen(!1,ke(Ye,b))):I&&(E.clear(),n.setOpen(!1,ke(Ye,b)))},[T,y,n,h,E]),$=J(()=>{w.current(),y.current=void 0}),R=J(()=>{if(_.current){const b=Oe(n.select("domReferenceElement")).body;b.style.pointerEvents="",b.removeAttribute(pi),_.current=!1}});ge(()=>{if(!i)return;function b(I){I.open||(E.clear(),x.clear(),m.current=!0,S.current=!1)}return o.on("openchange",b),()=>{o.off("openchange",b)}},[i,o,E,x,m,S]);const N=J(b=>{var G;if(j()||!r.current.floatingContext)return;const I=n.context.triggerElements;b.relatedTarget&&I.hasElement(b.relatedTarget)||(G=A.current)==null||G.call(A,{...r.current.floatingContext,tree:g,x:b.clientX,y:b.clientY,onClose(){R(),$(),j()||k(b)}})(b)});return ge(()=>{if(!i)return;const b=u.current??(d?n.select("domReferenceElement"):null);if(!Te(b))return;function I(M){if(E.clear(),m.current=!1,l&&!tn(h.current)||hi(D.current)>0&&!Mo(T.current,"open"))return;const W=Mo(T.current,"open",h.current),se=n.select("domReferenceElement"),Q=n.context.triggerElements,ee=(Q.hasElement(M.target)||Q.hasMatchingElement(K=>de(K,M.target)))&&(!se||!de(se,M.target)),ne=M.currentTarget??null;W?E.start(W,()=>{n.select("open")||n.setOpen(!0,ke(Ye,M,ne))}):(!n.select("open")||ee)&&n.setOpen(!0,ke(Ye,M,ne))}function G(M){if(j()){R();return}w.current();const W=n.select("domReferenceElement"),se=Oe(W);x.clear(),S.current=!1;const Q=n.context.triggerElements;if(M.relatedTarget&&Q.hasElement(M.relatedTarget))return;if(A.current&&r.current.floatingContext){n.select("open")||E.clear(),y.current=A.current({...r.current.floatingContext,tree:g,x:M.clientX,y:M.clientY,onClose(){R(),$(),j()||k(M,!0)}});const ne=y.current;ne(M),se.addEventListener("mousemove",ne),w.current=()=>{se.removeEventListener("mousemove",ne)};return}(h.current!=="touch"||!de(n.select("floatingElement"),M.relatedTarget))&&k(M)}function ie(M){N(M)}return n.select("open")&&b.addEventListener("mouseleave",ie),f&&b.addEventListener("mousemove",I,{once:!0}),b.addEventListener("mouseenter",I),b.addEventListener("mouseleave",G),()=>{b.removeEventListener("mouseleave",ie),f&&b.removeEventListener("mousemove",I),b.removeEventListener("mouseenter",I),b.removeEventListener("mouseleave",G)}},[$,R,m,r,T,k,n,i,A,N,d,j,l,f,h,D,x,S,E,u,g,w,y]),q(()=>{function b(I){h.current=I.pointerType}return{onPointerDown:b,onPointerEnter:b,onMouseMove(I){const{nativeEvent:G}=I,ie=I.currentTarget,M=n.select("domReferenceElement"),W=n.context.triggerElements,se=n.select("open"),Q=(W.hasElement(I.target)||W.hasMatchingElement(ne=>de(ne,I.target)))&&(!M||!de(M,I.target));if(l&&!tn(h.current)||se&&!Q||hi(D.current)===0||!Q&&S.current&&I.movementX**2+I.movementY**2<2)return;x.clear();function ee(){!m.current&&(!se||Q)&&n.setOpen(!0,ke(Ye,G,ie))}h.current==="touch"?nt(()=>{ee()}):Q&&se?ee():(S.current=!0,x.start(hi(D.current),ee))}}},[m,l,n,h,D,x,S])}function Cc(e=[]){const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=e.map(c=>c==null?void 0:c.trigger),i=fe(c=>Rr(c,e,"reference"),t),s=fe(c=>Rr(c,e,"floating"),n),a=fe(c=>Rr(c,e,"item"),r),l=fe(c=>Rr(c,e,"trigger"),o);return q(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a,getTriggerProps:l}),[i,s,a,l])}function Rr(e,t,n){var s;const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[Co]="");for(const a in e)o&&e&&(a===aa||a===ca)||(i[a]=e[a]);for(let a=0;a<t.length;a+=1){let l;const c=(s=t[a])==null?void 0:s[n];typeof c=="function"?l=e?c(e):null:l=c,l&&Pc(i,l,o,r)}return Pc(i,e,o,r),i}function Pc(e,t,n,r){var o;for(const i in t){const s=t[i];n&&(i===aa||i===ca)||(i.startsWith("on")?(r.has(i)||r.set(i,[]),typeof s=="function"&&((o=r.get(i))==null||o.push(s),e[i]=(...a)=>{var l;return(l=r.get(i))==null?void 0:l.map(c=>c(...a)).find(c=>c!==void 0)})):e[i]=s)}}const Eh=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Sh(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),i=n.useState("domReferenceElement"),s=n.useState("floatingElement"),{enabled:a=!0,role:l="dialog"}=t,c=an(),f=(i==null?void 0:i.id)||c,u=q(()=>{var _;return((_=Po(s))==null?void 0:_.id)||o},[s,o]),p=Eh.get(l)??l,g=Lt()!=null,h=q(()=>p==="tooltip"||l==="label"?$e:{"aria-haspopup":p==="alertdialog"?"dialog":p,"aria-expanded":"false",...p==="listbox"&&{role:"combobox"},...p==="menu"&&g&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[p,g,l]),v=q(()=>p==="tooltip"||l==="label"?{[`aria-${l==="label"?"labelledby":"describedby"}`]:r?u:void 0}:{...h,"aria-expanded":r?"true":"false","aria-controls":r?u:void 0,...p==="menu"&&{id:f}},[p,u,r,f,l,h]),y=q(()=>{const _={id:u,...p&&{role:p}};return p==="tooltip"||l==="label"?_:{..._,...p==="menu"&&{"aria-labelledby":f}}},[p,u,f,l]),m=fe(({active:_,selected:w})=>{const S={role:"option",..._&&{id:`${u}-fui-option`}};switch(l){case"select":case"combobox":return{...S,"aria-selected":w}}return{}},[u,l]);return q(()=>a?{reference:v,floating:y,item:m,trigger:h}:{},[a,v,y,h,m])}function Ac(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,c]=t[s]||[0,0],[f,u]=t[a]||[0,0];c>=r!=u>=r&&n<=(f-l)*(r-c)/(u-c)+l&&(o=!o)}return o}function kh(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Rh(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new bt;let i=!1,s=null,a=null,l=typeof performance<"u"?performance.now():0;function c(u,p){const d=performance.now(),g=d-l;if(s===null||a===null||g===0)return s=u,a=p,l=d,null;const h=u-s,v=p-a,m=Math.sqrt(h*h+v*v)/g;return s=u,a=p,l=d,m}const f=({x:u,y:p,placement:d,elements:g,onClose:h,nodeId:v,tree:y})=>function(_){function w(){o.clear(),h()}if(o.clear(),!g.domReference||!g.floating||d==null||u==null||p==null)return;const{clientX:S,clientY:E}=_,x=[S,E],O=ze(_),A=_.type==="mouseleave",T=de(g.floating,O),D=de(g.domReference,O),j=g.domReference.getBoundingClientRect(),k=g.floating.getBoundingClientRect(),$=d.split("-")[0],R=u>k.right-k.width/2,N=p>k.bottom-k.height/2,F=kh(x,j),b=k.width>j.width,I=k.height>j.height,G=(b?j:k).left,ie=(b?j:k).right,M=(I?j:k).top,W=(I?j:k).bottom;if(T&&(i=!0,!A))return;if(D&&(i=!1),D&&!A){i=!0;return}if(A&&Te(_.relatedTarget)&&de(g.floating,_.relatedTarget)||y&&Dt(y.nodesRef.current,v).some(({context:ee})=>ee==null?void 0:ee.open))return;if($==="top"&&p>=j.bottom-1||$==="bottom"&&p<=j.top+1||$==="left"&&u>=j.right-1||$==="right"&&u<=j.left+1)return w();let se=[];switch($){case"top":se=[[G,j.top+1],[G,k.bottom-1],[ie,k.bottom-1],[ie,j.top+1]];break;case"bottom":se=[[G,k.top+1],[G,j.bottom-1],[ie,j.bottom-1],[ie,k.top+1]];break;case"left":se=[[k.right-1,W],[k.right-1,M],[j.left+1,M],[j.left+1,W]];break;case"right":se=[[j.right-1,W],[j.right-1,M],[k.left+1,M],[k.left+1,W]];break}function Q([ee,ne]){switch($){case"top":{const K=[b?ee+t/2:R?ee+t*4:ee-t*4,ne+t+1],Se=[b?ee-t/2:R?ee+t*4:ee-t*4,ne+t+1],Re=[[k.left,R||b?k.bottom-t:k.top],[k.right,R?b?k.bottom-t:k.top:k.bottom-t]];return[K,Se,...Re]}case"bottom":{const K=[b?ee+t/2:R?ee+t*4:ee-t*4,ne-t],Se=[b?ee-t/2:R?ee+t*4:ee-t*4,ne-t],Re=[[k.left,R||b?k.top+t:k.bottom],[k.right,R?b?k.top+t:k.bottom:k.top+t]];return[K,Se,...Re]}case"left":{const K=[ee+t+1,I?ne+t/2:N?ne+t*4:ne-t*4],Se=[ee+t+1,I?ne-t/2:N?ne+t*4:ne-t*4];return[...[[N||I?k.right-t:k.left,k.top],[N?I?k.right-t:k.left:k.right-t,k.bottom]],K,Se]}case"right":{const K=[ee-t,I?ne+t/2:N?ne+t*4:ne-t*4],Se=[ee-t,I?ne-t/2:N?ne+t*4:ne-t*4],Re=[[N||I?k.left+t:k.right,k.top],[N?I?k.left+t:k.right:k.left+t,k.bottom]];return[K,Se,...Re]}default:return[]}}if(!Ac([S,E],se)){if(i&&!F)return w();if(!A&&r){const ee=c(_.clientX,_.clientY);if(ee!==null&&ee<.1)return w()}Ac([S,E],Q([u,p]))?!i&&r&&o.start(40,w):w()}};return f.__options={blockPointerEvents:n},f}const gi=We(void 0);process.env.NODE_ENV!=="production"&&(gi.displayName="PopoverRootContext");function Dn(e){const t=Fe(gi);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.":xt(47));return t}function Oh(){return{...fh(),disabled:!1,modal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0}}const Th={...dh,disabled:ce(e=>e.disabled),instantType:ce(e=>e.instantType),openMethod:ce(e=>e.openMethod),openChangeReason:ce(e=>e.openChangeReason),modal:ce(e=>e.modal),stickIfOpen:ce(e=>e.stickIfOpen),titleElementId:ce(e=>e.titleElementId),descriptionElementId:ce(e=>e.descriptionElementId),openOnHover:ce(e=>e.openOnHover),closeDelay:ce(e=>e.closeDelay)};class mi extends Rc{constructor(n){const r={...Oh(),...n};r.open&&(n==null?void 0:n.mounted)===void 0&&(r.mounted=!0);super(r,{popupRef:It(),backdropRef:It(),internalBackdropRef:It(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:It(),beforeContentFocusGuardRef:It(),stickIfOpenTimeout:new bt,triggerElements:new di},Th);ue(this,"setOpen",(n,r)=>{var f,u;const o=r.reason===Ye,i=r.reason===Et&&r.event.detail===0,s=!n&&(r.reason===Ia||r.reason==null);if(r.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},(u=(f=this.context).onOpenChange)==null||u.call(f,n,r),r.isCanceled)return;const a={open:n,nativeEvent:r.event,reason:r.reason,nested:this.state.nested,triggerElement:r.trigger},l=this.state.floatingRootContext.context.events;l==null||l.emit("openchange",a);const c=()=>{var g;const p={open:n,openChangeReason:r.reason},d=((g=r.trigger)==null?void 0:g.id)??null;(d||n)&&(p.activeTriggerId=d,p.activeTriggerElement=r.trigger??null),this.update(p)};o?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(Gf,()=>{this.set("stickIfOpen",!1)}),nt(c)):c(),i||s?this.set("instantType",i?"click":"dismiss"):r.reason===Pn?this.set("instantType","focus"):this.set("instantType",void 0)});ue(this,"disposeEffect",()=>this.context.stickIfOpenTimeout.disposeEffect())}static useStore(n,r){const o=it(()=>n??new mi(r)).current;return Oo(o.disposeEffect),o}}function Ch(e){const t=z(""),n=fe(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:fe(o=>{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o&&e(o,o.pointerType),e(o,t.current),t.current=""},[e]),onPointerDown:n}}function Ph(e){const[t,n]=_e(null),r=J((a,l)=>{e||n(l)}),o=fe(()=>{n(null)},[]),{onClick:i,onPointerDown:s}=Ch(r);return q(()=>({openMethod:t,reset:o,triggerProps:{onClick:i,onPointerDown:s}}),[t,o,i,s])}function Ic({props:e}){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:o,onOpenChangeComplete:i,modal:s=!1,handle:a,triggerId:l,defaultTriggerId:c=null}=e,f=mi.useStore(a==null?void 0:a.store,{open:n??r,modal:s,activeTriggerId:l!==void 0?l:c});f.useControlledProp("open",n,r),f.useControlledProp("activeTriggerId",l,c);const u=f.useState("open"),p=f.useState("positionerElement"),d=f.useState("payload"),g=f.useState("openChangeReason");f.useContextCallback("onOpenChange",o),f.useContextCallback("onOpenChangeComplete",i);const{openMethod:h,triggerProps:v,reset:y}=Ph(u);ch(f);const{forceUnmount:m}=lh(u,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null}),y()});rf(u&&s===!0&&g!==Ye&&h!=="touch",p),ge(()=>{u||f.context.stickIfOpenTimeout.clear()},[f,u]);const _=fe(R=>{const N=ke(R);return N.preventUnmountOnClose=()=>{f.set("preventUnmountingOnClose",!0)},N},[f]),w=fe(()=>{f.setOpen(!1,_(Qf))},[f,_]);Kn(e.actionsRef,()=>({unmount:m,close:w}),[m,w]);const S=gh({popupStore:f,onOpenChange:f.setOpen}),E=Cp(S,{outsidePressEvent:{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),x=Sh(S),{getReferenceProps:O,getFloatingProps:A,getTriggerProps:T}=Cc([E,x]),D=q(()=>O(v),[O,v]),j=q(()=>T(v),[T,v]),k=q(()=>A(),[A]);f.useSyncedValues({modal:s,openMethod:h,activeTriggerProps:D,inactiveTriggerProps:j,popupProps:k,floatingRootContext:S,nested:Lt()!=null});const $=q(()=>({store:f}),[f]);return P(gi.Provider,{value:$,children:typeof t=="function"?t({payload:d}):t})}function Ah(e){return Dn(!0)?P(Ic,{props:e}):P(qf,{children:P(Ic,{props:e})})}let vi;process.env.NODE_ENV!=="production"&&(vi=new Set);function jc(...e){if(process.env.NODE_ENV!=="production"){const t=e.join(" ");vi.has(t)||(vi.add(t),console.error(`Base UI: ${t}`))}}const $c=We(void 0);process.env.NODE_ENV!=="production"&&($c.displayName="CompositeRootContext");function Ih(e=!1){const t=Fe($c);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.":xt(16));return t}function jh(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,s=r&&t!==!1,a=r&&t===!1;return{props:q(()=>{const c={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return r||(c.tabIndex=o,!i&&n&&(c.tabIndex=t?o:-1)),(i&&(t||s)||!i&&n)&&(c["aria-disabled"]=n),i&&(!t||a)&&(c.disabled=n),c},[r,n,t,s,a,i,o])}}function $h(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,i=z(null),s=Ih(!0)!==void 0,a=J(()=>{const p=i.current;return!!((p==null?void 0:p.tagName)==="A"&&(p!=null&&p.href))}),{props:l}=jh({focusableWhenDisabled:n,disabled:t,composite:s,tabIndex:r,isNativeButton:o});process.env.NODE_ENV!=="production"&&ge(()=>{if(!i.current)return;const p=i.current.tagName==="BUTTON";o?p||jc("A component that acts as a button was not rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is a real <button>, or set the `nativeButton` prop on the component to `false`."):p&&jc("A component that acts as a button was rendered as a native <button>, which does not match the default. Ensure that the element passed to the `render` prop of the component is not a real <button>, or set the `nativeButton` prop on the component to `true`.")},[o]);const c=fe(()=>{const p=i.current;Nh(p)&&s&&t&&l.disabled===void 0&&p.disabled&&(p.disabled=!1)},[t,l.disabled,s]);ae(c,[c]);const f=fe((p={})=>{const{onClick:d,onMouseDown:g,onKeyUp:h,onKeyDown:v,onPointerDown:y,...m}=p;return Va({type:o?"button":void 0,onClick(w){if(t){w.preventDefault();return}d==null||d(w)},onMouseDown(w){t||g==null||g(w)},onKeyDown(w){if(t||(Wo(w),v==null||v(w)),w.baseUIHandlerPrevented)return;const S=w.target===w.currentTarget&&!o&&!a()&&!t,E=w.key==="Enter",x=w.key===" ";S&&((x||E)&&w.preventDefault(),E&&(d==null||d(w)))},onKeyUp(w){t||(Wo(w),h==null||h(w)),!w.baseUIHandlerPrevented&&w.target===w.currentTarget&&!o&&!t&&w.key===" "&&(d==null||d(w))},onPointerDown(w){if(t){w.preventDefault();return}y==null||y(w)}},o?void 0:{role:"button"},l,m)},[t,l,o,a]),u=J(p=>{i.current=p,c()});return{getButtonProps:f,buttonRef:u}}function Nh(e){return ot(e)&&e.tagName==="BUTTON"}let Or=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const Dh={[Or.startingStyle]:""},Lh={[Or.endingStyle]:""},Mh={transitionStatus(e){return e==="starting"?Dh:e==="ending"?Lh:null}};let yi=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Or.startingStyle]="startingStyle",e[e.endingStyle=Or.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),_i=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const Fh={[_i.popupOpen]:""},Vh={[_i.popupOpen]:"",[_i.pressed]:""},Bh={[yi.open]:""},Hh={[yi.closed]:""},Uh={[yi.anchorHidden]:""},Wh={open(e){return e?Fh:null}},zh={open(e){return e?Vh:null}},Nc={open(e){return e?Bh:Hh},anchorHidden(e){return e?Uh:null}},Yh=300;function qh(e){return an(e,"base-ui")}const Dc=tt(function(t,n){const{render:r,className:o,disabled:i=!1,nativeButton:s=!0,handle:a,payload:l,openOnHover:c=!1,delay:f=Yh,closeDelay:u=0,id:p,...d}=t,g=Dn(!0),h=(a==null?void 0:a.store)??(g==null?void 0:g.store);if(!h)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.":xt(74));const v=qh(p),y=h.useState("isTriggerActive",v),m=h.useState("floatingRootContext"),_=h.useState("isOpenedByTrigger",v),w=z(null),{registerTrigger:S,isMountedByThisTrigger:E}=ah(v,w,h,{payload:l,disabled:i,openOnHover:c,closeDelay:u}),x=h.useState("openChangeReason"),O=h.useState("stickIfOpen"),A=h.useState("openMethod"),T=xh(m,{enabled:m!=null&&c&&(A!=="touch"||x!==Et),mouseOnly:!0,move:!1,handleClose:Rh(),restMs:f,delay:{close:u},triggerElementRef:w,isActiveTrigger:y}),D=kd(m,{enabled:m!=null,stickIfOpen:O}),j=Cc([D]),k=h.useState("triggerProps",E),$=q(()=>({disabled:i,open:_}),[i,_]),{getButtonProps:R,buttonRef:N}=$h({disabled:i,native:s}),F=q(()=>({open(M){return M&&x===Et?zh.open(M):Wh.open(M)}}),[x]),b=dr("button",t,{state:$,ref:[N,n,S,w],props:[j.getReferenceProps(),T,k,{[Pa]:"",id:v},d,R],stateAttributesMapping:F}),I=z(null),G=J(M=>{nt(()=>{h.setOpen(!1,ke(Pn,M.nativeEvent,M.currentTarget))});const W=Vf(I.current);W==null||W.focus()}),ie=J(M=>{var se;const W=h.select("positionerElement");if(W&&sn(M,W))(se=h.context.beforeContentFocusGuardRef.current)==null||se.focus();else{nt(()=>{h.setOpen(!1,ke(Pn,M.nativeEvent,M.currentTarget))});let Q=Ff(w.current);for(;Q!==null&&de(W,Q)||Q!=null&&Q.hasAttribute("aria-hidden");){const ee=Q;if(Q=No(Q),Q===ee)break}Q==null||Q.focus()}});return y?P(Ee,{children:[P(Mt,{ref:I,onFocus:G}),P(Ee,{children:b},v),P(Mt,{ref:h.context.triggerFocusTargetRef,onFocus:ie})]}):P(Ee,{children:b},v)});process.env.NODE_ENV!=="production"&&(Dc.displayName="PopoverTrigger");const wi=We(void 0);process.env.NODE_ENV!=="production"&&(wi.displayName="PopoverPortalContext");function Gh(){const e=Fe(wi);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Portal> is missing.":xt(45));return e}const Lc=tt(function(t,n){const{keepMounted:r=!1,...o}=t,{store:i}=Dn();return i.useState("mounted")||r?P(wi.Provider,{value:r,children:P(Wa,{ref:n,...o,renderGuards:!1})}):null});process.env.NODE_ENV!=="production"&&(Lc.displayName="PopoverPortal");function Kh(e){return Bo(19)?e:e?"true":void 0}const bi=We(void 0);process.env.NODE_ENV!=="production"&&(bi.displayName="PopoverPositionerContext");function Xh(){const e=Fe(bi);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.":xt(46));return e}const Mc=We(void 0);process.env.NODE_ENV!=="production"&&(Mc.displayName="DirectionContext");function Fc(){const e=Fe(Mc);return(e==null?void 0:e.direction)??"ltr"}const Zh=e=>({name:"arrow",options:e,async fn(t){var I,G;const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:f=0,offsetParent:u="real"}=vf(e,t)||{};if(c==null)return{};const p=Ef(f),d={x:n,y:r},g=bf(o),h=_f(g),v=await s.getDimensions(c),y=g==="y",m=y?"top":"left",_=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[g]-d[g]-i.floating[h],E=d[g]-i.reference[g],x=u==="real"?await((I=s.getOffsetParent)==null?void 0:I.call(s,c)):a.floating;let O=a.floating[w]||i.floating[h];(!O||!await((G=s.isElement)==null?void 0:G.call(s,x)))&&(O=a.floating[w]||i.floating[h]);const A=S/2-E/2,T=O/2-v[h]/2-1,D=Math.min(p[m],T),j=Math.min(p[_],T),k=D,$=O-v[h]-j,R=O/2-v[h]/2+A,N=mf(k,R,$),F=!l.arrow&&Ao(o)!=null&&R!==N&&i.reference[h]/2-(R<k?D:j)-v[h]/2<0,b=F?R<k?R-k:R-$:0;return{[g]:d[g]+b,data:{[g]:N,centerOffset:R-N-b,...F&&{alignmentOffset:b}},reset:F}}}),Jh=(e,t)=>({...Zh(e),options:[e,t]}),Qh={name:"hide",async fn(e){var a;const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:((a=(await Rp().fn(e)).data)==null?void 0:a.referenceHidden)||i}}}},Tr={sideX:"left",sideY:"top"},eg={name:"adaptiveOrigin",async fn(e){var m,_;const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:i,strategy:s,placement:a}=e,l=rt(o),c=l.getComputedStyle(o);if(!(c.transitionDuration!=="0s"&&c.transitionDuration!==""))return{x:t,y:n,data:Tr};const u=await((m=i.getOffsetParent)==null?void 0:m.call(i,o));let p={width:0,height:0};if(s==="fixed"&&(l!=null&&l.visualViewport))p={width:l.visualViewport.width,height:l.visualViewport.height};else if(u===l){const w=Qt(o);p={width:w.documentElement.clientWidth,height:w.documentElement.clientHeight}}else await((_=i.isElement)==null?void 0:_.call(i,u))&&(p=await i.getDimensions(u));const d=nn(a);let g=t,h=n;d==="left"&&(g=p.width-(t+r.width)),d==="top"&&(h=p.height-(n+r.height));const v=d==="left"?"right":Tr.sideX,y=d==="top"?"bottom":Tr.sideY;return{x:g,y:h,data:{sideX:v,sideY:y}}}};function Vc(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function Bc(e,t,n){const{rects:r,placement:o}=e;return{side:Vc(t,nn(o),n),align:Ao(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function tg(e){var bl,xl;const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:l=5,sticky:c=!1,arrowPadding:f=5,disableAnchorTracking:u=!1,keepMounted:p=!1,floatingRootContext:d,mounted:g,collisionAvoidance:h,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:m,lazyFlip:_=!1,externalTree:w}=e,[S,E]=_e(null);!g&&S!==null&&E(null);const x=h.side||"flip",O=h.align||"flip",A=h.fallbackAxisSide||"end",T=typeof t=="function"?t:void 0,D=J(T),j=T?D:t,k=Ke(t),R=Fc()==="rtl",N=S||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":R?"left":"right","inline-start":R?"right":"left"}[r],F=i==="center"?N:`${N}-${i}`;let b=l;const I=1,G=r==="bottom"?I:0,ie=r==="top"?I:0,M=r==="right"?I:0,W=r==="left"?I:0;typeof b=="number"?b={top:b+G,right:b+W,bottom:b+ie,left:b+M}:b&&(b={top:(b.top||0)+G,right:(b.right||0)+W,bottom:(b.bottom||0)+ie,left:(b.left||0)+M});const se={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:b},Q=z(null),ee=Ke(o),ne=Ke(s),Re=[bp(we=>{const Ae=Bc(we,r,R),ft=typeof ee.current=="function"?ee.current(Ae):ee.current,qe=typeof ne.current=="function"?ne.current(Ae):ne.current;return{mainAxis:ft,crossAxis:qe,alignmentAxis:qe}},[typeof o!="function"?o:0,typeof s!="function"?s:0,R,r])],C=O==="none"&&x!=="shift",Y=!C&&(c||v||x==="shift"),B=x==="none"?null:Sp({...se,padding:{top:b.top+I,right:b.right+I,bottom:b.bottom+I,left:b.left+I},mainAxis:!v&&x==="flip",crossAxis:O==="flip"?"alignment":!1,fallbackAxisSideDirection:A}),Pe=C?null:xp(we=>{const Ae=Qt(we.elements.floating).documentElement;return{...se,rootBoundary:v?{x:0,y:0,width:Ae.clientWidth,height:Ae.clientHeight}:void 0,mainAxis:O!=="none",crossAxis:Y,limiter:c||v?void 0:Ep(ft=>{if(!Q.current)return{};const{width:qe,height:yn}=Q.current.getBoundingClientRect(),_n=Io(nn(ft.placement)),$r=_n==="y"?qe:yn,Pi=_n==="y"?b.left+b.right:b.top+b.bottom;return{offset:$r/2+Pi/2}})}},[se,c,v,b,O]);x==="shift"||O==="shift"||i==="center"?Re.push(Pe,B):Re.push(B,Pe),Re.push(kp({...se,apply({elements:{floating:we},rects:{reference:Ae},availableWidth:ft,availableHeight:qe}){Object.entries({"--available-width":`${ft}px`,"--available-height":`${qe}px`,"--anchor-width":`${Ae.width}px`,"--anchor-height":`${Ae.height}px`}).forEach(([yn,_n])=>{we.style.setProperty(yn,_n)})}}),Jh(()=>({element:Q.current||document.createElement("div"),padding:f,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn(we){var Sl,kl,Rl;const{elements:Ae,middlewareData:ft,placement:qe,rects:yn,y:_n}=we,$r=nn(qe),Pi=Io($r),wn=Q.current,Hg=((Sl=ft.arrow)==null?void 0:Sl.x)||0,Ug=((kl=ft.arrow)==null?void 0:kl.y)||0,Wg=(wn==null?void 0:wn.clientWidth)||0,zg=(wn==null?void 0:wn.clientHeight)||0,Ai=Hg+Wg/2,El=Ug+zg/2,Yg=Math.abs(((Rl=ft.shift)==null?void 0:Rl.y)||0),qg=yn.reference.height/2,Vn=typeof o=="function"?o(Bc(we,r,R)):o,Gg=Yg>Vn,Kg={top:`${Ai}px calc(100% + ${Vn}px)`,bottom:`${Ai}px ${-Vn}px`,left:`calc(100% + ${Vn}px) ${El}px`,right:`${-Vn}px ${El}px`}[$r],Xg=`${Ai}px ${yn.reference.y+qg-_n}px`;return Ae.floating.style.setProperty("--transform-origin",Y&&Pi==="y"&&Gg?Xg:Kg),{}}},Qh,m),ae(()=>{!g&&d&&d.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[g,d]);const re=q(()=>({elementResize:!u&&typeof ResizeObserver<"u",layoutShift:!u&&typeof IntersectionObserver<"u"}),[u]),{refs:L,elements:H,x:te,y:oe,middlewareData:le,update:X,placement:U,context:xe,isPositioned:ve,floatingStyles:Ne}=hh({rootContext:d,placement:F,middleware:Re,strategy:n,whileElementsMounted:p?void 0:(...we)=>hc(...we,re),nodeId:y,externalTree:w}),{sideX:Ht,sideY:vn}=le.adaptiveOrigin||Tr,Ie=ve?n:"fixed",Le=q(()=>m?{position:Ie,[Ht]:te,[vn]:oe}:{position:Ie,...Ne},[m,Ie,Ht,te,vn,oe,Ne]),De=z(null);ae(()=>{if(!g)return;const we=k.current,Ae=typeof we=="function"?we():we,qe=(Hc(Ae)?Ae.current:Ae)||null||null;qe!==De.current&&(L.setPositionReference(qe),De.current=qe)},[g,L,j,k]),ge(()=>{if(!g)return;const we=k.current;typeof we!="function"&&Hc(we)&&we.current!==De.current&&(L.setPositionReference(we.current),De.current=we.current)},[g,L,j,k]),ge(()=>{if(p&&g&&H.domReference&&H.floating)return hc(H.domReference,H.floating,X,re)},[p,g,H,X,re]);const ut=nn(U),ml=Vc(r,ut,R),vl=Ao(U)||"center",yl=!!((bl=le.hide)!=null&&bl.referenceHidden);ae(()=>{_&&g&&ve&&E(ut)},[_,g,ve,ut]);const _l=q(()=>{var we,Ae;return{position:"absolute",top:(we=le.arrow)==null?void 0:we.y,left:(Ae=le.arrow)==null?void 0:Ae.x}},[le.arrow]),wl=((xl=le.arrow)==null?void 0:xl.centerOffset)!==0;return q(()=>({positionerStyles:Le,arrowStyles:_l,arrowRef:Q,arrowUncentered:wl,side:ml,align:vl,physicalSide:ut,anchorHidden:yl,refs:L,context:xe,isPositioned:ve,update:X}),[Le,_l,Q,wl,ml,vl,ut,yl,L,xe,ve,X])}function Hc(e){return e!=null&&"current"in e}const Uc=tt(function(t,n){const{cutout:r,...o}=t;let i;if(r){const s=r==null?void 0:r.getBoundingClientRect();i=`polygon(
|
|
43
8
|
0% 0%,
|
|
44
9
|
100% 0%,
|
|
45
10
|
100% 100%,
|
|
@@ -50,7 +15,7 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
50
15
|
${s.right}px ${s.bottom}px,
|
|
51
16
|
${s.right}px ${s.top}px,
|
|
52
17
|
${s.left}px ${s.top}px
|
|
53
|
-
)`}return P("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});process.env.NODE_ENV!=="production"&&(Hc.displayName="InternalBackdrop");function Wc(e){return e==="starting"?Gf:De}const Uc=nt(function(t,n){const{render:r,className:o,anchor:i,positionMethod:s="absolute",side:a="bottom",align:l="center",sideOffset:c=0,alignOffset:f=0,collisionBoundary:u="clipping-ancestors",collisionPadding:p=5,arrowPadding:d=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:v=Kf,...y}=t,{store:g}=$n(),_=qh(),w=Uf(),S=g.useState("floatingRootContext"),E=g.useState("mounted"),x=g.useState("open"),O=g.useState("openChangeReason"),A=g.useState("activeTriggerElement"),T=g.useState("modal"),$=g.useState("positionerElement"),j=g.useState("instantType"),R=g.useState("transitionStatus"),N=z(null),k=fi($,!1,!1),D=em({anchor:i,floatingRootContext:S,positionMethod:s,mounted:E,side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:u,collisionPadding:p,sticky:m,disableAnchorTracking:h,keepMounted:_,nodeId:w,collisionAvoidance:v,adaptiveOrigin:Qh}),F=q(()=>{const U={};return x||(U.pointerEvents="none"),{role:"presentation",hidden:!E,style:{...D.positionerStyles,...U}}},[x,E,D.positionerStyles]),b=q(()=>({props:F,...D}),[F,D]),I=S==null?void 0:S.select("domReferenceElement");ae(()=>{const U=I,se=N.current;if(U&&(N.current=U),se&&U&&U!==se){g.set("instantType",void 0);const Q=new AbortController;return k(()=>{g.set("instantType","trigger-change")},Q.signal),()=>{Q.abort()}}},[I,k,g]);const G=q(()=>({open:x,side:b.side,align:b.align,anchorHidden:b.anchorHidden,instant:j}),[x,b.side,b.align,b.anchorHidden,j]),ie=fe(U=>{g.set("positionerElement",U)},[g]),M=dr("div",t,{state:G,props:[b.props,Wc(R),y],ref:[n,ie],stateAttributesMapping:Nc});return P(bi.Provider,{value:b,children:[E&&T===!0&&O!==qe&&P(Hc,{ref:g.context.internalBackdropRef,inert:Gh(!x),cutout:A}),P(zf,{id:w,children:M})]})});process.env.NODE_ENV!=="production"&&(Uc.displayName="PopoverPositioner");function zc(e){const t=tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=it(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r;return(pa(n)!==i||pa(r)!==s)&&(n=i,r=s),{width:n,height:r}}const tm=typeof ResizeObserver<"u",nm=()=>!0;function rm(e){const{popupElement:t,positionerElement:n,content:r,mounted:o,enabled:i=nm,onMeasureLayout:s,onMeasureLayoutComplete:a,side:l,direction:c}=e,f=z(!0),u=fi(t,!0,!1),p=or(),d=z(null),m=J(s),h=J(a),v=q(()=>{let y=l==="top",g=l==="left";return c==="rtl"?(y=y||l==="inline-end",g=g||l==="inline-end"):(y=y||l==="inline-start",g=g||l==="inline-start"),y?{position:"absolute",[l==="top"?"bottom":"top"]:"0",[g?"right":"left"]:"0"}:De},[l,c]);ae(()=>{if(!o||!i()||!tm){f.current=!0,d.current=null;return}if(!t||!n)return;Object.entries(v).forEach(([A,T])=>{t.style.setProperty(A,T)});const y=new ResizeObserver(A=>{const T=A[0];T&&(d.current===null?d.current={width:Math.ceil(T.borderBoxSize[0].inlineSize),height:Math.ceil(T.borderBoxSize[0].blockSize)}:(d.current.width=Math.ceil(T.borderBoxSize[0].inlineSize),d.current.height=Math.ceil(T.borderBoxSize[0].blockSize)))});y.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const g=Ln(t,"position","static"),_=Ln(t,"transform","none"),w=Ln(t,"scale","1"),S=Ln(n,"--available-width","max-content"),E=Ln(n,"--available-height","max-content");if(m==null||m(),f.current||d.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const A=zc(t);return n.style.setProperty("--positioner-width",`${A.width}px`),n.style.setProperty("--positioner-height",`${A.height}px`),g(),_(),w(),S(),E(),h==null||h(null,A),f.current=!1,()=>{y.disconnect()}}t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto"),n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const x=zc(t);t.style.setProperty("--popup-width",`${d.current.width}px`),t.style.setProperty("--popup-height",`${d.current.height}px`),g(),_(),S(),E(),h==null||h(d.current,x),n.style.setProperty("--positioner-width",`${x.width}px`),n.style.setProperty("--positioner-height",`${x.height}px`);const O=new AbortController;return p.request(()=>{t.style.setProperty("--popup-width",`${x.width}px`),t.style.setProperty("--popup-height",`${x.height}px`),u(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},O.signal)}),()=>{y.disconnect(),O.abort(),p.cancel()}},[r,t,n,u,p,i,o,m,h,v])}function Ln(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const Yc="ArrowUp",qc="ArrowDown",Gc="ArrowLeft",Kc="ArrowRight",Xc="Home",Zc="End",om=new Set([Gc,Kc]),im=new Set([Yc,qc]);[...new Set([...om,...im])];const sm=new Set([Yc,qc,Gc,Kc,Xc,Zc]),Jc=ze(void 0);process.env.NODE_ENV!=="production"&&(Jc.displayName="ToolbarRootContext");function am(e){return Ve(Jc)}const cm={...Nc,...Lh},Qc=nt(function(t,n){const{className:r,render:o,initialFocus:i,finalFocus:s,...a}=t,{store:l}=$n(),c=Kh(),f=am()!=null,u=Mc(),p=l.useState("open"),d=l.useState("openMethod"),m=l.useState("instantType"),h=l.useState("transitionStatus"),v=l.useState("popupProps"),y=l.useState("titleElementId"),g=l.useState("descriptionElementId"),_=l.useState("modal"),w=l.useState("mounted"),S=l.useState("openChangeReason"),E=l.useState("popupElement"),x=l.useState("payload"),O=l.useState("positionerElement"),A=l.useState("activeTriggerElement"),T=l.useState("floatingRootContext");kc({open:p,ref:l.context.popupRef,onComplete(){var M,U;p&&((U=(M=l.context).onOpenChangeComplete)==null||U.call(M,!0))}});const $=l.useState("disabled"),j=l.useState("openOnHover"),R=l.useState("closeDelay");yh(T,{enabled:j&&!$,closeDelay:R});function N(M){return M==="touch"?l.context.popupRef.current:!0}const k=i===void 0?N:i,D=q(()=>({open:p,side:c.side,align:c.align,instant:m,transitionStatus:h}),[p,c.side,c.align,m,h]),F=fe(M=>{l.set("popupElement",M)},[l]);function b(){T.context.events.emit("measure-layout")}function I(M,U){T.context.events.emit("measure-layout-complete",{previousDimensions:M,nextDimensions:U})}const G=fe(()=>l.context.triggerElements.size>1,[l]);rm({popupElement:E,positionerElement:O,mounted:w,content:x,enabled:G,onMeasureLayout:b,onMeasureLayoutComplete:I,side:c.side,direction:u});const ie=dr("div",t,{state:D,ref:[n,l.context.popupRef,F],props:[v,{"aria-labelledby":y,"aria-describedby":g,onKeyDown(M){f&&sm.has(M.key)&&M.stopPropagation()}},Wc(h),a],stateAttributesMapping:cm});return P(Ed,{context:T,openInteractionType:d,modal:_==="trap-focus",disabled:!w||S===qe,initialFocus:k,returnFocus:s,restoreFocus:"popup",previousFocusableElement:it(A)?A:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:ie})});process.env.NODE_ENV!=="production"&&(Qc.displayName="PopoverPopup");function el(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=el(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=el(e))&&(r&&(r+=" "),r+=t);return r}const nl="inploi-job-alerts",lm="ija";var um=["other","few","many","two","one","zero"],rl=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,s){const a=(t==null?void 0:t[i])??e[i];switch(typeof a){case"string":return a.replace(/{{(\w+)}}/g,(l,c)=>{var f;return((f=s==null?void 0:s[c])==null?void 0:f.toString())??""});case"object":{if(typeof(s==null?void 0:s.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let l=r.select(s.count);if(!(l in a)){const c=um.find(f=>f in a);if(!c)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=c}return a[l].replace(/{{(\w+)}}/g,(c,f)=>{var u;return((u=s==null?void 0:s[f])==null?void 0:u.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},ol=ze(null),fm=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=q(()=>rl({locale:r,terms:e,overrides:t}),[t,r]);return P(ol.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=Ve(ol);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>rl({terms:e,overrides:t,locale:n})});const dm={DAILY:"Daily",WEEKLY:"Weekly",MONTHLY:"Monthly",email:"Email",email_placeholder:"jane.doe@example.com",name:"Name",name_placeholder:"Jane Doe",save:"Save",save_alert:"Save Alert",frequency:"Frequency",create_alert:"Create Alert",create_alert_error:"Failed to create alert. Please try again later.",privacy_policy_link:"How we use your personal data",alert_notice_sender:"{{company}} will email you new jobs matching this search, as often as you choose. Every email has an unsubscribe link.",alert_notice:"You'll get new jobs matching this search by email, as often as you choose. Every email has an unsubscribe link."},{TranslationProvider:pm,useTranslation:il}=fm(dm);var hm=Symbol.for("preact-signals");function xi(){if(hn>1)hn--;else{for(var e,t=!1;Mn!==void 0;){var n=Mn;for(Mn=void 0,Ei++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&al(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Ei=0,hn--,t)throw e}}var ge=void 0,Mn=void 0,hn=0,Ei=0,Cr=0;function sl(e){if(ge!==void 0){var t=e.n;if(t===void 0||t.t!==ge)return t={i:0,S:e,p:ge.s,n:void 0,t:ge,e:void 0,x:void 0,r:t},ge.s!==void 0&&(ge.s.n=t),ge.s=t,e.n=t,32&ge.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ge.s,t.n=void 0,ge.s.n=t,ge.s=t),t}}function Pe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Pe.prototype.brand=hm,Pe.prototype.h=function(){return!0},Pe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},Pe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Pe.prototype.subscribe=function(e){var t=this;return Ri(function(){var n=t.value,r=ge;ge=void 0;try{e(n)}finally{ge=r}})},Pe.prototype.valueOf=function(){return this.value},Pe.prototype.toString=function(){return this.value+""},Pe.prototype.toJSON=function(){return this.value},Pe.prototype.peek=function(){var e=ge;ge=void 0;try{return this.value}finally{ge=e}},Object.defineProperty(Pe.prototype,"value",{get:function(){var e=sl(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ei>100)throw new Error("Cycle detected");this.v=e,this.i++,Cr++,hn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{xi()}}}});function Pr(e){return new Pe(e)}function al(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function cl(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ll(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function mn(e){Pe.call(this,void 0),this.x=e,this.s=void 0,this.g=Cr-1,this.f=4}(mn.prototype=new Pe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Cr))return!0;if(this.g=Cr,this.f|=1,this.i>0&&!al(this))return this.f&=-2,!0;var e=ge;try{cl(this),ge=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return ge=e,ll(this),this.f&=-2,!0},mn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Pe.prototype.S.call(this,e)},mn.prototype.U=function(e){if(this.t!==void 0&&(Pe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},mn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(mn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=sl(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function mm(e){return new mn(e)}function ul(e){var t=e.u;if(e.u=void 0,typeof t=="function"){hn++;var n=ge;ge=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Si(e),r}finally{ge=n,xi()}}}function Si(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ul(e)}function gm(e){if(ge!==this)throw new Error("Out-of-order effect");ll(this),ge=e,this.f&=-2,8&this.f&&Si(this),xi()}function Fn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Fn.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Fn.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ul(this),cl(this),hn++;var e=ge;return ge=this,gm.bind(this,e)},Fn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Mn,Mn=this)},Fn.prototype.d=function(){this.f|=8,1&this.f||Si(this)};function Ri(e){var t=new Fn(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Ar;function gn(e,t){V[e]=t.bind(null,V[e]||function(){})}function Ir(e){if(Ar){var t=Ar;Ar=void 0,t()}Ar=e&&e.S()}function fl(e){var t=this,n=e.data,r=ym(n);r.value=n;var o=q(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var s,a=t.__$u.S(),l=o.value;a(),Hi(l)||((s=t.base)==null?void 0:s.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=l},mm(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return o.value}fl.displayName="_st",Object.defineProperties(Pe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:fl},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),gn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof Pe&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)}),gn("__r",function(e,t){e(t),Ir();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(o){var i;return Ri(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i})())),Ir(n)}),gn("__e",function(e,t,n,r){Ir(),e(t,n,r)}),gn("diffed",function(e,t){Ir();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var a=i[s];a!==void 0&&!(s in r)&&(a.d(),i[s]=void 0)}else n.U=i={};for(var l in r){var c=i[l],f=r[l];c===void 0?(c=vm(n,l,f,o),i[l]=c):c.o(f,o)}}}e(t)});function vm(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=Pr(n);return{o:function(s,a){i.value=s,r=a},d:Ri(function(){var s=i.value.value;r[t]!==s&&(r[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}gn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),gn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),Ue.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var n=this.__$u,r=n&&n.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function ym(e){return q(function(){return Pr(e)},[])}const Tt={config$:Pr({headerText:"",label:""}),filters$:Pr({})};var _m=["1","2","3","4","5","6","7","8","9","10","11","12"],wm={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},bm=(e,t=1,n)=>r=>{const[o,i]=wm[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},dl=e=>{const t=bm(e.hue,e.chroma,e.mode);return Object.fromEntries(_m.map(n=>[e.prefix+n,e.transform(t(n))]))},pl=e=>e,xm=e=>{const t=Object.keys(e).flatMap(n=>{const r=e[n];return typeof r=="object"&&r!==null?Object.keys(r).map(o=>{const i=r[o];return[`${String(n)}.${o}`,i]}):[[n,r]]});return Object.fromEntries(t)},jr=e=>!!e&&typeof e=="object"&&!Array.isArray(e),ki=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(jr(e)&&jr(n))for(const r in n){const o=n[r];if(jr(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];jr(i)&&ki(i,o)}else Object.assign(e,{[r]:n[r]})}return ki(e,...t)},Em=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},Sm=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,s=p=>i("reference",p.toString()),a=e({theme:o}),l=t({theme:o,core:s,raw:{core:a}}),c=n({theme:o,core:s,semantic:s,raw:{core:a,semantic:l}}),f=xm(ki(a,l,c)),u=([p,d],m)=>{const h=[m,p].filter(Boolean).join(".");return typeof d=="object"?Object.entries(d).flatMap(v=>u(v,h)):[[r.getToken("declaration",h),d]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(p=>u(p))),ref:p=>i("reference",p.toString())}}})})})});const[Oi,Ti,Rm]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],km=Sm().core(({theme:e})=>({color:{transparent:Rm,black:Oi,white:Ti,lowest:e.mode==="light"?Ti:Oi,highest:e.mode==="light"?Oi:Ti,...dl({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:pl}),...dl({prefix:"n-",hue:e.accent.hue,chroma:.05,mode:e.mode,transform:pl})},radius:{base:e.corners==="rounded"?".25rem":e.corners==="soft"?".125rem":"0",multiplier:e.corners==="rounded"?"0.5rem":e.corners==="soft"?"0.175rem":"0"},duration:{snappy:".4s",medium:".6s",slow:".9s"}})).semantic(({core:e})=>({radius:{sm:`calc(${e("radius.base")} + (0 * ${e("radius.multiplier")}))`,md:`calc(${e("radius.base")} + (1 * ${e("radius.multiplier")}))`,lg:`calc(${e("radius.base")} + (2 * ${e("radius.multiplier")}))`,xl:`calc(${e("radius.base")} + (3 * ${e("radius.multiplier")}))`}})).component(()=>({})),Om=Em({prefix:"i-"}),Tm=e=>{const t=km.from({theme:e,getToken:Om}),n=Object.entries(t.declarations).map(([r,o])=>`${r}: ${o};`);return`#${lm} {
|
|
18
|
+
)`}return P("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})});process.env.NODE_ENV!=="production"&&(Uc.displayName="InternalBackdrop");function Wc(e){return e==="starting"?Kf:$e}const zc=tt(function(t,n){const{render:r,className:o,anchor:i,positionMethod:s="absolute",side:a="bottom",align:l="center",sideOffset:c=0,alignOffset:f=0,collisionBoundary:u="clipping-ancestors",collisionPadding:p=5,arrowPadding:d=5,sticky:g=!1,disableAnchorTracking:h=!1,collisionAvoidance:v=Xf,...y}=t,{store:m}=Dn(),_=Gh(),w=zf(),S=m.useState("floatingRootContext"),E=m.useState("mounted"),x=m.useState("open"),O=m.useState("openChangeReason"),A=m.useState("activeTriggerElement"),T=m.useState("modal"),D=m.useState("positionerElement"),j=m.useState("instantType"),k=m.useState("transitionStatus"),$=z(null),R=fi(D,!1,!1),N=tg({anchor:i,floatingRootContext:S,positionMethod:s,mounted:E,side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:u,collisionPadding:p,sticky:g,disableAnchorTracking:h,keepMounted:_,nodeId:w,collisionAvoidance:v,adaptiveOrigin:eg}),F=q(()=>{const W={};return x||(W.pointerEvents="none"),{role:"presentation",hidden:!E,style:{...N.positionerStyles,...W}}},[x,E,N.positionerStyles]),b=q(()=>({props:F,...N}),[F,N]),I=S==null?void 0:S.select("domReferenceElement");ae(()=>{const W=I,se=$.current;if(W&&($.current=W),se&&W&&W!==se){m.set("instantType",void 0);const Q=new AbortController;return R(()=>{m.set("instantType","trigger-change")},Q.signal),()=>{Q.abort()}}},[I,R,m]);const G=q(()=>({open:x,side:b.side,align:b.align,anchorHidden:b.anchorHidden,instant:j}),[x,b.side,b.align,b.anchorHidden,j]),ie=fe(W=>{m.set("positionerElement",W)},[m]),M=dr("div",t,{state:G,props:[b.props,Wc(k),y],ref:[n,ie],stateAttributesMapping:Nc});return P(bi.Provider,{value:b,children:[E&&T===!0&&O!==Ye&&P(Uc,{ref:m.context.internalBackdropRef,inert:Kh(!x),cutout:A}),P(Yf,{id:w,children:M})]})});process.env.NODE_ENV!=="production"&&(zc.displayName="PopoverPositioner");function Yc(e){const t=tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ot(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r;return(ha(n)!==i||ha(r)!==s)&&(n=i,r=s),{width:n,height:r}}const ng=typeof ResizeObserver<"u",rg=()=>!0;function og(e){const{popupElement:t,positionerElement:n,content:r,mounted:o,enabled:i=rg,onMeasureLayout:s,onMeasureLayoutComplete:a,side:l,direction:c}=e,f=z(!0),u=fi(t,!0,!1),p=or(),d=z(null),g=J(s),h=J(a),v=q(()=>{let y=l==="top",m=l==="left";return c==="rtl"?(y=y||l==="inline-end",m=m||l==="inline-end"):(y=y||l==="inline-start",m=m||l==="inline-start"),y?{position:"absolute",[l==="top"?"bottom":"top"]:"0",[m?"right":"left"]:"0"}:$e},[l,c]);ae(()=>{if(!o||!i()||!ng){f.current=!0,d.current=null;return}if(!t||!n)return;Object.entries(v).forEach(([A,T])=>{t.style.setProperty(A,T)});const y=new ResizeObserver(A=>{const T=A[0];T&&(d.current===null?d.current={width:Math.ceil(T.borderBoxSize[0].inlineSize),height:Math.ceil(T.borderBoxSize[0].blockSize)}:(d.current.width=Math.ceil(T.borderBoxSize[0].inlineSize),d.current.height=Math.ceil(T.borderBoxSize[0].blockSize)))});y.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const m=Ln(t,"position","static"),_=Ln(t,"transform","none"),w=Ln(t,"scale","1"),S=Ln(n,"--available-width","max-content"),E=Ln(n,"--available-height","max-content");if(g==null||g(),f.current||d.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const A=Yc(t);return n.style.setProperty("--positioner-width",`${A.width}px`),n.style.setProperty("--positioner-height",`${A.height}px`),m(),_(),w(),S(),E(),h==null||h(null,A),f.current=!1,()=>{y.disconnect()}}t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto"),n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const x=Yc(t);t.style.setProperty("--popup-width",`${d.current.width}px`),t.style.setProperty("--popup-height",`${d.current.height}px`),m(),_(),S(),E(),h==null||h(d.current,x),n.style.setProperty("--positioner-width",`${x.width}px`),n.style.setProperty("--positioner-height",`${x.height}px`);const O=new AbortController;return p.request(()=>{t.style.setProperty("--popup-width",`${x.width}px`),t.style.setProperty("--popup-height",`${x.height}px`),u(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},O.signal)}),()=>{y.disconnect(),O.abort(),p.cancel()}},[r,t,n,u,p,i,o,g,h,v])}function Ln(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const qc="ArrowUp",Gc="ArrowDown",Kc="ArrowLeft",Xc="ArrowRight",Zc="Home",Jc="End",ig=new Set([Kc,Xc]),sg=new Set([qc,Gc]),ag=new Set([...ig,...sg]);[...ag];const cg=new Set([qc,Gc,Kc,Xc,Zc,Jc]),Qc=We(void 0);process.env.NODE_ENV!=="production"&&(Qc.displayName="ToolbarRootContext");function lg(e){return Fe(Qc)}const ug={...Nc,...Mh},el=tt(function(t,n){const{className:r,render:o,initialFocus:i,finalFocus:s,...a}=t,{store:l}=Dn(),c=Xh(),f=lg()!=null,u=Fc(),p=l.useState("open"),d=l.useState("openMethod"),g=l.useState("instantType"),h=l.useState("transitionStatus"),v=l.useState("popupProps"),y=l.useState("titleElementId"),m=l.useState("descriptionElementId"),_=l.useState("modal"),w=l.useState("mounted"),S=l.useState("openChangeReason"),E=l.useState("popupElement"),x=l.useState("payload"),O=l.useState("positionerElement"),A=l.useState("activeTriggerElement"),T=l.useState("floatingRootContext");Oc({open:p,ref:l.context.popupRef,onComplete(){var M,W;p&&((W=(M=l.context).onOpenChangeComplete)==null||W.call(M,!0))}});const D=l.useState("disabled"),j=l.useState("openOnHover"),k=l.useState("closeDelay");_h(T,{enabled:j&&!D,closeDelay:k});function $(M){return M==="touch"?l.context.popupRef.current:!0}const R=i===void 0?$:i,N=q(()=>({open:p,side:c.side,align:c.align,instant:g,transitionStatus:h}),[p,c.side,c.align,g,h]),F=fe(M=>{l.set("popupElement",M)},[l]);function b(){T.context.events.emit("measure-layout")}function I(M,W){T.context.events.emit("measure-layout-complete",{previousDimensions:M,nextDimensions:W})}const G=fe(()=>l.context.triggerElements.size>1,[l]);og({popupElement:E,positionerElement:O,mounted:w,content:x,enabled:G,onMeasureLayout:b,onMeasureLayoutComplete:I,side:c.side,direction:u});const ie=dr("div",t,{state:N,ref:[n,l.context.popupRef,F],props:[v,{"aria-labelledby":y,"aria-describedby":m,onKeyDown(M){f&&cg.has(M.key)&&M.stopPropagation()}},Wc(h),a],stateAttributesMapping:ug});return P(Sd,{context:T,openInteractionType:d,modal:_==="trap-focus",disabled:!w||S===Ye,initialFocus:R,returnFocus:s,restoreFocus:"popup",previousFocusableElement:ot(A)?A:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:ie})});process.env.NODE_ENV!=="production"&&(el.displayName="PopoverPopup");function tl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=tl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function nl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=tl(e))&&(r&&(r+=" "),r+=t);return r}const rl="inploi-job-alerts",fg="ija";var dg=["other","few","many","two","one","zero"],ol=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,s){const a=(t==null?void 0:t[i])??e[i];switch(typeof a){case"string":return a.replace(/{{(\w+)}}/g,(l,c)=>{var f;return((f=s==null?void 0:s[c])==null?void 0:f.toString())??""});case"object":{if(typeof(s==null?void 0:s.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let l=r.select(s.count);if(!(l in a)){const c=dg.find(f=>f in a);if(!c)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=c}return a[l].replace(/{{(\w+)}}/g,(c,f)=>{var u;return((u=s==null?void 0:s[f])==null?void 0:u.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},il=We(null),pg=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=q(()=>ol({locale:r,terms:e,overrides:t}),[t,r]);return P(il.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=Fe(il);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>ol({terms:e,overrides:t,locale:n})});const hg={DAILY:"Daily",WEEKLY:"Weekly",MONTHLY:"Monthly",email:"Email",email_placeholder:"jane.doe@example.com",name:"Name",name_placeholder:"Jane Doe",save:"Save",save_alert:"Save Alert",frequency:"Frequency",create_alert:"Create Alert",create_alert_error:"Failed to create alert. Please try again later.",privacy_policy_link:"How we use your personal data",alert_notice_sender:"{{company}} will email you new jobs matching this search, as often as you choose. Every email has an unsubscribe link.",alert_notice:"You'll get new jobs matching this search by email, as often as you choose. Every email has an unsubscribe link."},{TranslationProvider:gg,useTranslation:sl}=pg(hg);var mg=Symbol.for("preact-signals");function xi(){if(hn>1)hn--;else{for(var e,t=!1;Mn!==void 0;){var n=Mn;for(Mn=void 0,Ei++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&cl(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Ei=0,hn--,t)throw e}}var me=void 0,Mn=void 0,hn=0,Ei=0,Cr=0;function al(e){if(me!==void 0){var t=e.n;if(t===void 0||t.t!==me)return t={i:0,S:e,p:me.s,n:void 0,t:me,e:void 0,x:void 0,r:t},me.s!==void 0&&(me.s.n=t),me.s=t,e.n=t,32&me.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=me.s,t.n=void 0,me.s.n=t,me.s=t),t}}function Ce(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Ce.prototype.brand=mg,Ce.prototype.h=function(){return!0},Ce.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},Ce.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ce.prototype.subscribe=function(e){var t=this;return ki(function(){var n=t.value,r=me;me=void 0;try{e(n)}finally{me=r}})},Ce.prototype.valueOf=function(){return this.value},Ce.prototype.toString=function(){return this.value+""},Ce.prototype.toJSON=function(){return this.value},Ce.prototype.peek=function(){var e=me;me=void 0;try{return this.value}finally{me=e}},Object.defineProperty(Ce.prototype,"value",{get:function(){var e=al(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ei>100)throw new Error("Cycle detected");this.v=e,this.i++,Cr++,hn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{xi()}}}});function Pr(e){return new Ce(e)}function cl(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function ll(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function ul(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function gn(e){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=Cr-1,this.f=4}(gn.prototype=new Ce).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Cr))return!0;if(this.g=Cr,this.f|=1,this.i>0&&!cl(this))return this.f&=-2,!0;var e=me;try{ll(this),me=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return me=e,ul(this),this.f&=-2,!0},gn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ce.prototype.S.call(this,e)},gn.prototype.U=function(e){if(this.t!==void 0&&(Ce.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},gn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(gn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=al(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function vg(e){return new gn(e)}function fl(e){var t=e.u;if(e.u=void 0,typeof t=="function"){hn++;var n=me;me=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Si(e),r}finally{me=n,xi()}}}function Si(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,fl(e)}function yg(e){if(me!==this)throw new Error("Out-of-order effect");ul(this),me=e,this.f&=-2,8&this.f&&Si(this),xi()}function Fn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Fn.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},Fn.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,fl(this),ll(this),hn++;var e=me;return me=this,yg.bind(this,e)},Fn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Mn,Mn=this)},Fn.prototype.d=function(){this.f|=8,1&this.f||Si(this)};function ki(e){var t=new Fn(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Ar;function mn(e,t){V[e]=t.bind(null,V[e]||function(){})}function Ir(e){if(Ar){var t=Ar;Ar=void 0,t()}Ar=e&&e.S()}function dl(e){var t=this,n=e.data,r=wg(n);r.value=n;var o=q(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var s,a=t.__$u.S(),l=o.value;a(),Ui(l)||((s=t.base)==null?void 0:s.nodeType)!==3?(t.__$f|=1,t.setState({})):t.base.data=l},vg(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return o.value}dl.displayName="_st",Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:dl},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),mn("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof Ce&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)}),mn("__r",function(e,t){e(t),Ir();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(o){var i;return ki(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i})())),Ir(n)}),mn("__e",function(e,t,n,r){Ir(),e(t,n,r)}),mn("diffed",function(e,t){Ir();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var s in i){var a=i[s];a!==void 0&&!(s in r)&&(a.d(),i[s]=void 0)}else n.U=i={};for(var l in r){var c=i[l],f=r[l];c===void 0?(c=_g(n,l,f,o),i[l]=c):c.o(f,o)}}}e(t)});function _g(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=Pr(n);return{o:function(s,a){i.value=s,r=a},d:ki(function(){var s=i.value.value;r[t]!==s&&(r[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}mn("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}}else{var s=t.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}e(t)}),mn("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),Ue.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var n=this.__$u,r=n&&n.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var i in e)if(i!=="__source"&&e[i]!==this.props[i])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function wg(e){return q(function(){return Pr(e)},[])}const Tt={config$:Pr({headerText:"",label:""}),filters$:Pr({})};var bg=["1","2","3","4","5","6","7","8","9","10","11","12"],xg={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},Eg=(e,t=1,n)=>r=>{const[o,i]=xg[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},pl=e=>{const t=Eg(e.hue,e.chroma,e.mode);return Object.fromEntries(bg.map(n=>[e.prefix+n,e.transform(t(n))]))},hl=e=>e,Sg=e=>{const t=Object.keys(e).flatMap(n=>{const r=e[n];return typeof r=="object"&&r!==null?Object.keys(r).map(o=>{const i=r[o];return[`${String(n)}.${o}`,i]}):[[n,r]]});return Object.fromEntries(t)},jr=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Ri=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(jr(e)&&jr(n))for(const r in n){const o=n[r];if(jr(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];jr(i)&&Ri(i,o)}else Object.assign(e,{[r]:n[r]})}return Ri(e,...t)},kg=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},Rg=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,s=p=>i("reference",p.toString()),a=e({theme:o}),l=t({theme:o,core:s,raw:{core:a}}),c=n({theme:o,core:s,semantic:s,raw:{core:a,semantic:l}}),f=Sg(Ri(a,l,c)),u=([p,d],g)=>{const h=[g,p].filter(Boolean).join(".");return typeof d=="object"?Object.entries(d).flatMap(v=>u(v,h)):[[r.getToken("declaration",h),d]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(p=>u(p))),ref:p=>i("reference",p.toString())}}})})})});const[Oi,Ti,Og]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],Tg=Rg().core(({theme:e})=>({color:{transparent:Og,black:Oi,white:Ti,lowest:e.mode==="light"?Ti:Oi,highest:e.mode==="light"?Oi:Ti,...pl({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:hl}),...pl({prefix:"n-",hue:e.accent.hue,chroma:.05,mode:e.mode,transform:hl})},radius:{base:e.corners==="rounded"?".25rem":e.corners==="soft"?".125rem":"0",multiplier:e.corners==="rounded"?"0.5rem":e.corners==="soft"?"0.175rem":"0"},duration:{snappy:".4s",medium:".6s",slow:".9s"}})).semantic(({core:e})=>({radius:{sm:`calc(${e("radius.base")} + (0 * ${e("radius.multiplier")}))`,md:`calc(${e("radius.base")} + (1 * ${e("radius.multiplier")}))`,lg:`calc(${e("radius.base")} + (2 * ${e("radius.multiplier")}))`,xl:`calc(${e("radius.base")} + (3 * ${e("radius.multiplier")}))`}})).component(()=>({})),Cg=kg({prefix:"i-"}),Pg=e=>{const t=Tg.from({theme:e,getToken:Cg}),n=Object.entries(t.declarations).map(([r,o])=>`${r}: ${o};`);return`#${fg} {
|
|
54
19
|
${n.concat(n).join(`
|
|
55
20
|
`)}
|
|
56
|
-
}`},Cm=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t},Pm=({error:e})=>e?P("div",{role:"alert",class:"flex max-w-full items-start gap-1.5 px-2 py-2 text-[#E5484D]",children:[P("svg",{class:"mt-0.5 h-4 w-4 flex-none",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P("circle",{cx:"8",cy:"8",r:"6.3",stroke:"currentColor","stroke-width":"1.4"}),P("rect",{x:"7",y:"4",width:"2",height:"5",fill:"currentColor"}),P("rect",{x:"7",y:"10",width:"2",height:"2",fill:"currentColor"})]}),P("p",{class:"pr-1 text-sm",children:e})]}):null,Am=(e,t)=>{const n=t==null?void 0:t.trim();return n?e("alert_notice_sender",{company:n}):e("alert_notice")},Im=({employerName:e})=>{const{t}=il();return P("p",{class:"text-neutral-11 px-2 text-xs leading-snug",children:Am(t,e)})},Ci="rounded-field-input bg-neutral-1 text-accent-11 autofill:shadow-[inset_0_0_0_1000px_var(--i-color-a-2)] autofill:focus:shadow-[inset_0_0_0_1000px_var(--i-color-a-1)] autofill:[-webkit-text-fill-color:var(--i-color-a-11)] px-3 py-2 ring ring-[1px] transition-all ease-expo-out duration-snappy ring-neutral-4 fr inline-flex w-full items-center justify-center px-2.5 text-base shadow-[0_0_0_1px] outline-none focus:shadow-[0_0_0_2px]",jm=nt(({class:e,...t},n)=>P("button",{ref:n,class:tl("fr theme-stroke:ring-[1px] theme-stroke:ring-accent-4 theme-stroke:hover:ring-accent-9 theme-fill:bg-accent-2 theme-fill:hover:bg-accent-3 theme-fill:active:bg-accent-4 duration-snappy ease-expo-out text-accent-11 flex w-full items-center justify-center gap-2 overflow-hidden rounded-lg px-4 py-1.5 pl-2 text-sm font-medium transition-all active:scale-[.97]",e),onTouchStart:hl,...t,children:[P(ds,{class:"flex-none",name:"bell"})," ",P("span",{class:"min-w-0 truncate text-center",children:Tt.config$.value.label})]})),Nm=()=>P("p",{class:"text-neutral-11 px-2 pb-4 pt-1 text-sm",children:Tt.config$.value.headerText}),Dm=({label:e})=>{const t=Tt.config$.value.privacyPolicyUrl;return t?P("a",{href:t,target:"_blank",rel:"noopener noreferrer",class:"text-neutral-11 hover:text-accent-11 px-2 text-xs underline underline-offset-2",children:e}):null};function hl(){}const $m=({theme:e,rpcClient:t,logger:n,analytics:r})=>{const[o,i]=_e("idle"),[s,a]=_e(),{t:l}=il();return P("div",{id:"ija",children:P("div",{class:Cm(e).join(" "),children:P(Ph,{children:[P(Dc,{render:P(jm,{})}),P($c,{children:P("div",{id:"ija",children:P(Uc,{sideOffset:5,collisionPadding:16,side:"bottom",children:P(Qc,{className:"bg-lowest ring-neutral-5 ease-bounce-out shadow-surface-lg duration-snappy isolate w-64 max-w-[var(--available-width)] origin-[var(--transform-origin)] rounded-lg p-2 ring-1 transition-[transform,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",children:[P(Nm,{}),P("form",{onSubmit:async c=>{var v,y,g,_;if(c.preventDefault(),o!=="idle")return;const f=new FormData(c.currentTarget),u=(v=f.get("name"))==null?void 0:v.toString(),[p,...d]=(u==null?void 0:u.split(" "))??[],m=d.join(" "),h=(y=f.get("email"))==null?void 0:y.toString();i("loading"),r.log({event:"IDENTIFY",properties:{identifier:"job_alerts",email:h,first_name:p,last_name:m}}),await Promise.all([new Promise(w=>setTimeout(w,1e3)),t.request(Xl,{body:{contact:{email:(g=f.get("email"))==null?void 0:g.toString(),first_name:p,last_name:m},alerts:(_=f.get("frequency"))==null?void 0:_.toString(),filters:Tt.filters$.peek()}})]).then(async()=>{i("success"),await new Promise(w=>setTimeout(w,1e3)),i("idle")}).catch(w=>{n.error(w),a(l("create_alert_error")),i("idle")})},class:"flex flex-col gap-2.5",children:[P("div",{children:[P("fieldset",{class:"fieldset relative focus-within:z-10",children:[P("label",{class:"sr-only",htmlFor:"ija-email",children:l("email")}),P("input",{name:"email",autocomplete:"email",class:Ci,disabled:o==="loading",id:"ija-email",placeholder:l("email_placeholder"),type:"email",required:!0})]}),P("fieldset",{class:"fieldset relative focus-within:z-10",children:[P("label",{class:"sr-only",htmlFor:"ija-name",children:l("name")}),P("input",{disabled:o==="loading",name:"name",required:!0,autocomplete:"name",class:Ci,id:"ija-name",placeholder:l("name_placeholder")})]}),P("fieldset",{class:"fieldset relative focus-within:z-10",children:[P("label",{class:"sr-only",htmlFor:"ija-frequency",children:l("frequency")}),P("select",{disabled:o==="loading",class:tl(Ci,"appearance-none pr-8"),id:"ija-frequency",defaultValue:"WEEKLY",name:"frequency",children:Vi.map(c=>P("option",{value:c,children:l(c)}))}),P("div",{class:"text-neutral-10 absolute bottom-0 right-0 top-0 flex items-center p-1","aria-hidden":!0,children:P(ds,{name:"chevron-up-down"})})]})]}),P(Im,{employerName:Tt.config$.value.employerName}),P(Dm,{label:l("privacy_policy_link")}),P("button",{onTouchStart:hl,class:"bg-accent-9 active:bg-accent-10 theme-dark:active:bg-accent-8 fr ease-expo-out duration-snappy text-accent-1 theme-dark:text-highest grid items-center overflow-hidden rounded-lg px-5 py-2 pl-2.5 text-center transition-all hover:scale-[1.02] active:scale-[.97]",children:[P("span",{"data-state":o,class:"ease-expo-out duration-medium col-span-full row-span-full text-base opacity-0 transition-all data-[state=loading]:-translate-y-full data-[state=success]:translate-y-full data-[state=idle]:opacity-100",children:l("create_alert")}),P("div",{"data-state":o,class:"ease-expo-out duration-medium col-span-full row-span-full flex translate-y-0 justify-center text-base transition-all data-[state=idle]:translate-y-full data-[state=idle]:opacity-0",children:P("svg",{width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P("circle",{class:"loading-circle duration-snappy ease-expo-out transition-all",cx:"12",cy:"12",r:"9"}),P("path",{class:"done-checkmark",d:"M9 12L11 14L15 10"})]})})]}),P(Pm,{error:s})]})]})})})})]})})})},Lm='#ija{font-size:16px}#ija *,#ija :before,#ija :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#ija ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#ija{--tw-content: ""}#ija *{box-sizing:border-box;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent;font-family:inherit;font-style:inherit;font-weight:inherit}#ija :before,#ija :after{box-sizing:border-box}#ija :is(a){text-decoration:none}#ija :is(ul,ol){list-style:none;padding:0;margin:0}#ija :is(p){margin:0;padding:0}#ija :is(li){margin:0;padding:0;list-style:none}#ija :is(fieldset){margin:0;padding:0}#ija :is(button),#ija :is(a){display:block;margin:0;padding:0;border:unset;background:unset;text-align:unset}#ija :is(input),#ija :is(textarea){display:block;margin:0;padding:0;min-width:0;max-width:unset;width:100%}#ija :is(svg){display:block}@media(prefers-reduced-motion){#ija *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;animation-delay:0s!important}}#ija .container{width:100%}@media(min-width:640px){#ija .container{max-width:640px}}@media(min-width:768px){#ija .container{max-width:768px}}@media(min-width:1024px){#ija .container{max-width:1024px}}@media(min-width:1280px){#ija .container{max-width:1280px}}@media(min-width:1536px){#ija .container{max-width:1536px}}#ija .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#ija .visible{visibility:visible}#ija .invisible{visibility:hidden}#ija .collapse{visibility:collapse}#ija .static{position:static}#ija .fixed{position:fixed}#ija .absolute{position:absolute}#ija .relative{position:relative}#ija .sticky{position:sticky}#ija .bottom-0{bottom:0}#ija .right-0{right:0}#ija .top-0{top:0}#ija .isolate{isolation:isolate}#ija .col-span-full{grid-column:1 / -1}#ija .row-span-full{grid-row:1 / -1}#ija .mt-0\\.5{margin-top:.125rem}#ija .block{display:block}#ija .inline-block{display:inline-block}#ija .inline{display:inline}#ija .flex{display:flex}#ija .inline-flex{display:inline-flex}#ija .table{display:table}#ija .table-row{display:table-row}#ija .flow-root{display:flow-root}#ija .grid{display:grid}#ija .inline-grid{display:inline-grid}#ija .contents{display:contents}#ija .list-item{display:list-item}#ija .\\!hidden{display:none!important}#ija .hidden{display:none}#ija .h-4{height:1rem}#ija .w-4{width:1rem}#ija .w-64{width:16rem}#ija .w-full{width:100%}#ija .min-w-0{min-width:0px}#ija .max-w-\\[var\\(--available-width\\)\\]{max-width:var(--available-width)}#ija .max-w-full{max-width:100%}#ija .flex-none{flex:none}#ija .flex-shrink,#ija .shrink{flex-shrink:1}#ija .flex-grow,#ija .grow{flex-grow:1}#ija .border-collapse{border-collapse:collapse}#ija .origin-\\[var\\(--transform-origin\\)\\]{transform-origin:var(--transform-origin)}#ija .translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .resize{resize:both}#ija .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}#ija .flex-col{flex-direction:column}#ija .flex-wrap{flex-wrap:wrap}#ija .items-start{align-items:flex-start}#ija .items-center{align-items:center}#ija .justify-center{justify-content:center}#ija .gap-1\\.5{gap:.375rem}#ija .gap-2{gap:.5rem}#ija .gap-2\\.5{gap:.625rem}#ija .overflow-hidden{overflow:hidden}#ija .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ija .rounded-lg{border-radius:var(--i-radius-lg)}#ija .border{border-width:1px}#ija .bg-accent-9{background-color:var(--i-color-a-9)}#ija .bg-lowest{background-color:var(--i-color-lowest)}#ija .bg-neutral-1{background-color:var(--i-color-n-1)}#ija .p-1{padding:.25rem}#ija .p-2{padding:.5rem}#ija .px-2{padding-left:.5rem;padding-right:.5rem}#ija .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#ija .px-3{padding-left:.75rem;padding-right:.75rem}#ija .px-4{padding-left:1rem;padding-right:1rem}#ija .px-5{padding-left:1.25rem;padding-right:1.25rem}#ija .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}#ija .py-2{padding-top:.5rem;padding-bottom:.5rem}#ija .pb-4{padding-bottom:1rem}#ija .pl-2{padding-left:.5rem}#ija .pl-2\\.5{padding-left:.625rem}#ija .pr-1{padding-right:.25rem}#ija .pr-8{padding-right:2rem}#ija .pt-1{padding-top:.25rem}#ija .text-center{text-align:center}#ija .text-justify{text-align:justify}#ija .text-base{font-size:1rem;line-height:1.5rem}#ija .text-sm{font-size:.875rem;line-height:1.25rem}#ija .text-xs{font-size:.75rem;line-height:1rem}#ija .font-medium{font-weight:500}#ija .uppercase{text-transform:uppercase}#ija .lowercase{text-transform:lowercase}#ija .capitalize{text-transform:capitalize}#ija .italic{font-style:italic}#ija .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ija .leading-snug{line-height:1.375}#ija .text-\\[\\#E5484D\\]{--tw-text-opacity: 1;color:rgb(229 72 77 / var(--tw-text-opacity, 1))}#ija .text-accent-1{color:var(--i-color-a-1)}#ija .text-accent-11{color:var(--i-color-a-11)}#ija .text-neutral-10{color:var(--i-color-n-10)}#ija .text-neutral-11{color:var(--i-color-n-11)}#ija .underline{text-decoration-line:underline}#ija .underline-offset-2{text-underline-offset:2px}#ija .opacity-0{opacity:0}#ija .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .outline-none{outline:2px solid transparent;outline-offset:2px}#ija .outline{outline-style:solid}#ija .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .ring-1,#ija .ring-\\[1px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}#ija .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}#ija .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ija .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}#ija .transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}#ija .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}#ija .duration-medium{transition-duration:var(--i-duration-medium)}#ija .duration-snappy{transition-duration:var(--i-duration-snappy)}#ija .ease-bounce-out{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}#ija .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}#ija .fr{outline:none}#ija .fr:focus{outline:none}#ija .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .rounded-field-input{border-radius:0}#ija .fieldset:first-child .rounded-field-input{border-top-left-radius:var(--i-radius-md);border-top-right-radius:var(--i-radius-md)}#ija .fieldset:last-child .rounded-field-input{border-bottom-left-radius:var(--i-radius-md);border-bottom-right-radius:var(--i-radius-md)}@keyframes loading-circle{0%{stroke-dasharray:0 56.54}to{stroke-dasharray:56.54 56.54}}#ija .loading-circle{stroke-dasharray:56.54 56.54}#ija [data-state=loading] .loading-circle{animation:loading-circle 1s linear}@keyframes done-checkmark{0%{stroke-dasharray:0 8.6}to{stroke-dasharray:8.6 8.6}}#ija .done-checkmark{stroke-dashoffset:-1;stroke-dasharray:0 8.6;opacity:0}#ija [data-state=success] .done-checkmark{opacity:1;animation:done-checkmark .9s cubic-bezier(.16,1,.3,1)}#ija .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}#ija .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}#ija .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}#ija .focus-within\\:z-10:focus-within{z-index:10}#ija .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}#ija .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}#ija .data-\\[state\\=idle\\]\\:translate-y-full[data-state=idle]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[state\\=loading\\]\\:-translate-y-full[data-state=loading]{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[state\\=success\\]\\:translate-y-full[data-state=success]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[ending-style\\]\\:scale-95[data-ending-style],#ija .data-\\[starting-style\\]\\:scale-95[data-starting-style]{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[ending-style\\]\\:opacity-0[data-ending-style],#ija .data-\\[starting-style\\]\\:opacity-0[data-starting-style],#ija .data-\\[state\\=idle\\]\\:opacity-0[data-state=idle]{opacity:0}#ija .data-\\[state\\=idle\\]\\:opacity-100[data-state=idle]{opacity:1}#ija .dark .theme-dark\\:text-highest{color:var(--i-color-highest)}#ija .dark .theme-dark\\:active\\:bg-accent-8:active{background-color:var(--i-color-a-8)}#ija .fill .theme-fill\\:bg-accent-2{background-color:var(--i-color-a-2)}#ija .fill .theme-fill\\:hover\\:bg-accent-3:hover{background-color:var(--i-color-a-3)}#ija .fill .theme-fill\\:active\\:bg-accent-4:active{background-color:var(--i-color-a-4)}#ija .stroke .theme-stroke\\:ring-\\[1px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .stroke .theme-stroke\\:ring-accent-4{--tw-ring-color: var(--i-color-a-4)}#ija .stroke .theme-stroke\\:hover\\:ring-accent-9:hover{--tw-ring-color: var(--i-color-a-9)}',Mm={getRenderTargetElement:()=>{const e=document.body.querySelector(`#${nl}`);if(!e)throw new Error(`Element with id ${nl} not found.`);return e}},Fm=()=>Il(({rpcClient:e,logger:t,analytics:n})=>{let r=!1;const o=({params:a})=>be(pm,{terms:a.terms,locale:void 0},[[be("style",{id:"inploi-job-alerts-styles"},Lm),be("style",{id:"inploi-job-search-theme"},Tm(a.theme))],be(_u,{theme:a.theme}),be($m,{theme:a.theme,rpcClient:e,logger:t,analytics:n})]),i=a=>Tt.filters$.value=a,s=a=>Tt.config$.value=typeof a=="function"?a(Tt.config$.peek()):a;return{prerender:async a=>(r=!0,i(a.initialFilters),{html:hu(be(Ee,{},be(o,{params:a})))}),render:async a=>{const l=r?Qr:zt;Ct(typeof window<"u","the `render` method of JobSearch cannot be called in non-browser environments. Use `prerender` instead."),i(a.initialFilters),s(a.config),l(be(o,{params:a}),Mm.getRenderTargetElement())},setFilters:i,setConfig:s,"~brand":"@inploi/plugin-job-alerts"}});if(!window.inploi)throw new Error("Please insert the SDK script tag above the plugins.");window.inploi.jobAlertsPlugin=Fm})();
|
|
21
|
+
}`},Ag=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t},Ig=({error:e})=>e?P("div",{role:"alert",class:"flex max-w-full items-start gap-1.5 px-2 py-2 text-[#E5484D]",children:[P("svg",{class:"mt-0.5 h-4 w-4 flex-none",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P("circle",{cx:"8",cy:"8",r:"6.3",stroke:"currentColor","stroke-width":"1.4"}),P("rect",{x:"7",y:"4",width:"2",height:"5",fill:"currentColor"}),P("rect",{x:"7",y:"10",width:"2",height:"2",fill:"currentColor"})]}),P("p",{class:"pr-1 text-sm",children:e})]}):null,jg=(e,t)=>{const n=t==null?void 0:t.trim();return n?e("alert_notice_sender",{company:n}):e("alert_notice")},$g=({employerName:e})=>{const{t}=sl();return P("p",{class:"text-neutral-11 px-2 text-xs leading-snug",children:jg(t,e)})},Ci="rounded-field-input bg-neutral-1 text-accent-11 autofill:shadow-[inset_0_0_0_1000px_var(--i-color-a-2)] autofill:focus:shadow-[inset_0_0_0_1000px_var(--i-color-a-1)] autofill:[-webkit-text-fill-color:var(--i-color-a-11)] px-3 py-2 ring ring-[1px] transition-all ease-expo-out duration-snappy ring-neutral-4 fr inline-flex w-full items-center justify-center px-2.5 text-base shadow-[0_0_0_1px] outline-none focus:shadow-[0_0_0_2px]",Ng=tt(({class:e,...t},n)=>P("button",{ref:n,class:nl("fr theme-stroke:ring-[1px] theme-stroke:ring-accent-4 theme-stroke:hover:ring-accent-9 theme-fill:bg-accent-2 theme-fill:hover:bg-accent-3 theme-fill:active:bg-accent-4 duration-snappy ease-expo-out text-accent-11 flex w-full items-center justify-center gap-2 overflow-hidden rounded-lg px-4 py-1.5 pl-2 text-sm font-medium transition-all active:scale-[.97]",e),onTouchStart:gl,...t,children:[P(ps,{class:"flex-none",name:"bell"})," ",P("span",{class:"min-w-0 truncate text-center",children:Tt.config$.value.label})]})),Dg=()=>P("p",{class:"text-neutral-11 px-2 pb-4 pt-1 text-sm",children:Tt.config$.value.headerText}),Lg=({label:e})=>{const t=Tt.config$.value.privacyPolicyUrl;return t?P("a",{href:t,target:"_blank",rel:"noopener noreferrer",class:"text-neutral-11 hover:text-accent-11 px-2 text-xs underline underline-offset-2",children:e}):null};function gl(){}const Mg=({theme:e,rpcClient:t,logger:n,analytics:r})=>{const[o,i]=_e("idle"),[s,a]=_e(),{t:l}=sl();return P("div",{id:"ija",children:P("div",{class:Ag(e).join(" "),children:P(Ah,{children:[P(Dc,{render:P(Ng,{})}),P(Lc,{children:P("div",{id:"ija",children:P(zc,{sideOffset:5,collisionPadding:16,side:"bottom",children:P(el,{className:"bg-lowest ring-neutral-5 ease-bounce-out shadow-surface-lg duration-snappy isolate w-64 max-w-[var(--available-width)] origin-[var(--transform-origin)] rounded-lg p-2 ring-1 transition-[transform,opacity] data-[ending-style]:scale-95 data-[starting-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",children:[P(Dg,{}),P("form",{onSubmit:async c=>{var v,y,m,_;if(c.preventDefault(),o!=="idle")return;const f=new FormData(c.currentTarget),u=(v=f.get("name"))==null?void 0:v.toString(),[p,...d]=(u==null?void 0:u.split(" "))??[],g=d.join(" "),h=(y=f.get("email"))==null?void 0:y.toString();i("loading"),r.log({event:"IDENTIFY",properties:{identifier:"job_alerts",email:h,first_name:p,last_name:g}}),await Promise.all([new Promise(w=>setTimeout(w,1e3)),t.request(Zl,{body:{contact:{email:(m=f.get("email"))==null?void 0:m.toString(),first_name:p,last_name:g},alerts:(_=f.get("frequency"))==null?void 0:_.toString(),filters:Tt.filters$.peek()}})]).then(async()=>{i("success"),await new Promise(w=>setTimeout(w,1e3)),i("idle")}).catch(w=>{n.error(w),a(l("create_alert_error")),i("idle")})},class:"flex flex-col gap-2.5",children:[P("div",{children:[P("fieldset",{class:"fieldset relative focus-within:z-10",children:[P("label",{class:"sr-only",htmlFor:"ija-email",children:l("email")}),P("input",{name:"email",autocomplete:"email",class:Ci,disabled:o==="loading",id:"ija-email",placeholder:l("email_placeholder"),type:"email",required:!0})]}),P("fieldset",{class:"fieldset relative focus-within:z-10",children:[P("label",{class:"sr-only",htmlFor:"ija-name",children:l("name")}),P("input",{disabled:o==="loading",name:"name",required:!0,autocomplete:"name",class:Ci,id:"ija-name",placeholder:l("name_placeholder")})]}),P("fieldset",{class:"fieldset relative focus-within:z-10",children:[P("label",{class:"sr-only",htmlFor:"ija-frequency",children:l("frequency")}),P("select",{disabled:o==="loading",class:nl(Ci,"appearance-none pr-8"),id:"ija-frequency",defaultValue:"WEEKLY",name:"frequency",children:Bi.map(c=>P("option",{value:c,children:l(c)}))}),P("div",{class:"text-neutral-10 absolute bottom-0 right-0 top-0 flex items-center p-1","aria-hidden":!0,children:P(ps,{name:"chevron-up-down"})})]})]}),P($g,{employerName:Tt.config$.value.employerName}),P(Lg,{label:l("privacy_policy_link")}),P("button",{onTouchStart:gl,class:"bg-accent-9 active:bg-accent-10 theme-dark:active:bg-accent-8 fr ease-expo-out duration-snappy text-accent-1 theme-dark:text-highest grid items-center overflow-hidden rounded-lg px-5 py-2 pl-2.5 text-center transition-all hover:scale-[1.02] active:scale-[.97]",children:[P("span",{"data-state":o,class:"ease-expo-out duration-medium col-span-full row-span-full text-base opacity-0 transition-all data-[state=loading]:-translate-y-full data-[state=success]:translate-y-full data-[state=idle]:opacity-100",children:l("create_alert")}),P("div",{"data-state":o,class:"ease-expo-out duration-medium col-span-full row-span-full flex translate-y-0 justify-center text-base transition-all data-[state=idle]:translate-y-full data-[state=idle]:opacity-0",children:P("svg",{width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P("circle",{class:"loading-circle duration-snappy ease-expo-out transition-all",cx:"12",cy:"12",r:"9"}),P("path",{class:"done-checkmark",d:"M9 12L11 14L15 10"})]})})]}),P(Ig,{error:s})]})]})})})})]})})})},Fg='#ija{font-size:16px}#ija *,#ija :before,#ija :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#ija ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }#ija{--tw-content: ""}#ija *{box-sizing:border-box;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent;font-family:inherit;font-style:inherit;font-weight:inherit}#ija :before,#ija :after{box-sizing:border-box}#ija :is(a){text-decoration:none}#ija :is(ul,ol){list-style:none;padding:0;margin:0}#ija :is(p){margin:0;padding:0}#ija :is(li){margin:0;padding:0;list-style:none}#ija :is(fieldset){margin:0;padding:0}#ija :is(button),#ija :is(a){display:block;margin:0;padding:0;border:unset;background:unset;text-align:unset}#ija :is(input),#ija :is(textarea){display:block;margin:0;padding:0;min-width:0;max-width:unset;width:100%}#ija :is(svg){display:block}@media(prefers-reduced-motion){#ija *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;animation-delay:0s!important}}#ija .container{width:100%}@media(min-width:640px){#ija .container{max-width:640px}}@media(min-width:768px){#ija .container{max-width:768px}}@media(min-width:1024px){#ija .container{max-width:1024px}}@media(min-width:1280px){#ija .container{max-width:1280px}}@media(min-width:1536px){#ija .container{max-width:1536px}}#ija .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#ija .visible{visibility:visible}#ija .invisible{visibility:hidden}#ija .collapse{visibility:collapse}#ija .static{position:static}#ija .fixed{position:fixed}#ija .absolute{position:absolute}#ija .relative{position:relative}#ija .sticky{position:sticky}#ija .bottom-0{bottom:0}#ija .right-0{right:0}#ija .top-0{top:0}#ija .isolate{isolation:isolate}#ija .col-span-full{grid-column:1 / -1}#ija .row-span-full{grid-row:1 / -1}#ija .mt-0\\.5{margin-top:.125rem}#ija .block{display:block}#ija .inline-block{display:inline-block}#ija .inline{display:inline}#ija .flex{display:flex}#ija .inline-flex{display:inline-flex}#ija .table{display:table}#ija .table-row{display:table-row}#ija .flow-root{display:flow-root}#ija .grid{display:grid}#ija .inline-grid{display:inline-grid}#ija .contents{display:contents}#ija .list-item{display:list-item}#ija .\\!hidden{display:none!important}#ija .hidden{display:none}#ija .h-4{height:1rem}#ija .w-4{width:1rem}#ija .w-64{width:16rem}#ija .w-full{width:100%}#ija .min-w-0{min-width:0px}#ija .max-w-\\[var\\(--available-width\\)\\]{max-width:var(--available-width)}#ija .max-w-full{max-width:100%}#ija .flex-none{flex:none}#ija .flex-shrink,#ija .shrink{flex-shrink:1}#ija .flex-grow,#ija .grow{flex-grow:1}#ija .border-collapse{border-collapse:collapse}#ija .origin-\\[var\\(--transform-origin\\)\\]{transform-origin:var(--transform-origin)}#ija .translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .resize{resize:both}#ija .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}#ija .flex-col{flex-direction:column}#ija .flex-wrap{flex-wrap:wrap}#ija .items-start{align-items:flex-start}#ija .items-center{align-items:center}#ija .justify-center{justify-content:center}#ija .gap-1\\.5{gap:.375rem}#ija .gap-2{gap:.5rem}#ija .gap-2\\.5{gap:.625rem}#ija .overflow-hidden{overflow:hidden}#ija .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ija .rounded-lg{border-radius:var(--i-radius-lg)}#ija .border{border-width:1px}#ija .bg-accent-9{background-color:var(--i-color-a-9)}#ija .bg-lowest{background-color:var(--i-color-lowest)}#ija .bg-neutral-1{background-color:var(--i-color-n-1)}#ija .p-1{padding:.25rem}#ija .p-2{padding:.5rem}#ija .px-2{padding-left:.5rem;padding-right:.5rem}#ija .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#ija .px-3{padding-left:.75rem;padding-right:.75rem}#ija .px-4{padding-left:1rem;padding-right:1rem}#ija .px-5{padding-left:1.25rem;padding-right:1.25rem}#ija .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}#ija .py-2{padding-top:.5rem;padding-bottom:.5rem}#ija .pb-4{padding-bottom:1rem}#ija .pl-2{padding-left:.5rem}#ija .pl-2\\.5{padding-left:.625rem}#ija .pr-1{padding-right:.25rem}#ija .pr-8{padding-right:2rem}#ija .pt-1{padding-top:.25rem}#ija .text-center{text-align:center}#ija .text-justify{text-align:justify}#ija .text-base{font-size:1rem;line-height:1.5rem}#ija .text-sm{font-size:.875rem;line-height:1.25rem}#ija .text-xs{font-size:.75rem;line-height:1rem}#ija .font-medium{font-weight:500}#ija .uppercase{text-transform:uppercase}#ija .lowercase{text-transform:lowercase}#ija .capitalize{text-transform:capitalize}#ija .italic{font-style:italic}#ija .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ija .leading-snug{line-height:1.375}#ija .text-\\[\\#E5484D\\]{--tw-text-opacity: 1;color:rgb(229 72 77 / var(--tw-text-opacity, 1))}#ija .text-accent-1{color:var(--i-color-a-1)}#ija .text-accent-11{color:var(--i-color-a-11)}#ija .text-neutral-10{color:var(--i-color-n-10)}#ija .text-neutral-11{color:var(--i-color-n-11)}#ija .underline{text-decoration-line:underline}#ija .underline-offset-2{text-underline-offset:2px}#ija .opacity-0{opacity:0}#ija .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .outline-none{outline:2px solid transparent;outline-offset:2px}#ija .outline{outline-style:solid}#ija .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .ring-1,#ija .ring-\\[1px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}#ija .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}#ija .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ija .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ija .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}#ija .transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}#ija .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}#ija .duration-medium{transition-duration:var(--i-duration-medium)}#ija .duration-snappy{transition-duration:var(--i-duration-snappy)}#ija .ease-bounce-out{transition-timing-function:cubic-bezier(.34,1.56,.64,1)}#ija .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}#ija .fr{outline:none}#ija .fr:focus{outline:none}#ija .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .rounded-field-input{border-radius:0}#ija .fieldset:first-child .rounded-field-input{border-top-left-radius:var(--i-radius-md);border-top-right-radius:var(--i-radius-md)}#ija .fieldset:last-child .rounded-field-input{border-bottom-left-radius:var(--i-radius-md);border-bottom-right-radius:var(--i-radius-md)}@keyframes loading-circle{0%{stroke-dasharray:0 56.54}to{stroke-dasharray:56.54 56.54}}#ija .loading-circle{stroke-dasharray:56.54 56.54}#ija [data-state=loading] .loading-circle{animation:loading-circle 1s linear}@keyframes done-checkmark{0%{stroke-dasharray:0 8.6}to{stroke-dasharray:8.6 8.6}}#ija .done-checkmark{stroke-dashoffset:-1;stroke-dasharray:0 8.6;opacity:0}#ija [data-state=success] .done-checkmark{opacity:1;animation:done-checkmark .9s cubic-bezier(.16,1,.3,1)}#ija .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}#ija .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}#ija .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}#ija .focus-within\\:z-10:focus-within{z-index:10}#ija .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}#ija .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}#ija .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}#ija .data-\\[state\\=idle\\]\\:translate-y-full[data-state=idle]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[state\\=loading\\]\\:-translate-y-full[data-state=loading]{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[state\\=success\\]\\:translate-y-full[data-state=success]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[ending-style\\]\\:scale-95[data-ending-style],#ija .data-\\[starting-style\\]\\:scale-95[data-starting-style]{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ija .data-\\[ending-style\\]\\:opacity-0[data-ending-style],#ija .data-\\[starting-style\\]\\:opacity-0[data-starting-style],#ija .data-\\[state\\=idle\\]\\:opacity-0[data-state=idle]{opacity:0}#ija .data-\\[state\\=idle\\]\\:opacity-100[data-state=idle]{opacity:1}#ija .dark .theme-dark\\:text-highest{color:var(--i-color-highest)}#ija .dark .theme-dark\\:active\\:bg-accent-8:active{background-color:var(--i-color-a-8)}#ija .fill .theme-fill\\:bg-accent-2{background-color:var(--i-color-a-2)}#ija .fill .theme-fill\\:hover\\:bg-accent-3:hover{background-color:var(--i-color-a-3)}#ija .fill .theme-fill\\:active\\:bg-accent-4:active{background-color:var(--i-color-a-4)}#ija .stroke .theme-stroke\\:ring-\\[1px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}#ija .stroke .theme-stroke\\:ring-accent-4{--tw-ring-color: var(--i-color-a-4)}#ija .stroke .theme-stroke\\:hover\\:ring-accent-9:hover{--tw-ring-color: var(--i-color-a-9)}',Vg={getRenderTargetElement:()=>{const e=document.body.querySelector(`#${rl}`);if(!e)throw new Error(`Element with id ${rl} not found.`);return e}},Bg=()=>jl(({rpcClient:e,logger:t,analytics:n})=>{let r=!1;const o=({params:a})=>be(gg,{terms:a.terms,locale:void 0},[[be("style",{id:"inploi-job-alerts-styles"},Fg),be("style",{id:"inploi-job-search-theme"},Pg(a.theme))],be(wu,{theme:a.theme}),be(Mg,{theme:a.theme,rpcClient:e,logger:t,analytics:n})]),i=a=>Tt.filters$.value=a,s=a=>Tt.config$.value=typeof a=="function"?a(Tt.config$.peek()):a;return{prerender:async a=>(r=!0,i(a.initialFilters),{html:gu(be(Ee,{},be(o,{params:a})))}),render:async a=>{const l=r?Qr:zt;Ct(typeof window<"u","the `render` method of JobSearch cannot be called in non-browser environments. Use `prerender` instead."),i(a.initialFilters),s(a.config),l(be(o,{params:a}),Vg.getRenderTargetElement())},setFilters:i,setConfig:s,"~brand":"@inploi/plugin-job-alerts"}});if(!window.inploi)throw new Error("Please insert the SDK script tag above the plugins.");window.inploi.jobAlertsPlugin=Bg})();
|