@inploi/plugin-job-alerts 1.0.2 → 2.0.0
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 +55 -43
- package/dist/job-alerts.d.ts +1 -0
- package/dist/plugin-job-alerts.cjs +8607 -3739
- package/dist/plugin-job-alerts.js +8607 -3739
- package/package.json +5 -5
package/cdn/index.js
CHANGED
|
@@ -1,45 +1,57 @@
|
|
|
1
|
-
(function(){"use strict";function Ui(e,t){if(!e)throw new Error(t)}var Wi=e=>e;function Hi(){return{"~standard":{vendor:"inploi",version:1,validate:e=>({value:e})}}}function ru(e){return e}var nt,$,nr,rr,Se,or,ir,ar,sr,qt,Xt,Zt,cr,rt={},lr=[],zi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,wt=Array.isArray;function se(e,t){for(var n in t)e[n]=t[n];return e}function Gt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?nt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return ot(e,a,r,o,null)}function ot(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??++nr,__i:-1,__u:0};return o==null&&$.vnode!=null&&$.vnode(i),i}function ur(){return{current:null}}function B(e){return e.children}function ee(e,t){this.props=e,this.context=t}function Te(e,t){if(t==null)return e.__?Te(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"?Te(e):null}function fr(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return fr(e)}}function Qt(e){(!e.__d&&(e.__d=!0)&&Se.push(e)&&!gt.__r++||or!==$.debounceRendering)&&((or=$.debounceRendering)||ir)(gt)}function gt(){for(var e,t,n,r,o,i,a,s=1;Se.length;)Se.length>s&&Se.sort(ar),e=Se.shift(),s=Se.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=se({},r)).__v=r.__v+1,$.vnode&&$.vnode(n),Jt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Te(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,_r(i,n,a),n.__e!=o&&fr(n)));gt.__r=0}function dr(e,t,n,r,o,i,a,s,c,u,f){var l,p,d,v,h,_,m=r&&r.__k||lr,w=t.length;for(c=Bi(n,t,m,c,w),l=0;l<w;l++)(d=n.__k[l])!=null&&(p=d.__i===-1?rt:m[d.__i]||rt,d.__i=l,_=Jt(e,d,p,o,i,a,s,c,u,f),v=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&en(p.ref,null,d),f.push(d.ref,d.__c||v,d)),h==null&&v!=null&&(h=v),4&d.__u||p.__k===d.__k?c=pr(d,c,e):typeof d.type=="function"&&_!==void 0?c=_:v&&(c=v.nextSibling),d.__u&=-7);return n.__e=h,c}function Bi(e,t,n,r,o){var i,a,s,c,u,f=n.length,l=f,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+p,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?ot(null,a,null,null,null):wt(a)?ot(B,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ot(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(u=a.__i=Vi(a,n,c,l))!==-1&&(l--,(s=n[u])&&(s.__u|=2)),s==null||s.__v===null?(u==-1&&(o>f?p--:o<f&&p++),typeof a.type!="function"&&(a.__u|=4)):u!=c&&(u==c-1?p--:u==c+1?p++:(u>c?p--:p++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<f;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Te(s)),mr(s,s));return r}function pr(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=pr(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Te(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ce(e,t){return t=t||[],e==null||typeof e=="boolean"||(wt(e)?e.some(function(n){ce(n,t)}):t.push(e)),t}function Vi(e,t,n,r){var o,i,a=e.key,s=e.type,c=t[n];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return n;if(r>(c!=null&&!(2&c.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i++}}return-1}function hr(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||zi.test(t)?n:n+"px"}function yt(e,t,n,r,o){var i;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||hr(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||hr(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(sr,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=qt,e.addEventListener(t,i?Zt:Xt,i)):e.removeEventListener(t,i?Zt:Xt,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 vr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=qt++;else if(t.t<n.u)return;return n($.event?$.event(t):t)}}}function Jt(e,t,n,r,o,i,a,s,c,u){var f,l,p,d,v,h,_,m,w,y,g,b,C,A,E,D,R,W,O=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(f=$.__b)&&f(t);e:if(typeof O=="function")try{if(m=t.props,w="prototype"in O&&O.prototype.render,y=(f=O.contextType)&&r[f.__c],g=f?y?y.props.value:f.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:(w?t.__c=l=new O(m,g):(t.__c=l=new ee(m,g),l.constructor=O,l.render=Ki),y&&y.sub(l),l.props=m,l.state||(l.state={}),l.context=g,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),w&&l.__s==null&&(l.__s=l.state),w&&O.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=se({},l.__s)),se(l.__s,O.getDerivedStateFromProps(m,l.__s))),d=l.props,v=l.state,l.__v=t,p)w&&O.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),w&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(w&&O.getDerivedStateFromProps==null&&m!==d&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,g),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,g)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(U){U&&(U.__=t)}),b=0;b<l._sb.length;b++)l.__h.push(l._sb[b]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,g),w&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(d,v,h)})}if(l.context=g,l.props=m,l.__P=e,l.__e=!1,C=$.__r,A=0,w){for(l.state=l.__s,l.__d=!1,C&&C(t),f=l.render(l.props,l.state,l.context),E=0;E<l._sb.length;E++)l.__h.push(l._sb[E]);l._sb=[]}else do l.__d=!1,C&&C(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++A<25);l.state=l.__s,l.getChildContext!=null&&(r=se(se({},r),l.getChildContext())),w&&!p&&l.getSnapshotBeforeUpdate!=null&&(h=l.getSnapshotBeforeUpdate(d,v)),R=(D=f!=null&&f.type===B&&f.key==null)?f.props.children:f,D&&(f.props.children=null),s=dr(e,wt(R)?R:[R],t,n,r,o,i,a,s,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),_&&(l.__E=l.__=null)}catch(U){if(t.__v=null,c||i!=null)if(U.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(W=i.length;W--;)Gt(i[W]);else t.__e=n.__e,t.__k=n.__k;$.__e(U,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Yi(n.__e,t,n,r,o,i,a,c,u);return(f=$.diffed)&&f(t),128&t.__u?void 0:s}function _r(e,t,n){for(var r=0;r<n.length;r++)en(n[r],n[++r],n[++r]);$.__c&&$.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){$.__e(i,o.__v)}})}function Yi(e,t,n,r,o,i,a,s,c){var u,f,l,p,d,v,h,_=n.props,m=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((d=i[u])&&"setAttribute"in d==!!w&&(w?d.localName==w:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(w==null)return document.createTextNode(m);e=document.createElementNS(o,w,m.is&&m),s&&($.__m&&$.__m(t,i),s=!1),i=null}if(w===null)_===m||s&&e.data===m||(e.data=m);else{if(i=i&&nt.call(e.childNodes),_=n.props||rt,!s&&i!=null)for(_={},u=0;u<e.attributes.length;u++)_[(d=e.attributes[u]).name]=d.value;for(u in _)if(d=_[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=d;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;yt(e,u,null,d,o)}}for(u in m)d=m[u],u=="children"?p=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?v=d:u=="checked"?h=d:s&&typeof d!="function"||_[u]===d||yt(e,u,d,_[u],o);if(f)s||l&&(f.__html===l.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),dr(t.type==="template"?e.content:e,wt(p)?p:[p],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Te(n,0),s,c),i!=null)for(u=i.length;u--;)Gt(i[u]);s||(u="value",w=="progress"&&v==null?e.removeAttribute("value"):v!==void 0&&(v!==e[u]||w=="progress"&&!v||w=="option"&&v!==_[u])&&yt(e,u,v,_[u],o),u="checked",h!==void 0&&h!==e[u]&&yt(e,u,h,_[u],o))}return e}function en(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){$.__e(o,n)}}function mr(e,t,n){var r,o;if($.unmount&&$.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||en(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){$.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&mr(r[o],t,n||typeof e.type!="function");n||Gt(e.__e),e.__c=e.__=e.__e=void 0}function Ki(e,t,n){return this.constructor(e,n)}function De(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),$.__&&$.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Jt(t,e=(!r&&n||t).__k=x(B,null,[e]),o||rt,rt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?nt.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),_r(i,e,a)}function tn(e,t){De(e,t,tn)}function qi(e,t,n){var r,o,i,a,s=se({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?nt.call(arguments,2):n),ot(e.type,s,r||e.key,o||e.ref,null)}function Re(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(a){a.__e=!0,Qt(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+cr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}nt=lr.slice,$={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},nr=0,rr=function(e){return e!=null&&e.constructor==null},ee.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=se({},this.state),typeof e=="function"&&(e=e(se({},n),this.props)),e&&se(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Qt(this))},ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qt(this))},ee.prototype.render=B,Se=[],ir=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ar=function(e,t){return e.__v.__b-t.__v.__b},gt.__r=0,sr=/(PointerCapture)$|Capture$/i,qt=0,Xt=vr(!1),Zt=vr(!0),cr=0;var wr=/[\s\n\\/='"\0<>]/,gr=/^(xlink|xmlns|xml)([A-Z])/,Xi=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,Zi=/^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/,Gi=/["&<]/;function bt(e){if(e.length===0||Gi.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 yr={},Qi=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"]),Ji=/[A-Z]/g;function ea(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:yr[n]||(yr[n]=n.replace(Ji,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||Qi.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}var nn,Ce,it,at,br=[],xr=Array.isArray,rn=Object.assign;function ta(e,t,n){var r=$.__s;$.__s=!0,nn=$.__b,Ce=$.diffed,it=$.__r,at=$.unmount;var o=x(B,null);o.__k=[e];try{var i=re(e,t||kr,!1,void 0,o,!1,n);return Array.isArray(i)?i.join(""):i}catch(a){throw a.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):a}finally{$.__c&&$.__c(e,br),$.__s=r,br.length=0}}function $r(){this.__d=!0}var kr={};function Er(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,n.state==null&&(n.state=kr),n.__s==null&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=rn({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),it&&it(e),n.render(n.props,n.state,t)}function re(e,t,n,r,o,i,a){if(e==null||e===!0||e===!1||e==="")return"";if(typeof e!="object")return typeof e=="function"?"":bt(e+"");if(xr(e)){var s,c="";o.__k=e;for(var u=0;u<e.length;u++){var f=e[u];if(f!=null&&typeof f!="boolean"){var l,p=re(f,t,n,r,o,i,a);typeof p=="string"?c+=p:(s=s||[],c&&s.push(c),c="",Array.isArray(p)?(l=s).push.apply(l,p):s.push(p))}}return s?(c&&s.push(c),s):c}if(e.constructor!==void 0)return"";e.__=o,nn&&nn(e);var d,v,h,_=e.type,m=e.props,w=t;if(typeof _=="function"){if(_===B){if(m.tpl){for(var y="",g=0;g<m.tpl.length;g++)if(y+=m.tpl[g],m.exprs&&g<m.exprs.length){var b=m.exprs[g];if(b==null)continue;typeof b!="object"||b.constructor!==void 0&&!xr(b)?y+=b:y+=re(b,t,n,r,e,i,a)}return y}if(m.UNSTABLE_comment)return"<!--"+bt(m.UNSTABLE_comment||"")+"-->";v=m.children}else{if((d=_.contextType)!=null){var C=t[d.__c];w=C?C.props.value:d.__}if(_.prototype&&typeof _.prototype.render=="function")v=Er(e,w),h=e.__c;else{e.__c=h={__v:e,props:m,context:w,setState:$r,forceUpdate:$r,__d:!0,__h:[]};for(var A=0;h.__d&&A++<25;)h.__d=!1,it&&it(e),v=_.call(h,m,w);h.__d=!0}if(h.getChildContext!=null&&(t=rn({},t,h.getChildContext())),(_.getDerivedStateFromError||h.componentDidCatch)&&$.errorBoundaries){var E="";v=v!=null&&v.type===B&&v.key==null?v.props.children:v;try{return E=re(v,t,n,r,e,i,a)}catch(G){return _.getDerivedStateFromError&&(h.__s=_.getDerivedStateFromError(G)),h.componentDidCatch&&h.componentDidCatch(G,{}),h.__d&&(v=Er(e,t),(h=e.__c).getChildContext!=null&&(t=rn({},t,h.getChildContext())),E=re(v=v!=null&&v.type===B&&v.key==null?v.props.children:v,t,n,r,e,i,a)),E}finally{Ce&&Ce(e),e.__=null,at&&at(e)}}}v=v!=null&&v.type===B&&v.key==null&&v.props.tpl==null?v.props.children:v;try{var D=re(v,t,n,r,e,i,a);return Ce&&Ce(e),e.__=null,$.unmount&&$.unmount(e),D}catch(G){if(!i&&a&&a.onError){var R=a.onError(G,e,function(Ee){return re(Ee,t,n,r,e,i,a)});if(R!==void 0)return R;var W=$.__e;return W&&W(G,e),""}if(!i||!G||typeof G.then!="function")throw G;var O=function Ee(){try{return re(v,t,n,r,e,i,a)}catch(et){if(!et||typeof et.then!="function")throw et;return et.then(function(){return re(v,t,n,r,e,i,a)},function(){return Ee()})}};return G.then(function(){return O()})}}var U,j="<"+_,M="";for(var P in m){var S=m[P];switch(P){case"children":U=S;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in m)continue;P="for";break;case"className":if("class"in m)continue;P="class";break;case"defaultChecked":P="checked";break;case"defaultSelected":P="selected";break;case"defaultValue":case"value":switch(P="value",_){case"textarea":U=S;continue;case"select":r=S;continue;case"option":r!=S||"selected"in m||(j+=" selected")}break;case"dangerouslySetInnerHTML":M=S&&S.__html;continue;case"style":typeof S=="object"&&(S=ea(S));break;case"acceptCharset":P="accept-charset";break;case"httpEquiv":P="http-equiv";break;default:if(gr.test(P))P=P.replace(gr,"$1:$2").toLowerCase();else{if(wr.test(P))continue;P[4]!=="-"&&P!=="draggable"||S==null?n?Zi.test(P)&&(P=P==="panose1"?"panose-1":P.replace(/([A-Z])/g,"-$1").toLowerCase()):Xi.test(P)&&(P=P.toLowerCase()):S+=""}}S!=null&&S!==!1&&typeof S!="function"&&(j=S===!0||S===""?j+" "+P:j+" "+P+'="'+bt(S+"")+'"')}if(wr.test(_))throw new Error(_+" is not a valid HTML tag name in "+j+">");if(M||(typeof U=="string"?M=bt(U):U!=null&&U!==!1&&U!==!0&&(M=re(U,t,_==="svg"||_!=="foreignObject"&&n,r,e,i,a))),Ce&&Ce(e),e.__=null,at&&at(e),!M&&na.has(_))return j+"/>";var Y="</"+_+">",z=j+">";return Array.isArray(M)?[z].concat(M,[Y]):typeof M!="string"?[z,M,Y]:z+M+Y}var na=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),ra=0;function k(e,t,n,r,o,i){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var u={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ra,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return $.vnode&&$.vnode(u),u}const oa={bell:k("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:k("path",{d:"M8 8l8 8M8 16l8 -8"}),"chevron-up-down":k("path",{d:"M8 9l4 -4l4 4 M8 15l4 4l4 -4"})},ia=({theme:e})=>k("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:k("defs",{children:Object.entries(oa).map(([t,n])=>k("symbol",{id:`i-icon-${t}`,children:k("g",{fill:"none","stroke-width":e.mode==="dark"?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})}))})}),Sr=({name:e,...t})=>k("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:k("use",{href:`#i-icon-${e}`})});function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}var le,N,on,Cr,Ne=0,Pr=[],H=$,Ar=H.__b,jr=H.__r,Or=H.diffed,Tr=H.__c,Dr=H.unmount,Rr=H.__;function Pe(e,t){H.__h&&H.__h(N,e,Ne||t),Ne=0;var n=N.__H||(N.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function L(e){return Ne=1,st(Lr,e)}function st(e,t,n){var r=Pe(le++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Lr(void 0,t),function(s){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,s);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=N,!N.__f)){var o=function(s,c,u){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,s,c,u);var l=r.__c.props!==s;return f.forEach(function(p){if(p.__N){var d=p.__[0];p.__=p.__N,p.__N=void 0,d!==p.__[0]&&(l=!0)}}),i&&i.call(this,s,c,u)||l};N.__f=!0;var i=N.shouldComponentUpdate,a=N.componentWillUpdate;N.componentWillUpdate=function(s,c,u){if(this.__e){var f=i;i=void 0,o(s,c,u),i=f}a&&a.call(this,s,c,u)},N.shouldComponentUpdate=o}return r.__N||r.__}function I(e,t){var n=Pe(le++,3);!H.__s&&un(n.__H,t)&&(n.__=e,n.u=t,N.__H.__h.push(n))}function ue(e,t){var n=Pe(le++,4);!H.__s&&un(n.__H,t)&&(n.__=e,n.u=t,N.__h.push(n))}function T(e){return Ne=5,X(function(){return{current:e}},[])}function an(e,t,n){Ne=6,ue(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 X(e,t){var n=Pe(le++,7);return un(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function V(e,t){return Ne=8,X(function(){return e},t)}function Le(e){var t=N.context[e.__c],n=Pe(le++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(N)),t.props.value):e.__}function sn(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function aa(e){var t=Pe(le++,10),n=L();return t.__=e,N.componentDidCatch||(N.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function cn(){var e=Pe(le++,11);if(!e.__){for(var t=N.__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 sa(){for(var e;e=Pr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xt),e.__H.__h.forEach(ln),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){N=null,Ar&&Ar(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Rr&&Rr(e,t)},H.__r=function(e){jr&&jr(e),le=0;var t=(N=e.__c).__H;t&&(on===N?(t.__h=[],N.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(xt),t.__h.forEach(ln),t.__h=[],le=0)),on=N},H.diffed=function(e){Or&&Or(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Pr.push(t)!==1&&Cr===H.requestAnimationFrame||((Cr=H.requestAnimationFrame)||ca)(sa)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),on=N=null},H.__c=function(e,t){t.some(function(n){try{n.__h.forEach(xt),n.__h=n.__h.filter(function(r){return!r.__||ln(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],H.__e(r,n.__v)}}),Tr&&Tr(e,t)},H.unmount=function(e){Dr&&Dr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{xt(r)}catch(o){t=o}}),n.__H=void 0,t&&H.__e(t,n.__v))};var Nr=typeof requestAnimationFrame=="function";function ca(e){var t,n=function(){clearTimeout(r),Nr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Nr&&(t=requestAnimationFrame(n))}function xt(e){var t=N,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),N=t}function ln(e){var t=N;e.__c=e.__(),N=t}function un(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Lr(e,t){return typeof t=="function"?t(e):t}function Fr(e,t){for(var n in t)e[n]=t[n];return e}function fn(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 dn(e,t){var n=t(),r=L({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ue(function(){o.__=n,o.u=t,pn(o)&&i({t:o})},[e,n,t]),I(function(){return pn(o)&&i({t:o}),e(function(){pn(o)&&i({t:o})})},[e]),n}function pn(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function hn(e){e()}function vn(e){return e}function _n(){return[!1,hn]}var mn=ue;function $t(e,t){this.props=e,this.context=t}function Mr(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:fn(this.props,o)}function r(o){return this.shouldComponentUpdate=n,x(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}($t.prototype=new ee).isPureReactComponent=!0,$t.prototype.shouldComponentUpdate=function(e,t){return fn(this.props,e)||fn(this.state,t)};var Ir=$.__b;$.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ir&&Ir(e)};var la=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function K(e){function t(n){var r=Fr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=la,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ur=function(e,t){return e==null?null:ce(ce(e).map(t))},fe={map:Ur,forEach:Ur,count:function(e){return e?ce(e).length:0},only:function(e){var t=ce(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ce},ua=$.__e;$.__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)}ua(e,t,n,r)};var Wr=$.unmount;function Hr(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=Fr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Hr(r,t,n)})),e}function zr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return zr(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 ct(){this.__u=0,this.o=null,this.__b=null}function Br(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Vr(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return x(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Fe(){this.i=null,this.l=null}$.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Wr&&Wr(e)},(ct.prototype=new ee).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Br(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=zr(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},ct.prototype.componentWillUnmount=function(){this.o=[]},ct.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]=Hr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&x(B,null,e.fallback);return o&&(o.__u&=-33),[x(B,null,t.__a?null:e.children),o]};var Yr=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 fa(e){return this.getChildContext=function(){return e.context},e.children}function da(e){var t=this,n=e.h;t.componentWillUnmount=function(){De(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),De(x(fa,{context:t.context},e.__v),t.v)}function Kr(e,t){var n=x(da,{__v:e,h:t});return n.containerInfo=t,n}(Fe.prototype=new ee).__a=function(e){var t=this,n=Br(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Yr(t,e,r)):o()};n?n(i):i()}},Fe.prototype.render=function(e){this.i=null,this.l=new Map;var t=ce(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},Fe.prototype.componentDidUpdate=Fe.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Yr(e,n,t)})};var qr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,pa=/^(?: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]/,ha=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,va=/[A-Z0-9]/g,_a=typeof document<"u",ma=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Xr(e,t,n){return t.__k==null&&(t.textContent=""),De(e,t),typeof n=="function"&&n(),e?e.__c:null}function Zr(e,t,n){return tn(e,t),typeof n=="function"&&n(),e?e.__c:null}ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Gr=$.event;function wa(){}function ga(){return this.cancelBubble}function ya(){return this.defaultPrevented}$.event=function(e){return Gr&&(e=Gr(e)),e.persist=wa,e.isPropagationStopped=ga,e.isDefaultPrevented=ya,e.nativeEvent=e};var wn,ba={enumerable:!1,configurable:!0,get:function(){return this.class}},Qr=$.vnode;$.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||_a&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||ma(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":ha.test(a)&&(a=c):c=a="oninput":i&&pa.test(a)?a=a.replace(va,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ce(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ce(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ba)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=qr,Qr&&Qr(e)};var Jr=$.__r;$.__r=function(e){Jr&&Jr(e),wn=e.__c};var eo=$.diffed;$.diffed=function(e){eo&&eo(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),wn=null};var to={ReactCurrentDispatcher:{current:{readContext:function(e){return wn.__n[e.__c].props.value},useCallback:V,useContext:Le,useDebugValue:sn,useDeferredValue:vn,useEffect:I,useId:cn,useImperativeHandle:an,useInsertionEffect:mn,useLayoutEffect:ue,useMemo:X,useReducer:st,useRef:T,useState:L,useSyncExternalStore:dn,useTransition:_n}}},xa="18.3.1";function no(e){return x.bind(null,e)}function de(e){return!!e&&e.$$typeof===qr}function ro(e){return de(e)&&e.type===B}function oo(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Me(e){return de(e)?qi.apply(null,arguments):e}function io(e){return!!e.__k&&(De(null,e),!0)}function ao(e){return e&&(e.base||e.nodeType===1&&e)||null}var so=function(e,t){return e(t)},lt=function(e,t){return e(t)},co=B,lo=de,uo={useState:L,useId:cn,useReducer:st,useEffect:I,useLayoutEffect:ue,useInsertionEffect:mn,useTransition:_n,useDeferredValue:vn,useSyncExternalStore:dn,startTransition:hn,useRef:T,useImperativeHandle:an,useMemo:X,useCallback:V,useContext:Le,useDebugValue:sn,version:"18.3.1",Children:fe,render:Xr,hydrate:Zr,unmountComponentAtNode:io,createPortal:Kr,createElement:x,createContext:Re,createFactory:no,cloneElement:Me,createRef:ur,Fragment:B,isValidElement:de,isElement:lo,isFragment:ro,isMemo:oo,findDOMNode:ao,Component:ee,PureComponent:$t,memo:Mr,forwardRef:K,flushSync:lt,unstable_batchedUpdates:so,StrictMode:co,Suspense:ct,SuspenseList:Fe,lazy:Vr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:to};const $a=Object.freeze(Object.defineProperty({__proto__:null,Children:fe,Component:ee,Fragment:B,PureComponent:$t,StrictMode:co,Suspense:ct,SuspenseList:Fe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:to,cloneElement:Me,createContext:Re,createElement:x,createFactory:no,createPortal:Kr,createRef:ur,default:uo,findDOMNode:ao,flushSync:lt,forwardRef:K,hydrate:Zr,isElement:lo,isFragment:ro,isMemo:oo,isValidElement:de,lazy:Vr,memo:Mr,render:Xr,startTransition:hn,unmountComponentAtNode:io,unstable_batchedUpdates:so,useCallback:V,useContext:Le,useDebugValue:sn,useDeferredValue:vn,useEffect:I,useErrorBoundary:aa,useId:cn,useImperativeHandle:an,useInsertionEffect:mn,useLayoutEffect:ue,useMemo:X,useReducer:st,useRef:T,useState:L,useSyncExternalStore:dn,useTransition:_n,version:xa},Symbol.toStringTag,{value:"Module"}));function Ae(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ka(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function fo(...e){return t=>e.forEach(n=>ka(n,t))}function je(...e){return V(fo(...e),e)}function po(e,t=[]){let n=[];function r(i,a){const s=Re(a),c=n.length;n=[...n,a];function u(l){const{scope:p,children:d,...v}=l,h=(p==null?void 0:p[e][c])||s,_=X(()=>v,Object.values(v));return x(h.Provider,{value:_},d)}function f(l,p){const d=(p==null?void 0:p[e][c])||s,v=Le(d);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,f]}const o=()=>{const i=n.map(a=>Re(a));return function(s){const c=(s==null?void 0:s[e])||i;return X(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,Ea(o,...t)]}function Ea(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:c,scopeName:u})=>{const l=c(i)[`__scope${u}`];return{...s,...l}},{});return X(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const gn=K((e,t)=>{const{children:n,...r}=e,o=fe.toArray(n),i=o.find(Ca);if(i){const a=i.props.children,s=o.map(c=>c===i?fe.count(a)>1?fe.only(null):de(a)?a.props.children:null:c);return x(yn,q({},r,{ref:t}),de(a)?Me(a,void 0,s):null)}return x(yn,q({},r,{ref:t}),n)});gn.displayName="Slot";const yn=K((e,t)=>{const{children:n,...r}=e;return de(n)?Me(n,{...Pa(r,n.props),ref:t?fo(t,n.ref):n.ref}):fe.count(n)>1?fe.only(null):null});yn.displayName="SlotClone";const Sa=({children:e})=>x(B,null,e);function Ca(e){return de(e)&&e.type===Sa}function Pa(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Ie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=K((r,o)=>{const{asChild:i,...a}=r,s=i?gn:t;return I(()=>{window[Symbol.for("radix-ui")]=!0},[]),x(s,q({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Aa(e,t){e&<(()=>e.dispatchEvent(t))}function we(e){const t=T(e);return I(()=>{t.current=e}),X(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function ja(e,t=globalThis==null?void 0:globalThis.document){const n=we(e);I(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const bn="dismissableLayer.update",Oa="dismissableLayer.pointerDownOutside",Ta="dismissableLayer.focusOutside";let ho;const Da=Re({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ra=K((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,f=Le(Da),[l,p]=L(null),d=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,v]=L({}),h=je(t,E=>p(E)),_=Array.from(f.layers),[m]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=_.indexOf(m),y=l?_.indexOf(l):-1,g=f.layersWithOutsidePointerEventsDisabled.size>0,b=y>=w,C=Na(E=>{const D=E.target,R=[...f.branches].some(W=>W.contains(D));!b||R||(i==null||i(E),s==null||s(E),E.defaultPrevented||c==null||c())},d),A=La(E=>{const D=E.target;[...f.branches].some(W=>W.contains(D))||(a==null||a(E),s==null||s(E),E.defaultPrevented||c==null||c())},d);return ja(E=>{y===f.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},d),I(()=>{if(l)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ho=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(l)),f.layers.add(l),vo(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ho)}},[l,d,r,f]),I(()=>()=>{l&&(f.layers.delete(l),f.layersWithOutsidePointerEventsDisabled.delete(l),vo())},[l,f]),I(()=>{const E=()=>v({});return document.addEventListener(bn,E),()=>document.removeEventListener(bn,E)},[]),x(Ie.div,q({},u,{ref:h,style:{pointerEvents:g?b?"auto":"none":void 0,...e.style},onFocusCapture:Ae(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ae(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ae(e.onPointerDownCapture,C.onPointerDownCapture)}))});function Na(e,t=globalThis==null?void 0:globalThis.document){const n=we(e),r=T(!1),o=T(()=>{});return I(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){_o(Oa,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function La(e,t=globalThis==null?void 0:globalThis.document){const n=we(e),r=T(!1);return I(()=>{const o=i=>{i.target&&!r.current&&_o(Ta,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vo(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function _o(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Aa(o,i):o.dispatchEvent(i)}let xn=0;function Fa(){I(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:mo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:mo()),xn++,()=>{xn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),xn--}},[])}function mo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const $n="focusScope.autoFocusOnMount",kn="focusScope.autoFocusOnUnmount",wo={bubbles:!1,cancelable:!0},Ma=K((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=L(null),u=we(o),f=we(i),l=T(null),p=je(t,h=>c(h)),d=T({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I(()=>{if(r){let h=function(y){if(d.paused||!s)return;const g=y.target;s.contains(g)?l.current=g:ge(l.current,{select:!0})},_=function(y){if(d.paused||!s)return;const g=y.relatedTarget;g!==null&&(s.contains(g)||ge(l.current,{select:!0}))},m=function(y){if(document.activeElement===document.body)for(const b of y)b.removedNodes.length>0&&ge(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",_);const w=new MutationObserver(m);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",_),w.disconnect()}}},[r,s,d.paused]),I(()=>{if(s){bo.add(d);const h=document.activeElement;if(!s.contains(h)){const m=new CustomEvent($n,wo);s.addEventListener($n,u),s.dispatchEvent(m),m.defaultPrevented||(Ia(Ba(go(s)),{select:!0}),document.activeElement===h&&ge(s))}return()=>{s.removeEventListener($n,u),setTimeout(()=>{const m=new CustomEvent(kn,wo);s.addEventListener(kn,f),s.dispatchEvent(m),m.defaultPrevented||ge(h??document.body,{select:!0}),s.removeEventListener(kn,f),bo.remove(d)},0)}}},[s,u,f,d]);const v=V(h=>{if(!n&&!r||d.paused)return;const _=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(_&&m){const w=h.currentTarget,[y,g]=Ua(w);y&&g?!h.shiftKey&&m===g?(h.preventDefault(),n&&ge(y,{select:!0})):h.shiftKey&&m===y&&(h.preventDefault(),n&&ge(g,{select:!0})):m===w&&h.preventDefault()}},[n,r,d.paused]);return x(Ie.div,q({tabIndex:-1},a,{ref:p,onKeyDown:v}))});function Ia(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ge(r,{select:t}),document.activeElement!==n)return}function Ua(e){const t=go(e),n=yo(t,e),r=yo(t.reverse(),e);return[n,r]}function go(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yo(e,t){for(const n of e)if(!Wa(n,{upTo:t}))return n}function Wa(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ha(e){return e instanceof HTMLInputElement&&"select"in e}function ge(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ha(e)&&t&&e.select()}}const bo=za();function za(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xo(e,t),e.unshift(t)},remove(t){var n;e=xo(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function xo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ba(e){return e.filter(t=>t.tagName!=="A")}const Ue=globalThis!=null&&globalThis.document?ue:()=>{},Va=$a["useId".toString()]||(()=>{});let Ya=0;function Ka(e){const[t,n]=L(Va());return Ue(()=>{e||n(r=>r??String(Ya++))},[e]),e||(t?`radix-${t}`:"")}const qa=["top","right","bottom","left"],oe=Math.min,Q=Math.max,kt=Math.round,Et=Math.floor,ye=e=>({x:e,y:e}),Xa={left:"right",right:"left",bottom:"top",top:"bottom"},Za={start:"end",end:"start"};function En(e,t,n){return Q(e,oe(t,n))}function pe(e,t){return typeof e=="function"?e(t):e}function he(e){return e.split("-")[0]}function We(e){return e.split("-")[1]}function Sn(e){return e==="x"?"y":"x"}function Cn(e){return e==="y"?"height":"width"}function be(e){return["top","bottom"].includes(he(e))?"y":"x"}function Pn(e){return Sn(be(e))}function Ga(e,t,n){n===void 0&&(n=!1);const r=We(e),o=Pn(e),i=Cn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=St(a)),[a,St(a)]}function Qa(e){const t=St(e);return[An(e),t,An(t)]}function An(e){return e.replace(/start|end/g,t=>Za[t])}function Ja(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function es(e,t,n,r){const o=We(e);let i=Ja(he(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(An)))),i}function St(e){return e.replace(/left|right|bottom|top/g,t=>Xa[t])}function ts(e){return{top:0,right:0,bottom:0,left:0,...e}}function $o(e){return typeof e!="number"?ts(e):{top:e,right:e,bottom:e,left:e}}function Ct(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 ko(e,t,n){let{reference:r,floating:o}=e;const i=be(t),a=Pn(t),s=Cn(a),c=he(t),u=i==="y",f=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let d;switch(c){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:l};break;case"left":d={x:r.x-o.width,y:l};break;default:d={x:r.x,y:r.y}}switch(We(t)){case"start":d[a]-=p*(n&&u?-1:1);break;case"end":d[a]+=p*(n&&u?-1:1);break}return d}const ns=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:l}=ko(u,r,c),p=r,d={},v=0;for(let h=0;h<s.length;h++){const{name:_,fn:m}=s[h],{x:w,y,data:g,reset:b}=await m({x:f,y:l,initialPlacement:r,placement:p,strategy:o,middlewareData:d,rects:u,platform:a,elements:{reference:e,floating:t}});f=w??f,l=y??l,d={...d,[_]:{...d[_],...g}},b&&v<=50&&(v++,typeof b=="object"&&(b.placement&&(p=b.placement),b.rects&&(u=b.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:f,y:l}=ko(u,p,c)),h=-1)}return{x:f,y:l,placement:p,strategy:o,middlewareData:d}};async function ut(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:l="floating",altBoundary:p=!1,padding:d=0}=pe(t,e),v=$o(d),_=s[p?l==="floating"?"reference":"floating":l],m=Ct(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(_)))==null||n?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),w=l==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),g=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},b=Ct(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:y,strategy:c}):w);return{top:(m.top-b.top+v.top)/g.y,bottom:(b.bottom-m.bottom+v.bottom)/g.y,left:(m.left-b.left+v.left)/g.x,right:(b.right-m.right+v.right)/g.x}}const rs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=pe(e,t)||{};if(u==null)return{};const l=$o(f),p={x:n,y:r},d=Pn(o),v=Cn(d),h=await a.getDimensions(u),_=d==="y",m=_?"top":"left",w=_?"bottom":"right",y=_?"clientHeight":"clientWidth",g=i.reference[v]+i.reference[d]-p[d]-i.floating[v],b=p[d]-i.reference[d],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=C?C[y]:0;(!A||!await(a.isElement==null?void 0:a.isElement(C)))&&(A=s.floating[y]||i.floating[v]);const E=g/2-b/2,D=A/2-h[v]/2-1,R=oe(l[m],D),W=oe(l[w],D),O=R,U=A-h[v]-W,j=A/2-h[v]/2+E,M=En(O,j,U),P=!c.arrow&&We(o)!=null&&j!==M&&i.reference[v]/2-(j<O?R:W)-h[v]/2<0,S=P?j<O?j-O:j-U:0;return{[d]:p[d]+S,data:{[d]:M,centerOffset:j-M-S,...P&&{alignmentOffset:S}},reset:P}}}),os=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:l=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,..._}=pe(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=he(o),w=be(s),y=he(s)===s,g=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=p||(y||!h?[St(s)]:Qa(s)),C=v!=="none";!p&&C&&b.push(...es(s,h,v,g));const A=[s,...b],E=await ut(t,_),D=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&D.push(E[m]),l){const j=Ga(o,a,g);D.push(E[j[0]],E[j[1]])}if(R=[...R,{placement:o,overflows:D}],!D.every(j=>j<=0)){var W,O;const j=(((W=i.flip)==null?void 0:W.index)||0)+1,M=A[j];if(M)return{data:{index:j,overflows:R},reset:{placement:M}};let P=(O=R.filter(S=>S.overflows[0]<=0).sort((S,Y)=>S.overflows[1]-Y.overflows[1])[0])==null?void 0:O.placement;if(!P)switch(d){case"bestFit":{var U;const S=(U=R.filter(Y=>{if(C){const z=be(Y.placement);return z===w||z==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(z=>z>0).reduce((z,G)=>z+G,0)]).sort((Y,z)=>Y[1]-z[1])[0])==null?void 0:U[0];S&&(P=S);break}case"initialPlacement":P=s;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function Eo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function So(e){return qa.some(t=>e[t]>=0)}const is=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pe(e,t);switch(r){case"referenceHidden":{const i=await ut(t,{...o,elementContext:"reference"}),a=Eo(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:So(a)}}}case"escaped":{const i=await ut(t,{...o,altBoundary:!0}),a=Eo(i,n.floating);return{data:{escapedOffsets:a,escaped:So(a)}}}default:return{}}}}};async function as(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=he(n),s=We(n),c=be(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,l=pe(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:v}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};return s&&typeof v=="number"&&(d=s==="end"?v*-1:v),c?{x:d*f,y:p*u}:{x:p*u,y:d*f}}const ss=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await as(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},cs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:_=>{let{x:m,y:w}=_;return{x:m,y:w}}},...c}=pe(e,t),u={x:n,y:r},f=await ut(t,c),l=be(he(o)),p=Sn(l);let d=u[p],v=u[l];if(i){const _=p==="y"?"top":"left",m=p==="y"?"bottom":"right",w=d+f[_],y=d-f[m];d=En(w,d,y)}if(a){const _=l==="y"?"top":"left",m=l==="y"?"bottom":"right",w=v+f[_],y=v-f[m];v=En(w,v,y)}const h=s.fn({...t,[p]:d,[l]:v});return{...h,data:{x:h.x-n,y:h.y-r}}}}},ls=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=pe(e,t),f={x:n,y:r},l=be(o),p=Sn(l);let d=f[p],v=f[l];const h=pe(s,t),_=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const y=p==="y"?"height":"width",g=i.reference[p]-i.floating[y]+_.mainAxis,b=i.reference[p]+i.reference[y]-_.mainAxis;d<g?d=g:d>b&&(d=b)}if(u){var m,w;const y=p==="y"?"width":"height",g=["top","left"].includes(he(o)),b=i.reference[l]-i.floating[y]+(g&&((m=a.offset)==null?void 0:m[l])||0)+(g?0:_.crossAxis),C=i.reference[l]+i.reference[y]+(g?0:((w=a.offset)==null?void 0:w[l])||0)-(g?_.crossAxis:0);v<b?v=b:v>C&&(v=C)}return{[p]:d,[l]:v}}}},us=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=pe(e,t),c=await ut(t,s),u=he(n),f=We(n),l=be(n)==="y",{width:p,height:d}=r.floating;let v,h;u==="top"||u==="bottom"?(v=u,h=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=u,v=f==="end"?"top":"bottom");const _=d-c.top-c.bottom,m=p-c.left-c.right,w=oe(d-c[v],_),y=oe(p-c[h],m),g=!t.middlewareData.shift;let b=w,C=y;if(l?C=f||g?oe(y,m):m:b=f||g?oe(w,_):_,g&&!f){const E=Q(c.left,0),D=Q(c.right,0),R=Q(c.top,0),W=Q(c.bottom,0);l?C=p-2*(E!==0||D!==0?E+D:Q(c.left,c.right)):b=d-2*(R!==0||W!==0?R+W:Q(c.top,c.bottom))}await a({...t,availableWidth:C,availableHeight:b});const A=await o.getDimensions(i.floating);return p!==A.width||d!==A.height?{reset:{rects:!0}}:{}}}};function He(e){return Co(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Co(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Co(e){return e instanceof Node||e instanceof J(e).Node}function te(e){return e instanceof Element||e instanceof J(e).Element}function ie(e){return e instanceof HTMLElement||e instanceof J(e).HTMLElement}function Po(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function ft(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function fs(e){return["table","td","th"].includes(He(e))}function Pt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function jn(e){const t=On(),n=te(e)?ne(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ds(e){let t=xe(e);for(;ie(t)&&!ze(t);){if(jn(t))return t;if(Pt(t))return null;t=xe(t)}return null}function On(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ze(e){return["html","body","#document"].includes(He(e))}function ne(e){return J(e).getComputedStyle(e)}function At(e){return te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xe(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Po(e)&&e.host||ve(e);return Po(t)?t.host:t}function Ao(e){const t=xe(e);return ze(t)?e.ownerDocument?e.ownerDocument.body:e.body:ie(t)&&ft(t)?t:Ao(t)}function dt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ao(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=J(o);if(i){const s=Tn(a);return t.concat(a,a.visualViewport||[],ft(o)?o:[],s&&n?dt(s):[])}return t.concat(o,dt(o,[],n))}function Tn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jo(e){const t=ne(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ie(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=kt(n)!==i||kt(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Dn(e){return te(e)?e:e.contextElement}function Be(e){const t=Dn(e);if(!ie(t))return ye(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=jo(t);let a=(i?kt(n.width):n.width)/r,s=(i?kt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ps=ye(0);function Oo(e){const t=J(e);return!On()||!t.visualViewport?ps:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hs(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function Oe(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Dn(e);let a=ye(1);t&&(r?te(r)&&(a=Be(r)):a=Be(e));const s=hs(i,n,r)?Oo(i):ye(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,l=o.height/a.y;if(i){const p=J(i),d=r&&te(r)?J(r):r;let v=p,h=Tn(v);for(;h&&r&&d!==v;){const _=Be(h),m=h.getBoundingClientRect(),w=ne(h),y=m.left+(h.clientLeft+parseFloat(w.paddingLeft))*_.x,g=m.top+(h.clientTop+parseFloat(w.paddingTop))*_.y;c*=_.x,u*=_.y,f*=_.x,l*=_.y,c+=y,u+=g,v=J(h),h=Tn(v)}}return Ct({width:f,height:l,x:c,y:u})}function vs(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=ve(r),s=t?Pt(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=ye(1);const f=ye(0),l=ie(r);if((l||!l&&!i)&&((He(r)!=="body"||ft(a))&&(c=At(r)),ie(r))){const p=Oe(r);u=Be(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x,y:n.y*u.y-c.scrollTop*u.y+f.y}}function _s(e){return Array.from(e.getClientRects())}function To(e){return Oe(ve(e)).left+At(e).scrollLeft}function ms(e){const t=ve(e),n=At(e),r=e.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+To(e);const s=-n.scrollTop;return ne(r).direction==="rtl"&&(a+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function ws(e,t){const n=J(e),r=ve(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=On();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function gs(e,t){const n=Oe(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ie(e)?Be(e):ye(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:s,x:c,y:u}}function Do(e,t,n){let r;if(t==="viewport")r=ws(e,n);else if(t==="document")r=ms(ve(e));else if(te(t))r=gs(t,n);else{const o=Oo(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ct(r)}function Ro(e,t){const n=xe(e);return n===t||!te(n)||ze(n)?!1:ne(n).position==="fixed"||Ro(n,t)}function ys(e,t){const n=t.get(e);if(n)return n;let r=dt(e,[],!1).filter(s=>te(s)&&He(s)!=="body"),o=null;const i=ne(e).position==="fixed";let a=i?xe(e):e;for(;te(a)&&!ze(a);){const s=ne(a),c=jn(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ft(a)&&!c&&Ro(e,a))?r=r.filter(f=>f!==a):o=s,a=xe(a)}return t.set(e,r),r}function bs(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Pt(t)?[]:ys(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,f)=>{const l=Do(t,f,o);return u.top=Q(l.top,u.top),u.right=oe(l.right,u.right),u.bottom=oe(l.bottom,u.bottom),u.left=Q(l.left,u.left),u},Do(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function xs(e){const{width:t,height:n}=jo(e);return{width:t,height:n}}function $s(e,t,n){const r=ie(t),o=ve(t),i=n==="fixed",a=Oe(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=ye(0);if(r||!r&&!i)if((He(t)!=="body"||ft(o))&&(s=At(t)),r){const l=Oe(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=To(o));const u=a.left+s.scrollLeft-c.x,f=a.top+s.scrollTop-c.y;return{x:u,y:f,width:a.width,height:a.height}}function Rn(e){return ne(e).position==="static"}function No(e,t){return!ie(e)||ne(e).position==="fixed"?null:t?t(e):e.offsetParent}function Lo(e,t){const n=J(e);if(Pt(e))return n;if(!ie(e)){let o=xe(e);for(;o&&!ze(o);){if(te(o)&&!Rn(o))return o;o=xe(o)}return n}let r=No(e,t);for(;r&&fs(r)&&Rn(r);)r=No(r,t);return r&&ze(r)&&Rn(r)&&!jn(r)?n:r||ds(e)||n}const ks=async function(e){const t=this.getOffsetParent||Lo,n=this.getDimensions,r=await n(e.floating);return{reference:$s(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Es(e){return ne(e).direction==="rtl"}const Ss={convertOffsetParentRelativeRectToViewportRelativeRect:vs,getDocumentElement:ve,getClippingRect:bs,getOffsetParent:Lo,getElementRects:ks,getClientRects:_s,getDimensions:xs,getScale:Be,isElement:te,isRTL:Es};function Cs(e,t){let n=null,r;const o=ve(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:l,height:p}=e.getBoundingClientRect();if(s||t(),!l||!p)return;const d=Et(f),v=Et(o.clientWidth-(u+l)),h=Et(o.clientHeight-(f+p)),_=Et(u),w={rootMargin:-d+"px "+-v+"px "+-h+"px "+-_+"px",threshold:Q(0,oe(1,c))||1};let y=!0;function g(b){const C=b[0].intersectionRatio;if(C!==c){if(!y)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(g,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(g,w)}n.observe(e)}return a(!0),i}function Ps(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Dn(e),f=o||i?[...u?dt(u):[],...dt(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const l=u&&s?Cs(u,n):null;let p=-1,d=null;a&&(d=new ResizeObserver(m=>{let[w]=m;w&&w.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=d)==null||y.observe(t)})),n()}),u&&!c&&d.observe(u),d.observe(t));let v,h=c?Oe(e):null;c&&_();function _(){const m=Oe(e);h&&(m.x!==h.x||m.y!==h.y||m.width!==h.width||m.height!==h.height)&&n(),h=m,v=requestAnimationFrame(_)}return n(),()=>{var m;f.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),l==null||l(),(m=d)==null||m.disconnect(),d=null,c&&cancelAnimationFrame(v)}}const As=ss,js=cs,Os=os,Ts=us,Ds=is,Fo=rs,Rs=ls,Ns=(e,t,n)=>{const r=new Map,o={platform:Ss,...n},i={...o.platform,_c:r};return ns(e,t,{...o,platform:i})};var jt=typeof document<"u"?ue:I;function Ot(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(!Ot(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)&&!Ot(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Mo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Io(e,t){const n=Mo(e);return Math.round(t*n)/n}function Uo(e){const t=T(e);return jt(()=>{t.current=e}),t}function Ls(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,l]=L({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=L(r);Ot(p,r)||d(r);const[v,h]=L(null),[_,m]=L(null),w=V(S=>{S!==C.current&&(C.current=S,h(S))},[]),y=V(S=>{S!==A.current&&(A.current=S,m(S))},[]),g=i||v,b=a||_,C=T(null),A=T(null),E=T(f),D=c!=null,R=Uo(c),W=Uo(o),O=V(()=>{if(!C.current||!A.current)return;const S={placement:t,strategy:n,middleware:p};W.current&&(S.platform=W.current),Ns(C.current,A.current,S).then(Y=>{const z={...Y,isPositioned:!0};U.current&&!Ot(E.current,z)&&(E.current=z,lt(()=>{l(z)}))})},[p,t,n,W]);jt(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,l(S=>({...S,isPositioned:!1})))},[u]);const U=T(!1);jt(()=>(U.current=!0,()=>{U.current=!1}),[]),jt(()=>{if(g&&(C.current=g),b&&(A.current=b),g&&b){if(R.current)return R.current(g,b,O);O()}},[g,b,O,R,D]);const j=X(()=>({reference:C,floating:A,setReference:w,setFloating:y}),[w,y]),M=X(()=>({reference:g,floating:b}),[g,b]),P=X(()=>{const S={position:n,left:0,top:0};if(!M.floating)return S;const Y=Io(M.floating,f.x),z=Io(M.floating,f.y);return s?{...S,transform:"translate("+Y+"px, "+z+"px)",...Mo(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:z}},[n,s,M.floating,f.x,f.y]);return X(()=>({...f,update:O,refs:j,elements:M,floatingStyles:P}),[f,O,j,M,P])}const Fs=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fo({element:r.current,padding:o}).fn(n):{}:r?Fo({element:r,padding:o}).fn(n):{}}}},Ms=(e,t)=>({...As(e),options:[e,t]}),Is=(e,t)=>({...js(e),options:[e,t]}),Us=(e,t)=>({...Rs(e),options:[e,t]}),Ws=(e,t)=>({...Os(e),options:[e,t]}),Hs=(e,t)=>({...Ts(e),options:[e,t]}),zs=(e,t)=>({...Ds(e),options:[e,t]}),Bs=(e,t)=>({...Fs(e),options:[e,t]});function Vs(e){const[t,n]=L(void 0);return Ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Wo="Popper",[Ho,zo]=po(Wo),[Ys,Bo]=Ho(Wo),Ks=e=>{const{__scopePopper:t,children:n}=e,[r,o]=L(null);return x(Ys,{scope:t,anchor:r,onAnchorChange:o},n)},qs="PopperAnchor",Xs=K((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Bo(qs,n),a=T(null),s=je(t,a);return I(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:x(Ie.div,q({},o,{ref:s}))}),Vo="PopperContent",[Zs,iu]=Ho(Vo),Gs=K((e,t)=>{var n,r,o,i,a,s,c,u;const{__scopePopper:f,side:l="bottom",sideOffset:p=0,align:d="center",alignOffset:v=0,arrowPadding:h=0,avoidCollisions:_=!0,collisionBoundary:m=[],collisionPadding:w=0,sticky:y="partial",hideWhenDetached:g=!1,updatePositionStrategy:b="optimized",onPlaced:C,...A}=e,E=Bo(Vo,f),[D,R]=L(null),W=je(t,mt=>R(mt)),[O,U]=L(null),j=Vs(O),M=(n=j==null?void 0:j.width)!==null&&n!==void 0?n:0,P=(r=j==null?void 0:j.height)!==null&&r!==void 0?r:0,S=l+(d!=="center"?"-"+d:""),Y=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},z=Array.isArray(m)?m:[m],G=z.length>0,Ee={padding:Y,boundary:z.filter(Qs),altBoundary:G},{refs:et,floatingStyles:Fi,placement:Yl,isPositioned:Vt,middlewareData:tt}=Ls({strategy:"fixed",placement:S,whileElementsMounted:(...mt)=>Ps(...mt,{animationFrame:b==="always"}),elements:{reference:E.anchor},middleware:[Ms({mainAxis:p+P,alignmentAxis:v}),_&&Is({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?Us():void 0,...Ee}),_&&Ws({...Ee}),Hs({...Ee,apply:({elements:mt,rects:Ii,availableWidth:Jl,availableHeight:eu})=>{const{width:tu,height:nu}=Ii.reference,Kt=mt.floating.style;Kt.setProperty("--radix-popper-available-width",`${Jl}px`),Kt.setProperty("--radix-popper-available-height",`${eu}px`),Kt.setProperty("--radix-popper-anchor-width",`${tu}px`),Kt.setProperty("--radix-popper-anchor-height",`${nu}px`)}}),O&&Bs({element:O,padding:h}),Js({arrowWidth:M,arrowHeight:P}),g&&zs({strategy:"referenceHidden",...Ee})]}),[Mi,Kl]=Yo(Yl),Yt=we(C);Ue(()=>{Vt&&(Yt==null||Yt())},[Vt,Yt]);const ql=(o=tt.arrow)===null||o===void 0?void 0:o.x,Xl=(i=tt.arrow)===null||i===void 0?void 0:i.y,Zl=((a=tt.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Gl,Ql]=L();return Ue(()=>{D&&Ql(window.getComputedStyle(D).zIndex)},[D]),x("div",{ref:et.setFloating,"data-radix-popper-content-wrapper":"",style:{...Fi,transform:Vt?Fi.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Gl,"--radix-popper-transform-origin":[(s=tt.transformOrigin)===null||s===void 0?void 0:s.x,(c=tt.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},x(Zs,{scope:f,placedSide:Mi,onArrowChange:U,arrowX:ql,arrowY:Xl,shouldHideArrow:Zl},x(Ie.div,q({"data-side":Mi,"data-align":Kl},A,{ref:W,style:{...A.style,animation:Vt?void 0:"none",opacity:(u=tt.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function Qs(e){return e!==null}const Js=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:u}=t,l=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[v,h]=Yo(s),_={start:"0%",center:"50%",end:"100%"}[h],m=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,w=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+d/2;let y="",g="";return v==="bottom"?(y=l?_:`${m}px`,g=`${-d}px`):v==="top"?(y=l?_:`${m}px`,g=`${c.floating.height+d}px`):v==="right"?(y=`${-d}px`,g=l?_:`${w}px`):v==="left"&&(y=`${c.floating.width+d}px`,g=l?_:`${w}px`),{data:{x:y,y:g}}}});function Yo(e){const[t,n="center"]=e.split("-");return[t,n]}const ec=Ks,tc=Xs,nc=Gs,rc=K((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?uo.createPortal(x(Ie.div,q({},o,{ref:t})),r):null});function oc(e,t){return st((n,r)=>{const o=t[n][r];return o??n},e)}const Nn=e=>{const{present:t,children:n}=e,r=ic(t),o=typeof n=="function"?n({present:r.isPresent}):fe.only(n),i=je(r.ref,o.ref);return typeof n=="function"||r.isPresent?Me(o,{ref:i}):null};Nn.displayName="Presence";function ic(e){const[t,n]=L(),r=T({}),o=T(e),i=T("none"),a=e?"mounted":"unmounted",[s,c]=oc(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I(()=>{const u=Tt(r.current);i.current=s==="mounted"?u:"none"},[s]),Ue(()=>{const u=r.current,f=o.current;if(f!==e){const p=i.current,d=Tt(u);e?c("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&p!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ue(()=>{if(t){const u=l=>{const d=Tt(r.current).includes(l.animationName);l.target===t&&d&<(()=>c("ANIMATION_END"))},f=l=>{l.target===t&&(i.current=Tt(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:V(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Tt(e){return(e==null?void 0:e.animationName)||"none"}function ac({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=sc({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=we(n),c=V(u=>{if(i){const l=typeof u=="function"?u(e):u;l!==e&&s(l)}else o(u)},[i,e,o,s]);return[a,c]}function sc({defaultProp:e,onChange:t}){const n=L(e),[r]=n,o=T(r),i=we(t);return I(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var cc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ve=new WeakMap,Dt=new WeakMap,Rt={},Ln=0,Ko=function(e){return e&&(e.host||Ko(e.parentNode))},lc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ko(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},uc=function(e,t,n,r){var o=lc(t,Array.isArray(e)?e:[e]);Rt[n]||(Rt[n]=new WeakMap);var i=Rt[n],a=[],s=new Set,c=new Set(o),u=function(l){!l||s.has(l)||(s.add(l),u(l.parentNode))};o.forEach(u);var f=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(p){if(s.has(p))f(p);else try{var d=p.getAttribute(r),v=d!==null&&d!=="false",h=(Ve.get(p)||0)+1,_=(i.get(p)||0)+1;Ve.set(p,h),i.set(p,_),a.push(p),h===1&&v&&Dt.set(p,!0),_===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return f(t),s.clear(),Ln++,function(){a.forEach(function(l){var p=Ve.get(l)-1,d=i.get(l)-1;Ve.set(l,p),i.set(l,d),p||(Dt.has(l)||l.removeAttribute(r),Dt.delete(l)),d||l.removeAttribute(n)}),Ln--,Ln||(Ve=new WeakMap,Ve=new WeakMap,Dt=new WeakMap,Rt={})}},fc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||cc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),uc(r,o,n,"aria-hidden")):function(){return null}},$e=function(){return $e=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$e.apply(this,arguments)};function dc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function pc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Nt="right-scroll-bar-position",Lt="width-before-scroll-bar",hc="with-scroll-bars-hidden",vc="--removed-body-scroll-bar-size";function Fn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _c(e,t){var n=L(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var mc=typeof window<"u"?ue:I,qo=new WeakMap;function wc(e,t){var n=_c(t||null,function(r){return e.forEach(function(o){return Fn(o,r)})});return mc(function(){var r=qo.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Fn(s,null)}),i.forEach(function(s){o.has(s)||Fn(s,a)})}qo.set(n,e)},[e]),n}var Ft=function(){return Ft=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ft.apply(this,arguments)};function gc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;function yc(e){return e}function bc(e,t){t===void 0&&(t=yc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function xc(e){e===void 0&&(e={});var t=bc(null);return t.options=Ft({async:!0,ssr:!1},e),t}var Xo=function(e){var t=e.sideCar,n=gc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x(r,Ft({},n))};Xo.isSideCarExport=!0;function $c(e,t){return e.useMedium(t),Xo}var Zo=xc(),Mn=function(){},Mt=K(function(e,t){var n=T(null),r=L({onScrollCapture:Mn,onWheelCapture:Mn,onTouchMoveCapture:Mn}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,l=e.shards,p=e.sideCar,d=e.noIsolation,v=e.inert,h=e.allowPinchZoom,_=e.as,m=_===void 0?"div":_,w=dc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=p,g=wc([n,t]),b=$e($e({},w),o);return x(B,null,f&&x(y,{sideCar:Zo,removeScrollBar:u,shards:l,noIsolation:d,inert:v,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?Me(fe.only(s),$e($e({},b),{ref:g})):x(m,$e({},b,{className:c,ref:g}),s))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:Lt,zeroRight:Nt};var Go,kc=function(){if(Go)return Go;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ec(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=kc();return t&&e.setAttribute("nonce",t),e}function Sc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Cc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ec())&&(Sc(t,n),Cc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ac=function(){var e=Pc();return function(t,n){I(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Qo=function(){var e=Ac(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},jc={left:0,top:0,right:0,gap:0},In=function(e){return parseInt(e||"",10)||0},Oc=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[In(n),In(r),In(o)]},Tc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jc;var t=Oc(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Dc=Qo(),Ye="data-scroll-locked",Rc=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
padding-right: `).concat(s,"px ").concat(r,`;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
`)},Yc=0,qe=[];function Kc(e){var t=T([]),n=T([0,0]),r=T(),o=L(Yc++)[0],i=L(function(){return Qo()})[0],a=T(e);I(function(){a.current=e},[e]),I(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=pc([e.lockRef.current],(e.shards||[]).map(ii),!0).filter(Boolean);return h.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=V(function(h,_){if("touches"in h&&h.touches.length===2)return!a.current.allowPinchZoom;var m=Ut(h),w=n.current,y="deltaX"in h?h.deltaX:w[0]-m[0],g="deltaY"in h?h.deltaY:w[1]-m[1],b,C=h.target,A=Math.abs(y)>Math.abs(g)?"h":"v";if("touches"in h&&A==="h"&&C.type==="range")return!1;var E=ti(A,C);if(!E)return!0;if(E?b=A:(b=A==="v"?"h":"v",E=ti(A,C)),!E)return!1;if(!r.current&&"changedTouches"in h&&(y||g)&&(r.current=b),!b)return!0;var D=r.current||b;return zc(D,_,h,D==="h"?y:g,!0)},[]),c=V(function(h){var _=h;if(!(!qe.length||qe[qe.length-1]!==i)){var m="deltaY"in _?oi(_):Ut(_),w=t.current.filter(function(b){return b.name===_.type&&b.target===_.target&&Bc(b.delta,m)})[0];if(w&&w.should){_.cancelable&&_.preventDefault();return}if(!w){var y=(a.current.shards||[]).map(ii).filter(Boolean).filter(function(b){return b.contains(_.target)}),g=y.length>0?s(_,y[0]):!a.current.noIsolation;g&&_.cancelable&&_.preventDefault()}}},[]),u=V(function(h,_,m,w){var y={name:h,delta:_,target:m,should:w};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(g){return g!==y})},1)},[]),f=V(function(h){n.current=Ut(h),r.current=void 0},[]),l=V(function(h){u(h.type,oi(h),h.target,s(h,e.lockRef.current))},[]),p=V(function(h){u(h.type,Ut(h),h.target,s(h,e.lockRef.current))},[]);I(function(){return qe.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ke),document.addEventListener("touchmove",c,Ke),document.addEventListener("touchstart",f,Ke),function(){qe=qe.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,Ke),document.removeEventListener("touchmove",c,Ke),document.removeEventListener("touchstart",f,Ke)}},[]);var d=e.removeScrollBar,v=e.inert;return x(B,null,v?x(i,{styles:Vc(o)}):null,d?x(Lc,{gapMode:"margin"}):null)}const qc=$c(Zo,Kc);var ai=K(function(e,t){return x(Mt,$e({},e,{ref:t,sideCar:qc}))});ai.classNames=Mt.classNames;const Xc=ai,si="Popover",[ci,au]=po(si,[zo]),Wn=zo(),[Zc,Xe]=ci(si),Gc=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Wn(t),c=T(null),[u,f]=L(!1),[l=!1,p]=ac({prop:r,defaultProp:o,onChange:i});return x(ec,s,x(Zc,{scope:t,contentId:Ka(),triggerRef:c,open:l,onOpenChange:p,onOpenToggle:V(()=>p(d=>!d),[p]),hasCustomAnchor:u,onCustomAnchorAdd:V(()=>f(!0),[]),onCustomAnchorRemove:V(()=>f(!1),[]),modal:a},n))},Qc="PopoverTrigger",Jc=K((e,t)=>{const{__scopePopover:n,...r}=e,o=Xe(Qc,n),i=Wn(n),a=je(t,o.triggerRef),s=x(Ie.button,q({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fi(o.open)},r,{ref:a,onClick:Ae(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:x(tc,q({asChild:!0},i),s)}),li="PopoverPortal",[el,tl]=ci(li,{forceMount:void 0}),nl=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Xe(li,t);return x(el,{scope:t,forceMount:n},x(Nn,{present:n||i.open},x(rc,{asChild:!0,container:o},r)))},pt="PopoverContent",rl=K((e,t)=>{const n=tl(pt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Xe(pt,e.__scopePopover);return x(Nn,{present:r||i.open},i.modal?x(ol,q({},o,{ref:t})):x(il,q({},o,{ref:t})))}),ol=K((e,t)=>{const n=Xe(pt,e.__scopePopover),r=T(null),o=je(t,r),i=T(!1);return I(()=>{const a=r.current;if(a)return fc(a)},[]),x(Xc,{as:gn,allowPinchZoom:!0},x(ui,q({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ae(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:Ae(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Ae(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),il=K((e,t)=>{const n=Xe(pt,e.__scopePopover),r=T(!1),o=T(!1);return x(ui,q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),ui=K((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...l}=e,p=Xe(pt,n),d=Wn(n);return Fa(),x(Ma,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},x(Ra,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1)},x(nc,q({"data-state":fi(p.open),role:"dialog",id:p.contentId},d,l,{ref:t,style:{...l.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function fi(e){return e?"open":"closed"}const al=Gc,sl=Jc,cl=nl,ll=rl;function di(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=di(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=di(e))&&(r&&(r+=" "),r+=t);return r}const pi="inploi-job-alerts",ul="ija",hi=["INSTANTLY","DAILY","WEEKLY","MONTHLY"];var fl=["other","few","many","two","one","zero"],vi=({terms:e,overrides:t,locale:n})=>{const r=new Intl.PluralRules(n);function o(i,a){const s=(t==null?void 0:t[i])??e[i];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(c,u)=>{var f;return((f=a==null?void 0:a[u])==null?void 0:f.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let c=r.select(a.count);if(!(c in s)){const u=fl.find(f=>f in s);if(!u)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=u}return s[c].replace(/{{(\w+)}}/g,(u,f)=>{var l;return((l=a==null?void 0:a[f])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},_i=Re(null),dl=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=X(()=>vi({locale:r,terms:e,overrides:t}),[t,r]);return k(_i.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=Le(_i);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>vi({terms:e,overrides:t,locale:n})});const{TranslationProvider:pl,useTranslation:hl,createTFunction:su}=dl({INSTANTLY:"Instantly",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"});var vl=Symbol.for("preact-signals");function zn(){if(Ze>1)Ze--;else{for(var e,t=!1;ht!==void 0;){var n=ht;for(ht=void 0,Bn++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&wi(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Bn=0,Ze--,t)throw e}}var F=void 0,ht=void 0,Ze=0,Bn=0,Wt=0;function mi(e){if(F!==void 0){var t=e.n;if(t===void 0||t.t!==F)return t={i:0,S:e,p:F.s,n:void 0,t:F,e:void 0,x:void 0,r:t},F.s!==void 0&&(F.s.n=t),F.s=t,e.n=t,32&F.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=F.s,t.n=void 0,F.s.n=t,F.s=t),t}}function Z(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Z.prototype.brand=vl,Z.prototype.h=function(){return!0},Z.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)},Z.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)}},Z.prototype.subscribe=function(e){var t=this;return Yn(function(){var n=t.value,r=F;F=void 0;try{e(n)}finally{F=r}})},Z.prototype.valueOf=function(){return this.value},Z.prototype.toString=function(){return this.value+""},Z.prototype.toJSON=function(){return this.value},Z.prototype.peek=function(){var e=F;F=void 0;try{return this.value}finally{F=e}},Object.defineProperty(Z.prototype,"value",{get:function(){var e=mi(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Bn>100)throw new Error("Cycle detected");this.v=e,this.i++,Wt++,Ze++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{zn()}}}});function Ht(e){return new Z(e)}function wi(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 gi(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 yi(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 Ge(e){Z.call(this,void 0),this.x=e,this.s=void 0,this.g=Wt-1,this.f=4}(Ge.prototype=new Z).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Wt))return!0;if(this.g=Wt,this.f|=1,this.i>0&&!wi(this))return this.f&=-2,!0;var e=F;try{gi(this),F=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 F=e,yi(this),this.f&=-2,!0},Ge.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)}Z.prototype.S.call(this,e)},Ge.prototype.U=function(e){if(this.t!==void 0&&(Z.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)}},Ge.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(Ge.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=mi(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function _l(e){return new Ge(e)}function bi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Ze++;var n=F;F=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Vn(e),r}finally{F=n,zn()}}}function Vn(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,bi(e)}function ml(e){if(F!==this)throw new Error("Out-of-order effect");yi(this),F=e,this.f&=-2,8&this.f&&Vn(this),zn()}function vt(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}vt.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()}},vt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,bi(this),gi(this),Ze++;var e=F;return F=this,ml.bind(this,e)},vt.prototype.N=function(){2&this.f||(this.f|=2,this.o=ht,ht=this)},vt.prototype.d=function(){this.f|=8,1&this.f||Vn(this)};function Yn(e){var t=new vt(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Kn;function Qe(e,t){$[e]=t.bind(null,$[e]||function(){})}function zt(e){Kn&&Kn(),Kn=e&&e.S()}function xi(e){var t=this,n=e.data,r=gl(n);r.value=n;var o=X(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var a;!rr(o.peek())&&((a=t.base)==null?void 0:a.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},_l(function(){var a=r.value.value;return a===0?0:a===!0?"":a||""})},[]);return o.value}xi.displayName="_st",Object.defineProperties(Z.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:xi},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Qe("__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 Z&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)}),Qe("__r",function(e,t){zt();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(o){var i;return Yn(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i}())),zt(n),e(t)}),Qe("__e",function(e,t,n,r){zt(),e(t,n,r)}),Qe("diffed",function(e,t){zt();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 a in i){var s=i[a];s!==void 0&&!(a in r)&&(s.d(),i[a]=void 0)}else n.U=i={};for(var c in r){var u=i[c],f=r[c];u===void 0?(u=wl(n,c,f,o),i[c]=u):u.o(f,o)}}}e(t)});function wl(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=Ht(n);return{o:function(a,s){i.value=a,r=s},d:Yn(function(){var a=i.value.value;r[t]!==a&&(r[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}Qe("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 a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)}),Qe("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),ee.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function gl(e){return X(function(){return Ht(e)},[])}const Je={config$:Ht({headerText:"",label:""}),filters$:Ht({})};var _e;function yl(e){return{lang:(e==null?void 0:e.lang)??(_e==null?void 0:_e.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(_e==null?void 0:_e.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(_e==null?void 0:_e.abortPipeEarly)}}var qn;function bl(e){return qn==null?void 0:qn.get(e)}var Xn;function xl(e){return Xn==null?void 0:Xn.get(e)}var Zn;function $l(e,t){var n;return(n=Zn==null?void 0:Zn.get(e))==null?void 0:n.get(t)}function $i(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,a=(o==null?void 0:o.expected)??e.expects??null,s=(o==null?void 0:o.received)??$i(i),c={kind:e.kind,type:e.type,input:i,expected:a,received:s,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${s}`,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},u=e.kind==="schema",f=(o==null?void 0:o.message)??e.message??$l(e.reference,c.lang)??(u?xl(c.lang):null)??r.message??bl(c.lang);f!==void 0&&(c.message=typeof f=="function"?f(c):f),u&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function ke(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},yl())}}}function kl(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function ki(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}var El=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function Ei(e){return{kind:"validation",type:"email",reference:Ei,expects:null,async:!1,requirement:El,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&&me(this,"email",t,n),t}}}function Sl(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function Si(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Ci(e,t){return{kind:"schema",type:"array",reference:Ci,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ke(this)},"~run"(n,r){var i;const o=n.value;if(Array.isArray(o)){n.typed=!0,n.value=[];for(let a=0;a<o.length;a++){const s=o[a],c=this.item["~run"]({value:s},r);if(c.issues){const u={type:"array",origin:"value",input:o,key:a,value:s};for(const f of c.issues)f.path?f.path.unshift(u):f.path=[u],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else me(this,"type",n,r);return n}}}function Gn(e,t){return{kind:"schema",type:"object",reference:Gn,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ke(this)},"~run"(n,r){var i;const o=n.value;if(o&&typeof o=="object"){n.typed=!0,n.value={};for(const a in this.entries){const s=this.entries[a];if(a in o||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){const c=a in o?o[a]:Si(s),u=s["~run"]({value:c},r);if(u.issues){const f={type:"object",origin:"value",input:o,key:a,value:c};for(const l of u.issues)l.path?l.path.unshift(f):l.path=[f],(i=n.issues)==null||i.push(l);if(n.issues||(n.issues=u.issues),r.abortEarly){n.typed=!1;break}}u.typed||(n.typed=!1),n.value[a]=u.value}else if(s.fallback!==void 0)n.value[a]=Sl(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(me(this,"key",n,r,{input:void 0,expected:`"${a}"`,path:[{type:"object",origin:"key",input:o,key:a,value:o[a]}]}),r.abortEarly))break}}else me(this,"type",n,r);return n}}}function _t(e,t){return{kind:"schema",type:"optional",reference:_t,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ke(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=Si(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function Pi(e,t){return{kind:"schema",type:"picklist",reference:Pi,expects:ki(e.map($i),"|"),async:!1,options:e,message:t,get"~standard"(){return ke(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:me(this,"type",n,r),n}}}function Ai(e,t,n){return{kind:"schema",type:"record",reference:Ai,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return ke(this)},"~run"(r,o){var a,s;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const c in i)if(kl(i,c)){const u=i[c],f=this.key["~run"]({value:c},o);if(f.issues){const p={type:"object",origin:"key",input:i,key:c,value:u};for(const d of f.issues)d.path=[p],(a=r.issues)==null||a.push(d);if(r.issues||(r.issues=f.issues),o.abortEarly){r.typed=!1;break}}const l=this.value["~run"]({value:u},o);if(l.issues){const p={type:"object",origin:"value",input:i,key:c,value:u};for(const d of l.issues)d.path?d.path.unshift(p):d.path=[p],(s=r.issues)==null||s.push(d);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!f.typed||!l.typed)&&(r.typed=!1),f.typed&&(r.value[f.value]=l.value)}}else me(this,"type",r,o);return r}}}function ae(e){return{kind:"schema",type:"string",reference:ae,expects:"string",async:!1,message:e,get"~standard"(){return ke(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:me(this,"type",t,n),t}}}function ji(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function Oi(e,t){return{kind:"schema",type:"union",reference:Oi,expects:ki(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return ke(this)},"~run"(n,r){let o,i,a;for(const s of this.options){const c=s["~run"]({value:n.value},r);if(c.typed)if(c.issues)i?i.push(c):i=[c];else{o=c;break}else a?a.push(c):a=[c]}if(o)return o;if(i){if(i.length===1)return i[0];me(this,"type",n,r,{issues:ji(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];me(this,"type",n,r,{issues:ji(a)})}return n}}}function Ti(...e){return{...e[0],pipe:e,get"~standard"(){return ke(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}}}const Cl={pathname:"/search/save",method:"POST",schema:{response:Hi(),body:Gn({contact:Gn({email:Ti(_t(ae()),ae(),Ei()),first_name:_t(ae()),last_name:_t(ae())}),alerts:Ti(_t(ae()),ae(),Pi(hi)),filters:Ai(ae(),Oi([ae(),Ci(ae())]))})}};var Pl=["1","2","3","4","5","6","7","8","9","10","11","12"],Al={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]}},jl=(e,t=1,n)=>r=>{const[o,i]=Al[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},Di=e=>{const t=jl(e.hue,e.chroma,e.mode);return Object.fromEntries(Pl.map(n=>[e.prefix+n,e.transform(t(n))]))},Ri=e=>e,Ol=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)},Bt=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Qn=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(Bt(e)&&Bt(n))for(const r in n){const o=n[r];if(Bt(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];Bt(i)&&Qn(i,o)}else Object.assign(e,{[r]:n[r]})}return Qn(e,...t)},Tl=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},Dl=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=p=>i("reference",p.toString()),s=e({theme:o}),c=t({theme:o,core:a,raw:{core:s}}),u=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:c}}),f=Ol(Qn(s,c,u)),l=([p,d],v)=>{const h=[v,p].filter(Boolean).join(".");return typeof d=="object"?Object.entries(d).flatMap(_=>l(_,h)):[[r.getToken("declaration",h),d]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(p=>l(p))),ref:p=>i("reference",p.toString())}}})})})});const[Jn,er,Rl]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],Nl=Dl().core(({theme:e})=>({color:{transparent:Rl,black:Jn,white:er,lowest:e.mode==="light"?er:Jn,highest:e.mode==="light"?Jn:er,...Di({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:Ri}),...Di({prefix:"n-",hue:e.accent.hue,chroma:.05,mode:e.mode,transform:Ri})},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(()=>({})),Ll=Tl({prefix:"i-"}),Fl=e=>{const t=Nl.from({theme:e,getToken:Ll}),n=Object.entries(t.declarations).map(([r,o])=>`${r}: ${o};`);return`#${ul} {
|
|
1
|
+
var Ah=Object.defineProperty;var Ih=(St,it,kt)=>it in St?Ah(St,it,{enumerable:!0,configurable:!0,writable:!0,value:kt}):St[it]=kt;var ce=(St,it,kt)=>(Ih(St,typeof it!="symbol"?it+"":it,kt),kt);(function(){"use strict";function St(e,t){if(!e)throw new Error(t)}var it=e=>e;function kt(){return{"~standard":{vendor:"inploi",version:1,validate:e=>({value:e})}}}function jh(e){return e}var fn,F,ni,ri,Rt,oi,ii,si,ai,yr,_r,wr,ci,dn={},li=[],Uc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,In=Array.isArray;function st(e,t){for(var n in t)e[n]=t[n];return e}function br(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function we(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?fn.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 pn(e,s,r,o,null)}function pn(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??++ni,__i:-1,__u:0};return o==null&&F.vnode!=null&&F.vnode(i),i}function Ot(){return{current:null}}function Ee(e){return e.children}function Be(e,t){this.props=e,this.context=t}function Mt(e,t){if(t==null)return e.__?Mt(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"?Mt(e):null}function ui(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ui(e)}}function Er(e){(!e.__d&&(e.__d=!0)&&Rt.push(e)&&!jn.__r++||oi!==F.debounceRendering)&&((oi=F.debounceRendering)||ii)(jn)}function jn(){for(var e,t,n,r,o,i,s,a=1;Rt.length;)Rt.length>a&&Rt.sort(si),e=Rt.shift(),a=Rt.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=st({},r)).__v=r.__v+1,F.vnode&&F.vnode(n),xr(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Mt(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,gi(i,n,s),n.__e!=o&&ui(n)));jn.__r=0}function fi(e,t,n,r,o,i,s,a,c,l,f){var u,p,d,h,g,m,y=r&&r.__k||li,v=t.length;for(c=Wc(n,t,y,c,v),u=0;u<v;u++)(d=n.__k[u])!=null&&(p=d.__i===-1?dn:y[d.__i]||dn,d.__i=u,m=xr(e,d,p,o,i,s,a,c,l,f),h=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&Sr(p.ref,null,d),f.push(d.ref,d.__c||h,d)),g==null&&h!=null&&(g=h),4&d.__u||p.__k===d.__k?c=di(d,c,e):typeof d.type=="function"&&m!==void 0?c=m:h&&(c=h.nextSibling),d.__u&=-7);return n.__e=g,c}function Wc(e,t,n,r,o){var i,s,a,c,l,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"?(c=i+p,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?pn(null,s,null,null,null):In(s)?pn(Ee,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?pn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(l=s.__i=zc(s,n,c,u))!==-1&&(u--,(a=n[l])&&(a.__u|=2)),a==null||a.__v===null?(l==-1&&(o>f?p--:o<f&&p++),typeof s.type!="function"&&(s.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?p--:p++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<f;i++)(a=n[i])!=null&&!(2&a.__u)&&(a.__e==r&&(r=Mt(a)),mi(a,a));return r}function di(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=di(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Mt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function at(e,t){return t=t||[],e==null||typeof e=="boolean"||(In(e)?e.some(function(n){at(n,t)}):t.push(e)),t}function zc(e,t,n,r){var o,i,s=e.key,a=e.type,c=t[n];if(c===null&&e.key==null||c&&s==c.key&&a===c.type&&!(2&c.__u))return n;if(r>(c!=null&&!(2&c.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&s==c.key&&a===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&s==c.key&&a===c.type)return i;i++}}return-1}function pi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Uc.test(t)?n:n+"px"}function Nn(e,t,n,r,o){var i;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||pi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||pi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ai,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=yr,e.addEventListener(t,i?wr:_r,i)):e.removeEventListener(t,i?wr:_r,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 hi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=yr++;else if(t.t<n.u)return;return n(F.event?F.event(t):t)}}}function xr(e,t,n,r,o,i,s,a,c,l){var f,u,p,d,h,g,m,y,v,w,_,x,k,E,O,N,T,$,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=F.__b)&&f(t);e:if(typeof A=="function")try{if(y=t.props,v="prototype"in A&&A.prototype.render,w=(f=A.contextType)&&r[f.__c],_=f?w?w.props.value:f.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:(v?t.__c=u=new A(y,_):(t.__c=u=new Be(y,_),u.constructor=A,u.render=qc),w&&w.sub(u),u.props=y,u.state||(u.state={}),u.context=_,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),v&&u.__s==null&&(u.__s=u.state),v&&A.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=st({},u.__s)),st(u.__s,A.getDerivedStateFromProps(y,u.__s))),d=u.props,h=u.state,u.__v=t,p)v&&A.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),v&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(v&&A.getDerivedStateFromProps==null&&y!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,_),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,_)===!1||t.__v==n.__v)){for(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(S){S&&(S.__=t)}),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,_),v&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,h,g)})}if(u.context=_,u.props=y,u.__P=e,u.__e=!1,k=F.__r,E=0,v){for(u.state=u.__s,u.__d=!1,k&&k(t),f=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,k&&k(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=st(st({},r),u.getChildContext())),v&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(d,h)),T=(N=f!=null&&f.type===Ee&&f.key==null)?f.props.children:f,N&&(f.props.children=null),a=fi(e,In(T)?T:[T],t,n,r,o,i,s,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),m&&(u.__E=u.__=null)}catch(S){if(t.__v=null,c||i!=null)if(S.then){for(t.__u|=c?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for($=i.length;$--;)br(i[$]);else t.__e=n.__e,t.__k=n.__k;F.__e(S,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Yc(n.__e,t,n,r,o,i,s,c,l);return(f=F.diffed)&&f(t),128&t.__u?void 0:a}function gi(e,t,n){for(var r=0;r<n.length;r++)Sr(n[r],n[++r],n[++r]);F.__c&&F.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){F.__e(i,o.__v)}})}function Yc(e,t,n,r,o,i,s,a,c){var l,f,u,p,d,h,g,m=n.props,y=t.props,v=t.type;if(v=="svg"?o="http://www.w3.org/2000/svg":v=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((d=i[l])&&"setAttribute"in d==!!v&&(v?d.localName==v:d.nodeType==3)){e=d,i[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(y);e=document.createElementNS(o,v,y.is&&y),a&&(F.__m&&F.__m(t,i),a=!1),i=null}if(v===null)m===y||a&&e.data===y||(e.data=y);else{if(i=i&&fn.call(e.childNodes),m=n.props||dn,!a&&i!=null)for(m={},l=0;l<e.attributes.length;l++)m[(d=e.attributes[l]).name]=d.value;for(l in m)if(d=m[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=d;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;Nn(e,l,null,d,o)}}for(l in y)d=y[l],l=="children"?p=d:l=="dangerouslySetInnerHTML"?f=d:l=="value"?h=d:l=="checked"?g=d:a&&typeof d!="function"||m[l]===d||Nn(e,l,d,m[l],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),fi(t.type==="template"?e.content:e,In(p)?p:[p],t,n,r,v=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Mt(n,0),a,c),i!=null)for(l=i.length;l--;)br(i[l]);a||(l="value",v=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[l]||v=="progress"&&!h||v=="option"&&h!==m[l])&&Nn(e,l,h,m[l],o),l="checked",g!==void 0&&g!==e[l]&&Nn(e,l,g,m[l],o))}return e}function Sr(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){F.__e(o,n)}}function mi(e,t,n){var r,o;if(F.unmount&&F.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Sr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){F.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&mi(r[o],t,n||typeof e.type!="function");n||br(e.__e),e.__c=e.__=e.__e=void 0}function qc(e,t,n){return this.constructor(e,n)}function Ft(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),F.__&&F.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],xr(t,e=(!r&&n||t).__k=we(Ee,null,[e]),o||dn,dn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?fn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),gi(i,e,s)}function kr(e,t){Ft(e,t,kr)}function Kc(e,t,n){var r,o,i,s,a=st({},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!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?fn.call(arguments,2):n),pn(e.type,a,r||e.key,o||e.ref,null)}function He(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,Er(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"+ci++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}fn=li.slice,F={__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}},ni=0,ri=function(e){return e!=null&&e.constructor==null},Be.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=st({},this.state),typeof e=="function"&&(e=e(st({},n),this.props)),e&&st(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Er(this))},Be.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Er(this))},Be.prototype.render=Ee,Rt=[],ii=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,si=function(e,t){return e.__v.__b-t.__v.__b},jn.__r=0,ai=/(PointerCapture)$|Capture$/i,yr=0,_r=hi(!1),wr=hi(!0),ci=0;var vi=/[\s\n\\/='"\0<>]/,yi=/^(xlink|xmlns|xml)([A-Z])/,Gc=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,Xc=/^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/,Zc=/["&<]/;function Ln(e){if(e.length===0||Zc.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 _i={},Jc=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"]),Qc=/[A-Z]/g;function el(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:_i[n]||(_i[n]=n.replace(Qc,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||Jc.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}var Rr,Tt,hn,gn,wi=[],bi=Array.isArray,Or=Object.assign;function tl(e,t,n){var r=F.__s;F.__s=!0,Rr=F.__b,Tt=F.diffed,hn=F.__r,gn=F.unmount;var o=we(Ee,null);o.__k=[e];try{var i=Ge(e,t||xi,!1,void 0,o,!1,n);return Array.isArray(i)?i.join(""):i}catch(s){throw s.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):s}finally{F.__c&&F.__c(e,wi),F.__s=r,wi.length=0}}function Ei(){this.__d=!0}var xi={};function Si(e,t){var n,r=e.type,o=!0;return e.__c?(o=!1,(n=e.__c).state=n.__s):n=new r(e.props,t),e.__c=n,n.__v=e,n.props=e.props,n.context=t,n.__d=!0,n.state==null&&(n.state=xi),n.__s==null&&(n.__s=n.state),r.getDerivedStateFromProps?n.state=Or({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n.__s!==n.state?n.__s:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),hn&&hn(e),n.render(n.props,n.state,t)}function Ge(e,t,n,r,o,i,s){if(e==null||e===!0||e===!1||e==="")return"";if(typeof e!="object")return typeof e=="function"?"":Ln(e+"");if(bi(e)){var a,c="";o.__k=e;for(var l=0;l<e.length;l++){var f=e[l];if(f!=null&&typeof f!="boolean"){var u,p=Ge(f,t,n,r,o,i,s);typeof p=="string"?c+=p:(a=a||[],c&&a.push(c),c="",Array.isArray(p)?(u=a).push.apply(u,p):a.push(p))}}return a?(c&&a.push(c),a):c}if(e.constructor!==void 0)return"";e.__=o,Rr&&Rr(e);var d,h,g,m=e.type,y=e.props,v=t;if(typeof m=="function"){if(m===Ee){if(y.tpl){for(var w="",_=0;_<y.tpl.length;_++)if(w+=y.tpl[_],y.exprs&&_<y.exprs.length){var x=y.exprs[_];if(x==null)continue;typeof x!="object"||x.constructor!==void 0&&!bi(x)?w+=x:w+=Ge(x,t,n,r,e,i,s)}return w}if(y.UNSTABLE_comment)return"<!--"+Ln(y.UNSTABLE_comment||"")+"-->";h=y.children}else{if((d=m.contextType)!=null){var k=t[d.__c];v=k?k.props.value:d.__}if(m.prototype&&typeof m.prototype.render=="function")h=Si(e,v),g=e.__c;else{e.__c=g={__v:e,props:y,context:v,setState:Ei,forceUpdate:Ei,__d:!0,__h:[]};for(var E=0;g.__d&&E++<25;)g.__d=!1,hn&&hn(e),h=m.call(g,y,v);g.__d=!0}if(g.getChildContext!=null&&(t=Or({},t,g.getChildContext())),(m.getDerivedStateFromError||g.componentDidCatch)&&F.errorBoundaries){var O="";h=h!=null&&h.type===Ee&&h.key==null?h.props.children:h;try{return O=Ge(h,t,n,r,e,i,s)}catch(B){return m.getDerivedStateFromError&&(g.__s=m.getDerivedStateFromError(B)),g.componentDidCatch&&g.componentDidCatch(B,{}),g.__d&&(h=Si(e,t),(g=e.__c).getChildContext!=null&&(t=Or({},t,g.getChildContext())),O=Ge(h=h!=null&&h.type===Ee&&h.key==null?h.props.children:h,t,n,r,e,i,s)),O}finally{Tt&&Tt(e),e.__=null,gn&&gn(e)}}}h=h!=null&&h.type===Ee&&h.key==null&&h.props.tpl==null?h.props.children:h;try{var N=Ge(h,t,n,r,e,i,s);return Tt&&Tt(e),e.__=null,F.unmount&&F.unmount(e),N}catch(B){if(!i&&s&&s.onError){var T=s.onError(B,e,function(ge){return Ge(ge,t,n,r,e,i,s)});if(T!==void 0)return T;var $=F.__e;return $&&$(B,e),""}if(!i||!B||typeof B.then!="function")throw B;var A=function ge(){try{return Ge(h,t,n,r,e,i,s)}catch(D){if(!D||typeof D.then!="function")throw D;return D.then(function(){return Ge(h,t,n,r,e,i,s)},function(){return ge()})}};return B.then(function(){return A()})}}var S,L="<"+m,R="";for(var P in y){var W=y[P];switch(P){case"children":S=W;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in y)continue;P="for";break;case"className":if("class"in y)continue;P="class";break;case"defaultChecked":P="checked";break;case"defaultSelected":P="selected";break;case"defaultValue":case"value":switch(P="value",m){case"textarea":S=W;continue;case"select":r=W;continue;case"option":r!=W||"selected"in y||(L+=" selected")}break;case"dangerouslySetInnerHTML":R=W&&W.__html;continue;case"style":typeof W=="object"&&(W=el(W));break;case"acceptCharset":P="accept-charset";break;case"httpEquiv":P="http-equiv";break;default:if(yi.test(P))P=P.replace(yi,"$1:$2").toLowerCase();else{if(vi.test(P))continue;P[4]!=="-"&&P!=="draggable"||W==null?n?Xc.test(P)&&(P=P==="panose1"?"panose-1":P.replace(/([A-Z])/g,"-$1").toLowerCase()):Gc.test(P)&&(P=P.toLowerCase()):W+=""}}W!=null&&W!==!1&&typeof W!="function"&&(L=W===!0||W===""?L+" "+P:L+" "+P+'="'+Ln(W+"")+'"')}if(vi.test(m))throw new Error(m+" is not a valid HTML tag name in "+L+">");if(R||(typeof S=="string"?R=Ln(S):S!=null&&S!==!1&&S!==!0&&(R=Ge(S,t,m==="svg"||m!=="foreignObject"&&n,r,e,i,s))),Tt&&Tt(e),e.__=null,gn&&gn(e),!R&&nl.has(m))return L+"/>";var b="</"+m+">",I=L+">";return Array.isArray(R)?[I].concat(R,[b]):typeof R!="string"?[I,R,b]:I+R+b}var nl=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),rl=0;function j(e,t,n,r,o,i){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)a=="ref"?s=t[a]:c[a]=t[a];var l={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--rl,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)c[a]===void 0&&(c[a]=s[a]);return F.vnode&&F.vnode(l),l}const ol={bell:j("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:j("path",{d:"M8 8l8 8M8 16l8 -8"}),"chevron-up-down":j("path",{d:"M8 9l4 -4l4 4 M8 15l4 4l4 -4"})},il=({theme:e})=>j("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:j("defs",{children:Object.entries(ol).map(([t,n])=>j("symbol",{id:`i-icon-${t}`,children:j("g",{fill:"none","stroke-width":e.mode==="dark"?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})}))})}),ki=({name:e,...t})=>j("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:j("use",{href:`#i-icon-${e}`})});var ct,de,Tr,Ri,Vt=0,Oi=[],ve=F,Ti=ve.__b,Ci=ve.__r,Pi=ve.diffed,Ai=ve.__c,Ii=ve.unmount,ji=ve.__;function Ct(e,t){ve.__h&&ve.__h(de,e,Vt||t),Vt=0;var n=de.__H||(de.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return Vt=1,Dn(Li,e)}function Dn(e,t,n){var r=Ct(ct++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Li(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=de,!de.__f)){var o=function(a,c,l){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,c,l);var u=r.__c.props!==a;return f.forEach(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,c,l)||u};de.__f=!0;var i=de.shouldComponentUpdate,s=de.componentWillUpdate;de.componentWillUpdate=function(a,c,l){if(this.__e){var f=i;i=void 0,o(a,c,l),i=f}s&&s.call(this,a,c,l)},de.shouldComponentUpdate=o}return r.__N||r.__}function pe(e,t){var n=Ct(ct++,3);!ve.__s&&Ar(n.__H,t)&&(n.__=e,n.u=t,de.__H.__h.push(n))}function lt(e,t){var n=Ct(ct++,4);!ve.__s&&Ar(n.__H,t)&&(n.__=e,n.u=t,de.__h.push(n))}function z(e){return Vt=5,K(function(){return{current:e}},[])}function $n(e,t,n){Vt=6,lt(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 K(e,t){var n=Ct(ct++,7);return Ar(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function le(e,t){return Vt=8,K(function(){return e},t)}function Fe(e){var t=de.context[e.__c],n=Ct(ct++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(de)),t.props.value):e.__}function mt(e,t){ve.useDebugValue&&ve.useDebugValue(t?t(e):e)}function sl(e){var t=Ct(ct++,10),n=ye();return t.__=e,de.componentDidCatch||(de.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Cr(){var e=Ct(ct++,11);if(!e.__){for(var t=de.__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 al(){for(var e;e=Oi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Mn),e.__H.__h.forEach(Pr),e.__H.__h=[]}catch(t){e.__H.__h=[],ve.__e(t,e.__v)}}ve.__b=function(e){de=null,Ti&&Ti(e)},ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ji&&ji(e,t)},ve.__r=function(e){Ci&&Ci(e),ct=0;var t=(de=e.__c).__H;t&&(Tr===de?(t.__h=[],de.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Mn),t.__h.forEach(Pr),t.__h=[],ct=0)),Tr=de},ve.diffed=function(e){Pi&&Pi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Oi.push(t)!==1&&Ri===ve.requestAnimationFrame||((Ri=ve.requestAnimationFrame)||cl)(al)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Tr=de=null},ve.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Mn),n.__h=n.__h.filter(function(r){return!r.__||Pr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ve.__e(r,n.__v)}}),Ai&&Ai(e,t)},ve.unmount=function(e){Ii&&Ii(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Mn(r)}catch(o){t=o}}),n.__H=void 0,t&&ve.__e(t,n.__v))};var Ni=typeof requestAnimationFrame=="function";function cl(e){var t,n=function(){clearTimeout(r),Ni&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ni&&(t=requestAnimationFrame(n))}function Mn(e){var t=de,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),de=t}function Pr(e){var t=de;e.__c=e.__(),de=t}function Ar(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Li(e,t){return typeof t=="function"?t(e):t}function Di(e,t){for(var n in t)e[n]=t[n];return e}function Ir(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 jr(e,t){var n=t(),r=ye({t:{__:n,u:t}}),o=r[0].t,i=r[1];return lt(function(){o.__=n,o.u=t,Nr(o)&&i({t:o})},[e,n,t]),pe(function(){return Nr(o)&&i({t:o}),e(function(){Nr(o)&&i({t:o})})},[e]),n}function Nr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Lr(e){e()}function Dr(e){return e}function $r(){return[!1,Lr]}var Mr=lt;function Fn(e,t){this.props=e,this.context=t}function $i(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:Ir(this.props,o)}function r(o){return this.shouldComponentUpdate=n,we(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Fn.prototype=new Be).isPureReactComponent=!0,Fn.prototype.shouldComponentUpdate=function(e,t){return Ir(this.props,e)||Ir(this.state,t)};var Mi=F.__b;F.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Mi&&Mi(e)};var ll=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Xe(e){function t(n){var r=Di({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ll,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Fi=function(e,t){return e==null?null:at(at(e).map(t))},Vi={map:Fi,forEach:Fi,count:function(e){return e?at(e).length:0},only:function(e){var t=at(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:at},ul=F.__e;F.__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)}ul(e,t,n,r)};var Bi=F.unmount;function Hi(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=Di({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Hi(r,t,n)})),e}function Ui(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ui(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 mn(){this.__u=0,this.o=null,this.__b=null}function Wi(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function zi(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return we(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Bt(){this.i=null,this.l=null}F.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Bi&&Bi(e)},(mn.prototype=new Be).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Wi(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Ui(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},mn.prototype.componentWillUnmount=function(){this.o=[]},mn.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]=Hi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&we(Ee,null,e.fallback);return o&&(o.__u&=-33),[we(Ee,null,t.__a?null:e.children),o]};var Yi=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 fl(e){return this.getChildContext=function(){return e.context},e.children}function dl(e){var t=this,n=e.h;t.componentWillUnmount=function(){Ft(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Ft(we(fl,{context:t.context},e.__v),t.v)}function Vn(e,t){var n=we(dl,{__v:e,h:t});return n.containerInfo=t,n}(Bt.prototype=new Be).__a=function(e){var t=this,n=Wi(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Yi(t,e,r)):o()};n?n(i):i()}},Bt.prototype.render=function(e){this.i=null,this.l=new Map;var t=at(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},Bt.prototype.componentDidUpdate=Bt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Yi(e,n,t)})};var qi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,pl=/^(?: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]/,hl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,gl=/[A-Z0-9]/g,ml=typeof document<"u",vl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ki(e,t,n){return t.__k==null&&(t.textContent=""),Ft(e,t),typeof n=="function"&&n(),e?e.__c:null}function Gi(e,t,n){return kr(e,t),typeof n=="function"&&n(),e?e.__c:null}Be.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Be.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Xi=F.event;function yl(){}function _l(){return this.cancelBubble}function wl(){return this.defaultPrevented}F.event=function(e){return Xi&&(e=Xi(e)),e.persist=yl,e.isPropagationStopped=_l,e.isDefaultPrevented=wl,e.nativeEvent=e};var Fr,bl={enumerable:!1,configurable:!0,get:function(){return this.class}},Zi=F.vnode;F.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||ml&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":c==="translate"&&a==="no"?a=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||vl(n.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":hl.test(s)&&(s=c):c=s="oninput":i&&pl.test(s)?s=s.replace(gl,"-$&").toLowerCase():a===null&&(a=void 0),c==="oninput"&&o[s=c]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=at(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=at(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",bl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=qi,Zi&&Zi(e)};var Ji=F.__r;F.__r=function(e){Ji&&Ji(e),Fr=e.__c};var Qi=F.diffed;F.diffed=function(e){Qi&&Qi(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),Fr=null};var es={ReactCurrentDispatcher:{current:{readContext:function(e){return Fr.__n[e.__c].props.value},useCallback:le,useContext:Fe,useDebugValue:mt,useDeferredValue:Dr,useEffect:pe,useId:Cr,useImperativeHandle:$n,useInsertionEffect:Mr,useLayoutEffect:lt,useMemo:K,useReducer:Dn,useRef:z,useState:ye,useSyncExternalStore:jr,useTransition:$r}}},ts="18.3.1";function ns(e){return we.bind(null,e)}function Ht(e){return!!e&&e.$$typeof===qi}function rs(e){return Ht(e)&&e.type===Ee}function os(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Vr(e){return Ht(e)?Kc.apply(null,arguments):e}function is(e){return!!e.__k&&(Ft(null,e),!0)}function ss(e){return e&&(e.base||e.nodeType===1&&e)||null}var as=function(e,t){return e(t)},Ze=function(e,t){return e(t)},cs=Ee,ls=Ht,El={useState:ye,useId:Cr,useReducer:Dn,useEffect:pe,useLayoutEffect:lt,useInsertionEffect:Mr,useTransition:$r,useDeferredValue:Dr,useSyncExternalStore:jr,startTransition:Lr,useRef:z,useImperativeHandle:$n,useMemo:K,useCallback:le,useContext:Fe,useDebugValue:mt,version:"18.3.1",Children:Vi,render:Ki,hydrate:Gi,unmountComponentAtNode:is,createPortal:Vn,createElement:we,createContext:He,createFactory:ns,cloneElement:Vr,createRef:Ot,Fragment:Ee,isValidElement:Ht,isElement:ls,isFragment:rs,isMemo:os,findDOMNode:ss,Component:Be,PureComponent:Fn,memo:$i,forwardRef:Xe,flushSync:Ze,unstable_batchedUpdates:as,StrictMode:cs,Suspense:mn,SuspenseList:Bt,lazy:zi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:es};const Br=Object.freeze(Object.defineProperty({__proto__:null,Children:Vi,Component:Be,Fragment:Ee,PureComponent:Fn,StrictMode:cs,Suspense:mn,SuspenseList:Bt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:es,cloneElement:Vr,createContext:He,createElement:we,createFactory:ns,createPortal:Vn,createRef:Ot,default:El,findDOMNode:ss,flushSync:Ze,forwardRef:Xe,hydrate:Gi,isElement:ls,isFragment:rs,isMemo:os,isValidElement:Ht,lazy:zi,memo:$i,render:Ki,startTransition:Lr,unmountComponentAtNode:is,unstable_batchedUpdates:as,useCallback:le,useContext:Fe,useDebugValue:mt,useDeferredValue:Dr,useEffect:pe,useErrorBoundary:sl,useId:Cr,useImperativeHandle:$n,useInsertionEffect:Mr,useLayoutEffect:lt,useMemo:K,useReducer:Dn,useRef:z,useState:ye,useSyncExternalStore:jr,useTransition:$r,version:ts},Symbol.toStringTag,{value:"Module"}));function Bn(){return typeof window<"u"}function vt(e){return Hr(e)?(e.nodeName||"").toLowerCase():"#document"}function Te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Je(e){var t;return(t=(Hr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hr(e){return Bn()?e instanceof Node||e instanceof Te(e).Node:!1}function ue(e){return Bn()?e instanceof Element||e instanceof Te(e).Element:!1}function Se(e){return Bn()?e instanceof HTMLElement||e instanceof Te(e).HTMLElement:!1}function Ur(e){return!Bn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Te(e).ShadowRoot}const xl=new Set(["inline","contents"]);function Pt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=De(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xl.has(o)}const Sl=new Set(["table","td","th"]);function kl(e){return Sl.has(vt(e))}const Rl=[":popover-open",":modal"];function Hn(e){return Rl.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ol=["transform","translate","scale","rotate","perspective"],Tl=["transform","translate","scale","rotate","perspective","filter"],Cl=["paint","layout","strict","content"];function Wr(e){const t=Un(),n=ue(e)?De(e):e;return Ol.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Tl.some(r=>(n.willChange||"").includes(r))||Cl.some(r=>(n.contain||"").includes(r))}function Pl(e){let t=ft(e);for(;Se(t)&&!ut(t);){if(Wr(t))return t;if(Hn(t))return null;t=ft(t)}return null}function Un(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Al=new Set(["html","body","#document"]);function ut(e){return Al.has(vt(e))}function De(e){return Te(e).getComputedStyle(e)}function Wn(e){return ue(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ur(e)&&e.host||Je(e);return Ur(t)?t.host:t}function us(e){const t=ft(e);return ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&Pt(t)?t:us(t)}function yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=us(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Te(o);if(i){const a=zr(s);return t.concat(s,s.visualViewport||[],Pt(o)?o:[],a&&n?yt(a):[])}return t.concat(o,yt(o,[],n))}function zr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Ut=typeof navigator<"u",Yr=Dl(),fs=Ml(),ds=$l(),Il=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),jl=Yr.platform==="MacIntel"&&Yr.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Yr.platform),Nl=Ut&&/apple/i.test(navigator.vendor),qr=Ut&&/android/i.test(fs)||/android/i.test(ds);Ut&&fs.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const Ll=ds.includes("jsdom/");function Dl(){if(!Ut)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 $l(){if(!Ut)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Ml(){if(!Ut)return"";const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform??""}function Wt(e){return(e==null?void 0:e.ownerDocument)||document}const ie=typeof document<"u"?lt:()=>{},ps={};function Qe(e,t){const n=z(ps);return n.current===ps&&(n.current=e(t)),n}const Fl=[];function Kr(e){pe(e,Fl)}const vn=0;class _t{constructor(){ce(this,"currentId",vn);ce(this,"clear",()=>{this.currentId!==vn&&(clearTimeout(this.currentId),this.currentId=vn)});ce(this,"disposeEffect",()=>this.clear)}static create(){return new _t}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=vn,n()},t)}isStarted(){return this.currentId!==vn}}function At(){const e=Qe(_t.create).current;return Kr(e.disposeEffect),e}const zn=null;let hs=globalThis.requestAnimationFrame;class Vl{constructor(){ce(this,"callbacks",[]);ce(this,"callbacksCount",0);ce(this,"nextId",1);ce(this,"startId",1);ce(this,"isScheduled",!1);ce(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"&&hs!==requestAnimationFrame&&(hs=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 Yn=new Vl;class et{constructor(){ce(this,"currentId",zn);ce(this,"cancel",()=>{this.currentId!==zn&&(Yn.cancel(this.currentId),this.currentId=zn)});ce(this,"disposeEffect",()=>this.cancel)}static create(){return new et}static request(t){return Yn.request(t)}static cancel(t){return Yn.cancel(t)}request(t){this.cancel(),this.currentId=Yn.request(()=>{this.currentId=zn,t()})}}function qn(){const e=Qe(et.create).current;return Kr(e.disposeEffect),e}function gs(){}const je=Object.freeze({});let ms={},vs={},ys="";function Bl(e){if(typeof document>"u")return!1;const t=Wt(e);return Te(t).innerWidth-t.documentElement.clientWidth>0}function Hl(e){const t=Wt(e),n=t.documentElement,r=t.body,o=Pt(n)?n:r,i=o.style.overflow;return o.style.overflow="hidden",()=>{o.style.overflow=i}}function Ul(e){var p,d;const t=Wt(e),n=t.documentElement,r=t.body,o=Te(n);let i=0,s=0;const a=et.create(),c=typeof CSS<"u"&&((p=CSS.supports)==null?void 0:p.call(CSS,"scrollbar-gutter","stable"));if(Il&&(((d=o.visualViewport)==null?void 0:d.scale)??1)!==1)return()=>{};function l(){const h=o.getComputedStyle(n),g=o.getComputedStyle(r),v=(h.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,s=n.scrollLeft,ms={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ys=n.style.scrollBehavior,vs={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 w=n.scrollHeight>n.clientHeight,_=n.scrollWidth>n.clientWidth,x=h.overflowY==="scroll"||g.overflowY==="scroll",k=h.overflowX==="scroll"||g.overflowX==="scroll",E=Math.max(0,o.innerWidth-n.clientWidth),O=Math.max(0,o.innerHeight-n.clientHeight),N=parseFloat(g.marginTop)+parseFloat(g.marginBottom),T=parseFloat(g.marginLeft)+parseFloat(g.marginRight),$=Pt(n)?n:r;if(c){n.style.scrollbarGutter=v,$.style.overflowY="hidden",$.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:v,overflowY:"hidden",overflowX:"hidden"}),(w||x)&&(n.style.overflowY="scroll"),(_||k)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:N||O?`calc(100dvh - ${N+O}px)`:"100dvh",width:T||E?`calc(100vw - ${T+E}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,ms),Object.assign(r.style,vs),c||(n.scrollTop=i,n.scrollLeft=s,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=ys)}function u(){f(),a.request(l)}return l(),o.addEventListener("resize",u),()=>{a.cancel(),f(),typeof o.removeEventListener=="function"&&o.removeEventListener("resize",u)}}class Wl{constructor(){ce(this,"lockCount",0);ce(this,"restore",null);ce(this,"timeoutLock",_t.create());ce(this,"timeoutUnlock",_t.create());ce(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});ce(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=Wt(t).documentElement,o=Te(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=gs;return}const i=jl||!Bl(t);this.restore=i?Hl(t):Ul(t)}}const zl=new Wl;function Yl(e=!0,t=null){ie(()=>{if(e)return zl.acquire(t)},[e,t])}function qe(e){const t=Qe(ql,e).current;return t.next=e,ie(t.effect),t}function ql(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Gr=Br[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Kl=Gr&&Gr!==lt?Gr:e=>e();function Z(e){const t=Qe(Gl).current;return t.next=e,Kl(t.effect),t.trampoline}function Gl(){const e={next:void 0,callback:Xl,trampoline:(...t)=>{var n;return(n=e.callback)==null?void 0:n.call(e,...t)},effect:()=>{e.callback=e.next}};return e}function Xl(){if(process.env.NODE_ENV!=="production")throw new Error("Base UI: Cannot call an event handler while rendering.")}const Xr="data-base-ui-focusable",_s="active",ws="selected",bs="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function zt(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 fe(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&&Ur(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Ue(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ke(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 Zl(e){return e.matches("html,body")}function Oe(e){return(e==null?void 0:e.ownerDocument)||document}function Es(e){return Se(e)&&e.matches(bs)}function xs(e){return e?e.getAttribute("role")==="combobox"&&Es(e):!1}function Zr(e){return e?e.hasAttribute(Xr)?e:e.querySelector(`[${Xr}]`)||e:null}function It(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,...It(e,o.id,n)])}function Ss(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 Jl(e){e.preventDefault(),e.stopPropagation()}function Ql(e){return"nativeEvent"in e}function eu(e){return e.mozInputSource===0&&e.isTrusted?!0:qr&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function tu(e){return Ll?!1:!qr&&e.width===0&&e.height===0||qr&&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 Yt(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function ks(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}function dt(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 nu=["top","right","bottom","left"],qt=Math.min,Ve=Math.max,Kt=Math.round,Kn=Math.floor,tt=e=>({x:e,y:e}),ru={left:"right",right:"left",bottom:"top",top:"bottom"},ou={start:"end",end:"start"};function Jr(e,t,n){return Ve(e,qt(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function wt(e){return e.split("-")[1]}function Qr(e){return e==="x"?"y":"x"}function eo(e){return e==="y"?"height":"width"}const iu=new Set(["top","bottom"]);function We(e){return iu.has($e(e))?"y":"x"}function to(e){return Qr(We(e))}function su(e,t,n){n===void 0&&(n=!1);const r=wt(e),o=to(e),i=eo(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Gn(s)),[s,Gn(s)]}function au(e){const t=Gn(e);return[no(e),t,no(t)]}function no(e){return e.replace(/start|end/g,t=>ou[t])}const Rs=["left","right"],Os=["right","left"],cu=["top","bottom"],lu=["bottom","top"];function uu(e,t,n){switch(e){case"top":case"bottom":return n?t?Os:Rs:t?Rs:Os;case"left":case"right":return t?cu:lu;default:return[]}}function fu(e,t,n,r){const o=wt(e);let i=uu($e(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(no)))),i}function Gn(e){return e.replace(/left|right|bottom|top/g,t=>ru[t])}function du(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ts(e){return typeof e!="number"?du(e):{top:e,right:e,bottom:e,left:e}}function Xn(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}}/*!
|
|
2
|
+
* tabbable 6.3.0
|
|
3
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
+
*/var pu=["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])"],Zn=pu.join(","),Cs=typeof Element>"u",Gt=Cs?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jn=!Cs&&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},yn=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&&yn(t.parentNode);return s},hu=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Ps=function(t,n,r){if(yn(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Zn));return n&&Gt.call(t,Zn)&&o.unshift(t),o=o.filter(r),o},Qn=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!yn(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,l=Qn(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{var f=Gt.call(s,Zn);f&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var u=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),p=!yn(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(u&&p){var d=Qn(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},As=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Is=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||hu(t))&&!As(t)?0:t.tabIndex},gu=function(t,n){var r=Is(t);return r<0&&n&&!As(t)?0:r},mu=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},js=function(t){return t.tagName==="INPUT"},vu=function(t){return js(t)&&t.type==="hidden"},yu=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},_u=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},wu=function(t){if(!t.name)return!0;var n=t.form||Jn(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=_u(o,t.form);return!i||i===t},bu=function(t){return js(t)&&t.type==="radio"},Eu=function(t){return bu(t)&&!wu(t)},xu=function(t){var n,r=t&&Jn(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,a,c;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!i&&o;){var l,f,u;r=Jn(o),o=(l=r)===null||l===void 0?void 0:l.host,i=!!((f=o)!==null&&f!==void 0&&(u=f.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return i},Ns=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Su=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=Gt.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(Gt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var l=t.parentElement,f=Jn(t);if(l&&!l.shadowRoot&&o(l)===!0)return Ns(t);t.assignedSlot?t=t.assignedSlot:!l&&f!==t.ownerDocument?t=f.host:t=l}t=c}if(xu(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ns(t);return!1},ku=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 Gt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},ro=function(t,n){return!(n.disabled||yn(n)||vu(n)||Su(n,t)||yu(n)||ku(n))},oo=function(t,n){return!(Eu(n)||Is(n)<0||!ro(t,n))},Ru=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ls=function(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,c=gu(a,s),l=s?Ls(o.candidates):a;c===0?s?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:c,item:o,isScope:s,content:l})}),r.sort(mu).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},_n=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Qn([t],n.includeContainer,{filter:oo.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Ru}):r=Ps(t,n.includeContainer,oo.bind(null,n)),Ls(r)},Ou=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Qn([t],n.includeContainer,{filter:ro.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Ps(t,n.includeContainer,ro.bind(null,n)),r},Ds=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Gt.call(t,Zn)===!1?!1:oo(n,t)};const Xt=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function $s(e,t){const n=_n(e,Xt()),r=n.length;if(r===0)return;const o=zt(Oe(e)),i=n.indexOf(o),s=i===-1?t===1?0:r-1:i+t;return n[s]}function io(e){return $s(Oe(e).body,1)||e}function Ms(e){return $s(Oe(e).body,-1)||e}function Fs(e,t){if(!e)return null;const n=_n(Oe(e).body,Xt()),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 Tu(e){return Fs(e,1)}function Cu(e){return Fs(e,-1)}function Zt(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!fe(n,r)}function Pu(e){_n(e,Xt()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Vs(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 Au={...Br};let Bs=0;function Iu(e,t="mui"){const[n,r]=ye(e),o=e||n;return pe(()=>{n==null&&(Bs+=1,r(`${t}-${Bs}`))},[n,t]),o}const Hs=Au.useId;function Jt(e,t){if(Hs!==void 0){const n=Hs();return e??(t?`${t}-${n}`:n)}return Iu(e,t)}function Us(){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 ju{constructor(){ce(this,"nodesRef",{current:[]});ce(this,"events",Us())}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 so=He(null);process.env.NODE_ENV!=="production"&&(so.displayName="FloatingNodeContext");const ao=He(null);process.env.NODE_ENV!=="production"&&(ao.displayName="FloatingTreeContext");const jt=()=>{var e;return((e=Fe(so))==null?void 0:e.id)||null},Qt=e=>{const t=Fe(ao);return e??t};function Nu(e){const t=Jt(),n=Qt(e),r=jt();return ie(()=>{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 Lu(e){const{children:t,id:n}=e,r=jt();return j(so.Provider,{value:K(()=>({id:n,parentId:r}),[n,r]),children:t})}function Du(e){const{children:t,externalTree:n}=e,r=Qe(()=>n??new ju).current;return j(ao.Provider,{value:r,children:t})}const $u=500,Mu={style:{transition:"none"}},Ws="data-base-ui-click-trigger",Fu={fallbackAxisSide:"end"},Vu={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Bu="none",bt="trigger-press",ze="trigger-hover",zs="outside-press",wn="focus-out",Ys="escape-key",Hu="imperative-action";function ke(e,t,n,r){let o=!1,i=!1;const s=r??je;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 bn(e){return`data-base-ui-${e}`}function co(e,t,n){if(n&&!Yt(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 er(e,t,n,r){const o=Qe(qs).current;return Wu(o,e,t,n,r)&&Ks(o,[e,t,n,r]),o.callback}function Uu(e){const t=Qe(qs).current;return zu(t,e)&&Ks(t,e),t.callback}function qs(){return{callback:null,cleanup:null,refs:[]}}function Wu(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function zu(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function Ks(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 Gs={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},Nt=Xe(function(t,n){const[r,o]=ye();return ie(()=>{Nl&&o("button")},[]),j("span",{...t,ref:n,style:Gs,"aria-hidden":r?void 0:!0,...{tabIndex:0,role:r},"data-base-ui-focus-guard":""})});process.env.NODE_ENV!=="production"&&(Nt.displayName="FocusGuard");let Xs=0;function lo(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Xs);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():Xs=requestAnimationFrame(i)}const en={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Zs(e){return e==="inert"?en.inert:e==="aria-hidden"?en["aria-hidden"]:en.none}let tr=new WeakSet,nr={},uo=0;const Js=e=>e&&(e.host||Js(e.parentNode)),Yu=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Js(n);return e.contains(r)?r:null}).filter(n=>n!=null);function qu(e,t,n,r){const o="data-base-ui-inert",i=r?"inert":n?"aria-hidden":null,s=Yu(t,e),a=new Set,c=new Set(s),l=[];nr[o]||(nr[o]=new WeakMap);const f=nr[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||c.has(d)||[].forEach.call(d.children,h=>{if(vt(h)!=="script")if(a.has(h))p(h);else{const g=i?h.getAttribute(i):null,m=g!==null&&g!=="false",y=Zs(i),v=(y.get(h)||0)+1,w=(f.get(h)||0)+1;y.set(h,v),f.set(h,w),l.push(h),v===1&&m&&tr.add(h),w===1&&h.setAttribute(o,""),!m&&i&&h.setAttribute(i,i==="inert"?"":"true")}})}return uo+=1,()=>{l.forEach(d=>{const h=Zs(i),m=(h.get(d)||0)-1,y=(f.get(d)||0)-1;h.set(d,m),f.set(d,y),m||(!tr.has(d)&&i&&d.removeAttribute(i),tr.delete(d)),y||d.removeAttribute(o)}),uo-=1,uo||(en.inert=new WeakMap,en["aria-hidden"]=new WeakMap,en.none=new WeakMap,tr=new WeakSet,nr={})}}function Ku(e,t=!1,n=!1){const r=Oe(e[0]).body;return qu(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Gu=parseInt(ts,10);function fo(e){return Gu>=e}function Qs(e){if(!Ht(e))return null;const t=e,n=t.props;return(fo(19)?n==null?void 0:n.ref:t.ref)??null}function po(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Xu(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 Zu(e,t){return typeof e=="function"?e(t):e}function Ju(e,t){return typeof e=="function"?e(t):e}const En={};function ea(e,t,n,r,o){let i={...ho(e,En)};return t&&(i=xn(i,t)),n&&(i=xn(i,n)),r&&(i=xn(i,r)),o&&(i=xn(i,o)),i}function Qu(e){if(e.length===0)return En;if(e.length===1)return ho(e[0],En);let t={...ho(e[0],En)};for(let n=1;n<e.length;n+=1)t=xn(t,e[n]);return t}function xn(e,t){return ta(t)?t(e):ef(e,t)}function ef(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=po(e.style,r);break}case"className":{e[n]=na(e.className,r);break}default:tf(n,r)?e[n]=nf(e[n],r):e[n]=r}}return e}function tf(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 ta(e){return typeof e=="function"}function ho(e,t){return ta(e)?e(t):e??En}function nf(e,t){return t?e?n=>{if(rf(n)){const o=n;go(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 go(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function na(e,t){return t?e?t+" "+e:t:e}function rf(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function rr(e,t,n={}){const r=t.render,o=of(t,n);if(n.enabled===!1)return null;const i=n.state??je;return sf(e,r,o,i)}function of(e,t={}){const{className:n,style:r,render:o}=e,{state:i=je,ref:s,props:a,stateAttributesMapping:c,enabled:l=!0}=t,f=l?Zu(n,i):void 0,u=l?Ju(r,i):void 0,p=l?Xu(i,c):je,d=l?po(p,Array.isArray(a)?Qu(a):a)??je:je;return typeof document<"u"&&(l?Array.isArray(s)?d.ref=Uu([d.ref,Qs(o),...s]):d.ref=er(d.ref,Qs(o),s):er(null,null)),l?(f!==void 0&&(d.className=na(d.className,f)),u!==void 0&&(d.style=po(d.style,u)),d):je}function sf(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=ea(n,t.props);return o.ref=n.ref,Vr(t,o)}if(e&&typeof e=="string")return af(e,n);throw new Error(process.env.NODE_ENV!=="production"?"Base UI: Render element or function are not defined.":dt(8))}function af(e,t){return e==="button"?we("button",{type:"button",...t,key:t.key}):e==="img"?we("img",{alt:"",...t,key:t.key}):we(e,t)}const mo=He(null);process.env.NODE_ENV!=="production"&&(mo.displayName="PortalContext");const ra=()=>Fe(mo),cf=bn("portal");function lf(e={}){const{ref:t,container:n,componentProps:r=je,elementProps:o,elementState:i}=e,s=Jt(),a=ra(),c=a==null?void 0:a.portalNode,[l,f]=ye(null),[u,p]=ye(null),d=z(null);ie(()=>{if(n===null){d.current&&(d.current=null,p(null),f(null));return}if(s==null)return;const m=(n&&(Hr(n)?n:n.current))??c??document.body;if(m==null){d.current&&(d.current=null,p(null),f(null));return}d.current!==m&&(d.current=m,p(null),f(m))},[n,c,s]);const h=rr("div",r,{ref:[t,p],state:i,props:[{id:s,[cf]:""},o]});return{portalNode:u,portalSubtree:l&&h?Vn(h,l):null}}const oa=Xe(function(t,n){const{children:r,container:o,className:i,render:s,renderGuards:a,...c}=t,{portalNode:l,portalSubtree:f}=lf({container:o,ref:n,componentProps:t,elementProps:c}),u=z(null),p=z(null),d=z(null),h=z(null),[g,m]=ye(null),y=g==null?void 0:g.modal,v=g==null?void 0:g.open,w=typeof a=="boolean"?a:!!g&&!g.modal&&g.open&&!!l;pe(()=>{if(!l||y)return;function x(k){l&&Zt(k)&&(k.type==="focusin"?Vs:Pu)(l)}return l.addEventListener("focusin",x,!0),l.addEventListener("focusout",x,!0),()=>{l.removeEventListener("focusin",x,!0),l.removeEventListener("focusout",x,!0)}},[l,y]),pe(()=>{!l||v||Vs(l)},[v,l]);const _=K(()=>({beforeOutsideRef:u,afterOutsideRef:p,beforeInsideRef:d,afterInsideRef:h,portalNode:l,setFocusManagerState:m}),[l]);return j(Ee,{children:[f,j(mo.Provider,{value:_,children:[w&&l&&j(Nt,{"data-type":"outside",ref:u,onFocus:x=>{var k;if(Zt(x,l))(k=d.current)==null||k.focus();else{const E=g?g.domReference:null,O=Ms(E);O==null||O.focus()}}}),w&&l&&j("span",{"aria-owns":l.id,style:Vu}),l&&Vn(r,l),w&&l&&j(Nt,{"data-type":"outside",ref:p,onFocus:x=>{var k;if(Zt(x,l))(k=h.current)==null||k.focus();else{const E=g?g.domReference:null,O=io(E);O==null||O.focus(),g!=null&&g.closeOnFocusOut&&(g==null||g.onOpenChange(!1,ke(wn,x.nativeEvent)))}}})]})]})});process.env.NODE_ENV!=="production"&&(oa.displayName="FloatingPortal");function Lt(e){return e==null?e:"current"in e?e.current:e}function uf(e,t){const n=Te(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 ia=20;let Et=[];function vo(){Et=Et.filter(e=>e.isConnected)}function ff(e){vo(),e&&vt(e)!=="body"&&(Et.push(e),Et.length>ia&&(Et=Et.slice(-ia)))}function yo(){return vo(),Et[Et.length-1]}function df(e){if(!e)return null;const t=Xt();return Ds(e,t)?e:_n(e,t)[0]||e}function pf(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():De(e).display!=="none"}function sa(e,t){var s;if(!t.current.includes("floating")&&!((s=e.getAttribute("role"))!=null&&s.includes("dialog")))return;const n=Xt(),o=Ou(e,n).filter(a=>{const c=a.getAttribute("data-tabindex")||"";return Ds(a,n)||a.hasAttribute("data-tabindex")&&!c.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 hf(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:i=!0,returnFocus:s=!0,restoreFocus:a=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:f="",getInsideElements:u=()=>[],nextFocusableElement:p,previousFocusableElement:d,beforeContentFocusGuardRef:h,externalTree:g}=e,m="rootStore"in t?t.rootStore:t,y=m.useState("open"),v=m.useState("domReferenceElement"),w=m.useState("floatingElement"),{events:_,dataRef:x}=m.context,k=Z(()=>{var M;return(M=x.current.floatingContext)==null?void 0:M.nodeId}),E=Z(u),O=i===!1,N=xs(v)&&O,T=qe(o),$=qe(i),A=qe(s),S=qe(f),L=Qt(g),R=ra(),P=z(null),W=z(null),b=z(!1),I=z(!1),B=z(!1),ge=z(-1),D=z(""),Y=z(""),oe=At(),Q=At(),ee=qn(),te=R!=null,G=Zr(w),xe=Z((M=G)=>M?_n(M,Xt()):[]),Re=Z(M=>{const H=xe(M);return T.current.map(()=>H).filter(Boolean).flat()});pe(()=>{if(r||!c)return;function M(J){J.key==="Tab"&&fe(G,zt(Oe(G)))&&xe().length===0&&!N&&Jl(J)}const H=Oe(G);return H.addEventListener("keydown",M),()=>{H.removeEventListener("keydown",M)}},[r,v,G,c,T,N,xe,Re]),pe(()=>{if(r||!w)return;function M(H){const J=Ue(H),ae=xe().indexOf(J);ae!==-1&&(ge.current=ae)}return w.addEventListener("focusin",M),()=>{w.removeEventListener("focusin",M)}},[r,w,xe]),pe(()=>{if(r||!y)return;const M=Oe(G);function H(){B.current=!1}function J(ae){const X=Ue(ae),U=fe(w,X)||fe(v,X)||fe(R==null?void 0:R.portalNode,X);B.current=!U,Y.current=ae.pointerType||"keyboard"}function re(){Y.current="keyboard"}return M.addEventListener("pointerdown",J,!0),M.addEventListener("pointerup",H,!0),M.addEventListener("pointercancel",H,!0),M.addEventListener("keydown",re,!0),()=>{M.removeEventListener("pointerdown",J,!0),M.removeEventListener("pointerup",H,!0),M.removeEventListener("pointercancel",H,!0),M.removeEventListener("keydown",re,!0)}},[r,w,v,G,y,R]),pe(()=>{if(r||!l)return;function M(){I.current=!0,Q.start(0,()=>{I.current=!1})}function H(X){const U=X.relatedTarget,be=X.currentTarget,me=Ue(X);queueMicrotask(()=>{const Ne=k(),$t=m.context.triggerElements,an=!(fe(v,U)||fe(w,U)||fe(U,w)||fe(R==null?void 0:R.portalNode,U)||U!=null&&$t.hasElement(U)||$t.hasMatchingElement(Ie=>fe(Ie,U))||U!=null&&U.hasAttribute(bn("focus-guard"))||L&&(It(L.nodesRef.current,Ne).find(Ie=>{var Me,Le;return fe((Me=Ie.context)==null?void 0:Me.elements.floating,U)||fe((Le=Ie.context)==null?void 0:Le.elements.domReference,U)})||Ss(L.nodesRef.current,Ne).find(Ie=>{var Me,Le,rt;return[(Me=Ie.context)==null?void 0:Me.elements.floating,Zr((Le=Ie.context)==null?void 0:Le.elements.floating)].includes(U)||((rt=Ie.context)==null?void 0:rt.elements.domReference)===U})));if(be===v&&G&&sa(G,T),a&&be!==v&&!pf(me)&&zt(Oe(G))===Oe(G).body){if(Se(G)&&(G.focus(),a==="popup")){ee.request(()=>{G.focus()});return}const Ie=ge.current,Me=xe(),Le=Me[Ie]||Me[Me.length-1]||G;Se(Le)&&Le.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(N||!c)&&U&&an&&!I.current&&(N||U!==yo())&&(b.current=!0,m.setOpen(!1,ke(wn,X)))})}function J(){B.current||(x.current.insideReactTree=!0,oe.start(0,()=>{x.current.insideReactTree=!1}))}const re=Se(v)?v:null,ae=[];if(!(!w&&!re))return re&&(re.addEventListener("focusout",H),re.addEventListener("pointerdown",M),ae.push(()=>{re.removeEventListener("focusout",H),re.removeEventListener("pointerdown",M)})),w&&(w.addEventListener("focusout",H),R&&(w.addEventListener("focusout",J,!0),ae.push(()=>{w.removeEventListener("focusout",J,!0)})),ae.push(()=>{w.removeEventListener("focusout",H)})),()=>{ae.forEach(X=>{X()})}},[r,v,w,G,c,L,R,m,l,a,xe,N,k,T,x,oe,Q,ee]);const C=z(null),q=z(null),V=er(C,h,R==null?void 0:R.beforeInsideRef),Pe=er(q,R==null?void 0:R.afterInsideRef);pe(()=>{var X,U,be;if(r||!w||!y)return;const M=Array.from(((X=R==null?void 0:R.portalNode)==null?void 0:X.querySelectorAll(`[${bn("portal")}]`))||[]),J=(be=(U=(L?Ss(L.nodesRef.current,k()):[]).find(me=>{var Ne;return xs(((Ne=me.context)==null?void 0:Ne.elements.domReference)||null)}))==null?void 0:U.context)==null?void 0:be.elements.domReference,re=[w,J,...M,...E(),P.current,W.current,C.current,q.current,R==null?void 0:R.beforeOutsideRef.current,R==null?void 0:R.afterOutsideRef.current,Lt(d),Lt(p),N?v:null].filter(me=>me!=null),ae=Ku(re,c||N);return()=>{ae()}},[y,r,v,w,c,T,R,N,L,k,E,p,d]),ie(()=>{if(!y||r||!Se(G))return;const M=Oe(G),H=zt(M);queueMicrotask(()=>{const J=Re(G),re=$.current,ae=typeof re=="function"?re(S.current||""):re;if(ae===void 0||ae===!1)return;let X;ae===!0||ae===null?X=J[0]||G:X=Lt(ae),X=X||J[0]||G,!fe(G,H)&&lo(X,{preventScroll:X===G})})},[r,y,G,O,Re,$,S]),ie(()=>{if(r||!G)return;const M=Oe(G),H=zt(M);ff(H);function J(X){if(X.open||(D.current=uf(X.nativeEvent,Y.current)),X.reason===ze&&X.nativeEvent.type==="mouseleave"&&(b.current=!0),X.reason===zs)if(X.nested)b.current=!1;else if(eu(X.nativeEvent)||tu(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}}_.on("openchange",J);const re=M.createElement("span");re.setAttribute("tabindex","-1"),re.setAttribute("aria-hidden","true"),Object.assign(re.style,Gs),te&&v&&v.insertAdjacentElement("afterend",re);function ae(){const X=A.current;let U=typeof X=="function"?X(D.current):X;if(U===void 0||U===!1)return null;if(U===null&&(U=!0),typeof U=="boolean"){const me=v||yo();return me&&me.isConnected?me:re}const be=v||yo()||re;return Lt(U)||be}return()=>{_.off("openchange",J);const X=zt(M),U=fe(w,X)||L&&It(L.nodesRef.current,k(),!1).some(me=>{var Ne;return fe((Ne=me.context)==null?void 0:Ne.elements.floating,X)}),be=ae();queueMicrotask(()=>{const me=df(be),Ne=typeof A.current!="boolean";A.current&&!b.current&&Se(me)&&(!(!Ne&&me!==X&&X!==M.body)||U)&&me.focus({preventScroll:!0}),re.remove()})}},[r,w,G,A,x,_,L,te,v,k]),pe(()=>{queueMicrotask(()=>{b.current=!1})},[r]),pe(()=>{if(r||!y)return;function M(J){const re=Ue(J);re!=null&&re.closest(`[${Ws}]`)&&(I.current=!0)}const H=Oe(G);return H.addEventListener("pointerdown",M,!0),()=>{H.removeEventListener("pointerdown",M,!0)}},[r,y,G]),ie(()=>{if(!r&&R)return R.setFocusManagerState({modal:c,closeOnFocusOut:l,open:y,onOpenChange:m.setOpen,domReference:v}),()=>{R.setFocusManagerState(null)}},[r,R,c,y,m,l,v]),ie(()=>{if(!(r||!G))return sa(G,T),()=>{queueMicrotask(vo)}},[r,G,T]);const ne=!r&&(c?!N:!0)&&(te||c);return j(Ee,{children:[ne&&j(Nt,{"data-type":"inside",ref:V,onFocus:M=>{var H;if(c){const J=Re();lo(J[J.length-1])}else if(R!=null&&R.portalNode)if(b.current=!1,Zt(M,R.portalNode)){const J=io(v);J==null||J.focus()}else(H=Lt(d??R.beforeOutsideRef))==null||H.focus()}}),n,ne&&j(Nt,{"data-type":"inside",ref:Pe,onFocus:M=>{var H;if(c)lo(Re()[0]);else if(R!=null&&R.portalNode)if(l&&(b.current=!0),Zt(M,R.portalNode)){const J=Ms(v);J==null||J.focus()}else(H=Lt(p??R.afterOutsideRef))==null||H.focus()}})]})}function gf(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:c=!0,touchOpenDelay:l=0}=t,f=z(void 0),u=qn(),p=At(),d=K(()=>({onPointerDown(h){f.current=h.pointerType},onMouseDown(h){const g=f.current,m=h.nativeEvent,y=n.select("open");if(h.button!==0||i==="click"||Yt(g,!0)&&a)return;const v=r.current.openEvent,w=v==null?void 0:v.type,_=n.select("domReferenceElement")!==h.currentTarget,x=y&&_||!(y&&s&&(!(v&&c)||w==="click"||w==="mousedown"));if(Es(m.target)){const E=ke(bt,m,m.target);x&&g==="touch"&&l>0?p.start(l,()=>{n.setOpen(!0,E)}):n.setOpen(x,E);return}const k=h.currentTarget;u.request(()=>{const E=ke(bt,m,k);x&&g==="touch"&&l>0?p.start(l,()=>{n.setOpen(!0,E)}):n.setOpen(x,E)})},onClick(h){if(i==="mousedown-only")return;const g=f.current;if(i==="mousedown"&&g){f.current=void 0;return}if(Yt(g,!0)&&a)return;const m=n.select("open"),y=r.current.openEvent,v=n.select("domReferenceElement")!==h.currentTarget,w=m&&v||!(m&&s&&(!(y&&c)||ks(y))),_=ke(bt,h.nativeEvent,h.currentTarget);w&&g==="touch"&&l>0?p.start(l,()=>{n.setOpen(!0,_)}):n.setOpen(w,_)},onKeyDown(){f.current=void 0}}),[r,i,a,n,c,s,u,p,l]);return K(()=>o?{reference:d}:je,[o,d])}function aa(e,t,n){let{reference:r,floating:o}=e;const i=We(t),s=to(t),a=eo(s),c=$e(t),l=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(c){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(wt(t)){case"start":d[s]-=p*(n&&l?-1:1);break;case"end":d[s]+=p*(n&&l?-1:1);break}return d}const mf=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=aa(l,r,c),p=r,d={},h=0;for(let g=0;g<a.length;g++){const{name:m,fn:y}=a[g],{x:v,y:w,data:_,reset:x}=await y({x:f,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:d,rects:l,platform:s,elements:{reference:e,floating:t}});f=v??f,u=w??u,d={...d,[m]:{...d[m],..._}},x&&h<=50&&(h++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(l=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:f,y:u}=aa(l,p,c)),g=-1)}return{x:f,y:u,placement:p,strategy:o,middlewareData:d}};async function Sn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:p=!1,padding:d=0}=pt(t,e),h=Ts(d),m=a[p?u==="floating"?"reference":"floating":u],y=Xn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),v=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),_=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Xn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:c}):v);return{top:(y.top-x.top+h.top)/_.y,bottom:(x.bottom-y.bottom+h.bottom)/_.y,left:(y.left-x.left+h.left)/_.x,right:(x.right-y.right+h.right)/_.x}}const vf=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:c,elements:l}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=pt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=$e(o),v=We(a),w=$e(a)===a,_=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=p||(w||!g?[Gn(a)]:au(a)),k=h!=="none";!p&&k&&x.push(...fu(a,g,h,_));const E=[a,...x],O=await Sn(t,m),N=[];let T=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&N.push(O[y]),u){const L=su(o,s,_);N.push(O[L[0]],O[L[1]])}if(T=[...T,{placement:o,overflows:N}],!N.every(L=>L<=0)){var $,A;const L=((($=i.flip)==null?void 0:$.index)||0)+1,R=E[L];if(R&&(!(u==="alignment"?v!==We(R):!1)||T.every(b=>We(b.placement)===v?b.overflows[0]>0:!0)))return{data:{index:L,overflows:T},reset:{placement:R}};let P=(A=T.filter(W=>W.overflows[0]<=0).sort((W,b)=>W.overflows[1]-b.overflows[1])[0])==null?void 0:A.placement;if(!P)switch(d){case"bestFit":{var S;const W=(S=T.filter(b=>{if(k){const I=We(b.placement);return I===v||I==="y"}return!0}).map(b=>[b.placement,b.overflows.filter(I=>I>0).reduce((I,B)=>I+B,0)]).sort((b,I)=>b[1]-I[1])[0])==null?void 0:S[0];W&&(P=W);break}case"initialPlacement":P=a;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function ca(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function la(e){return nu.some(t=>e[t]>=0)}const yf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pt(e,t);switch(r){case"referenceHidden":{const i=await Sn(t,{...o,elementContext:"reference"}),s=ca(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:la(s)}}}case"escaped":{const i=await Sn(t,{...o,altBoundary:!0}),s=ca(i,n.floating);return{data:{escapedOffsets:s,escaped:la(s)}}}default:return{}}}}},ua=new Set(["left","top"]);async function _f(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=$e(n),a=wt(n),c=We(n)==="y",l=ua.has(s)?-1:1,f=i&&c?-1:1,u=pt(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:h}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof h=="number"&&(d=a==="end"?h*-1:h),c?{x:d*f,y:p*l}:{x:p*l,y:d*f}}const wf=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,c=await _f(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},bf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:y,y:v}=m;return{x:y,y:v}}},...c}=pt(e,t),l={x:n,y:r},f=await Sn(t,c),u=We($e(o)),p=Qr(u);let d=l[p],h=l[u];if(i){const m=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=d+f[m],w=d-f[y];d=Jr(v,d,w)}if(s){const m=u==="y"?"top":"left",y=u==="y"?"bottom":"right",v=h+f[m],w=h-f[y];h=Jr(v,h,w)}const g=a.fn({...t,[p]:d,[u]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[u]:s}}}}}},Ef=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:c=!0,crossAxis:l=!0}=pt(e,t),f={x:n,y:r},u=We(o),p=Qr(u);let d=f[p],h=f[u];const g=pt(a,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const w=p==="y"?"height":"width",_=i.reference[p]-i.floating[w]+m.mainAxis,x=i.reference[p]+i.reference[w]-m.mainAxis;d<_?d=_:d>x&&(d=x)}if(l){var y,v;const w=p==="y"?"width":"height",_=ua.has($e(o)),x=i.reference[u]-i.floating[w]+(_&&((y=s.offset)==null?void 0:y[u])||0)+(_?0:m.crossAxis),k=i.reference[u]+i.reference[w]+(_?0:((v=s.offset)==null?void 0:v[u])||0)-(_?m.crossAxis:0);h<x?h=x:h>k&&(h=k)}return{[p]:d,[u]:h}}}},xf=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:c=()=>{},...l}=pt(e,t),f=await Sn(t,l),u=$e(o),p=wt(o),d=We(o)==="y",{width:h,height:g}=i.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=u,m=p==="end"?"top":"bottom");const v=g-f.top-f.bottom,w=h-f.left-f.right,_=qt(g-f[m],v),x=qt(h-f[y],w),k=!t.middlewareData.shift;let E=_,O=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=v),k&&!p){const T=Ve(f.left,0),$=Ve(f.right,0),A=Ve(f.top,0),S=Ve(f.bottom,0);d?O=h-2*(T!==0||$!==0?T+$:Ve(f.left,f.right)):E=g-2*(A!==0||S!==0?A+S:Ve(f.top,f.bottom))}await c({...t,availableWidth:O,availableHeight:E});const N=await s.getDimensions(a.floating);return h!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function fa(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Kt(n)!==i||Kt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function _o(e){return ue(e)?e:e.contextElement}function tn(e){const t=_o(e);if(!Se(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=fa(t);let s=(i?Kt(n.width):n.width)/r,a=(i?Kt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Sf=tt(0);function da(e){const t=Te(e);return!Un()||!t.visualViewport?Sf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Te(e)?!1:t}function Dt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=_o(e);let s=tt(1);t&&(r?ue(r)&&(s=tn(r)):s=tn(e));const a=kf(i,n,r)?da(i):tt(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(i){const p=Te(i),d=r&&ue(r)?Te(r):r;let h=p,g=zr(h);for(;g&&r&&d!==h;){const m=tn(g),y=g.getBoundingClientRect(),v=De(g),w=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,_=y.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;c*=m.x,l*=m.y,f*=m.x,u*=m.y,c+=w,l+=_,h=Te(g),g=zr(h)}}return Xn({width:f,height:u,x:c,y:l})}function or(e,t){const n=Wn(e).scrollLeft;return t?t.left+n:Dt(Je(e)).left+n}function pa(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-or(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Rf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Je(r),a=t?Hn(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=tt(1);const f=tt(0),u=Se(r);if((u||!u&&!i)&&((vt(r)!=="body"||Pt(s))&&(c=Wn(r)),Se(r))){const d=Dt(r);l=tn(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}const p=s&&!u&&!i?pa(s,c):tt(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+f.x+p.x,y:n.y*l.y-c.scrollTop*l.y+f.y+p.y}}function Of(e){return Array.from(e.getClientRects())}function Tf(e){const t=Je(e),n=Wn(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+or(e);const a=-n.scrollTop;return De(r).direction==="rtl"&&(s+=Ve(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const ha=25;function Cf(e,t){const n=Te(e),r=Je(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const f=Un();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=or(r);if(l<=0){const f=r.ownerDocument,u=f.body,p=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(r.clientWidth-u.clientWidth-d);h<=ha&&(i-=h)}else l<=ha&&(i+=l);return{width:i,height:s,x:a,y:c}}const Pf=new Set(["absolute","fixed"]);function Af(e,t){const n=Dt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Se(e)?tn(e):tt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ga(e,t,n){let r;if(t==="viewport")r=Cf(e,n);else if(t==="document")r=Tf(Je(e));else if(ue(t))r=Af(t,n);else{const o=da(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Xn(r)}function ma(e,t){const n=ft(e);return n===t||!ue(n)||ut(n)?!1:De(n).position==="fixed"||ma(n,t)}function If(e,t){const n=t.get(e);if(n)return n;let r=yt(e,[],!1).filter(a=>ue(a)&&vt(a)!=="body"),o=null;const i=De(e).position==="fixed";let s=i?ft(e):e;for(;ue(s)&&!ut(s);){const a=De(s),c=Wr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Pf.has(o.position)||Pt(s)&&!c&&ma(e,s))?r=r.filter(f=>f!==s):o=a,s=ft(s)}return t.set(e,r),r}function jf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Hn(t)?[]:If(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,f)=>{const u=ga(t,f,o);return l.top=Ve(u.top,l.top),l.right=qt(u.right,l.right),l.bottom=qt(u.bottom,l.bottom),l.left=Ve(u.left,l.left),l},ga(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Nf(e){const{width:t,height:n}=fa(e);return{width:t,height:n}}function Lf(e,t,n){const r=Se(t),o=Je(t),i=n==="fixed",s=Dt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=tt(0);function l(){c.x=or(o)}if(r||!r&&!i)if((vt(t)!=="body"||Pt(o))&&(a=Wn(t)),r){const d=Dt(t,!0,i,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else o&&l();i&&!r&&o&&l();const f=o&&!r&&!i?pa(o,a):tt(0),u=s.left+a.scrollLeft-c.x-f.x,p=s.top+a.scrollTop-c.y-f.y;return{x:u,y:p,width:s.width,height:s.height}}function wo(e){return De(e).position==="static"}function va(e,t){if(!Se(e)||De(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Je(e)===n&&(n=n.ownerDocument.body),n}function ya(e,t){const n=Te(e);if(Hn(e))return n;if(!Se(e)){let o=ft(e);for(;o&&!ut(o);){if(ue(o)&&!wo(o))return o;o=ft(o)}return n}let r=va(e,t);for(;r&&kl(r)&&wo(r);)r=va(r,t);return r&&ut(r)&&wo(r)&&!Wr(r)?n:r||Pl(e)||n}const Df=async function(e){const t=this.getOffsetParent||ya,n=this.getDimensions,r=await n(e.floating);return{reference:Lf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $f(e){return De(e).direction==="rtl"}const Mf={convertOffsetParentRelativeRectToViewportRelativeRect:Rf,getDocumentElement:Je,getClippingRect:jf,getOffsetParent:ya,getElementRects:Df,getClientRects:Of,getDimensions:Nf,getScale:tn,isElement:ue,isRTL:$f};function _a(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ff(e,t){let n=null,r;const o=Je(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:f,top:u,width:p,height:d}=l;if(a||t(),!p||!d)return;const h=Kn(u),g=Kn(o.clientWidth-(f+p)),m=Kn(o.clientHeight-(u+d)),y=Kn(f),w={rootMargin:-h+"px "+-g+"px "+-m+"px "+-y+"px",threshold:Ve(0,qt(1,c))||1};let _=!0;function x(k){const E=k[0].intersectionRatio;if(E!==c){if(!_)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!_a(l,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,w)}n.observe(e)}return s(!0),i}function wa(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:c=!1}=r,l=_o(e),f=o||i?[...l?yt(l):[],...yt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const u=l&&a?Ff(l,n):null;let p=-1,d=null;s&&(d=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&d&&(d.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=d)==null||w.observe(t)})),n()}),l&&!c&&d.observe(l),d.observe(t));let h,g=c?Dt(e):null;c&&m();function m(){const y=Dt(e);g&&!_a(g,y)&&n(),g=y,h=requestAnimationFrame(m)}return n(),()=>{var y;f.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),u==null||u(),(y=d)==null||y.disconnect(),d=null,c&&cancelAnimationFrame(h)}}const Vf=wf,Bf=bf,Hf=vf,Uf=xf,Wf=yf,zf=Ef,Yf=(e,t,n)=>{const r=new Map,o={platform:Mf,...n},i={...o.platform,_c:r};return mf(e,t,{...o,platform:i})};var qf=typeof document<"u",Kf=function(){},ir=qf?lt:Kf;function sr(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(!sr(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)&&!sr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ba(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ea(e,t){const n=ba(e);return Math.round(t*n)/n}function bo(e){const t=z(e);return ir(()=>{t.current=e}),t}function Gf(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:c,open:l}=e,[f,u]=ye({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,d]=ye(r);sr(p,r)||d(r);const[h,g]=ye(null),[m,y]=ye(null),v=le(b=>{b!==k.current&&(k.current=b,g(b))},[]),w=le(b=>{b!==E.current&&(E.current=b,y(b))},[]),_=i||h,x=s||m,k=z(null),E=z(null),O=z(f),N=c!=null,T=bo(c),$=bo(o),A=bo(l),S=le(()=>{if(!k.current||!E.current)return;const b={placement:t,strategy:n,middleware:p};$.current&&(b.platform=$.current),Yf(k.current,E.current,b).then(I=>{const B={...I,isPositioned:A.current!==!1};L.current&&!sr(O.current,B)&&(O.current=B,Ze(()=>{u(B)}))})},[p,t,n,$,A]);ir(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,u(b=>({...b,isPositioned:!1})))},[l]);const L=z(!1);ir(()=>(L.current=!0,()=>{L.current=!1}),[]),ir(()=>{if(_&&(k.current=_),x&&(E.current=x),_&&x){if(T.current)return T.current(_,x,S);S()}},[_,x,S,T,N]);const R=K(()=>({reference:k,floating:E,setReference:v,setFloating:w}),[v,w]),P=K(()=>({reference:_,floating:x}),[_,x]),W=K(()=>{const b={position:n,left:0,top:0};if(!P.floating)return b;const I=Ea(P.floating,f.x),B=Ea(P.floating,f.y);return a?{...b,transform:"translate("+I+"px, "+B+"px)",...ba(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:I,top:B}},[n,a,P.floating,f.x,f.y]);return K(()=>({...f,update:S,refs:R,elements:P,floatingStyles:W}),[f,S,R,P,W])}const Xf=(e,t)=>({...Vf(e),options:[e,t]}),Zf=(e,t)=>({...Bf(e),options:[e,t]}),Jf=(e,t)=>({...zf(e),options:[e,t]}),Qf=(e,t)=>({...Hf(e),options:[e,t]}),ed=(e,t)=>({...Uf(e),options:[e,t]}),td=(e,t)=>({...Wf(e),options:[e,t]}),nd={intentional:"onClick",sloppy:"onPointerDown"};function rd(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 od(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:c}=n.context,{enabled:l=!0,escapeKey:f=!0,outsidePress:u=!0,outsidePressEvent:p="sloppy",referencePress:d=!1,referencePressEvent:h="sloppy",ancestorScroll:g=!1,bubbles:m,externalTree:y}=t,v=Qt(y),w=Z(typeof u=="function"?u:()=>!1),_=typeof u=="function"?w:u,x=z(!1),{escapeKey:k,outsidePress:E}=rd(m),O=z(null),N=At(),T=At(),$=Z(()=>{T.clear(),c.current.insideReactTree=!1}),A=z(!1),S=z(""),L=Z(C=>{S.current=C.pointerType}),R=Z(()=>{const C=S.current,q=C==="pen"||!C?"mouse":C,V=typeof p=="function"?p():p;return typeof V=="string"?V:V[q]}),P=Z(C=>{var M;if(!r||!l||!f||C.key!=="Escape"||A.current)return;const q=(M=c.current.floatingContext)==null?void 0:M.nodeId,V=v?It(v.nodesRef.current,q):[];if(!k&&V.length>0){let H=!0;if(V.forEach(J=>{var re;(re=J.context)!=null&&re.open&&!J.context.dataRef.current.__escapeKeyBubbles&&(H=!1)}),!H)return}const Pe=Ql(C)?C.nativeEvent:C,ne=ke(Ys,Pe);n.setOpen(!1,ne),!k&&!ne.isPropagationAllowed&&C.stopPropagation()}),W=Z(C=>{const q=R();return q==="intentional"&&C.type!=="click"||q==="sloppy"&&C.type==="click"}),b=Z(()=>{c.current.insideReactTree=!0,T.start(0,$)}),I=Z((C,q=!1)=>{var X;if(W(C)){$();return}if(c.current.insideReactTree){$();return}if(R()==="intentional"&&q||typeof _=="function"&&!_(C))return;const V=Ue(C),Pe=`[${bn("inert")}]`,ne=Oe(n.select("floatingElement")).querySelectorAll(Pe),M=n.context.triggerElements;if(V&&(M.hasElement(V)||M.hasMatchingElement(U=>fe(U,V))))return;let H=ue(V)?V:null;for(;H&&!ut(H);){const U=ft(H);if(ut(U)||!ue(U))break;H=U}if(ne.length&&ue(V)&&!Zl(V)&&!fe(V,n.select("floatingElement"))&&Array.from(ne).every(U=>!fe(H,U)))return;if(Se(V)&&!("touches"in C)){const U=ut(V),be=De(V),me=/auto|scroll/,Ne=U||me.test(be.overflowX),$t=U||me.test(be.overflowY),an=Ne&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,Ie=$t&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,Me=be.direction==="rtl",Le=Ie&&(Me?C.offsetX<=V.offsetWidth-V.clientWidth:C.offsetX>V.clientWidth),rt=an&&C.offsetY>V.clientHeight;if(Le||rt)return}const J=(X=c.current.floatingContext)==null?void 0:X.nodeId,re=v&&It(v.nodesRef.current,J).some(U=>{var be;return Ke(C,(be=U.context)==null?void 0:be.elements.floating)});if(Ke(C,n.select("floatingElement"))||Ke(C,n.select("domReferenceElement"))||re)return;const ae=v?It(v.nodesRef.current,J):[];if(ae.length>0){let U=!0;if(ae.forEach(be=>{var me;(me=be.context)!=null&&me.open&&!be.context.dataRef.current.__outsidePressBubbles&&(U=!1)}),!U)return}n.setOpen(!1,ke(zs,C)),$()}),B=Z(C=>{R()!=="sloppy"||C.pointerType==="touch"||!n.select("open")||!l||Ke(C,n.select("floatingElement"))||Ke(C,n.select("domReferenceElement"))||I(C)}),ge=Z(C=>{if(R()!=="sloppy"||!n.select("open")||!l||Ke(C,n.select("floatingElement"))||Ke(C,n.select("domReferenceElement")))return;const q=C.touches[0];q&&(O.current={startTime:Date.now(),startX:q.clientX,startY:q.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},N.start(1e3,()=>{O.current&&(O.current.dismissOnTouchEnd=!1,O.current.dismissOnMouseDown=!1)}))}),D=Z(C=>{const q=Ue(C);function V(){ge(C),q==null||q.removeEventListener(C.type,V)}q==null||q.addEventListener(C.type,V)}),Y=Z(C=>{const q=x.current;if(x.current=!1,N.clear(),C.type==="mousedown"&&O.current&&!O.current.dismissOnMouseDown)return;const V=Ue(C);function Pe(){C.type==="pointerdown"?B(C):I(C,q),V==null||V.removeEventListener(C.type,Pe)}V==null||V.addEventListener(C.type,Pe)}),oe=Z(C=>{if(R()!=="sloppy"||!O.current||Ke(C,n.select("floatingElement"))||Ke(C,n.select("domReferenceElement")))return;const q=C.touches[0];if(!q)return;const V=Math.abs(q.clientX-O.current.startX),Pe=Math.abs(q.clientY-O.current.startY),ne=Math.sqrt(V*V+Pe*Pe);ne>5&&(O.current.dismissOnTouchEnd=!0),ne>10&&(I(C),N.clear(),O.current=null)}),Q=Z(C=>{const q=Ue(C);function V(){oe(C),q==null||q.removeEventListener(C.type,V)}q==null||q.addEventListener(C.type,V)}),ee=Z(C=>{R()!=="sloppy"||!O.current||Ke(C,n.select("floatingElement"))||Ke(C,n.select("domReferenceElement"))||(O.current.dismissOnTouchEnd&&I(C),N.clear(),O.current=null)}),te=Z(C=>{const q=Ue(C);function V(){ee(C),q==null||q.removeEventListener(C.type,V)}q==null||q.addEventListener(C.type,V)});pe(()=>{if(!r||!l)return;c.current.__escapeKeyBubbles=k,c.current.__outsidePressBubbles=E;const C=new _t;function q(H){n.setOpen(!1,ke(Bu,H))}function V(){C.clear(),A.current=!0}function Pe(){C.start(Un()?5:0,()=>{A.current=!1})}const ne=Oe(o);ne.addEventListener("pointerdown",L,!0),f&&(ne.addEventListener("keydown",P),ne.addEventListener("compositionstart",V),ne.addEventListener("compositionend",Pe)),_&&(ne.addEventListener("click",Y,!0),ne.addEventListener("pointerdown",Y,!0),ne.addEventListener("touchstart",D,!0),ne.addEventListener("touchmove",Q,!0),ne.addEventListener("touchend",te,!0),ne.addEventListener("mousedown",Y,!0));let M=[];return g&&(ue(s)&&(M=yt(s)),ue(o)&&(M=M.concat(yt(o))),!ue(i)&&i&&i.contextElement&&(M=M.concat(yt(i.contextElement)))),M=M.filter(H=>{var J;return H!==((J=ne.defaultView)==null?void 0:J.visualViewport)}),M.forEach(H=>{H.addEventListener("scroll",q,{passive:!0})}),()=>{ne.removeEventListener("pointerdown",L,!0),f&&(ne.removeEventListener("keydown",P),ne.removeEventListener("compositionstart",V),ne.removeEventListener("compositionend",Pe)),_&&(ne.removeEventListener("click",Y,!0),ne.removeEventListener("pointerdown",Y,!0),ne.removeEventListener("touchstart",D,!0),ne.removeEventListener("touchmove",Q,!0),ne.removeEventListener("touchend",te,!0),ne.removeEventListener("mousedown",Y,!0)),M.forEach(H=>{H.removeEventListener("scroll",q)}),C.clear()}},[c,o,i,s,f,_,r,a,g,l,k,E,P,I,Y,B,D,Q,te,L,n]),pe($,[_,$]);const G=K(()=>({onKeyDown:P,...d&&{[nd[h]]:C=>{n.setOpen(!1,ke(bt,C.nativeEvent))},...h!=="intentional"&&{onClick(C){n.setOpen(!1,ke(bt,C.nativeEvent))}}}}),[P,n,d,h]),xe=Z(C=>{const q=Ue(C.nativeEvent);!fe(n.select("floatingElement"),q)||C.button!==0||(x.current=!0)}),Re=K(()=>({onKeyDown:P,onPointerDown:xe,onMouseDown:xe,onMouseUp:xe,onClickCapture:b,onMouseDownCapture:b,onPointerDownCapture:b,onMouseUpCapture:b,onTouchEndCapture:b,onTouchMoveCapture:b}),[P,xe,b]);return K(()=>l?{reference:G,floating:Re,trigger:G}:{},[l,G,Re])}var id=(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
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
6
|
+
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})}}},sd=(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 l;try{throw new Error}catch(f){({stack:l}=f)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
8
|
+
This means your output selector will likely run more frequently than intended.
|
|
9
|
+
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:l})}},ad={inputStabilityCheck:"once",identityFunctionCheck:"once"},ar=Symbol("NOT_FOUND");function cd(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function ld(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function ud(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 xa=e=>Array.isArray(e)?e:[e];function fd(e){const t=Array.isArray(e[0])?e[0]:e;return ud(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Sa(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var dd=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...ad,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:id},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:sd}}};function pd(e){let t;return{get(n){return t&&e(t.key,n)?t.value:ar},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function hd(e,t){let n=[];function r(a){const c=n.findIndex(l=>t(a,l.key));if(c>-1){const l=n[c];return c>0&&(n.splice(c,1),n.unshift(l)),l.value}return ar}function o(a,c){r(a)===ar&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var gd=(e,t)=>e===t;function md(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 vd(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=gd,maxSize:o=1,resultEqualityCheck:i}=n,s=md(r);let a=0;const c=o<=1?pd(s):hd(o,s);function l(){let f=c.get(arguments);if(f===ar){if(f=e.apply(null,arguments),a++,i){const p=c.getEntries().find(d=>i(d.value,f));p&&(f=p.value,a!==0&&a--)}c.put(arguments,f)}return f}return l.clearCache=()=>{c.clear(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}var yd=class{constructor(e){this.value=e}deref(){return this.value}},_d=typeof WeakRef<"u"?WeakRef:yd,wd=0,ka=1;function cr(){return{s:wd,v:void 0,o:null,p:null}}function Ra(e,t={}){let n=cr();const{resultEqualityCheck:r}=t;let o,i=0;function s(){var u;let a=n;const{length:c}=arguments;for(let p=0,d=c;p<d;p++){const h=arguments[p];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=a.o;g===null&&(a.o=g=new WeakMap);const m=g.get(h);m===void 0?(a=cr(),g.set(h,a)):a=m}else{let g=a.p;g===null&&(a.p=g=new Map);const m=g.get(h);m===void 0?(a=cr(),g.set(h,a)):a=m}}const l=a;let f;if(a.s===ka)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 _d(f):f}return l.s=ka,l.v=f,f}return s.clearCache=()=>{n=cr(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Oa(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,s=0,a,c={},l=o.pop();typeof l=="object"&&(c=l,l=o.pop()),cd(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const f={...n,...c},{memoize:u,memoizeOptions:p=[],argsMemoize:d=Ra,argsMemoizeOptions:h=[],devModeChecks:g={}}=f,m=xa(p),y=xa(h),v=fd(o),w=u(function(){return i++,l.apply(null,arguments)},...m);let _=!0;const x=d(function(){s++;const E=Sa(v,arguments);if(a=w.apply(null,E),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:O,inputStabilityCheck:N}=dd(_,g);if(O.shouldRun&&O.run(l,E,a),N.shouldRun){const T=Sa(v,arguments);N.run({inputSelectorResults:E,inputSelectorResultsCopy:T},{memoize:u,memoizeOptions:m},arguments)}_&&(_=!1)}return a},...y);return Object.assign(x,{resultFunc:l,memoizedResultFunc:w,dependencies:v,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:u,argsMemoize:d})};return Object.assign(r,{withTypes:()=>r}),r}var bd=Oa(Ra),Ed=Object.assign((e,t=bd)=>{ld(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,c)=>(s[n[c]]=a,s),{}))},{withTypes:()=>Ed});Oa({memoize:vd,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const se=(e,t,n,r,o,i,...s)=>{if(s.length>0)throw new Error(process.env.NODE_ENV!=="production"?"Unsupported number of selectors":dt(1));let a;if(e&&t&&n&&r&&o&&i)a=(c,l,f,u)=>{const p=e(c,l,f,u),d=t(c,l,f,u),h=n(c,l,f,u),g=r(c,l,f,u),m=o(c,l,f,u);return i(p,d,h,g,m,l,f,u)};else if(e&&t&&n&&r&&o)a=(c,l,f,u)=>{const p=e(c,l,f,u),d=t(c,l,f,u),h=n(c,l,f,u),g=r(c,l,f,u);return o(p,d,h,g,l,f,u)};else if(e&&t&&n&&r)a=(c,l,f,u)=>{const p=e(c,l,f,u),d=t(c,l,f,u),h=n(c,l,f,u);return r(p,d,h,l,f,u)};else if(e&&t&&n)a=(c,l,f,u)=>{const p=e(c,l,f,u),d=t(c,l,f,u);return n(p,d,l,f,u)};else if(e&&t)a=(c,l,f,u)=>{const p=e(c,l,f,u);return t(p,l,f,u)};else if(e)a=e;else throw new Error("Missing arguments");return a};function xd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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 Eo={exports:{}},xo={};const lr=xd(Br);/**
|
|
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 Ta;function Sd(){if(Ta)return xo;Ta=1;var e=lr;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(),h=r({inst:{value:d,getSnapshot:p}}),g=h[0].inst,m=h[1];return i(function(){g.value=d,g.getSnapshot=p,c(g)&&m({inst:g})},[u,d,p]),o(function(){return c(g)&&m({inst:g}),u(function(){c(g)&&m({inst:g})})},[u]),s(d),d}function c(u){var p=u.getSnapshot;u=u.value;try{var d=p();return!n(u,d)}catch{return!0}}function l(u,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return xo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,xo}var So={};/**
|
|
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 Ca;function kd(){return Ca||(Ca=1,process.env.NODE_ENV!=="production"&&function(){function e(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}function t(d,h){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 g=h();if(!u){var m=h();i(g,m)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}m=s({inst:{value:g,getSnapshot:h}});var y=m[0].inst,v=m[1];return c(function(){y.value=g,y.getSnapshot=h,n(y)&&v({inst:y})},[d,g,h]),a(function(){return n(y)&&v({inst:y}),d(function(){n(y)&&v({inst:y})})},[d]),l(g),g}function n(d){var h=d.getSnapshot;d=d.value;try{var g=h();return!i(d,g)}catch{return!0}}function r(d,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=lr,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,c=o.useLayoutEffect,l=o.useDebugValue,f=!1,u=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;So.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())}()),So}process.env.NODE_ENV==="production"?Eo.exports=Sd():Eo.exports=kd();var ko=Eo.exports,Ro={exports:{}},Oo={};/**
|
|
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 Pa;function Rd(){if(Pa)return Oo;Pa=1;var e=lr,t=ko;function n(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;return Oo.useSyncExternalStoreWithSelector=function(l,f,u,p,d){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=a(function(){function y(k){if(!v){if(v=!0,w=k,k=p(k),d!==void 0&&g.hasValue){var E=g.value;if(d(E,k))return _=E}return _=k}if(E=_,r(w,k))return E;var O=p(k);return d!==void 0&&d(E,O)?(w=k,E):(w=k,_=O)}var v=!1,w,_,x=u===void 0?null:u;return[function(){return y(f())},x===null?void 0:function(){return y(x())}]},[f,u,p,d]);var m=o(l,h[0],h[1]);return s(function(){g.hasValue=!0,g.value=m},[m]),c(m),m},Oo}var To={};/**
|
|
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 Aa;function Od(){return Aa||(Aa=1,process.env.NODE_ENV!=="production"&&function(){function e(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=lr,n=ko,r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,c=t.useDebugValue;To.useSyncExternalStoreWithSelector=function(l,f,u,p,d){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=a(function(){function y(k){if(!v){if(v=!0,w=k,k=p(k),d!==void 0&&g.hasValue){var E=g.value;if(d(E,k))return _=E}return _=k}if(E=_,r(w,k))return E;var O=p(k);return d!==void 0&&d(E,O)?(w=k,E):(w=k,_=O)}var v=!1,w,_,x=u===void 0?null:u;return[function(){return y(f())},x===null?void 0:function(){return y(x())}]},[f,u,p,d]);var m=o(l,h[0],h[1]);return s(function(){g.hasValue=!0,g.value=m},[m]),c(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),To}process.env.NODE_ENV==="production"?Ro.exports=Rd():Ro.exports=Od();var Td=Ro.exports;const Cd=fo(19)?Ad:Id;function Pd(e,t,n,r,o){return Cd(e,t,n,r,o)}function Ad(e,t,n,r,o){const i=le(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return ko.useSyncExternalStore(e.subscribe,i,i)}function Id(e,t,n,r,o){return Td.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}class kn{constructor(t){ce(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));ce(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])){kn.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||kn.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};kn.prototype.setState.call(this,t)}}class Ia extends kn{constructor(n,r={},o){super(n);ce(this,"controlledValues",new Map);ce(this,"select",(n,r,o,i)=>{const s=this.selectors[n];return s(this.state,r,o,i)});ce(this,"useState",(n,r,o,i)=>{mt(n);const s=this.selectors[n];return Pd(this,s,r,o,i)});this.context=r,this.selectors=o}useSyncedValue(n,r){mt(n),ie(()=>{this.state[n]!==r&&this.set(n,r)},[n,r])}useSyncedValueWithCleanup(n,r){ie(()=>(this.state[n]!==r&&this.set(n,r),()=>{this.set(n,void 0)}),[n,r])}useSyncedValues(n){if(process.env.NODE_ENV!=="production"){mt(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);ie(()=>{this.update(n)},r)}useControlledProp(n,r,o){mt(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})),ie(()=>{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){mt(n);const o=Z(r??gs);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 c=i;i=a,r(a,c,this)}})}}const jd={open:se(e=>e.open),domReferenceElement:se(e=>e.domReferenceElement),referenceElement:se(e=>e.positionReference??e.referenceElement),floatingElement:se(e=>e.floatingElement),floatingId:se(e=>e.floatingId)};class Co extends Ia{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:Us(),nested:r,noEmit:o,triggerElements:s},jd);ce(this,"setOpen",(n,r)=>{var o,i;if((!n||!this.state.open||ks(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 Nd(e,t=!1,n=!1){const[r,o]=ye(e&&t?"idle":void 0),[i,s]=ye(e);return e&&!i&&(s(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),ie(()=>{if(!e&&i&&r!=="ending"&&n){const a=et.request(()=>{o("ending")});return()=>{et.cancel(a)}}},[e,i,r,n]),ie(()=>{if(!e||t)return;const a=et.request(()=>{Ze(()=>{o(void 0)})});return()=>{et.cancel(a)}},[t,e]),ie(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const a=et.request(()=>{o("idle")});return()=>{et.cancel(a)}},[t,e,i,o,r]),K(()=>({mounted:i,setMounted:s,transitionStatus:r}),[i,r])}function Po(e,t=!1,n=!0){const r=qn();return Z((o,i=null)=>{r.cancel();const s=Lt(e);s!=null&&(typeof s.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function a(){s&&Promise.all(s.getAnimations().map(c=>c.finished)).then(()=>{i!=null&&i.aborted||Ze(o)}).catch(()=>{if(n){if(i!=null&&i.aborted)return;Ze(o)}else s.getAnimations().length>0&&s.getAnimations().some(c=>c.pending||c.playState!=="finished")&&a()})}t?r.request(a):a()}))})}function ja(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=qe(n),s=Z(o),a=Po(r,n);pe(()=>{t&&a(()=>{n===i.current&&s()})},[t,n,s,a,i])}function Ld(e,t){const n=z(null);return le(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 Dd(e,t,n,r){const o=n.useState("isMountedByTrigger",e),i=Ld(e,n),s=Z(a=>{const c=i(a);return a!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:a,...r}),c});return ie(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:o}}function $d(e){const t=e.useState("open");ie(()=>{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 Md(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=Nd(e);t.useSyncedValues({mounted:r,transitionStatus:i});const s=Z(()=>{var c,l;o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n==null||n(),(l=(c=t.context).onOpenChangeComplete)==null||l.call(c,!1)}),a=t.useState("preventUnmountingOnClose");return ja({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||s()}}),{forceUnmount:s,transitionStatus:i}}class Ao{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.":dt(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 Fd(){return new Co({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Ao,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function Vd(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:Fd(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:je,inactiveTriggerProps:je,popupProps:je}}const Bd={open:se(e=>e.open),mounted:se(e=>e.mounted),transitionStatus:se(e=>e.transitionStatus),floatingRootContext:se(e=>e.floatingRootContext),preventUnmountingOnClose:se(e=>e.preventUnmountingOnClose),payload:se(e=>e.payload),activeTriggerId:se(e=>e.activeTriggerId),activeTriggerElement:se(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:se((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:se((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:se((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:se((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:se(e=>e.popupProps),popupElement:se(e=>e.popupElement),positionerElement:se(e=>e.positionerElement)};function Hd(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=Jt(),i=jt()!=null;if(process.env.NODE_ENV!=="production"){const a=r.reference;a&&!ue(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=Qe(()=>new Co({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new Ao,floatingId:o,nested:i,noEmit:e.noEmit||!1})).current;return ie(()=>{const a={open:t,floatingId:o};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=ue(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 Ud(e={}){const{nodeId:t,externalTree:n}=e,r=Hd(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[s,a]=ye(null),c=z(null),l=Qt(n);ie(()=>{i.domReference&&(c.current=i.domReference)},[i.domReference]);const f=Gf({...e,elements:{...i,...s&&{reference:s}}}),u=le(E=>{const O=ue(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;a(O),f.refs.setReference(O)},[f.refs]),[p,d]=ye(null),[h,g]=ye(null);o.useSyncedValue("referenceElement",p),o.useSyncedValue("domReferenceElement",ue(p)?p:null),o.useSyncedValue("floatingElement",h);const m=le(E=>{(ue(E)||E===null)&&(c.current=E,d(E)),(ue(f.refs.reference.current)||f.refs.reference.current===null||E!==null&&!ue(E))&&f.refs.setReference(E)},[f.refs,d]),y=le(E=>{g(E),f.refs.setFloating(E)},[f.refs]),v=K(()=>({...f.refs,setReference:m,setFloating:y,setPositionReference:u,domReference:c}),[f.refs,m,y,u]),w=K(()=>({...f.elements,domReference:i.domReference}),[f.elements,i.domReference]),_=o.useState("open"),x=o.useState("floatingId"),k=K(()=>({...f,dataRef:o.context.dataRef,open:_,onOpenChange:o.setOpen,events:o.context.events,floatingId:x,refs:v,elements:w,nodeId:t,rootStore:o}),[f,v,w,t,o,_,x]);return ie(()=>{o.context.dataRef.current.floatingContext=k;const E=l==null?void 0:l.nodesRef.current.find(O=>O.id===t);E&&(E.context=k)}),K(()=>({...f,context:k,refs:v,elements:w,rootStore:o}),[f,v,w,k,o])}function Wd(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=Jt(),s=jt()!=null,a=t.useState("open"),c=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),f=t.context.triggerElements,u=Qe(()=>new Co({open:a,referenceElement:c,floatingElement:l,triggerElements:f,onOpenChange:o,floatingId:i,nested:s,noEmit:n})).current;return ie(()=>{const p={open:a,floatingId:i,referenceElement:c,floatingElement:l};ue(c)&&(p.domReferenceElement=c),u.update(p)},[a,i,c,l,u]),u.context.onOpenChange=o,u.context.nested=s,u.context.noEmit=n,u}const Io=bn("safe-polygon"),zd=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${bs}`;function Yd(e){return e?!!e.closest(zd):!1}function Na(e){const t=z(void 0),n=z(!1),r=z(void 0),o=z(!0),i=z(!1),s=z(()=>{}),a=z(!1),c=At(),l=At(),f=z(void 0);return K(()=>{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:c,restTimeout:l,handleCloseOptionsRef:f}),u.hoverInteractionState},[e,t,n,r,o,i,s,a,c,l,f])}const qd=new Set(["click","mousedown"]);function Kd(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:c=0,externalTree:l}=t,{pointerTypeRef:f,interactedInsideRef:u,handlerRef:p,performedPointerEventsMutationRef:d,unbindMouseMoveRef:h,restTimeoutPendingRef:g,openChangeTimeout:m,handleCloseOptionsRef:y}=Na(n),v=Qt(l),w=jt(),_=Z(()=>u.current?!0:s.current.openEvent?qd.has(s.current.openEvent.type):!1),x=Z(()=>{var $;const T=($=s.current.openEvent)==null?void 0:$.type;return(T==null?void 0:T.includes("mouse"))&&T!=="mousedown"}),k=le((T,$=!0)=>{const A=Gd(c,f.current);A&&!p.current?m.start(A,()=>n.setOpen(!1,ke(ze,T))):$&&(m.clear(),n.setOpen(!1,ke(ze,T)))},[c,p,n,f,m]),E=Z(()=>{h.current(),p.current=void 0}),O=Z(()=>{if(d.current){const T=Oe(o).body;T.style.pointerEvents="",T.removeAttribute(Io),d.current=!1}}),N=Z(T=>{const $=Ue(T);if(!Yd($)){u.current=!1;return}u.current=!0});ie(()=>{r||(f.current=void 0,g.current=!1,u.current=!1,E(),O())},[r,f,g,u,E,O]),pe(()=>()=>{E()},[E]),pe(()=>O,[O]),ie(()=>{var T,$,A;if(a&&r&&(T=y.current)!=null&&T.blockPointerEvents&&x()&&ue(i)&&o){d.current=!0;const S=Oe(o).body;S.setAttribute(Io,"");const L=i,R=o,P=(A=($=v==null?void 0:v.nodesRef.current.find(W=>W.id===w))==null?void 0:$.context)==null?void 0:A.elements.floating;return P&&(P.style.pointerEvents=""),S.style.pointerEvents="none",L.style.pointerEvents="auto",R.style.pointerEvents="auto",()=>{S.style.pointerEvents="",L.style.pointerEvents="",R.style.pointerEvents=""}}},[a,r,i,o,y,x,v,w,d]),pe(()=>{if(!a)return;function T(L){if(_()||!s.current.floatingContext)return;const R=n.context.triggerElements;L.relatedTarget&&R.hasElement(L.relatedTarget)||(O(),E(),_()||k(L))}function $(L){var R;m.clear(),O(),(R=p.current)==null||R.call(p,L),E()}function A(L){_()||k(L,!1)}const S=o;return S&&(S.addEventListener("mouseleave",T),S.addEventListener("mouseenter",$),S.addEventListener("mouseleave",A),S.addEventListener("pointerdown",N,!0)),()=>{S&&(S.removeEventListener("mouseleave",T),S.removeEventListener("mouseenter",$),S.removeEventListener("mouseleave",A),S.removeEventListener("pointerdown",N,!0))}})}function Gd(e,t){return t&&!Yt(t)?0:typeof e=="function"?e():e}function jo(e){return typeof e=="function"?e():e}const Xd={current:null};function Zd(e,t={}){var W;const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:o}=n.context,{enabled:i=!0,delay:s=0,handleClose:a=null,mouseOnly:c=!1,restMs:l=0,move:f=!0,triggerElementRef:u=Xd,externalTree:p,isActiveTrigger:d=!0}=t,h=Qt(p),{pointerTypeRef:g,interactedInsideRef:m,handlerRef:y,blockMouseMoveRef:v,performedPointerEventsMutationRef:w,unbindMouseMoveRef:_,restTimeoutPendingRef:x,openChangeTimeout:k,restTimeout:E,handleCloseOptionsRef:O}=Na(n),N=qe(a),T=qe(s),$=qe(l);d&&(O.current=(W=N.current)==null?void 0:W.__options);const A=Z(()=>m.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),S=le((b,I=!0)=>{const B=co(T.current,"close",g.current);B&&!y.current?k.start(B,()=>n.setOpen(!1,ke(ze,b))):I&&(k.clear(),n.setOpen(!1,ke(ze,b)))},[T,y,n,g,k]),L=Z(()=>{_.current(),y.current=void 0}),R=Z(()=>{if(w.current){const b=Oe(n.select("domReferenceElement")).body;b.style.pointerEvents="",b.removeAttribute(Io),w.current=!1}});pe(()=>{if(!i)return;function b(I){I.open||(k.clear(),E.clear(),v.current=!0,x.current=!1)}return o.on("openchange",b),()=>{o.off("openchange",b)}},[i,o,k,E,v,x]);const P=Z(b=>{var B;if(A()||!r.current.floatingContext)return;const I=n.context.triggerElements;b.relatedTarget&&I.hasElement(b.relatedTarget)||(B=N.current)==null||B.call(N,{...r.current.floatingContext,tree:h,x:b.clientX,y:b.clientY,onClose(){R(),L(),A()||S(b)}})(b)});return pe(()=>{if(!i)return;const b=u.current??(d?n.select("domReferenceElement"):null);if(!ue(b))return;function I(D){if(k.clear(),v.current=!1,c&&!Yt(g.current)||jo($.current)>0&&!co(T.current,"open"))return;const Y=co(T.current,"open",g.current),oe=n.select("domReferenceElement"),Q=n.context.triggerElements,ee=(Q.hasElement(D.target)||Q.hasMatchingElement(G=>fe(G,D.target)))&&(!oe||!fe(oe,D.target)),te=D.currentTarget??null;Y?k.start(Y,()=>{n.select("open")||n.setOpen(!0,ke(ze,D,te))}):(!n.select("open")||ee)&&n.setOpen(!0,ke(ze,D,te))}function B(D){if(A()){R();return}_.current();const Y=n.select("domReferenceElement"),oe=Oe(Y);E.clear(),x.current=!1;const Q=n.context.triggerElements;if(D.relatedTarget&&Q.hasElement(D.relatedTarget))return;if(N.current&&r.current.floatingContext){n.select("open")||k.clear(),y.current=N.current({...r.current.floatingContext,tree:h,x:D.clientX,y:D.clientY,onClose(){R(),L(),A()||S(D,!0)}});const te=y.current;te(D),oe.addEventListener("mousemove",te),_.current=()=>{oe.removeEventListener("mousemove",te)};return}(g.current==="touch"?!fe(n.select("floatingElement"),D.relatedTarget):!0)&&S(D)}function ge(D){P(D)}return n.select("open")&&b.addEventListener("mouseleave",ge),f&&b.addEventListener("mousemove",I,{once:!0}),b.addEventListener("mouseenter",I),b.addEventListener("mouseleave",B),()=>{b.removeEventListener("mouseleave",ge),f&&b.removeEventListener("mousemove",I),b.removeEventListener("mouseenter",I),b.removeEventListener("mouseleave",B)}},[L,R,v,r,T,S,n,i,N,P,d,A,c,f,g,$,E,x,k,u,h,_,y]),K(()=>{function b(I){g.current=I.pointerType}return{onPointerDown:b,onPointerEnter:b,onMouseMove(I){const{nativeEvent:B}=I,ge=I.currentTarget,D=n.select("domReferenceElement"),Y=n.context.triggerElements,oe=n.select("open"),Q=(Y.hasElement(I.target)||Y.hasMatchingElement(te=>fe(te,I.target)))&&(!D||!fe(D,I.target));if(c&&!Yt(g.current)||oe&&!Q||jo($.current)===0||!Q&&x.current&&I.movementX**2+I.movementY**2<2)return;E.clear();function ee(){!v.current&&(!oe||Q)&&n.setOpen(!0,ke(ze,B,ge))}g.current==="touch"?Ze(()=>{ee()}):Q&&oe?ee():(x.current=!0,E.start(jo($.current),ee))}}},[v,c,n,g,$,E,x])}function La(e=[]){const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),o=e.map(l=>l==null?void 0:l.trigger),i=le(l=>ur(l,e,"reference"),t),s=le(l=>ur(l,e,"floating"),n),a=le(l=>ur(l,e,"item"),r),c=le(l=>ur(l,e,"trigger"),o);return K(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a,getTriggerProps:c}),[i,s,a,c])}function ur(e,t,n){var s;const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[Xr]="");for(const a in e)o&&e&&(a===_s||a===ws)||(i[a]=e[a]);for(let a=0;a<t.length;a+=1){let c;const l=(s=t[a])==null?void 0:s[n];typeof l=="function"?c=e?l(e):null:c=l,c&&Da(i,c,o,r)}return Da(i,e,o,r),i}function Da(e,t,n,r){var o;for(const i in t){const s=t[i];n&&(i===_s||i===ws)||(i.startsWith("on")?(r.has(i)||r.set(i,[]),typeof s=="function"&&((o=r.get(i))==null||o.push(s),e[i]=(...a)=>{var c;return(c=r.get(i))==null?void 0:c.map(l=>l(...a)).find(l=>l!==void 0)})):e[i]=s)}}const Jd=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Qd(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:c="dialog"}=t,l=Jt(),f=(i==null?void 0:i.id)||l,u=K(()=>{var w;return((w=Zr(s))==null?void 0:w.id)||o},[s,o]),p=Jd.get(c)??c,h=jt()!=null,g=K(()=>p==="tooltip"||c==="label"?je:{"aria-haspopup":p==="alertdialog"?"dialog":p,"aria-expanded":"false",...p==="listbox"&&{role:"combobox"},...p==="menu"&&h&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[p,h,c]),m=K(()=>p==="tooltip"||c==="label"?{[`aria-${c==="label"?"labelledby":"describedby"}`]:r?u:void 0}:{...g,"aria-expanded":r?"true":"false","aria-controls":r?u:void 0,...p==="menu"&&{id:f}},[p,u,r,f,c,g]),y=K(()=>{const w={id:u,...p&&{role:p}};return p==="tooltip"||c==="label"?w:{...w,...p==="menu"&&{"aria-labelledby":f}}},[p,u,f,c]),v=le(({active:w,selected:_})=>{const x={role:"option",...w&&{id:`${u}-fui-option`}};switch(c){case"select":case"combobox":return{...x,"aria-selected":_}}return{}},[u,c]);return K(()=>a?{reference:m,floating:y,item:v,trigger:g}:{},[a,m,y,g,v])}function $a(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[c,l]=t[s]||[0,0],[f,u]=t[a]||[0,0];l>=r!=u>=r&&n<=(f-c)*(r-l)/(u-l)+c&&(o=!o)}return o}function ep(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function tp(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new _t;let i=!1,s=null,a=null,c=typeof performance<"u"?performance.now():0;function l(u,p){const d=performance.now(),h=d-c;if(s===null||a===null||h===0)return s=u,a=p,c=d,null;const g=u-s,m=p-a,v=Math.sqrt(g*g+m*m)/h;return s=u,a=p,c=d,v}const f=({x:u,y:p,placement:d,elements:h,onClose:g,nodeId:m,tree:y})=>function(w){function _(){o.clear(),g()}if(o.clear(),!h.domReference||!h.floating||d==null||u==null||p==null)return;const{clientX:x,clientY:k}=w,E=[x,k],O=Ue(w),N=w.type==="mouseleave",T=fe(h.floating,O),$=fe(h.domReference,O),A=h.domReference.getBoundingClientRect(),S=h.floating.getBoundingClientRect(),L=d.split("-")[0],R=u>S.right-S.width/2,P=p>S.bottom-S.height/2,W=ep(E,A),b=S.width>A.width,I=S.height>A.height,B=(b?A:S).left,ge=(b?A:S).right,D=(I?A:S).top,Y=(I?A:S).bottom;if(T&&(i=!0,!N))return;if($&&(i=!1),$&&!N){i=!0;return}if(N&&ue(w.relatedTarget)&&fe(h.floating,w.relatedTarget)||y&&It(y.nodesRef.current,m).some(({context:ee})=>ee==null?void 0:ee.open))return;if(L==="top"&&p>=A.bottom-1||L==="bottom"&&p<=A.top+1||L==="left"&&u>=A.right-1||L==="right"&&u<=A.left+1)return _();let oe=[];switch(L){case"top":oe=[[B,A.top+1],[B,S.bottom-1],[ge,S.bottom-1],[ge,A.top+1]];break;case"bottom":oe=[[B,S.top+1],[B,A.bottom-1],[ge,A.bottom-1],[ge,S.top+1]];break;case"left":oe=[[S.right-1,Y],[S.right-1,D],[A.left+1,D],[A.left+1,Y]];break;case"right":oe=[[A.right-1,Y],[A.right-1,D],[S.left+1,D],[S.left+1,Y]];break}function Q([ee,te]){switch(L){case"top":{const G=[b?ee+t/2:R?ee+t*4:ee-t*4,te+t+1],xe=[b?ee-t/2:R?ee+t*4:ee-t*4,te+t+1],Re=[[S.left,R||b?S.bottom-t:S.top],[S.right,R?b?S.bottom-t:S.top:S.bottom-t]];return[G,xe,...Re]}case"bottom":{const G=[b?ee+t/2:R?ee+t*4:ee-t*4,te-t],xe=[b?ee-t/2:R?ee+t*4:ee-t*4,te-t],Re=[[S.left,R||b?S.top+t:S.bottom],[S.right,R?b?S.top+t:S.bottom:S.top+t]];return[G,xe,...Re]}case"left":{const G=[ee+t+1,I?te+t/2:P?te+t*4:te-t*4],xe=[ee+t+1,I?te-t/2:P?te+t*4:te-t*4];return[...[[P||I?S.right-t:S.left,S.top],[P?I?S.right-t:S.left:S.right-t,S.bottom]],G,xe]}case"right":{const G=[ee-t,I?te+t/2:P?te+t*4:te-t*4],xe=[ee-t,I?te-t/2:P?te+t*4:te-t*4],Re=[[P||I?S.left+t:S.right,S.top],[P?I?S.left+t:S.right:S.left+t,S.bottom]];return[G,xe,...Re]}default:return[]}}if(!$a([x,k],oe)){if(i&&!W)return _();if(!N&&r){const ee=l(w.clientX,w.clientY);if(ee!==null&&ee<.1)return _()}$a([x,k],Q([u,p]))?!i&&r&&o.start(40,_):_()}};return f.__options={blockPointerEvents:n},f}const No=He(void 0);process.env.NODE_ENV!=="production"&&(No.displayName="PopoverRootContext");function Rn(e){const t=Fe(No);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>.":dt(47));return t}function np(){return{...Vd(),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 rp={...Bd,disabled:se(e=>e.disabled),instantType:se(e=>e.instantType),openMethod:se(e=>e.openMethod),openChangeReason:se(e=>e.openChangeReason),modal:se(e=>e.modal),stickIfOpen:se(e=>e.stickIfOpen),titleElementId:se(e=>e.titleElementId),descriptionElementId:se(e=>e.descriptionElementId),openOnHover:se(e=>e.openOnHover),closeDelay:se(e=>e.closeDelay)};class Lo extends Ia{constructor(n){const r={...np(),...n};r.open&&(n==null?void 0:n.mounted)===void 0&&(r.mounted=!0);super(r,{popupRef:Ot(),backdropRef:Ot(),internalBackdropRef:Ot(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:Ot(),beforeContentFocusGuardRef:Ot(),stickIfOpenTimeout:new _t,triggerElements:new Ao},rp);ce(this,"setOpen",(n,r)=>{var f,u;const o=r.reason===ze,i=r.reason===bt&&r.event.detail===0,s=!n&&(r.reason===Ys||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},c=this.state.floatingRootContext.context.events;c==null||c.emit("openchange",a);const l=()=>{var h;const p={open:n,openChangeReason:r.reason},d=((h=r.trigger)==null?void 0:h.id)??null;(d||n)&&(p.activeTriggerId=d,p.activeTriggerElement=r.trigger??null),this.update(p)};o?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start($u,()=>{this.set("stickIfOpen",!1)}),Ze(l)):l(),i||s?this.set("instantType",i?"click":"dismiss"):r.reason===wn?this.set("instantType","focus"):this.set("instantType",void 0)});ce(this,"disposeEffect",()=>this.context.stickIfOpenTimeout.disposeEffect())}static useStore(n,r){const o=Qe(()=>n??new Lo(r)).current;return Kr(o.disposeEffect),o}}function op(e){const t=z(""),n=le(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:le(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 ip(e){const[t,n]=ye(null),r=Z((a,c)=>{e||n(c)}),o=le(()=>{n(null)},[]),{onClick:i,onPointerDown:s}=op(r);return K(()=>({openMethod:t,reset:o,triggerProps:{onClick:i,onPointerDown:s}}),[t,o,i,s])}function Ma({props:e}){const{children:t,open:n,defaultOpen:r=!1,onOpenChange:o,onOpenChangeComplete:i,modal:s=!1,handle:a,triggerId:c,defaultTriggerId:l=null}=e,f=Lo.useStore(a==null?void 0:a.store,{open:n??r,modal:s,activeTriggerId:c!==void 0?c:l});f.useControlledProp("open",n,r),f.useControlledProp("activeTriggerId",c,l);const u=f.useState("open"),p=f.useState("positionerElement"),d=f.useState("payload"),h=f.useState("openChangeReason");f.useContextCallback("onOpenChange",o),f.useContextCallback("onOpenChangeComplete",i);const{openMethod:g,triggerProps:m,reset:y}=ip(u);$d(f);const{forceUnmount:v}=Md(u,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null}),y()});Yl(u&&s===!0&&h!==ze&&g!=="touch",p),pe(()=>{u||f.context.stickIfOpenTimeout.clear()},[f,u]);const w=le(R=>{const P=ke(R);return P.preventUnmountOnClose=()=>{f.set("preventUnmountingOnClose",!0)},P},[f]),_=le(()=>{f.setOpen(!1,w(Hu))},[f,w]);$n(e.actionsRef,()=>({unmount:v,close:_}),[v,_]);const x=Wd({popupStore:f,onOpenChange:f.setOpen}),k=od(x,{outsidePressEvent:{mouse:s==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),E=Qd(x),{getReferenceProps:O,getFloatingProps:N,getTriggerProps:T}=La([k,E]),$=K(()=>O(m),[O,m]),A=K(()=>T(m),[T,m]),S=K(()=>N(),[N]);f.useSyncedValues({modal:s,openMethod:g,activeTriggerProps:$,inactiveTriggerProps:A,popupProps:S,floatingRootContext:x,nested:jt()!=null});const L=K(()=>({store:f}),[f]);return j(No.Provider,{value:L,children:typeof t=="function"?t({payload:d}):t})}function sp(e){return Rn(!0)?j(Ma,{props:e}):j(Du,{children:j(Ma,{props:e})})}let Do;process.env.NODE_ENV!=="production"&&(Do=new Set);function Fa(...e){if(process.env.NODE_ENV!=="production"){const t=e.join(" ");Do.has(t)||(Do.add(t),console.error(`Base UI: ${t}`))}}const Va=He(void 0);process.env.NODE_ENV!=="production"&&(Va.displayName="CompositeRootContext");function ap(e=!1){const t=Fe(Va);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>.":dt(16));return t}function cp(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:K(()=>{const l={onKeyDown(f){n&&t&&f.key!=="Tab"&&f.preventDefault()}};return r||(l.tabIndex=o,!i&&n&&(l.tabIndex=t?o:-1)),(i&&(t||s)||!i&&n)&&(l["aria-disabled"]=n),i&&(!t||a)&&(l.disabled=n),l},[r,n,t,s,a,i,o])}}function lp(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,i=z(null),s=ap(!0)!==void 0,a=Z(()=>{const p=i.current;return!!((p==null?void 0:p.tagName)==="A"&&(p!=null&&p.href))}),{props:c}=cp({focusableWhenDisabled:n,disabled:t,composite:s,tabIndex:r,isNativeButton:o});process.env.NODE_ENV!=="production"&&pe(()=>{if(!i.current)return;const p=i.current.tagName==="BUTTON";o?p||Fa("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&&Fa("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 l=le(()=>{const p=i.current;up(p)&&s&&t&&c.disabled===void 0&&p.disabled&&(p.disabled=!1)},[t,c.disabled,s]);ie(l,[l]);const f=le((p={})=>{const{onClick:d,onMouseDown:h,onKeyUp:g,onKeyDown:m,onPointerDown:y,...v}=p;return ea({type:o?"button":void 0,onClick(_){if(t){_.preventDefault();return}d==null||d(_)},onMouseDown(_){t||h==null||h(_)},onKeyDown(_){if(t||(go(_),m==null||m(_)),_.baseUIHandlerPrevented)return;const x=_.target===_.currentTarget&&!o&&!a()&&!t,k=_.key==="Enter",E=_.key===" ";x&&((E||k)&&_.preventDefault(),k&&(d==null||d(_)))},onKeyUp(_){t||(go(_),g==null||g(_)),!_.baseUIHandlerPrevented&&_.target===_.currentTarget&&!o&&!t&&_.key===" "&&(d==null||d(_))},onPointerDown(_){if(t){_.preventDefault();return}y==null||y(_)}},o?void 0:{role:"button"},c,v)},[t,c,o,a]),u=Z(p=>{i.current=p,l()});return{getButtonProps:f,buttonRef:u}}function up(e){return Se(e)&&e.tagName==="BUTTON"}let fr=function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e}({});const fp={[fr.startingStyle]:""},dp={[fr.endingStyle]:""},pp={transitionStatus(e){return e==="starting"?fp:e==="ending"?dp:null}};let $o=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=fr.startingStyle]="startingStyle",e[e.endingStyle=fr.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e}({}),Mo=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({});const hp={[Mo.popupOpen]:""},gp={[Mo.popupOpen]:"",[Mo.pressed]:""},mp={[$o.open]:""},vp={[$o.closed]:""},yp={[$o.anchorHidden]:""},_p={open(e){return e?hp:null}},wp={open(e){return e?gp:null}},Ba={open(e){return e?mp:vp},anchorHidden(e){return e?yp:null}},bp=300;function Ep(e){return Jt(e,"base-ui")}const Ha=Xe(function(t,n){const{render:r,className:o,disabled:i=!1,nativeButton:s=!0,handle:a,payload:c,openOnHover:l=!1,delay:f=bp,closeDelay:u=0,id:p,...d}=t,h=Rn(!0),g=(a==null?void 0:a.store)??(h==null?void 0:h.store);if(!g)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.":dt(74));const m=Ep(p),y=g.useState("isTriggerActive",m),v=g.useState("floatingRootContext"),w=g.useState("isOpenedByTrigger",m),_=z(null),{registerTrigger:x,isMountedByThisTrigger:k}=Dd(m,_,g,{payload:c,disabled:i,openOnHover:l,closeDelay:u}),E=g.useState("openChangeReason"),O=g.useState("stickIfOpen"),N=g.useState("openMethod"),T=Zd(v,{enabled:v!=null&&l&&(N!=="touch"||E!==bt),mouseOnly:!0,move:!1,handleClose:tp(),restMs:f,delay:{close:u},triggerElementRef:_,isActiveTrigger:y}),$=gf(v,{enabled:v!=null,stickIfOpen:O}),A=La([$]),S=g.useState("triggerProps",k),L=K(()=>({disabled:i,open:w}),[i,w]),{getButtonProps:R,buttonRef:P}=lp({disabled:i,native:s}),W=K(()=>({open(D){return D&&E===bt?wp.open(D):_p.open(D)}}),[E]),b=rr("button",t,{state:L,ref:[P,n,x,_],props:[A.getReferenceProps(),T,S,{[Ws]:"",id:m},d,R],stateAttributesMapping:W}),I=z(null),B=Z(D=>{Ze(()=>{g.setOpen(!1,ke(wn,D.nativeEvent,D.currentTarget))});const Y=Cu(I.current);Y==null||Y.focus()}),ge=Z(D=>{var oe;const Y=g.select("positionerElement");if(Y&&Zt(D,Y))(oe=g.context.beforeContentFocusGuardRef.current)==null||oe.focus();else{Ze(()=>{g.setOpen(!1,ke(wn,D.nativeEvent,D.currentTarget))});let Q=Tu(_.current);for(;Q!==null&&fe(Y,Q)||Q!=null&&Q.hasAttribute("aria-hidden");){const ee=Q;if(Q=io(Q),Q===ee)break}Q==null||Q.focus()}});return y?j(Ee,{children:[j(Nt,{ref:I,onFocus:B}),j(Ee,{children:b},m),j(Nt,{ref:g.context.triggerFocusTargetRef,onFocus:ge})]}):j(Ee,{children:b},m)});process.env.NODE_ENV!=="production"&&(Ha.displayName="PopoverTrigger");const Fo=He(void 0);process.env.NODE_ENV!=="production"&&(Fo.displayName="PopoverPortalContext");function xp(){const e=Fe(Fo);if(e===void 0)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: <Popover.Portal> is missing.":dt(45));return e}const Ua=Xe(function(t,n){const{keepMounted:r=!1,...o}=t,{store:i}=Rn();return i.useState("mounted")||r?j(Fo.Provider,{value:r,children:j(oa,{ref:n,...o,renderGuards:!1})}):null});process.env.NODE_ENV!=="production"&&(Ua.displayName="PopoverPortal");function Sp(e){return fo(19)?e:e?"true":void 0}const Vo=He(void 0);process.env.NODE_ENV!=="production"&&(Vo.displayName="PopoverPositionerContext");function kp(){const e=Fe(Vo);if(!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.":dt(46));return e}const Wa=He(void 0);process.env.NODE_ENV!=="production"&&(Wa.displayName="DirectionContext");function za(){const e=Fe(Wa);return(e==null?void 0:e.direction)??"ltr"}const Rp=e=>({name:"arrow",options:e,async fn(t){var I,B;const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:f=0,offsetParent:u="real"}=pt(e,t)||{};if(l==null)return{};const p=Ts(f),d={x:n,y:r},h=to(o),g=eo(h),m=await s.getDimensions(l),y=h==="y",v=y?"top":"left",w=y?"bottom":"right",_=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[h]-d[h]-i.floating[g],k=d[h]-i.reference[h],E=u==="real"?await((I=s.getOffsetParent)==null?void 0:I.call(s,l)):a.floating;let O=a.floating[_]||i.floating[g];(!O||!await((B=s.isElement)==null?void 0:B.call(s,E)))&&(O=a.floating[_]||i.floating[g]);const N=x/2-k/2,T=O/2-m[g]/2-1,$=Math.min(p[v],T),A=Math.min(p[w],T),S=$,L=O-m[g]-A,R=O/2-m[g]/2+N,P=Jr(S,R,L),W=!c.arrow&&wt(o)!=null&&R!==P&&i.reference[g]/2-(R<S?$:A)-m[g]/2<0,b=W?R<S?R-S:R-L:0;return{[h]:d[h]+b,data:{[h]:P,centerOffset:R-P-b,...W&&{alignmentOffset:b}},reset:W}}}),Op=(e,t)=>({...Rp(e),options:[e,t]}),Tp={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 td().fn(e)).data)==null?void 0:a.referenceHidden)||i}}}},dr={sideX:"left",sideY:"top"},Cp={name:"adaptiveOrigin",async fn(e){var v,w;const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:i,strategy:s,placement:a}=e,c=Te(o),l=c.getComputedStyle(o);if(!(l.transitionDuration!=="0s"&&l.transitionDuration!==""))return{x:t,y:n,data:dr};const u=await((v=i.getOffsetParent)==null?void 0:v.call(i,o));let p={width:0,height:0};if(s==="fixed"&&(c!=null&&c.visualViewport))p={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){const _=Wt(o);p={width:_.documentElement.clientWidth,height:_.documentElement.clientHeight}}else await((w=i.isElement)==null?void 0:w.call(i,u))&&(p=await i.getDimensions(u));const d=$e(a);let h=t,g=n;d==="left"&&(h=p.width-(t+r.width)),d==="top"&&(g=p.height-(n+r.height));const m=d==="left"?"right":dr.sideX,y=d==="top"?"bottom":dr.sideY;return{x:h,y:g,data:{sideX:m,sideY:y}}}};function Ya(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 qa(e,t,n){const{rects:r,placement:o}=e;return{side:Ya(t,$e(o),n),align:wt(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Pp(e){var $c,Mc;const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,collisionBoundary:a,collisionPadding:c=5,sticky:l=!1,arrowPadding:f=5,disableAnchorTracking:u=!1,keepMounted:p=!1,floatingRootContext:d,mounted:h,collisionAvoidance:g,shiftCrossAxis:m=!1,nodeId:y,adaptiveOrigin:v,lazyFlip:w=!1,externalTree:_}=e,[x,k]=ye(null);!h&&x!==null&&k(null);const E=g.side||"flip",O=g.align||"flip",N=g.fallbackAxisSide||"end",T=typeof t=="function"?t:void 0,$=Z(T),A=T?$:t,S=qe(t),R=za()==="rtl",P=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":R?"left":"right","inline-start":R?"right":"left"}[r],W=i==="center"?P:`${P}-${i}`;let b=c;const I=1,B=r==="bottom"?I:0,ge=r==="top"?I:0,D=r==="right"?I:0,Y=r==="left"?I:0;typeof b=="number"?b={top:b+B,right:b+Y,bottom:b+ge,left:b+D}:b&&(b={top:(b.top||0)+B,right:(b.right||0)+Y,bottom:(b.bottom||0)+ge,left:(b.left||0)+D});const oe={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:b},Q=z(null),ee=qe(o),te=qe(s),Re=[Xf(_e=>{const Ae=qa(_e,r,R),ot=typeof ee.current=="function"?ee.current(Ae):ee.current,Ye=typeof te.current=="function"?te.current(Ae):te.current;return{mainAxis:ot,crossAxis:Ye,alignmentAxis:Ye}},[typeof o!="function"?o:0,typeof s!="function"?s:0,R,r])],C=O==="none"&&E!=="shift",q=!C&&(l||m||E==="shift"),V=E==="none"?null:Qf({...oe,padding:{top:b.top+I,right:b.right+I,bottom:b.bottom+I,left:b.left+I},mainAxis:!m&&E==="flip",crossAxis:O==="flip"?"alignment":!1,fallbackAxisSideDirection:N}),Pe=C?null:Zf(_e=>{const Ae=Wt(_e.elements.floating).documentElement;return{...oe,rootBoundary:m?{x:0,y:0,width:Ae.clientWidth,height:Ae.clientHeight}:void 0,mainAxis:O!=="none",crossAxis:q,limiter:l||m?void 0:Jf(ot=>{if(!Q.current)return{};const{width:Ye,height:cn}=Q.current.getBoundingClientRect(),ln=We($e(ot.placement)),vr=ln==="y"?Ye:cn,ei=ln==="y"?b.left+b.right:b.top+b.bottom;return{offset:vr/2+ei/2}})}},[oe,l,m,b,O]);E==="shift"||O==="shift"||i==="center"?Re.push(Pe,V):Re.push(V,Pe),Re.push(ed({...oe,apply({elements:{floating:_e},rects:{reference:Ae},availableWidth:ot,availableHeight:Ye}){Object.entries({"--available-width":`${ot}px`,"--available-height":`${Ye}px`,"--anchor-width":`${Ae.width}px`,"--anchor-height":`${Ae.height}px`}).forEach(([cn,ln])=>{_e.style.setProperty(cn,ln)})}}),Op(()=>({element:Q.current||document.createElement("div"),padding:f,offsetParent:"floating"}),[f]),{name:"transformOrigin",fn(_e){var Vc,Bc,Hc;const{elements:Ae,middlewareData:ot,placement:Ye,rects:cn,y:ln}=_e,vr=$e(Ye),ei=We(vr),un=Q.current,Eh=((Vc=ot.arrow)==null?void 0:Vc.x)||0,xh=((Bc=ot.arrow)==null?void 0:Bc.y)||0,Sh=(un==null?void 0:un.clientWidth)||0,kh=(un==null?void 0:un.clientHeight)||0,ti=Eh+Sh/2,Fc=xh+kh/2,Rh=Math.abs(((Hc=ot.shift)==null?void 0:Hc.y)||0),Oh=cn.reference.height/2,An=typeof o=="function"?o(qa(_e,r,R)):o,Th=Rh>An,Ch={top:`${ti}px calc(100% + ${An}px)`,bottom:`${ti}px ${-An}px`,left:`calc(100% + ${An}px) ${Fc}px`,right:`${-An}px ${Fc}px`}[vr],Ph=`${ti}px ${cn.reference.y+Oh-ln}px`;return Ae.floating.style.setProperty("--transform-origin",q&&ei==="y"&&Th?Ph:Ch),{}}},Tp,v),ie(()=>{!h&&d&&d.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[h,d]);const ne=K(()=>({elementResize:!u&&typeof ResizeObserver<"u",layoutShift:!u&&typeof IntersectionObserver<"u"}),[u]),{refs:M,elements:H,x:J,y:re,middlewareData:ae,update:X,placement:U,context:be,isPositioned:me,floatingStyles:Ne}=Ud({rootContext:d,placement:W,middleware:Re,strategy:n,whileElementsMounted:p?void 0:(..._e)=>wa(..._e,ne),nodeId:y,externalTree:_}),{sideX:$t,sideY:an}=ae.adaptiveOrigin||dr,Ie=me?n:"fixed",Me=K(()=>v?{position:Ie,[$t]:J,[an]:re}:{position:Ie,...Ne},[v,Ie,$t,J,an,re,Ne]),Le=z(null);ie(()=>{if(!h)return;const _e=S.current,Ae=typeof _e=="function"?_e():_e,Ye=(Ka(Ae)?Ae.current:Ae)||null||null;Ye!==Le.current&&(M.setPositionReference(Ye),Le.current=Ye)},[h,M,A,S]),pe(()=>{if(!h)return;const _e=S.current;typeof _e!="function"&&Ka(_e)&&_e.current!==Le.current&&(M.setPositionReference(_e.current),Le.current=_e.current)},[h,M,A,S]),pe(()=>{if(p&&h&&H.domReference&&H.floating)return wa(H.domReference,H.floating,X,ne)},[p,h,H,X,ne]);const rt=$e(U),Ic=Ya(r,rt,R),jc=wt(U)||"center",Nc=!!(($c=ae.hide)!=null&&$c.referenceHidden);ie(()=>{w&&h&&me&&k(rt)},[w,h,me,rt]);const Lc=K(()=>{var _e,Ae;return{position:"absolute",top:(_e=ae.arrow)==null?void 0:_e.y,left:(Ae=ae.arrow)==null?void 0:Ae.x}},[ae.arrow]),Dc=((Mc=ae.arrow)==null?void 0:Mc.centerOffset)!==0;return K(()=>({positionerStyles:Me,arrowStyles:Lc,arrowRef:Q,arrowUncentered:Dc,side:Ic,align:jc,physicalSide:rt,anchorHidden:Nc,refs:M,context:be,isPositioned:me,update:X}),[Me,Lc,Q,Dc,Ic,jc,rt,Nc,M,be,me,X])}function Ka(e){return e!=null&&"current"in e}const Ga=Xe(function(t,n){const{cutout:r,...o}=t;let i;if(r){const s=r==null?void 0:r.getBoundingClientRect();i=`polygon(
|
|
43
|
+
0% 0%,
|
|
44
|
+
100% 0%,
|
|
45
|
+
100% 100%,
|
|
46
|
+
0% 100%,
|
|
47
|
+
0% 0%,
|
|
48
|
+
${s.left}px ${s.top}px,
|
|
49
|
+
${s.left}px ${s.bottom}px,
|
|
50
|
+
${s.right}px ${s.bottom}px,
|
|
51
|
+
${s.right}px ${s.top}px,
|
|
52
|
+
${s.left}px ${s.top}px
|
|
53
|
+
)`}return j("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"&&(Ga.displayName="InternalBackdrop");function Xa(e){return e==="starting"?Mu:je}const Za=Xe(function(t,n){const{render:r,className:o,anchor:i,positionMethod:s="absolute",side:a="bottom",align:c="center",sideOffset:l=0,alignOffset:f=0,collisionBoundary:u="clipping-ancestors",collisionPadding:p=5,arrowPadding:d=5,sticky:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:m=Fu,...y}=t,{store:v}=Rn(),w=xp(),_=Nu(),x=v.useState("floatingRootContext"),k=v.useState("mounted"),E=v.useState("open"),O=v.useState("openChangeReason"),N=v.useState("activeTriggerElement"),T=v.useState("modal"),$=v.useState("positionerElement"),A=v.useState("instantType"),S=v.useState("transitionStatus"),L=z(null),R=Po($,!1,!1),P=Pp({anchor:i,floatingRootContext:x,positionMethod:s,mounted:k,side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:d,collisionBoundary:u,collisionPadding:p,sticky:h,disableAnchorTracking:g,keepMounted:w,nodeId:_,collisionAvoidance:m,adaptiveOrigin:Cp}),W=K(()=>{const Y={};return E||(Y.pointerEvents="none"),{role:"presentation",hidden:!k,style:{...P.positionerStyles,...Y}}},[E,k,P.positionerStyles]),b=K(()=>({props:W,...P}),[W,P]),I=x==null?void 0:x.select("domReferenceElement");ie(()=>{const Y=I,oe=L.current;if(Y&&(L.current=Y),oe&&Y&&Y!==oe){v.set("instantType",void 0);const Q=new AbortController;return R(()=>{v.set("instantType","trigger-change")},Q.signal),()=>{Q.abort()}}},[I,R,v]);const B=K(()=>({open:E,side:b.side,align:b.align,anchorHidden:b.anchorHidden,instant:A}),[E,b.side,b.align,b.anchorHidden,A]),ge=le(Y=>{v.set("positionerElement",Y)},[v]),D=rr("div",t,{state:B,props:[b.props,Xa(S),y],ref:[n,ge],stateAttributesMapping:Ba});return j(Vo.Provider,{value:b,children:[k&&T===!0&&O!==ze&&j(Ga,{ref:v.context.internalBackdropRef,inert:Sp(!E),cutout:N}),j(Lu,{id:_,children:D})]})});process.env.NODE_ENV!=="production"&&(Za.displayName="PopoverPositioner");function Ja(e){const t=De(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r;return(Kt(n)!==i||Kt(r)!==s)&&(n=i,r=s),{width:n,height:r}}const Ap=typeof ResizeObserver<"u",Ip=()=>!0;function jp(e){const{popupElement:t,positionerElement:n,content:r,mounted:o,enabled:i=Ip,onMeasureLayout:s,onMeasureLayoutComplete:a,side:c,direction:l}=e,f=z(!0),u=Po(t,!0,!1),p=qn(),d=z(null),h=Z(s),g=Z(a),m=K(()=>{let y=c==="top",v=c==="left";return l==="rtl"?(y=y||c==="inline-end",v=v||c==="inline-end"):(y=y||c==="inline-start",v=v||c==="inline-start"),y?{position:"absolute",[c==="top"?"bottom":"top"]:"0",[v?"right":"left"]:"0"}:je},[c,l]);ie(()=>{if(!o||!i()||!Ap){f.current=!0,d.current=null;return}if(!t||!n)return;Object.entries(m).forEach(([N,T])=>{t.style.setProperty(N,T)});const y=new ResizeObserver(N=>{const T=N[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 v=On(t,"position","static"),w=On(t,"transform","none"),_=On(t,"scale","1"),x=On(n,"--available-width","max-content"),k=On(n,"--available-height","max-content");if(h==null||h(),f.current||d.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const N=Ja(t);return n.style.setProperty("--positioner-width",`${N.width}px`),n.style.setProperty("--positioner-height",`${N.height}px`),v(),w(),_(),x(),k(),g==null||g(null,N),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 E=Ja(t);t.style.setProperty("--popup-width",`${d.current.width}px`),t.style.setProperty("--popup-height",`${d.current.height}px`),v(),w(),x(),k(),g==null||g(d.current,E),n.style.setProperty("--positioner-width",`${E.width}px`),n.style.setProperty("--positioner-height",`${E.height}px`);const O=new AbortController;return p.request(()=>{t.style.setProperty("--popup-width",`${E.width}px`),t.style.setProperty("--popup-height",`${E.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,h,g,m])}function On(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const Qa="ArrowUp",ec="ArrowDown",tc="ArrowLeft",nc="ArrowRight",rc="Home",oc="End",Np=new Set([tc,nc]),Lp=new Set([Qa,ec]);[...new Set([...Np,...Lp])];const Dp=new Set([Qa,ec,tc,nc,rc,oc]),ic=He(void 0);process.env.NODE_ENV!=="production"&&(ic.displayName="ToolbarRootContext");function $p(e){const t=Fe(ic);if(t===void 0&&!e)throw new Error(process.env.NODE_ENV!=="production"?"Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.":dt(69));return t}const Mp={...Ba,...pp},sc=Xe(function(t,n){const{className:r,render:o,initialFocus:i,finalFocus:s,...a}=t,{store:c}=Rn(),l=kp(),f=$p(!0)!=null,u=za(),p=c.useState("open"),d=c.useState("openMethod"),h=c.useState("instantType"),g=c.useState("transitionStatus"),m=c.useState("popupProps"),y=c.useState("titleElementId"),v=c.useState("descriptionElementId"),w=c.useState("modal"),_=c.useState("mounted"),x=c.useState("openChangeReason"),k=c.useState("popupElement"),E=c.useState("payload"),O=c.useState("positionerElement"),N=c.useState("activeTriggerElement"),T=c.useState("floatingRootContext");ja({open:p,ref:c.context.popupRef,onComplete(){var D,Y;p&&((Y=(D=c.context).onOpenChangeComplete)==null||Y.call(D,!0))}});const $=c.useState("disabled"),A=c.useState("openOnHover"),S=c.useState("closeDelay");Kd(T,{enabled:A&&!$,closeDelay:S});function L(D){return D==="touch"?c.context.popupRef.current:!0}const R=i===void 0?L:i,P=K(()=>({open:p,side:l.side,align:l.align,instant:h,transitionStatus:g}),[p,l.side,l.align,h,g]),W=le(D=>{c.set("popupElement",D)},[c]);function b(){T.context.events.emit("measure-layout")}function I(D,Y){T.context.events.emit("measure-layout-complete",{previousDimensions:D,nextDimensions:Y})}const B=le(()=>c.context.triggerElements.size>1,[c]);jp({popupElement:k,positionerElement:O,mounted:_,content:E,enabled:B,onMeasureLayout:b,onMeasureLayoutComplete:I,side:l.side,direction:u});const ge=rr("div",t,{state:P,ref:[n,c.context.popupRef,W],props:[m,{"aria-labelledby":y,"aria-describedby":v,onKeyDown(D){f&&Dp.has(D.key)&&D.stopPropagation()}},Xa(g),a],stateAttributesMapping:Mp});return j(hf,{context:T,openInteractionType:d,modal:w==="trap-focus",disabled:!_||x===ze,initialFocus:R,returnFocus:s,restoreFocus:"popup",previousFocusableElement:Se(N)?N:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:ge})});process.env.NODE_ENV!=="production"&&(sc.displayName="PopoverPopup");function ac(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=ac(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function cc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ac(e))&&(r&&(r+=" "),r+=t);return r}const lc="inploi-job-alerts",Fp="ija",uc=["INSTANTLY","DAILY","WEEKLY","MONTHLY"];var Vp=["other","few","many","two","one","zero"],fc=({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,(c,l)=>{var f;return((f=s==null?void 0:s[l])==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 c=r.select(s.count);if(!(c in a)){const l=Vp.find(f=>f in a);if(!l)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=l}return a[c].replace(/{{(\w+)}}/g,(l,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},dc=He(null),Bp=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=K(()=>fc({locale:r,terms:e,overrides:t}),[t,r]);return j(dc.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=Fe(dc);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>fc({terms:e,overrides:t,locale:n})});const{TranslationProvider:Hp,useTranslation:Up,createTFunction:$h}=Bp({INSTANTLY:"Instantly",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"});var Wp=Symbol.for("preact-signals");function Bo(){if(nn>1)nn--;else{for(var e,t=!1;Tn!==void 0;){var n=Tn;for(Tn=void 0,Ho++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&hc(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Ho=0,nn--,t)throw e}}var he=void 0,Tn=void 0,nn=0,Ho=0,pr=0;function pc(e){if(he!==void 0){var t=e.n;if(t===void 0||t.t!==he)return t={i:0,S:e,p:he.s,n:void 0,t:he,e:void 0,x:void 0,r:t},he.s!==void 0&&(he.s.n=t),he.s=t,e.n=t,32&he.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=he.s,t.n=void 0,he.s.n=t,he.s=t),t}}function Ce(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}Ce.prototype.brand=Wp,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 Wo(function(){var n=t.value,r=he;he=void 0;try{e(n)}finally{he=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=he;he=void 0;try{return this.value}finally{he=e}},Object.defineProperty(Ce.prototype,"value",{get:function(){var e=pc(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ho>100)throw new Error("Cycle detected");this.v=e,this.i++,pr++,nn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Bo()}}}});function hr(e){return new Ce(e)}function hc(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 gc(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 mc(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 rn(e){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=pr-1,this.f=4}(rn.prototype=new Ce).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===pr))return!0;if(this.g=pr,this.f|=1,this.i>0&&!hc(this))return this.f&=-2,!0;var e=he;try{gc(this),he=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 he=e,mc(this),this.f&=-2,!0},rn.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)},rn.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)}},rn.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(rn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=pc(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function zp(e){return new rn(e)}function vc(e){var t=e.u;if(e.u=void 0,typeof t=="function"){nn++;var n=he;he=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Uo(e),r}finally{he=n,Bo()}}}function Uo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,vc(e)}function Yp(e){if(he!==this)throw new Error("Out-of-order effect");mc(this),he=e,this.f&=-2,8&this.f&&Uo(this),Bo()}function Cn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Cn.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()}},Cn.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,vc(this),gc(this),nn++;var e=he;return he=this,Yp.bind(this,e)},Cn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Tn,Tn=this)},Cn.prototype.d=function(){this.f|=8,1&this.f||Uo(this)};function Wo(e){var t=new Cn(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var zo;function on(e,t){F[e]=t.bind(null,F[e]||function(){})}function gr(e){zo&&zo(),zo=e&&e.S()}function yc(e){var t=this,n=e.data,r=Kp(n);r.value=n;var o=K(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var s;!ri(o.peek())&&((s=t.base)==null?void 0:s.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},zp(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return o.value}yc.displayName="_st",Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:yc},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),on("__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)}),on("__r",function(e,t){gr();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(o){var i;return Wo(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i}())),gr(n),e(t)}),on("__e",function(e,t,n,r){gr(),e(t,n,r)}),on("diffed",function(e,t){gr();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 c in r){var l=i[c],f=r[c];l===void 0?(l=qp(n,c,f,o),i[c]=l):l.o(f,o)}}}e(t)});function qp(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=hr(n);return{o:function(s,a){i.value=s,r=a},d:Wo(function(){var s=i.value.value;r[t]!==s&&(r[t]=s,o?e[t]=s:s?e.setAttribute(t,s):e.removeAttribute(t))})}}on("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)}),on("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),Be.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function Kp(e){return K(function(){return hr(e)},[])}const sn={config$:hr({headerText:"",label:""}),filters$:hr({})};var ht;function Gp(e){return{lang:(e==null?void 0:e.lang)??(ht==null?void 0:ht.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(ht==null?void 0:ht.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(ht==null?void 0:ht.abortPipeEarly)}}var Yo;function Xp(e){return Yo==null?void 0:Yo.get(e)}var qo;function Zp(e){return qo==null?void 0:qo.get(e)}var Ko;function Jp(e,t){var n;return(n=Ko==null?void 0:Ko.get(e))==null?void 0:n.get(t)}function _c(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 gt(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)??_c(i),c={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},l=e.kind==="schema",f=(o==null?void 0:o.message)??e.message??Jp(e.reference,c.lang)??(l?Zp(c.lang):null)??r.message??Xp(c.lang);f!==void 0&&(c.message=typeof f=="function"?f(c):f),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function xt(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Gp())}}}function Qp(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function wc(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}var eh=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function bc(e){return{kind:"validation",type:"email",reference:bc,expects:null,async:!1,requirement:eh,message:e,"~run"(t,n){return t.typed&&!this.requirement.test(t.value)&>(this,"email",t,n),t}}}function th(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function Ec(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function xc(e,t){return{kind:"schema",type:"array",reference:xc,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return xt(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],c=this.item["~run"]({value:a},r);if(c.issues){const l={type:"array",origin:"value",input:o,key:s,value:a};for(const f of c.issues)f.path?f.path.unshift(l):f.path=[l],(i=n.issues)==null||i.push(f);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else gt(this,"type",n,r);return n}}}function Go(e,t){return{kind:"schema",type:"object",reference:Go,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return xt(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 c=s in o?o[s]:Ec(a),l=a["~run"]({value:c},r);if(l.issues){const f={type:"object",origin:"value",input:o,key:s,value:c};for(const u of l.issues)u.path?u.path.unshift(f):u.path=[f],(i=n.issues)==null||i.push(u);if(n.issues||(n.issues=l.issues),r.abortEarly){n.typed=!1;break}}l.typed||(n.typed=!1),n.value[s]=l.value}else if(a.fallback!==void 0)n.value[s]=th(a);else if(a.type!=="exact_optional"&&a.type!=="optional"&&a.type!=="nullish"&&(gt(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 gt(this,"type",n,r);return n}}}function Pn(e,t){return{kind:"schema",type:"optional",reference:Pn,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return xt(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=Ec(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function Sc(e,t){return{kind:"schema",type:"picklist",reference:Sc,expects:wc(e.map(_c),"|"),async:!1,options:e,message:t,get"~standard"(){return xt(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:gt(this,"type",n,r),n}}}function kc(e,t,n){return{kind:"schema",type:"record",reference:kc,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return xt(this)},"~run"(r,o){var s,a;const i=r.value;if(i&&typeof i=="object"){r.typed=!0,r.value={};for(const c in i)if(Qp(i,c)){const l=i[c],f=this.key["~run"]({value:c},o);if(f.issues){const p={type:"object",origin:"key",input:i,key:c,value:l};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:l},o);if(u.issues){const p={type:"object",origin:"value",input:i,key:c,value:l};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 gt(this,"type",r,o);return r}}}function nt(e){return{kind:"schema",type:"string",reference:nt,expects:"string",async:!1,message:e,get"~standard"(){return xt(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:gt(this,"type",t,n),t}}}function Rc(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function Oc(e,t){return{kind:"schema",type:"union",reference:Oc,expects:wc(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return xt(this)},"~run"(n,r){let o,i,s;for(const a of this.options){const c=a["~run"]({value:n.value},r);if(c.typed)if(c.issues)i?i.push(c):i=[c];else{o=c;break}else s?s.push(c):s=[c]}if(o)return o;if(i){if(i.length===1)return i[0];gt(this,"type",n,r,{issues:Rc(i)}),n.typed=!0}else{if((s==null?void 0:s.length)===1)return s[0];gt(this,"type",n,r,{issues:Rc(s)})}return n}}}function Tc(...e){return{...e[0],pipe:e,get"~standard"(){return xt(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}}}const nh={pathname:"/search/save",method:"POST",schema:{response:kt(),body:Go({contact:Go({email:Tc(Pn(nt()),nt(),bc()),first_name:Pn(nt()),last_name:Pn(nt())}),alerts:Tc(Pn(nt()),nt(),Sc(uc)),filters:kc(nt(),Oc([nt(),xc(nt())]))})}};var rh=["1","2","3","4","5","6","7","8","9","10","11","12"],oh={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]}},ih=(e,t=1,n)=>r=>{const[o,i]=oh[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},Cc=e=>{const t=ih(e.hue,e.chroma,e.mode);return Object.fromEntries(rh.map(n=>[e.prefix+n,e.transform(t(n))]))},Pc=e=>e,sh=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)},mr=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Xo=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(mr(e)&&mr(n))for(const r in n){const o=n[r];if(mr(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];mr(i)&&Xo(i,o)}else Object.assign(e,{[r]:n[r]})}return Xo(e,...t)},ah=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},ch=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,s=p=>i("reference",p.toString()),a=e({theme:o}),c=t({theme:o,core:s,raw:{core:a}}),l=n({theme:o,core:s,semantic:s,raw:{core:a,semantic:c}}),f=sh(Xo(a,c,l)),u=([p,d],h)=>{const g=[h,p].filter(Boolean).join(".");return typeof d=="object"?Object.entries(d).flatMap(m=>u(m,g)):[[r.getToken("declaration",g),d]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(p=>u(p))),ref:p=>i("reference",p.toString())}}})})})});const[Zo,Jo,lh]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],uh=ch().core(({theme:e})=>({color:{transparent:lh,black:Zo,white:Jo,lowest:e.mode==="light"?Jo:Zo,highest:e.mode==="light"?Zo:Jo,...Cc({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:Pc}),...Cc({prefix:"n-",hue:e.accent.hue,chroma:.05,mode:e.mode,transform:Pc})},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(()=>({})),fh=ah({prefix:"i-"}),dh=e=>{const t=uh.from({theme:e,getToken:fh}),n=Object.entries(t.declarations).map(([r,o])=>`${r}: ${o};`);return`#${Fp} {
|
|
42
54
|
${n.concat(n).join(`
|
|
43
55
|
`)}
|
|
44
|
-
}`},Ni=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t},Ml=({error:e})=>e?k("div",{role:"alert",class:"flex max-w-full items-start gap-1.5 px-2 py-2 text-[#E5484D]",children:[k("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:[k("circle",{cx:"8",cy:"8",r:"6.3",stroke:"currentColor","stroke-width":"1.4"}),k("rect",{x:"7",y:"4",width:"2",height:"5",fill:"currentColor"}),k("rect",{x:"7",y:"10",width:"2",height:"2",fill:"currentColor"})]}),k("p",{class:"pr-1 text-sm",children:e})]}):null,tr="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]",Il=e=>typeof e=="string"?e:typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"?e.message:"Failed to create alert. Please try again later.",Ul=K(({class:e,...t},n)=>k("button",{ref:n,class:Hn("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:Li,...t,children:[k(Sr,{class:"flex-none",name:"bell"})," ",k("span",{class:"min-w-0 truncate text-center",children:Je.config$.value.label})]})),Wl=()=>k("p",{class:"text-neutral-11 px-2 pb-4 pt-1 text-sm",children:Je.config$.value.headerText});function Li(){}const Hl=({theme:e,rpcClient:t,logger:n,analytics:r})=>{const[o,i]=L("idle"),[a,s]=L(),{t:c}=hl();return k("div",{id:"ija",children:k("div",{class:Ni(e).join(" "),children:k(al,{children:[k(sl,{asChild:!0,children:k(Ul,{})}),k(cl,{children:k("div",{id:"ija",children:k("div",{class:Hn("absolute isolate z-50",Ni(e).join(" ")),children:k(ll,{collisionPadding:16,class:"data-[state=open]:data-[side=top]:animate-slideDownAndFade data-[state=open]:data-[side=right]:animate-slideLeftAndFade data-[state=open]:data-[side=bottom]:animate-slideUpAndFade data-[state=open]:data-[side=left]:animate-slideRightAndFade bg-lowest ring-neutral-5 shadow-surface-lg isolate w-64 max-w-[var(--radix-popover-content-available-width)] rounded-lg p-2 ring-1 will-change-[transform,opacity]",sideOffset:5,children:[k(Wl,{}),k("form",{onSubmit:async u=>{var _,m,w,y;if(u.preventDefault(),o!=="idle")return;const f=new FormData(u.currentTarget),l=(_=f.get("name"))==null?void 0:_.toString(),[p,...d]=(l==null?void 0:l.split(" "))??[],v=d.join(" "),h=(m=f.get("email"))==null?void 0:m.toString();i("loading"),r.log({event:"IDENTIFY",properties:{identifier:"job_alerts",email:h,first_name:p,last_name:v}}),await Promise.all([new Promise(g=>setTimeout(g,1e3)),t.request(Cl,{body:{contact:{email:(w=f.get("email"))==null?void 0:w.toString(),first_name:p,last_name:v},alerts:(y=f.get("frequency"))==null?void 0:y.toString(),filters:Je.filters$.peek()}})]).then(async()=>{i("success"),await new Promise(g=>setTimeout(g,1e3)),i("idle")}).catch(g=>{n.error(g),s(Il(g)),i("idle")})},class:"flex flex-col gap-2.5",children:[k("div",{children:[k("fieldset",{class:"fieldset relative focus-within:z-10",children:[k("label",{class:"sr-only",htmlFor:"ija-email",children:c("email")}),k("input",{name:"email",autocomplete:"email",class:tr,disabled:o==="loading",id:"ija-email",placeholder:c("email_placeholder"),type:"email",required:!0})]}),k("fieldset",{class:"fieldset relative focus-within:z-10",children:[k("label",{class:"sr-only",htmlFor:"ija-name",children:c("name")}),k("input",{disabled:o==="loading",name:"name",required:!0,autocomplete:"name",class:tr,id:"ija-name",placeholder:c("name_placeholder")})]}),k("fieldset",{class:"fieldset relative focus-within:z-10",children:[k("label",{class:"sr-only",htmlFor:"ija-frequency",children:c("frequency")}),k("select",{disabled:o==="loading",class:Hn(tr,"appearance-none pr-8"),id:"ija-frequency",defaultValue:"WEEKLY",name:"frequency",children:hi.map(u=>k("option",{value:u,children:c(u)}))}),k("div",{class:"text-neutral-10 absolute bottom-0 right-0 top-0 flex items-center p-1","aria-hidden":!0,children:k(Sr,{name:"chevron-up-down"})})]})]}),k("button",{onTouchStart:Li,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:[k("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:c("create_alert")}),k("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:k("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:[k("circle",{class:"loading-circle duration-snappy ease-expo-out transition-all",cx:"12",cy:"12",r:"9"}),k("path",{class:"done-checkmark",d:"M9 12L11 14L15 10"})]})})]}),k(Ml,{error:a})]})]})})})})]})})})},zl=`#ija{font-size:16px;--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 *,#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 .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 .z-50{z-index:50}#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\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-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 .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 .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 .text-\\[\\#E5484D\\]{--tw-text-opacity: 1;color:rgb(229 72 77 / var(--tw-text-opacity))}#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 .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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;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-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}#ija .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}#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 .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))}@keyframes slideUpAndFade{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}#ija .data-\\[state\\=open\\]\\:data-\\[side\\=bottom\\]\\:animate-slideUpAndFade[data-side=bottom][data-state=open]{animation:slideUpAndFade .4s cubic-bezier(.16,1,.3,1)}@keyframes slideRightAndFade{0%{opacity:0;transform:translate(-2px)}to{opacity:1;transform:translate(0)}}#ija .data-\\[state\\=open\\]\\:data-\\[side\\=left\\]\\:animate-slideRightAndFade[data-side=left][data-state=open]{animation:slideRightAndFade .4s cubic-bezier(.16,1,.3,1)}@keyframes slideLeftAndFade{0%{opacity:0;transform:translate(2px)}to{opacity:1;transform:translate(0)}}#ija .data-\\[state\\=open\\]\\:data-\\[side\\=right\\]\\:animate-slideLeftAndFade[data-side=right][data-state=open]{animation:slideLeftAndFade .4s cubic-bezier(.16,1,.3,1)}@keyframes slideDownAndFade{0%{opacity:0;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}#ija .data-\\[state\\=open\\]\\:data-\\[side\\=top\\]\\:animate-slideDownAndFade[data-side=top][data-state=open]{animation:slideDownAndFade .4s cubic-bezier(.16,1,.3,1)}#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)}
|
|
45
|
-
`,
|
|
56
|
+
}`},ph=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t},hh=({error:e})=>e?j("div",{role:"alert",class:"flex max-w-full items-start gap-1.5 px-2 py-2 text-[#E5484D]",children:[j("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:[j("circle",{cx:"8",cy:"8",r:"6.3",stroke:"currentColor","stroke-width":"1.4"}),j("rect",{x:"7",y:"4",width:"2",height:"5",fill:"currentColor"}),j("rect",{x:"7",y:"10",width:"2",height:"2",fill:"currentColor"})]}),j("p",{class:"pr-1 text-sm",children:e})]}):null,Qo="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]",gh=e=>typeof e=="string"?e:typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"?e.message:"Failed to create alert. Please try again later.",mh=Xe(({class:e,...t},n)=>j("button",{ref:n,class:cc("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:Ac,...t,children:[j(ki,{class:"flex-none",name:"bell"})," ",j("span",{class:"min-w-0 truncate text-center",children:sn.config$.value.label})]})),vh=()=>j("p",{class:"text-neutral-11 px-2 pb-4 pt-1 text-sm",children:sn.config$.value.headerText});function Ac(){}const yh=({theme:e,rpcClient:t,logger:n,analytics:r})=>{const[o,i]=ye("idle"),[s,a]=ye(),{t:c}=Up();return j("div",{id:"ija",children:j("div",{class:ph(e).join(" "),children:j(sp,{children:[j(Ha,{render:j(mh,{})}),j(Ua,{children:j("div",{id:"ija",children:j(Za,{sideOffset:5,collisionPadding:16,side:"bottom",children:j(sc,{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:[j(vh,{}),j("form",{onSubmit:async l=>{var m,y,v,w;if(l.preventDefault(),o!=="idle")return;const f=new FormData(l.currentTarget),u=(m=f.get("name"))==null?void 0:m.toString(),[p,...d]=(u==null?void 0:u.split(" "))??[],h=d.join(" "),g=(y=f.get("email"))==null?void 0:y.toString();i("loading"),r.log({event:"IDENTIFY",properties:{identifier:"job_alerts",email:g,first_name:p,last_name:h}}),await Promise.all([new Promise(_=>setTimeout(_,1e3)),t.request(nh,{body:{contact:{email:(v=f.get("email"))==null?void 0:v.toString(),first_name:p,last_name:h},alerts:(w=f.get("frequency"))==null?void 0:w.toString(),filters:sn.filters$.peek()}})]).then(async()=>{i("success"),await new Promise(_=>setTimeout(_,1e3)),i("idle")}).catch(_=>{n.error(_),a(gh(_)),i("idle")})},class:"flex flex-col gap-2.5",children:[j("div",{children:[j("fieldset",{class:"fieldset relative focus-within:z-10",children:[j("label",{class:"sr-only",htmlFor:"ija-email",children:c("email")}),j("input",{name:"email",autocomplete:"email",class:Qo,disabled:o==="loading",id:"ija-email",placeholder:c("email_placeholder"),type:"email",required:!0})]}),j("fieldset",{class:"fieldset relative focus-within:z-10",children:[j("label",{class:"sr-only",htmlFor:"ija-name",children:c("name")}),j("input",{disabled:o==="loading",name:"name",required:!0,autocomplete:"name",class:Qo,id:"ija-name",placeholder:c("name_placeholder")})]}),j("fieldset",{class:"fieldset relative focus-within:z-10",children:[j("label",{class:"sr-only",htmlFor:"ija-frequency",children:c("frequency")}),j("select",{disabled:o==="loading",class:cc(Qo,"appearance-none pr-8"),id:"ija-frequency",defaultValue:"WEEKLY",name:"frequency",children:uc.map(l=>j("option",{value:l,children:c(l)}))}),j("div",{class:"text-neutral-10 absolute bottom-0 right-0 top-0 flex items-center p-1","aria-hidden":!0,children:j(ki,{name:"chevron-up-down"})})]})]}),j("button",{onTouchStart:Ac,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:[j("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:c("create_alert")}),j("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:j("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:[j("circle",{class:"loading-circle duration-snappy ease-expo-out transition-all",cx:"12",cy:"12",r:"9"}),j("path",{class:"done-checkmark",d:"M9 12L11 14L15 10"})]})})]}),j(hh,{error:s})]})]})})})})]})})})},_h=`#ija{font-size:16px;--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 *,#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 .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 .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 .text-\\[\\#E5484D\\]{--tw-text-opacity: 1;color:rgb(229 72 77 / var(--tw-text-opacity))}#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 .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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-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 .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)}
|
|
57
|
+
`,wh=(()=>({getRenderTargetElement:()=>{const e=document.body.querySelector(`#${lc}`);if(!e)throw new Error(`Element with id ${lc} not found.`);return e}}))(),bh=()=>it(({rpcClient:e,logger:t,analytics:n})=>{let r=!1;const o=({params:a})=>we(Hp,{terms:a.terms,locale:void 0},[[we("style",{id:"inploi-job-alerts-styles"},_h),we("style",{id:"inploi-job-search-theme"},dh(a.theme))],we(il,{theme:a.theme}),we(yh,{theme:a.theme,rpcClient:e,logger:t,analytics:n})]),i=a=>sn.filters$.value=a,s=a=>sn.config$.value=typeof a=="function"?a(sn.config$.peek()):a;return{prerender:async a=>(r=!0,i(a.initialFilters),{html:tl(we(Ee,{},we(o,{params:a})))}),render:async a=>{const c=r?kr:Ft;St(typeof window<"u","the `render` method of JobSearch cannot be called in non-browser environments. Use `prerender` instead."),i(a.initialFilters),s(a.config),c(we(o,{params:a}),wh.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=bh})();
|