@inploi/plugin-job-search 3.3.0 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,60 @@
1
+ "use strict";var $c=Object.defineProperty;var Ec=(e,t,n)=>t in e?$c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Uo=(e,t,n)=>(Ec(e,typeof t!="symbol"?t+"":t,n),n);const ut=require("@inploi/sdk");var yt=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function pa(e,t){if(!e)throw new Error(t)}function Cc(e,t){return e in t}var Wo={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},Sc=e=>{const{salary:t,config:n,t:r=a=>a}=e,o=new Intl.NumberFormat(n.locales,{style:"currency",currency:t.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(t.pay_display===!1||t.pay===null&&t.pay_min===null&&t.pay_max===null)return;if(t.pay_mask)return r("competitive");if(t.pay_max&&Number.isNaN(+t.pay_max)||t.pay_min&&Number.isNaN(+t.pay_min)||t.pay&&Number.isNaN(+t.pay))return r("invalid_salary");const i=t.pay_type&&t.pay_type in Wo?Wo[t.pay_type]:void 0;return t.pay?[o.format(+t.pay),i].filter(Boolean).join(" "):t.pay_max&&t.pay_min?[o.formatRange(+t.pay_min,+t.pay_max),i].filter(Boolean).join(" ")||"":t.pay_max?`${r("up_to")} ${[o.format(+t.pay_max),i].filter(Boolean).join(" ")}`:t.pay_min?`${r("from")} ${[o.format(+t.pay_min),i].filter(Boolean).join(" ")}`:r("invalid_salary")},Oc=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),Tc=({from:e=new Date,to:t,formatter:n=Oc,t:r=o=>o})=>{const i=(t instanceof Date?t:new Date(t)).getTime()-e.getTime(),a={days:Math.round(i/1e3/60/60/24),months:Math.round(i/1e3/60/60/24/30)};return a.days===0?r("today"):Math.abs(a.days)<30?n.format(a.days,"days"):Math.abs(a.days)<3?n.format(a.months,"months"):a.months<0?r("over_30_days_ago"):r("in_over_30_days")},en;exports.l=void 0;var ha,st,zo,va,ga,ma,oo,Dr,Nr,_a,Bt={},ya=[],kc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wn=Array.isArray;function Me(e,t){for(var n in t)e[n]=t[n];return e}function io(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function S(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?en.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 Wt(e,a,r,o,null)}function Wt(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??++ha,__i:-1,__u:0};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function ba(){return{current:null}}function L(e){return e.children}function he(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(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"?Et(e):null}function wa(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 wa(e)}}function Mr(e){(!e.__d&&(e.__d=!0)&&st.push(e)&&!Rn.__r++||zo!==exports.l.debounceRendering)&&((zo=exports.l.debounceRendering)||va)(Rn)}function Rn(){for(var e,t,n,r,o,i,a,s=1;st.length;)st.length>s&&st.sort(ga),e=st.shift(),s=st.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Me({},r)).__v=r.__v+1,exports.l.vnode&&exports.l.vnode(n),ao(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Et(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Ea(i,n,a),n.__e!=o&&wa(n)));Rn.__r=0}function xa(e,t,n,r,o,i,a,s,c,u,p){var l,h,f,m,v,_,g=r&&r.__k||ya,b=t.length;for(c=Ac(n,t,g,c,b),l=0;l<b;l++)(f=n.__k[l])!=null&&(h=f.__i===-1?Bt:g[f.__i]||Bt,f.__i=l,_=ao(e,f,h,o,i,a,s,c,u,p),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&so(h.ref,null,f),p.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||h.__k===f.__k?c=$a(f,c,e):typeof f.type=="function"&&_!==void 0?c=_:m&&(c=m.nextSibling),f.__u&=-7);return n.__e=v,c}function Ac(e,t,n,r,o){var i,a,s,c,u,p=n.length,l=p,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Wt(null,a,null,null,null):Wn(a)?Wt(L,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Wt(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=Pc(a,n,c,l))!==-1&&(l--,(s=n[u])&&(s.__u|=2)),s==null||s.__v===null?(u==-1&&(o>p?h--:o<p&&h++),typeof a.type!="function"&&(a.__u|=4)):u!=c&&(u==c-1?h--:u==c+1?h++:(u>c?h--:h++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<p;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Et(s)),Ca(s,s));return r}function $a(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=$a(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Et(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Le(e,t){return t=t||[],e==null||typeof e=="boolean"||(Wn(e)?e.some(function(n){Le(n,t)}):t.push(e)),t}function Pc(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 Bo(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||kc.test(t)?n:n+"px"}function dn(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||Bo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Bo(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ma,"$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=oo,e.addEventListener(t,i?Nr:Dr,i)):e.removeEventListener(t,i?Nr:Dr,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 qo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=oo++;else if(t.t<n.u)return;return n(exports.l.event?exports.l.event(t):t)}}}function ao(e,t,n,r,o,i,a,s,c,u){var p,l,h,f,m,v,_,g,b,w,y,x,$,C,E,O,P,M,D=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(p=exports.l.__b)&&p(t);e:if(typeof D=="function")try{if(g=t.props,b="prototype"in D&&D.prototype.render,w=(p=D.contextType)&&r[p.__c],y=p?w?w.props.value:p.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:(b?t.__c=l=new D(g,y):(t.__c=l=new he(g,y),l.constructor=D,l.render=Dc),w&&w.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,h=l.__d=!0,l.__h=[],l._sb=[]),b&&l.__s==null&&(l.__s=l.state),b&&D.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Me({},l.__s)),Me(l.__s,D.getDerivedStateFromProps(g,l.__s))),f=l.props,m=l.state,l.__v=t,h)b&&D.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),b&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(b&&D.getDerivedStateFromProps==null&&g!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,y),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,y)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(F){F&&(F.__=t)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,y),b&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,m,v)})}if(l.context=y,l.props=g,l.__P=e,l.__e=!1,$=exports.l.__r,C=0,b){for(l.state=l.__s,l.__d=!1,$&&$(t),p=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,$&&$(t),p=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++C<25);l.state=l.__s,l.getChildContext!=null&&(r=Me(Me({},r),l.getChildContext())),b&&!h&&l.getSnapshotBeforeUpdate!=null&&(v=l.getSnapshotBeforeUpdate(f,m)),P=(O=p!=null&&p.type===L&&p.key==null)?p.props.children:p,O&&(p.props.children=null),s=xa(e,Wn(P)?P:[P],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(F){if(t.__v=null,c||i!=null)if(F.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(M=i.length;M--;)io(i[M]);else t.__e=n.__e,t.__k=n.__k;exports.l.__e(F,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Rc(n.__e,t,n,r,o,i,a,c,u);return(p=exports.l.diffed)&&p(t),128&t.__u?void 0:s}function Ea(e,t,n){for(var r=0;r<n.length;r++)so(n[r],n[++r],n[++r]);exports.l.__c&&exports.l.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){exports.l.__e(i,o.__v)}})}function Rc(e,t,n,r,o,i,a,s,c){var u,p,l,h,f,m,v,_=n.props,g=t.props,b=t.type;if(b=="svg"?o="http://www.w3.org/2000/svg":b=="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((f=i[u])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,i[u]=null;break}}if(e==null){if(b==null)return document.createTextNode(g);e=document.createElementNS(o,b,g.is&&g),s&&(exports.l.__m&&exports.l.__m(t,i),s=!1),i=null}if(b===null)_===g||s&&e.data===g||(e.data=g);else{if(i=i&&en.call(e.childNodes),_=n.props||Bt,!s&&i!=null)for(_={},u=0;u<e.attributes.length;u++)_[(f=e.attributes[u]).name]=f.value;for(u in _)if(f=_[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=f;else if(!(u in g)){if(u=="value"&&"defaultValue"in g||u=="checked"&&"defaultChecked"in g)continue;dn(e,u,null,f,o)}}for(u in g)f=g[u],u=="children"?h=f:u=="dangerouslySetInnerHTML"?p=f:u=="value"?m=f:u=="checked"?v=f:s&&typeof f!="function"||_[u]===f||dn(e,u,f,_[u],o);if(p)s||l&&(p.__html===l.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(l&&(e.innerHTML=""),xa(t.type==="template"?e.content:e,Wn(h)?h:[h],t,n,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Et(n,0),s,c),i!=null)for(u=i.length;u--;)io(i[u]);s||(u="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||b=="progress"&&!m||b=="option"&&m!==_[u])&&dn(e,u,m,_[u],o),u="checked",v!==void 0&&v!==e[u]&&dn(e,u,v,_[u],o))}return e}function so(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){exports.l.__e(o,n)}}function Ca(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||so(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){exports.l.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ca(r[o],t,n||typeof e.type!="function");n||io(e.__e),e.__c=e.__=e.__e=void 0}function Dc(e,t,n){return this.constructor(e,n)}function Ct(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],ao(t,e=(!r&&n||t).__k=S(L,null,[e]),o||Bt,Bt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?en.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Ea(i,e,a)}function co(e,t){Ct(e,t,co)}function Nc(e,t,n){var r,o,i,a,s=Me({},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?en.call(arguments,2):n),Wt(e.type,s,r||e.key,o||e.ref,null)}function dt(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,Mr(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"+_a++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}en=ya.slice,exports.l={__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}},ha=0,he.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Me({},this.state),typeof e=="function"&&(e=e(Me({},n),this.props)),e&&Me(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Mr(this))},he.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mr(this))},he.prototype.render=L,st=[],va=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ga=function(e,t){return e.__v.__b-t.__v.__b},Rn.__r=0,ma=/(PointerCapture)$|Capture$/i,oo=0,Dr=qo(!1),Nr=qo(!0),_a=0;var De;function Sa(e){return{lang:(e==null?void 0:e.lang)??(De==null?void 0:De.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(De==null?void 0:De.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(De==null?void 0:De.abortPipeEarly)}}var sr;function Mc(e){return sr==null?void 0:sr.get(e)}var cr;function Lc(e){return cr==null?void 0:cr.get(e)}var lr;function Ic(e,t){var n;return(n=lr==null?void 0:lr.get(e))==null?void 0:n.get(t)}function lo(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 ve(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)??lo(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",p=(o==null?void 0:o.message)??e.message??Ic(e.reference,c.lang)??(u?Lc(c.lang):null)??r.message??Mc(c.lang);p!==void 0&&(c.message=typeof p=="function"?p(c):p),u&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function ae(e){return{version:1,vendor:"valibot",validate(t){return e["~run"]({value:t},Sa())}}}function jc(e,t){return Object.hasOwn(e,t)&&t!=="__proto__"&&t!=="prototype"&&t!=="constructor"}function Oa(e,t){const n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??"never"}function fe(e){return{kind:"transformation",type:"transform",reference:fe,async:!1,operation:e,"~run"(t){return t.value=this.operation(t.value),t}}}function Ta(e){return{kind:"validation",type:"url",reference:Ta,async:!1,expects:null,requirement(t){try{return new URL(t),!0}catch{return!1}},message:e,"~run"(t,n){return t.typed&&!this.requirement(t.value)&&ve(this,"URL",t,n),t}}}function Fc(e,t,n){return typeof e.fallback=="function"?e.fallback(t,n):e.fallback}function uo(e,t,n){return typeof e.default=="function"?e.default(t,n):e.default}function Lr(){return{kind:"schema",type:"any",reference:Lr,expects:"any",async:!1,get"~standard"(){return ae(this)},"~run"(e){return e.typed=!0,e}}}function tn(e,t){return{kind:"schema",type:"array",reference:tn,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return ae(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 p of c.issues)p.path?p.path.unshift(u):p.path=[u],(i=n.issues)==null||i.push(p);if(n.issues||(n.issues=c.issues),r.abortEarly){n.typed=!1;break}}c.typed||(n.typed=!1),n.value.push(c.value)}}else ve(this,"type",n,r);return n}}}function Dn(e){return{kind:"schema",type:"boolean",reference:Dn,expects:"boolean",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="boolean"?t.typed=!0:ve(this,"type",t,n),t}}}function ct(e,t){return{kind:"schema",type:"literal",reference:ct,expects:lo(e),async:!1,literal:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===this.literal?n.typed=!0:ve(this,"type",n,r),n}}}function oe(e,t){return{kind:"schema",type:"nullable",reference:oe,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===null&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===null)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function be(e){return{kind:"schema",type:"number",reference:be,expects:"number",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:ve(this,"type",t,n),t}}}function le(e,t){return{kind:"schema",type:"object",reference:le,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return ae(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]:uo(s),u=s["~run"]({value:c},r);if(u.issues){const p={type:"object",origin:"value",input:o,key:a,value:c};for(const l of u.issues)l.path?l.path.unshift(p):l.path=[p],(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]=Fc(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(ve(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 ve(this,"type",n,r);return n}}}function Ye(e,t){return{kind:"schema",type:"optional",reference:Ye,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return ae(this)},"~run"(n,r){return n.value===void 0&&(this.default!==void 0&&(n.value=uo(this,n,r)),n.value===void 0)?(n.typed=!0,n):this.wrapped["~run"](n,r)}}}function ka(e,t){return{kind:"schema",type:"picklist",reference:ka,expects:Oa(e.map(lo),"|"),async:!1,options:e,message:t,get"~standard"(){return ae(this)},"~run"(n,r){return this.options.includes(n.value)?n.typed=!0:ve(this,"type",n,r),n}}}function fo(e,t,n){return{kind:"schema",type:"record",reference:fo,expects:"Object",async:!1,key:e,value:t,message:n,get"~standard"(){return ae(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(jc(i,c)){const u=i[c],p=this.key["~run"]({value:c},o);if(p.issues){const h={type:"object",origin:"key",input:i,key:c,value:u};for(const f of p.issues)f.path=[h],(a=r.issues)==null||a.push(f);if(r.issues||(r.issues=p.issues),o.abortEarly){r.typed=!1;break}}const l=this.value["~run"]({value:u},o);if(l.issues){const h={type:"object",origin:"value",input:i,key:c,value:u};for(const f of l.issues)f.path?f.path.unshift(h):f.path=[h],(s=r.issues)==null||s.push(f);if(r.issues||(r.issues=l.issues),o.abortEarly){r.typed=!1;break}}(!p.typed||!l.typed)&&(r.typed=!1),p.typed&&(r.value[p.value]=l.value)}}else ve(this,"type",r,o);return r}}}function K(e){return{kind:"schema",type:"string",reference:K,expects:"string",async:!1,message:e,get"~standard"(){return ae(this)},"~run"(t,n){return typeof t.value=="string"?t.typed=!0:ve(this,"type",t,n),t}}}function Ko(e){let t;if(e)for(const n of e)t?t.push(...n.issues):t=n.issues;return t}function Aa(e,t){return{kind:"schema",type:"union",reference:Aa,expects:Oa(e.map(n=>n.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return ae(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];ve(this,"type",n,r,{issues:Ko(i)}),n.typed=!0}else{if((a==null?void 0:a.length)===1)return a[0];ve(this,"type",n,r,{issues:Ko(a)})}return n}}}function Pa(){return{kind:"schema",type:"unknown",reference:Pa,expects:"unknown",async:!1,get"~standard"(){return ae(this)},"~run"(e){return e.typed=!0,e}}}function pe(...e){return{...e[0],pipe:e,get"~standard"(){return ae(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}}}function po(e,t,n){const r=e["~run"]({value:t},Sa(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}const Vc="inploi-job-search",Hc=["FULL_TIME","PART_TIME","CONTRACT","TEMPORARY","INTERN","VOLUNTEER","OTHER"],Ra=["LOCATION","REMOTE","HYBRID"],lt=10,Go=pe(Pa(),fe(String),K()),Uc=e=>pe(fo(K(),tn(le({label:Go,value:Go,jobs:be()}))),fe(t=>{for(const n in t){const r=t[n];if(r)switch(n){case"employment_type":for(const o of r)Da(o.value)&&(o.label=e(`job.employment_type.${o.value}`));break;case"location_type":for(const o of r)Na(o.value)&&(o.label=e(`job.location_type.${o.value}`));break}}return t})),Wc=pe(K(),Ta()),zc=le({total:be(),current_page:be(),per_page:be(),last_page:be()}),fn=Ye(oe(K()),null),Bc=le({id:be(),company_name:K(),company_logo:fn,employment_type:K(),location_type:ka(Ra),pay_type:oe(Aa([ct("ANNUALLY"),ct("HOURLY"),ct("MONTHLY"),ct("WEEKLY"),ct("DAILY")])),pay_currency:K(),pay_mask:Dn(),pay_display:Dn(),pay:oe(K()),pay_min:oe(K()),pay_max:oe(K()),title:K(),contract_type:oe(K()),created_at:oe(K()),custom_data:oe(fo(Lr(),Lr())),href:K(),industry:oe(K()),category:oe(K()),skills:fn,town:fn,city:oe(K()),country:oe(K()),vector_distance:fn,coordinates:Ye(oe(le({lat:be(),lng:be()}))),locale:Ye(oe(K()))});function Da(e){return Hc.includes(e)}function Na(e){return Ra.includes(e)}const Ma=(e,t=void 0)=>pe(Bc,fe(n=>{const r=po(Wc,n.company_logo),o=t??n.locale??void 0,i=new Intl.RelativeTimeFormat(o,{numeric:"auto"});return{id:n.id,createdAt:n.created_at,company:{name:n.company_name,logo:r.success?r.output:null},pay:Sc({salary:n,config:{locales:o},t:e})??null,title:n.title,contractType:n.contract_type,href:n.href,relativePostedDate:n.created_at?Tc({to:new Date(n.created_at),t:e,formatter:i}):"INVALID DATE",customData:n.custom_data,raw:{...n,location_type:Na(n.location_type)?e(`job.location_type.${n.location_type}`):n.location_type,employment_type:Da(n.employment_type)?e(`job.employment_type.${n.employment_type}`):n.employment_type},match:n.vector_distance&&parseFloat(n.vector_distance)<.15?e("great_match"):null}})),qc=(e,t)=>pe(le({data:tn(Ma(e,t)),pagination:zc}),fe(n=>({pagination:n.pagination,results:n.data}))),Kc=e=>!e||Array.isArray(e)&&e.length===0?null:e,zn=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=Kc(i==null?void 0:i.value)}return((n=e.geo)==null?void 0:n.type)==="provided"&&e.geo.coords&&(t.geolocation={type:e.geo.type,lat:e.geo.coords.lat,lng:e.geo.coords.lng,radius:e.geo.radius}),((r=e.geo)==null?void 0:r.type)==="bounds"&&(t.geolocation={type:"bounds",sw:{lat:e.geo.sw.lat,lng:e.geo.sw.lng},ne:{lat:e.geo.ne.lat,lng:e.geo.ne.lng}}),t},Yo=async({rpcClient:e,state:t,t:n,signal:r,locale:o,fallbackLocale:i})=>{const a=ut.endpoint({method:"GET",pathname:"/search/filters",schema:{response:Uc(n),searchParams:ut.typed()}});return await e.request(a,{searchParams:{filters:zn(t),query:t.query,locale:o,fallback_locale:i},signal:r})},La=async({rpcClient:e,signal:t,state:n,page:r=1,t:o,prioritySegment:i,locale:a,fallbackLocale:s})=>{const c=ut.endpoint({method:"GET",pathname:"/search/results",schema:{response:qc(o,a??s),searchParams:ut.typed()}});return await e.request(c,{searchParams:{filters:zn(n),query:n.query,page:r,per_page:lt,priority_segment:i,locale:a,fallback_locale:s},signal:t})},Gc=(e,t)=>pe(le({data:tn(Ma(e,t)),pagination:le({has_more:Dn()})}),fe(n=>({results:n.data,pagination:n.pagination}))),Yc=async({rpcClient:e,signal:t,state:n,t:r,prioritySegment:o,locale:i,fallbackLocale:a})=>{const s=ut.endpoint({method:"GET",pathname:"/search/map-results",schema:{response:Gc(r,i??a),searchParams:ut.typed()}});return await e.request(s,{searchParams:{filters:zn(n),query:n.query,mode:n.mode,priority_segment:o,locale:i,fallback_locale:a},signal:t})},nn=e=>{if(e.error)return{queryState:"error",error:e.error,swr:e};if(e.isLoading&&e.data===void 0)return{queryState:"loading",swr:e};if((e.isLoading||e.isValidating)&&e.data)return{queryState:"revalidating",data:e.data,swr:e};if(!e.isLoading&&e.data)return{queryState:"loaded",data:e.data,swr:e};if(!e.data&&!e.isLoading)return{queryState:"idle",swr:e};throw console.error("Unhandled data state",e),new Error("Unhandled data state")},Nn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var Zc=0;function d(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:--Zc,__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 exports.l.vnode&&exports.l.vnode(u),u}function Ia(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=Ia(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function St(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ia(e))&&(r&&(r+=" "),r+=t);return r}var Ie,q,ur,Zo,Ot=0,ja=[],X=exports.l,Jo=X.__b,Xo=X.__r,Qo=X.diffed,ei=X.__c,ti=X.unmount,ni=X.__;function pt(e,t){X.__h&&X.__h(q,e,Ot||t),Ot=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function k(e){return Ot=1,rn(Fa,e)}function rn(e,t,n){var r=pt(Ie++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Fa(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=q,!q.__f)){var o=function(s,c,u){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(h){return!!h.__c});if(p.every(function(h){return!h.__N}))return!i||i.call(this,s,c,u);var l=r.__c.props!==s;return p.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(l=!0)}}),i&&i.call(this,s,c,u)||l};q.__f=!0;var i=q.shouldComponentUpdate,a=q.componentWillUpdate;q.componentWillUpdate=function(s,c,u){if(this.__e){var p=i;i=void 0,o(s,c,u),i=p}a&&a.call(this,s,c,u)},q.shouldComponentUpdate=o}return r.__N||r.__}function R(e,t){var n=pt(Ie++,3);!X.__s&&vo(n.__H,t)&&(n.__=e,n.u=t,q.__H.__h.push(n))}function Te(e,t){var n=pt(Ie++,4);!X.__s&&vo(n.__H,t)&&(n.__=e,n.u=t,q.__h.push(n))}function A(e){return Ot=5,J(function(){return{current:e}},[])}function ho(e,t,n){Ot=6,Te(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 J(e,t){var n=pt(Ie++,7);return vo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function H(e,t){return Ot=8,J(function(){return e},t)}function tt(e){var t=q.context[e.__c],n=pt(Ie++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(q)),t.props.value):e.__}function Bn(e,t){X.useDebugValue&&X.useDebugValue(t?t(e):e)}function Jc(e){var t=pt(Ie++,10),n=k();return t.__=e,q.componentDidCatch||(q.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function qn(){var e=pt(Ie++,11);if(!e.__){for(var t=q.__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 Xc(){for(var e;e=ja.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($n),e.__H.__h.forEach(Ir),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){q=null,Jo&&Jo(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ni&&ni(e,t)},X.__r=function(e){Xo&&Xo(e),Ie=0;var t=(q=e.__c).__H;t&&(ur===q?(t.__h=[],q.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach($n),t.__h.forEach(Ir),t.__h=[],Ie=0)),ur=q},X.diffed=function(e){Qo&&Qo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ja.push(t)!==1&&Zo===X.requestAnimationFrame||((Zo=X.requestAnimationFrame)||Qc)(Xc)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ur=q=null},X.__c=function(e,t){t.some(function(n){try{n.__h.forEach($n),n.__h=n.__h.filter(function(r){return!r.__||Ir(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],X.__e(r,n.__v)}}),ei&&ei(e,t)},X.unmount=function(e){ti&&ti(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{$n(r)}catch(o){t=o}}),n.__H=void 0,t&&X.__e(t,n.__v))};var ri=typeof requestAnimationFrame=="function";function Qc(e){var t,n=function(){clearTimeout(r),ri&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ri&&(t=requestAnimationFrame(n))}function $n(e){var t=q,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),q=t}function Ir(e){var t=q;e.__c=e.__(),q=t}function vo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Fa(e,t){return typeof t=="function"?t(e):t}var el=["other","few","many","two","one","zero"],oi=({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 p;return((p=a==null?void 0:a[u])==null?void 0:p.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=el.find(p=>p in s);if(!u)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);c=u}return s[c].replace(/{{(\w+)}}/g,(u,p)=>{var l;return((l=a==null?void 0:a[p])==null?void 0:l.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},ii=dt(null),tl=e=>({defaultTerms:e,TranslationProvider:({terms:t,children:n,locale:r})=>{const o=J(()=>oi({locale:r,terms:e,overrides:t}),[t,r]);return d(ii.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=tt(ii);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>oi({terms:e,overrides:t,locale:n})});const{TranslationProvider:nl,useTranslation:re,createTFunction:rl,defaultTerms:ol}=tl({type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",close:"Close",new:"NEW",posted:"Posted",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations.",feedback:"How was your search experience?",list:"List",map:"Map",loading_jobs:"Loading jobs…",map_jobs_error:"We’re having trouble loading jobs in the area",map_has_more_title:"Not showing all the jobs in this area",map_has_more_description:"Zoom in to refine your search further",map_jobs_showing:{one:"Showing {{count}} job",other:"Showing {{count}} jobs"},page:"Page",reset:"Reset","job.employment_type.FULL_TIME":"Full-time","job.employment_type.PART_TIME":"Part-time","job.employment_type.CONTRACT":"Contractor","job.employment_type.TEMPORARY":"Temporary","job.employment_type.INTERN":"Internship","job.employment_type.VOLUNTEER":"Volunteer","job.employment_type.OTHER":"Other","job.location_type.LOCATION":"On-site","job.location_type.REMOTE":"Remote","job.location_type.HYBRID":"Hybrid"});function Va(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Va(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Va(e))&&(r&&(r+=" "),r+=t);return r}const ai=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,il=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,c;return typeof(e==null||(s=e.hooks)===null||s===void 0?void 0:s["cx:done"])<"u"?e==null?void 0:e.hooks["cx:done"](dr(i)):typeof(e==null||(c=e.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(dr(i)):dr(i)};return{compose:function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return s=>{const c=Object.fromEntries(Object.entries(s||{}).filter(u=>{let[p]=u;return!["class","className"].includes(p)}));return t(i.map(u=>u(c)),s==null?void 0:s.class,s==null?void 0:s.className)}},cva:o=>i=>{var a;if((o==null?void 0:o.variants)==null)return t(o==null?void 0:o.base,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:s,defaultVariants:c}=o,u=Object.keys(s).map(h=>{const f=i==null?void 0:i[h],m=c==null?void 0:c[h],v=ai(f)||ai(m);return s[h][v]}),p={...c,...i&&Object.entries(i).reduce((h,f)=>{let[m,v]=f;return typeof v>"u"?h:{...h,[m]:v}},{})},l=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((h,f)=>{let{class:m,className:v,..._}=f;return Object.entries(_).every(g=>{let[b,w]=g;const y=p[b];return Array.isArray(w)?w.includes(y):y===w})?[...h,m,v]:h},[]);return t(o==null?void 0:o.base,u,l,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{compose:t_,cva:ge,cx:n_}=il(),je=ge({base:"fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",variants:{variant:{neutral:"bg-interactive-neutral-bg pointer-fine:hover:bg-interactive-neutral-bg-hover text-interactive-neutral-text",accent:"bg-interactive-accent-bg pointer-fine:hover:bg-interactive-accent-bg-hover text-interactive-accent-text"},icon:{none:"",right:"",left:"",only:""},position:{relative:"relative",absolute:"absolute"},size:{sm:"py-1 rounded-interactive",lg:"py-2 rounded-interactive",unsized:""}},compoundVariants:[{size:"sm",icon:"right",class:"pl-3 pr-1"},{size:"sm",icon:"left",class:"pl-1 pr-3"},{size:"sm",icon:"none",class:"px-3"},{size:"lg",icon:"none",class:"px-5"},{size:"lg",icon:"right",class:"pl-5 pr-3"},{size:"lg",icon:"only",class:"px-2 py-2"},{size:"sm",icon:"only",class:"px-1 py-1"}],defaultVariants:{variant:"neutral",icon:"none",position:"relative",size:"sm"}}),al=({error:e,resetError:t})=>d("div",{style:{display:"flex",flexDirection:"column",gap:".5rem",padding:"1rem",fontSize:"1rem",color:"hsl(10, 82%, 45%)",fontFamily:"'system-ui' 'Helvetica'",background:"hsl(7, 100%, 98%)"},children:[d("p",{children:e.message}),d("button",{type:"button",onClick:t,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:"Retry"})]}),Ze=({error:e,resetError:t,class:n,...r})=>{const{t:o}=re();return R(()=>{e.cause instanceof ut.SdkError.SchemaValidation&&console.error(e.message,e.cause.issues)},[e]),d("div",{class:St("bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",n),...r,children:[d("div",{class:"flex max-w-full flex-col gap-1",children:[d("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:o("widget_unavailable")}),d("p",{class:"text-neutral-8 text-style-tag font-style-tag font-weight-tag max-w-full break-words leading-snug [text-wrap:pretty]",children:e.message})]}),d("button",{type:"button",class:je({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class qt extends he{constructor(){super(...arguments);Uo(this,"state",{error:null})}static getDerivedStateFromError(n){return{error:n.message}}componentDidCatch(n){this.setState({error:n})}render(){if(this.state.error){const{Fallback:n}=this.props;return d(n,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const sl={briefcase:d(L,{children:[d("path",{d:"M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z"}),d("path",{d:"M4.75 11.75H19.25"}),d("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),d("path",{d:"M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5"})]}),brand:d(L,{children:[d("path",{d:"M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901"}),d("path",{d:"M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713"}),d("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),d("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),d("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),d("circle",{cx:"18.75",cy:"12",r:"2"}),d("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:d(L,{children:[d("path",{d:"M16.75 10.25H13.75"}),d("path",{d:"M16.75 13.25H13.75"}),d("path",{d:"M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z"}),d("path",{d:"M10.25 12.25V18.25"})]}),circles:d(L,{children:[d("path",{d:"M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703"}),d("path",{d:"M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517"})]}),clock:d(L,{children:[d("path",{d:"M14 9L12 13L9.5 12"}),d("path",{d:"M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z"})]}),filter:d(L,{children:d("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:d(L,{children:[d("path",{d:"M5 13.75H19"}),d("path",{d:"M5 10.25H19"}),d("path",{d:"M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z"}),d("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:d(L,{children:[d("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),d("path",{d:"M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5"}),d("path",{d:"M16 16L19 19"})]}),magnifierSimple:d(L,{children:[d("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),d("path",{d:"M16 16L19 19"})]}),mapPin:d(L,{children:[d("circle",{cx:"12",cy:"9",r:"2"}),d("path",{d:"M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358"}),d("path",{d:"M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z"})]}),pay:d(L,{children:[d("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),d("path",{d:"M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1"})]}),sunset:d(L,{children:[d("path",{d:"M18.5 8.5L17.5 9.5"}),d("path",{d:"M5.5 8.5L6.5 9.5"}),d("path",{d:"M12 6L12 7.5"}),d("path",{d:"M7.5 15.25L7.5 14.25C7.5 13.6591 7.6164 13.0739 7.84254 12.5279C8.06869 11.982 8.40016 11.4859 8.81802 11.068C9.23588 10.6502 9.73196 10.3187 10.2779 10.0925C10.8239 9.8664 11.4091 9.75 12 9.75C12.5909 9.75 13.1761 9.8664 13.7221 10.0925C14.268 10.3187 14.7641 10.6502 15.182 11.068C15.5998 11.4859 15.9313 11.982 16.1575 12.5279C16.3836 13.0739 16.5 13.6591 16.5 14.25V15.25"}),d("path",{d:"M20.25 15.25H12H3.75"}),d("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:d("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:d("path",{d:"M12 8V16M8 12H16"}),"chevron-right":d("path",{d:"M11 8L15 12L11 16"}),ai:d("path",{d:"M8.3 14.5c3.4 0 5.2-1.7 5.2-5.2 0 3.5 1.8 5.2 5.3 5.2-3.6 0-5.3 1.7-5.3 5.1 0-3.4-1.8-5.1-5.3-5.1ZM5 7.5c2.3 0 3.5-1.2 3.5-3.5 0 2.3 1.2 3.4 3.5 3.4-2.3 0-3.5 1.2-3.5 3.5 0-2.3-1.2-3.5-3.5-3.5Z",fill:"currentColor"}),"target-location":d(L,{children:[d("circle",{cx:"12",cy:"12",r:"0.75"}),d("circle",{cx:"12",cy:"12",r:"5.75"}),d("path",{d:"M12 4.25V6.25"}),d("path",{d:"M12 17.75V19.75"}),d("path",{d:"M4.25 12L6.25 12"}),d("path",{d:"M17.75 12L19.75 12"})]}),warning:d("path",{fill:"currentColor",stroke:"none",d:"M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"}),map:d(L,{children:[d("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),d("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),d("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:d(L,{children:[d("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),d("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},cl=({theme:e})=>d("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:d("defs",{children:Object.entries(sl).map(([t,n])=>{var r;return d("symbol",{id:`i-icon-${t}`,children:d("g",{fill:"none","stroke-width":e.mode==="dark"&&((r=e.accessibility)==null?void 0:r.highContrast)!==!0?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:n})},t)})})}),Q=({name:e,...t})=>d("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:d("use",{href:`#i-icon-${e}`})});function Ha(e,t){for(var n in t)e[n]=t[n];return e}function jr(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 go(e,t){var n=t(),r=k({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Te(function(){o.__=n,o.u=t,fr(o)&&i({t:o})},[e,n,t]),R(function(){return fr(o)&&i({t:o}),e(function(){fr(o)&&i({t:o})})},[e]),n}function fr(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 mo(e){e()}function _o(e){return e}function yo(){return[!1,mo]}var bo=Te;function Mn(e,t){this.props=e,this.context=t}function Ua(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:jr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,S(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Mn.prototype=new he).isPureReactComponent=!0,Mn.prototype.shouldComponentUpdate=function(e,t){return jr(this.props,e)||jr(this.state,t)};var si=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),si&&si(e)};var ll=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Y(e){function t(n){var r=Ha({},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 ci=function(e,t){return e==null?null:Le(Le(e).map(t))},Se={map:ci,forEach:ci,count:function(e){return e?Le(e).length:0},only:function(e){var t=Le(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Le},ul=exports.l.__e;exports.l.__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 li=exports.l.unmount;function Wa(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=Ha({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Wa(r,t,n)})),e}function za(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return za(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 bt(){this.__u=0,this.o=null,this.__b=null}function Ba(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wo(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 S(n,i)}return o.displayName="Lazy",o.__f=!0,o}function _t(){this.i=null,this.l=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),li&&li(e)},(bt.prototype=new he).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Ba(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]=za(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)},bt.prototype.componentWillUnmount=function(){this.o=[]},bt.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]=Wa(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&S(L,null,e.fallback);return o&&(o.__u&=-33),[S(L,null,t.__a?null:e.children),o]};var ui=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 dl(e){return this.getChildContext=function(){return e.context},e.children}function fl(e){var t=this,n=e.h;t.componentWillUnmount=function(){Ct(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)}}),Ct(S(dl,{context:t.context},e.__v),t.v)}function qa(e,t){var n=S(fl,{__v:e,h:t});return n.containerInfo=t,n}(_t.prototype=new he).__a=function(e){var t=this,n=Ba(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ui(t,e,r)):o()};n?n(i):i()}},_t.prototype.render=function(e){this.i=null,this.l=new Map;var t=Le(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},_t.prototype.componentDidUpdate=_t.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){ui(e,n,t)})};var Ka=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)/,vl=/[A-Z0-9]/g,gl=typeof document<"u",ml=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ga(e,t,n){return t.__k==null&&(t.textContent=""),Ct(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ya(e,t,n){return co(e,t),typeof n=="function"&&n(),e?e.__c:null}he.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(he.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var di=exports.l.event;function _l(){}function yl(){return this.cancelBubble}function bl(){return this.defaultPrevented}exports.l.event=function(e){return di&&(e=di(e)),e.persist=_l,e.isPropagationStopped=yl,e.isDefaultPrevented=bl,e.nativeEvent=e};var xo,wl={enumerable:!1,configurable:!0,get:function(){return this.class}},fi=exports.l.vnode;exports.l.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||gl&&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"||ml(n.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":hl.test(a)&&(a=c):c=a="oninput":i&&pl.test(a)?a=a.replace(vl,"-$&").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=Le(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Le(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",wl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ka,fi&&fi(e)};var pi=exports.l.__r;exports.l.__r=function(e){pi&&pi(e),xo=e.__c};var hi=exports.l.diffed;exports.l.diffed=function(e){hi&&hi(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),xo=null};var Za={ReactCurrentDispatcher:{current:{readContext:function(e){return xo.__n[e.__c].props.value},useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:Te,useMemo:J,useReducer:rn,useRef:A,useState:k,useSyncExternalStore:go,useTransition:yo}}},xl="18.3.1";function Ja(e){return S.bind(null,e)}function Fe(e){return!!e&&e.$$typeof===Ka}function Xa(e){return Fe(e)&&e.type===L}function Qa(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function At(e){return Fe(e)?Nc.apply(null,arguments):e}function es(e){return!!e.__k&&(Ct(null,e),!0)}function ts(e){return e&&(e.base||e.nodeType===1&&e)||null}var ns=function(e,t){return e(t)},on=function(e,t){return e(t)},rs=L,os=Fe,an={useState:k,useId:qn,useReducer:rn,useEffect:R,useLayoutEffect:Te,useInsertionEffect:bo,useTransition:yo,useDeferredValue:_o,useSyncExternalStore:go,startTransition:mo,useRef:A,useImperativeHandle:ho,useMemo:J,useCallback:H,useContext:tt,useDebugValue:Bn,version:"18.3.1",Children:Se,render:Ga,hydrate:Ya,unmountComponentAtNode:es,createPortal:qa,createElement:S,createContext:dt,createFactory:Ja,cloneElement:At,createRef:ba,Fragment:L,isValidElement:Fe,isElement:os,isFragment:Xa,isMemo:Qa,findDOMNode:ts,Component:he,PureComponent:Mn,memo:Ua,forwardRef:Y,flushSync:on,unstable_batchedUpdates:ns,StrictMode:rs,Suspense:bt,SuspenseList:_t,lazy:wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Za};const is=Object.freeze(Object.defineProperty({__proto__:null,Children:Se,Component:he,Fragment:L,PureComponent:Mn,StrictMode:rs,Suspense:bt,SuspenseList:_t,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Za,cloneElement:At,createContext:dt,createElement:S,createFactory:Ja,createPortal:qa,createRef:ba,default:an,findDOMNode:ts,flushSync:on,forwardRef:Y,hydrate:Ya,isElement:os,isFragment:Xa,isMemo:Qa,isValidElement:Fe,lazy:wo,memo:Ua,render:Ga,startTransition:mo,unmountComponentAtNode:es,unstable_batchedUpdates:ns,useCallback:H,useContext:tt,useDebugValue:Bn,useDeferredValue:_o,useEffect:R,useErrorBoundary:Jc,useId:qn,useImperativeHandle:ho,useInsertionEffect:bo,useLayoutEffect:Te,useMemo:J,useReducer:rn,useRef:A,useState:k,useSyncExternalStore:go,useTransition:yo,version:xl},Symbol.toStringTag,{value:"Module"}));var Ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $l(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 Fr={exports:{}},pr={};const as=$l(is);/**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var vi;function El(){if(vi)return pr;vi=1;var e=as;function t(l,h){return l===h&&(l!==0||1/l===1/h)||l!==l&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(l,h){var f=h(),m=r({inst:{value:f,getSnapshot:h}}),v=m[0].inst,_=m[1];return i(function(){v.value=f,v.getSnapshot=h,c(v)&&_({inst:v})},[l,f,h]),o(function(){return c(v)&&_({inst:v}),l(function(){c(v)&&_({inst:v})})},[l]),a(f),f}function c(l){var h=l.getSnapshot;l=l.value;try{var f=h();return!n(l,f)}catch{return!0}}function u(l,h){return h()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return pr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,pr}var hr={};/**
10
+ * @license React
11
+ * use-sync-external-store-shim.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var gi;function Cl(){return gi||(gi=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=as,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var y=arguments.length,x=new Array(y>1?y-1:0),$=1;$<y;$++)x[$-1]=arguments[$];r("error",w,x)}}function r(w,y,x){{var $=t.ReactDebugCurrentFrame,C=$.getStackAddendum();C!==""&&(y+="%s",x=x.concat([C]));var E=x.map(function(O){return String(O)});E.unshift("Warning: "+y),Function.prototype.apply.call(console[w],console,E)}}function o(w,y){return w===y&&(w!==0||1/w===1/y)||w!==w&&y!==y}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue,p=!1,l=!1;function h(w,y,x){p||e.startTransition!==void 0&&(p=!0,n("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 $=y();if(!l){var C=y();i($,C)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}var E=a({inst:{value:$,getSnapshot:y}}),O=E[0].inst,P=E[1];return c(function(){O.value=$,O.getSnapshot=y,f(O)&&P({inst:O})},[w,$,y]),s(function(){f(O)&&P({inst:O});var M=function(){f(O)&&P({inst:O})};return w(M)},[w]),u($),$}function f(w){var y=w.getSnapshot,x=w.value;try{var $=y();return!i(x,$)}catch{return!0}}function m(w,y,x){return y()}var v=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_=!v,g=_?m:h,b=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g;hr.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),hr}process.env.NODE_ENV==="production"?Fr.exports=El():Fr.exports=Cl();var Sl=Fr.exports;const Ge=()=>{},ie=Ge(),En=Object,V=e=>e===ie,ye=e=>typeof e=="function",Ve=(e,t)=>({...e,...t}),Ol=e=>ye(e.then),pn=new WeakMap;let Tl=0;const Kt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(En(e)===e&&!r&&n!=RegExp){if(o=pn.get(e),o)return o;if(o=++Tl+"~",pn.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Kt(e[i])+",";pn.set(e,o)}if(n==En){o="#";const a=En.keys(e).sort();for(;!V(i=a.pop());)V(e[i])||(o+=i+":"+Kt(e[i])+",");pn.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Ne=new WeakMap,vr={},hn={},Eo="undefined",Kn=typeof window!=Eo,Vr=typeof document!=Eo,kl=()=>Kn&&typeof window.requestAnimationFrame!=Eo,ss=(e,t)=>{const n=Ne.get(e);return[()=>!V(t)&&e.get(t)||vr,r=>{if(!V(t)){const o=e.get(t);t in hn||(hn[t]=o),n[5](t,Ve(o,r),o||vr)}},n[6],()=>!V(t)&&t in hn?hn[t]:!V(t)&&e.get(t)||vr]};let Hr=!0;const Al=()=>Hr,[Ur,Wr]=Kn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ge,Ge],Pl=()=>{const e=Vr&&document.visibilityState;return V(e)||e!=="hidden"},Rl=e=>(Vr&&document.addEventListener("visibilitychange",e),Ur("focus",e),()=>{Vr&&document.removeEventListener("visibilitychange",e),Wr("focus",e)}),Dl=e=>{const t=()=>{Hr=!0,e()},n=()=>{Hr=!1};return Ur("online",t),Ur("offline",n),()=>{Wr("online",t),Wr("offline",n)}},Nl={isOnline:Al,isVisible:Pl},Ml={initFocus:Rl,initReconnect:Dl},mi=!an.useId,Gt=!Kn||"Deno"in window,Ll=e=>kl()?window.requestAnimationFrame(e):setTimeout(e,1),Cn=Gt?R:Te,gr=typeof navigator<"u"&&navigator.connection,_i=!Gt&&gr&&(["slow-2g","2g"].includes(gr.effectiveType)||gr.saveData),Co=e=>{if(ye(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Kt(e):"",[e,t]};let Il=0;const zr=()=>++Il,cs=0,ls=1,us=2,jl=3;var Vt={__proto__:null,ERROR_REVALIDATE_EVENT:jl,FOCUS_EVENT:cs,MUTATE_EVENT:us,RECONNECT_EVENT:ls};async function ds(...e){const[t,n,r,o]=e,i=Ve({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let c=i.optimisticData;const u=h=>typeof s=="function"?s(h):s!==!1,p=i.throwOnError;if(ye(n)){const h=n,f=[],m=t.keys();for(const v of m)!/^\$(inf|sub)\$/.test(v)&&h(t.get(v)._k)&&f.push(v);return Promise.all(f.map(l))}return l(n);async function l(h){const[f]=Co(h);if(!f)return;const[m,v]=ss(t,f),[_,g,b,w]=Ne.get(t),y=()=>{const F=_[f];return(ye(i.revalidate)?i.revalidate(m().data,h):i.revalidate!==!1)&&(delete b[f],delete w[f],F&&F[0])?F[0](us).then(()=>m().data):m().data};if(e.length<3)return y();let x=r,$;const C=zr();g[f]=[C,0];const E=!V(c),O=m(),P=O.data,M=O._c,D=V(M)?P:M;if(E&&(c=ye(c)?c(D,P):c,v({data:c,_c:D})),ye(x))try{x=x(D)}catch(F){$=F}if(x&&Ol(x))if(x=await x.catch(F=>{$=F}),C!==g[f][0]){if($)throw $;return x}else $&&E&&u($)&&(a=!0,v({data:D,_c:ie}));if(a&&!$)if(ye(a)){const F=a(x,D);v({data:F,error:ie,_c:ie})}else v({data:x,error:ie,_c:ie});if(g[f][1]=zr(),Promise.resolve(y()).then(()=>{v({_c:ie})}),$){if(p)throw $;return}return x}}const yi=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},fs=(e,t)=>{if(!Ne.has(e)){const n=Ve(Ml,t),r={},o=ds.bind(ie,e);let i=Ge;const a={},s=(p,l)=>{const h=a[p]||[];return a[p]=h,h.push(l),()=>h.splice(h.indexOf(l),1)},c=(p,l,h)=>{e.set(p,l);const f=a[p];if(f)for(const m of f)m(l,h)},u=()=>{if(!Ne.has(e)&&(Ne.set(e,[r,{},{},{},o,c,s]),!Gt)){const p=n.initFocus(setTimeout.bind(ie,yi.bind(ie,r,cs))),l=n.initReconnect(setTimeout.bind(ie,yi.bind(ie,r,ls)));i=()=>{p&&p(),l&&l(),Ne.delete(e)}}};return u(),[e,o,u,i]}return[e,Ne.get(e)[4]]},Fl=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!V(i)&&a>i||setTimeout(r,s,o)},Vl=(e,t)=>Kt(e)==Kt(t),[So,Hl]=fs(new Map),ps=Ve({onLoadingSlow:Ge,onSuccess:Ge,onError:Ge,onErrorRetry:Fl,onDiscarded:Ge,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_i?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:_i?5e3:3e3,compare:Vl,isPaused:()=>!1,cache:So,mutate:Hl,fallback:{}},Nl),hs=(e,t)=>{const n=Ve(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Ve(o,a))}return n},Br=dt({}),Ul=e=>{const{value:t}=e,n=tt(Br),r=ye(t),o=J(()=>r?t(n):t,[r,n,t]),i=J(()=>r?o:hs(n,o),[r,n,o]),a=o&&o.provider,s=A(ie);a&&!s.current&&(s.current=fs(a(i.cache||So),o));const c=s.current;return c&&(i.cache=c[0],i.mutate=c[1]),Cn(()=>{if(c)return c[2]&&c[2](),c[3]},[]),S(Br.Provider,Ve(e,{value:i}))},Wl="$inf$",vs=Kn&&window.__SWR_DEVTOOLS_USE__,zl=vs?window.__SWR_DEVTOOLS_USE__:[],Bl=()=>{vs&&(window.__SWR_DEVTOOLS_REACT__=an)},ql=e=>ye(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Kl=()=>Ve(ps,tt(Br)),Gl=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=Co(t),[,,,s]=Ne.get(So);if(a.startsWith(Wl))return n(...i);const c=s[a];return V(c)?n(...i):(delete s[a],c)}),r),Yl=zl.concat(Gl),Zl=e=>function(...n){const r=Kl(),[o,i,a]=ql(n),s=hs(r,a);let c=e;const{use:u}=s,p=(u||[]).concat(Yl);for(let l=p.length;l--;)c=p[l](c);return c(o,i||s.fetcher||null,s)},Jl=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};Bl();const bi=an.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),mr={dedupe:!0},Xl=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:l,keepPreviousData:h}=n,[f,m,v,_]=Ne.get(r),[g,b]=Co(e),w=A(!1),y=A(!1),x=A(g),$=A(t),C=A(n),E=()=>C.current,O=()=>E().isVisible()&&E().isOnline(),[P,M,D,F]=ss(r,g),T=A({}).current,N=V(a)?n.fallback[g]:a,I=(W,z)=>{for(const te in T){const B=te;if(B==="data"){if(!o(W[B],z[B])&&(!V(W[B])||!o(Ae,z[B])))return!1}else if(z[B]!==W[B])return!1}return!0},j=J(()=>{const W=(()=>!g||!t?!1:V(s)?E().isPaused()||i?!1:V(c)?!0:c:s)(),z=ne=>{const _e=Ve(ne);return delete _e._k,W?{isValidating:!0,isLoading:!0,..._e}:_e},te=P(),B=F(),se=z(te),Be=te===B?se:z(B);let ee=se;return[()=>{const ne=z(P());return I(ne,ee)?(ee.data=ne.data,ee.isLoading=ne.isLoading,ee.isValidating=ne.isValidating,ee.error=ne.error,ee):(ee=ne,ne)},()=>Be]},[r,g]),U=Sl.useSyncExternalStore(H(W=>D(g,(z,te)=>{I(te,z)||W()}),[r,g]),j[0],j[1]),Z=!w.current,jt=f[g]&&f[g].length>0,me=U.data,ze=V(me)?N:me,ot=U.error,ln=A(ze),Ae=h?V(me)?ln.current:me:ze,Pe=(()=>jt&&!V(ot)?!1:Z&&!V(s)?s:E().isPaused()?!1:i?V(ze)?!1:c:V(ze)||c)(),Ft=!!(g&&t&&Z&&Pe),or=V(U.isValidating)?Ft:U.isValidating,ht=V(U.isLoading)?Ft:U.isLoading,it=H(async W=>{const z=$.current;if(!g||!z||y.current||E().isPaused())return!1;let te,B,se=!0;const Be=W||{},ee=!v[g]||!Be.dedupe,ne=()=>mi?!y.current&&g===x.current&&w.current:g===x.current,_e={isValidating:!1,isLoading:!1},at=()=>{M(_e)},Vo=()=>{const de=v[g];de&&de[1]===B&&delete v[g]},Ho={isValidating:!0};V(P().data)&&(Ho.isLoading=!0);try{if(ee&&(M(Ho),n.loadingTimeout&&V(P().data)&&setTimeout(()=>{se&&ne()&&E().onLoadingSlow(g,n)},n.loadingTimeout),v[g]=[z(b),zr()]),[te,B]=v[g],te=await te,ee&&setTimeout(Vo,n.dedupingInterval),!v[g]||v[g][1]!==B)return ee&&ne()&&E().onDiscarded(g),!1;_e.error=ie;const de=m[g];if(!V(de)&&(B<=de[0]||B<=de[1]||de[1]===0))return at(),ee&&ne()&&E().onDiscarded(g),!1;const Re=P().data;_e.data=o(Re,te)?Re:te,ee&&ne()&&E().onSuccess(te,g,n)}catch(de){Vo();const Re=E(),{shouldRetryOnError:ir}=Re;Re.isPaused()||(_e.error=de,ee&&ne()&&(Re.onError(de,g,Re),(ir===!0||ye(ir)&&ir(de))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||O())&&Re.onErrorRetry(de,g,Re,xc=>{const ar=f[g];ar&&ar[0]&&ar[0](Vt.ERROR_REVALIDATE_EVENT,xc)},{retryCount:(Be.retryCount||0)+1,dedupe:!0})))}return se=!1,at(),!0},[g,r]),un=H((...W)=>ds(r,x.current,...W),[]);if(Cn(()=>{$.current=t,C.current=n,V(me)||(ln.current=me)}),Cn(()=>{if(!g)return;const W=it.bind(ie,mr);let z=0;const B=Jl(g,f,(se,Be={})=>{if(se==Vt.FOCUS_EVENT){const ee=Date.now();E().revalidateOnFocus&&ee>z&&O()&&(z=ee+E().focusThrottleInterval,W())}else if(se==Vt.RECONNECT_EVENT)E().revalidateOnReconnect&&O()&&W();else{if(se==Vt.MUTATE_EVENT)return it();if(se==Vt.ERROR_REVALIDATE_EVENT)return it(Be)}});return y.current=!1,x.current=g,w.current=!0,M({_k:b}),Pe&&(V(ze)||Gt?W():Ll(W)),()=>{y.current=!0,B()}},[g]),Cn(()=>{let W;function z(){const B=ye(u)?u(P().data):u;B&&W!==-1&&(W=setTimeout(te,B))}function te(){!P().error&&(p||E().isVisible())&&(l||E().isOnline())?it(mr).then(z):z()}return z(),()=>{W&&(clearTimeout(W),W=-1)}},[u,p,l,g]),Bn(Ae),i&&V(ze)&&g){if(!mi&&Gt)throw new Error("Fallback data is required when using suspense in SSR.");$.current=t,C.current=n,y.current=!1;const W=_[g];if(!V(W)){const z=un(W);bi(z)}if(V(ot)){const z=it(mr);V(Ae)||(z.status="fulfilled",z.value=!0),bi(z)}else throw ot}return{mutate:un,get data(){return T.data=!0,Ae},get error(){return T.error=!0,ot},get isValidating(){return T.isValidating=!0,or},get isLoading(){return T.isLoading=!0,ht}}},Ql=En.defineProperty(Ul,"defaultValue",{value:ps}),Yt=Zl(Xl),gs=e=>{const[t,n]=k(!1);return R(()=>{if(typeof window>"u")return;const r=window.matchMedia(e),o=()=>n(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[e]),t},eu=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=k(!1);R(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(c=>c.forEach(u=>{clearTimeout(a),u.isIntersecting&&(a=setTimeout(()=>{i(!0),r()},t))}),{threshold:n});return s.observe(e.current),()=>{s.disconnect(),clearTimeout(a)}},[e,t,n,r,o])};var tu=["1","2","3","4","5","6","7","8","9","10","11","12"],nu={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]}},ru=(e,t=1,n)=>r=>{const[o,i]=nu[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},_r=e=>{const t=ru(e.hue,e.chroma,e.mode);return Object.fromEntries(tu.map(n=>[e.prefix+n,e.transform(t(n))]))},yr=e=>e,ou=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)},vn=e=>!!e&&typeof e=="object"&&!Array.isArray(e),qr=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(vn(e)&&vn(n))for(const r in n){const o=n[r];if(vn(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];vn(i)&&qr(i,o)}else Object.assign(e,{[r]:n[r]})}return qr(e,...t)},iu=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},au=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=h=>i("reference",h.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}}),p=ou(qr(s,c,u)),l=([h,f],m)=>{const v=[m,h].filter(Boolean).join(".");return typeof f=="object"?Object.entries(f).flatMap(_=>l(_,v)):[[r.getToken("declaration",v),f]]};return{values:p,declarations:Object.fromEntries(Object.entries(p).flatMap(h=>l(h))),ref:h=>i("reference",h.toString())}}})})})});const Ee=e=>{const t=[],n=r=>({with:(o,i)=>(t.push({pattern:o,fn:i}),n(r)),otherwise:o=>{e:for(const{fn:i,pattern:a}of t){for(const s in a)if(a[s]!==r[s])continue e;return i(r)}if(o)return o(r);throw new Error("No pattern matched")}});return n(e)},[br,wr,gn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],su=au().core(({theme:e})=>{var t,n,r,o;return{color:{black:br,white:wr,lowest:e.mode==="light"?wr:br,highest:e.mode==="light"?br:wr,..._r({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:yr}),..._r({prefix:"n-",hue:((t=e.neutral)==null?void 0:t.hue)??e.accent.hue,chroma:((n=e.neutral)==null?void 0:n.chroma)??.05,mode:e.mode,transform:yr}),..._r({prefix:"m-",hue:((r=e.monetary)==null?void 0:r.hue)??140,chroma:((o=e.monetary)==null?void 0:o.chroma)??1,mode:e.mode,transform:yr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,c,u,p,l,h,f,m,v,_,g,b,w,y,x,$,C,E,O,P,M;const r=(D,F)=>n.core.color[D].replace(")",` / ${F})`),{typography:o,highlights:i}=t,a=((s=t.accessibility)==null?void 0:s.highContrast)??!1;return{font:o.fontFamily??"inherit","font-style":o.style??"inherit","font-filter":((c=o.filter)==null?void 0:c.fontFamily)??o.fontFamily??"inherit","font-job-heading":((u=t.typography.jobHeading)==null?void 0:u.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((p=o.tag)==null?void 0:p.fontFamily)??o.fontFamily??"inherit","weight-default":((l=o.weight)==null?void 0:l.toString())??"inherit","style-filter":((h=o.filter)==null?void 0:h.style)??o.style??"inherit","weight-filter":((m=(f=o.filter)==null?void 0:f.weight)==null?void 0:m.toString())??((v=o.weight)==null?void 0:v.toString())??"inherit","style-tag":((_=o.tag)==null?void 0:_.style)??o.style??"inherit","style-job-heading":((g=o.jobHeading)==null?void 0:g.style)??o.style??"inherit","weight-tag":((w=(b=o.tag)==null?void 0:b.weight)==null?void 0:w.toString())??((y=o.weight)==null?void 0:y.toString())??"inherit","weight-job-heading":(($=(x=o.jobHeading)==null?void 0:x.weight)==null?void 0:$.toString())??((C=o.weight)==null?void 0:C.toString())??"inherit","style-input":((E=o.input)==null?void 0:E.style)??o.style??"inherit","weight-input":((P=(O=o.input)==null?void 0:O.weight)==null?void 0:P.toString())??((M=o.weight)==null?void 0:M.toString())??"inherit","app-bg":e("color.lowest"),copy:e(a?"color.highest":"color.n-12"),"copy-lowcontrast":e("color.n-11"),"copy-info":e(a?"color.n-11":"color.n-10"),"copy-icon":e(a?"color.n-12":"color.n-11"),"copy-accent":e(a?"color.highest":"color.a-12"),"copy-accent-lowcontrast":e(a?"color.a-12":"color.a-11"),"copy-accent-icon":e(a?"color.a-12":"color.a-11"),"copy-inverted":e("color.lowest"),"copy-inverted-lowcontrast":e("color.n-4"),"copy-inverted-icon":e("color.n-3"),"tag-neutral-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"tag-neutral-weak-copy":e("color.n-12"),"tag-neutral-weak-stroke-color":e(i==="stroke"?"color.n-5":"color.n-3"),"tag-neutral-strong-bg":i==="fill"?e("color.n-12"):gn,"tag-neutral-strong-copy":e(i==="fill"?"color.white":"color.n-12"),"tag-neutral-strong-stroke-color":r(a?"n-12":"n-4",i==="stroke"?1:0),"tag-monetary-weak-bg":e("color.m-3"),"tag-monetary-weak-copy":e("color.m-11"),"tag-monetary-weak-stroke-color":e("color.m-4"),"tag-accent-strong-bg":t.mode==="dark"?e("color.a-9"):e("color.a-11"),"tag-accent-strong-copy":e("color.white"),"tag-accent-strong-stroke-color":gn,"radius-app":Ee(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":Ee(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":Ee(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":Ee(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":Ee(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":Ee(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":Ee(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"1rem").otherwise(),"interactive-neutral-bg":r(a?"n-5":"n-4",.01),"interactive-neutral-bg-hover":e(a?"color.n-5":"color.n-4"),"interactive-neutral-text":e("color.n-12"),"interactive-accent-bg":r(i==="fill"?"a-4":"a-3",.01),"interactive-accent-bg-hover":e(i==="fill"?"color.a-4":"color.a-3"),"interactive-accent-text":e("color.a-11"),"radius-interactive":Ee(t).with({corners:"rounded"},()=>"1.5rem").with({corners:"soft"},()=>".5rem").with({corners:"sharp"},()=>"0").otherwise(),"section-weak-bg":e(i==="fill"?"color.n-2":"color.lowest"),"section-strong-bg":e(i==="fill"?a?"color.n-3":"color.n-2":"color.lowest"),"section-weak-stroke-color":i==="fill"?gn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?gn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":Ee(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px"),"job-card-bg":e("color.lowest"),"job-card-bg-active":e("color.lowest"),"job-card-stroke-color":e(a?"color.n-10":"color.n-4"),"job-card-stroke-color-active":e("color.a-9"),"job-card-stroke-width":Ee(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),cu=iu({prefix:"i-"}),lu=e=>{const t=su.from({theme:e.theme,getToken:cu}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
18
+ ${n.concat(n).join(`
19
+ `)}
20
+ }`},Kr=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};const Gr=e=>{var n,r,o;const t=[e.baseKey];e.state.query&&t.push(`q=${e.state.query}`),((n=e.state.geo)==null?void 0:n.type)==="ip"&&t.push("geo=ip"),((r=e.state.geo)==null?void 0:r.type)==="provided"&&e.state.geo.coords&&t.push(`geo=${e.state.geo.coords.lat}_${e.state.geo.coords.lng}_${e.state.geo.radius}`);for(const i in e.state.filters){const a=e.state.filters[i];if(!a)continue;const s=a.select==="many"?(o=a.value)==null?void 0:o.sort().join("|"):a.value;t.push(`${i}=${s}`)}return t.sort().join("::")};function G(){return G=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},G.apply(this,arguments)}function we(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 uu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ms(...e){return t=>e.forEach(n=>uu(n,t))}function ke(...e){return H(ms(...e),e)}function Oo(e,t=[]){let n=[];function r(i,a){const s=dt(a),c=n.length;n=[...n,a];function u(l){const{scope:h,children:f,...m}=l,v=(h==null?void 0:h[e][c])||s,_=J(()=>m,Object.values(m));return S(v.Provider,{value:_},f)}function p(l,h){const f=(h==null?void 0:h[e][c])||s,m=tt(f);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${l}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,p]}const o=()=>{const i=n.map(a=>dt(a));return function(s){const c=(s==null?void 0:s[e])||i;return J(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,du(o,...t)]}function du(...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 J(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const Tt=globalThis!=null&&globalThis.document?Te:()=>{},fu=is["useId".toString()]||(()=>{});let pu=0;function Sn(e){const[t,n]=k(fu());return Tt(()=>{e||n(r=>r??String(pu++))},[e]),e||(t?`radix-${t}`:"")}function Je(e){const t=A(e);return R(()=>{t.current=e}),J(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function _s({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=hu({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Je(n),c=H(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 hu({defaultProp:e,onChange:t}){const n=k(e),[r]=n,o=A(r),i=Je(t);return R(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Gn=Y((e,t)=>{const{children:n,...r}=e,o=Se.toArray(n),i=o.find(gu);if(i){const a=i.props.children,s=o.map(c=>c===i?Se.count(a)>1?Se.only(null):Fe(a)?a.props.children:null:c);return S(Yr,G({},r,{ref:t}),Fe(a)?At(a,void 0,s):null)}return S(Yr,G({},r,{ref:t}),n)});Gn.displayName="Slot";const Yr=Y((e,t)=>{const{children:n,...r}=e;return Fe(n)?At(n,{...mu(r,n.props),ref:t?ms(t,n.ref):n.ref}):Se.count(n)>1?Se.only(null):null});Yr.displayName="SlotClone";const vu=({children:e})=>S(L,null,e);function gu(e){return Fe(e)&&e.type===vu}function mu(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 _u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=_u.reduce((e,t)=>{const n=Y((r,o)=>{const{asChild:i,...a}=r,s=i?Gn:t;return R(()=>{window[Symbol.for("radix-ui")]=!0},[]),S(s,G({},a,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yu(e,t){e&&on(()=>e.dispatchEvent(t))}function bu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e);R(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Zr="dismissableLayer.update",wu="dismissableLayer.pointerDownOutside",xu="dismissableLayer.focusOutside";let wi;const $u=dt({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ys=Y((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,p=tt($u),[l,h]=k(null),f=(n=l==null?void 0:l.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=k({}),v=ke(t,E=>h(E)),_=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=_.indexOf(g),w=l?_.indexOf(l):-1,y=p.layersWithOutsidePointerEventsDisabled.size>0,x=w>=b,$=Eu(E=>{const O=E.target,P=[...p.branches].some(M=>M.contains(O));!x||P||(i==null||i(E),s==null||s(E),E.defaultPrevented||c==null||c())},f),C=Cu(E=>{const O=E.target;[...p.branches].some(M=>M.contains(O))||(a==null||a(E),s==null||s(E),E.defaultPrevented||c==null||c())},f);return bu(E=>{w===p.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&c&&(E.preventDefault(),c()))},f),R(()=>{if(l)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(wi=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(l)),p.layers.add(l),xi(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=wi)}},[l,f,r,p]),R(()=>()=>{l&&(p.layers.delete(l),p.layersWithOutsidePointerEventsDisabled.delete(l),xi())},[l,p]),R(()=>{const E=()=>m({});return document.addEventListener(Zr,E),()=>document.removeEventListener(Zr,E)},[]),S(nt.div,G({},u,{ref:v,style:{pointerEvents:y?x?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,C.onFocusCapture),onBlurCapture:we(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Eu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=A(!1),o=A(()=>{});return R(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){bs(wu,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 Cu(e,t=globalThis==null?void 0:globalThis.document){const n=Je(e),r=A(!1);return R(()=>{const o=i=>{i.target&&!r.current&&bs(xu,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 xi(){const e=new CustomEvent(Zr);document.dispatchEvent(e)}function bs(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?yu(o,i):o.dispatchEvent(i)}const xr="focusScope.autoFocusOnMount",$r="focusScope.autoFocusOnUnmount",$i={bubbles:!1,cancelable:!0},ws=Y((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=k(null),u=Je(o),p=Je(i),l=A(null),h=ke(t,v=>c(v)),f=A({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R(()=>{if(r){let v=function(w){if(f.paused||!s)return;const y=w.target;s.contains(y)?l.current=y:qe(l.current,{select:!0})},_=function(w){if(f.paused||!s)return;const y=w.relatedTarget;y!==null&&(s.contains(y)||qe(l.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&qe(s)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),b.disconnect()}}},[r,s,f.paused]),R(()=>{if(s){Ci.add(f);const v=document.activeElement;if(!s.contains(v)){const g=new CustomEvent(xr,$i);s.addEventListener(xr,u),s.dispatchEvent(g),g.defaultPrevented||(Su(Pu(xs(s)),{select:!0}),document.activeElement===v&&qe(s))}return()=>{s.removeEventListener(xr,u),setTimeout(()=>{const g=new CustomEvent($r,$i);s.addEventListener($r,p),s.dispatchEvent(g),g.defaultPrevented||qe(v??document.body,{select:!0}),s.removeEventListener($r,p),Ci.remove(f)},0)}}},[s,u,p,f]);const m=H(v=>{if(!n&&!r||f.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(_&&g){const b=v.currentTarget,[w,y]=Ou(b);w&&y?!v.shiftKey&&g===y?(v.preventDefault(),n&&qe(w,{select:!0})):v.shiftKey&&g===w&&(v.preventDefault(),n&&qe(y,{select:!0})):g===b&&v.preventDefault()}},[n,r,f.paused]);return S(nt.div,G({tabIndex:-1},a,{ref:h,onKeyDown:m}))});function Su(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qe(r,{select:t}),document.activeElement!==n)return}function Ou(e){const t=xs(e),n=Ei(t,e),r=Ei(t.reverse(),e);return[n,r]}function xs(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 Ei(e,t){for(const n of e)if(!Tu(n,{upTo:t}))return n}function Tu(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 ku(e){return e instanceof HTMLInputElement&&"select"in e}function qe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ku(e)&&t&&e.select()}}const Ci=Au();function Au(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Si(e,t),e.unshift(t)},remove(t){var n;e=Si(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Si(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Pu(e){return e.filter(t=>t.tagName!=="A")}const $s=Y((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?an.createPortal(S(nt.div,G({},o,{ref:t})),r):null});function Ru(e,t){return rn((n,r)=>{const o=t[n][r];return o??n},e)}const Pt=e=>{const{present:t,children:n}=e,r=Du(t),o=typeof n=="function"?n({present:r.isPresent}):Se.only(n),i=ke(r.ref,o.ref);return typeof n=="function"||r.isPresent?At(o,{ref:i}):null};Pt.displayName="Presence";function Du(e){const[t,n]=k(),r=A({}),o=A(e),i=A("none"),a=e?"mounted":"unmounted",[s,c]=Ru(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R(()=>{const u=mn(r.current);i.current=s==="mounted"?u:"none"},[s]),Tt(()=>{const u=r.current,p=o.current;if(p!==e){const h=i.current,f=mn(u);e?c("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(p&&h!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Tt(()=>{if(t){const u=l=>{const f=mn(r.current).includes(l.animationName);l.target===t&&f&&on(()=>c("ANIMATION_END"))},p=l=>{l.target===t&&(i.current=mn(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:H(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function mn(e){return(e==null?void 0:e.animationName)||"none"}let Er=0;function Es(){R(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Oi()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Oi()),Er++,()=>{Er===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Er--}},[])}function Oi(){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}var Ke=function(){return Ke=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},Ke.apply(this,arguments)};function Nu(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 Mu(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))}var On="right-scroll-bar-position",Tn="width-before-scroll-bar",Lu="with-scroll-bars-hidden",Iu="--removed-body-scroll-bar-size";function Cr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ju(e,t){var n=k(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 Fu=typeof window<"u"?Te:R,Ti=new WeakMap;function Vu(e,t){var n=ju(t||null,function(r){return e.forEach(function(o){return Cr(o,r)})});return Fu(function(){var r=Ti.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Cr(s,null)}),i.forEach(function(s){o.has(s)||Cr(s,a)})}Ti.set(n,e)},[e]),n}var Ln=function(){return Ln=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},Ln.apply(this,arguments)};function Hu(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 Uu(e){return e}function Wu(e,t){t===void 0&&(t=Uu);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 p=a;a=[],p.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(p){a.push(p),u()},filter:function(p){return a=a.filter(p),n}}}};return o}function zu(e){e===void 0&&(e={});var t=Wu(null);return t.options=Ln({async:!0,ssr:!1},e),t}var Cs=function(e){var t=e.sideCar,n=Hu(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 S(r,Ln({},n))};Cs.isSideCarExport=!0;function Bu(e,t){return e.useMedium(t),Cs}var Ss=zu(),Sr=function(){},Yn=Y(function(e,t){var n=A(null),r=k({onScrollCapture:Sr,onWheelCapture:Sr,onTouchMoveCapture:Sr}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,l=e.shards,h=e.sideCar,f=e.noIsolation,m=e.inert,v=e.allowPinchZoom,_=e.as,g=_===void 0?"div":_,b=Nu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,y=Vu([n,t]),x=Ke(Ke({},b),o);return S(L,null,p&&S(w,{sideCar:Ss,removeScrollBar:u,shards:l,noIsolation:f,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),a?At(Se.only(s),Ke(Ke({},x),{ref:y})):S(g,Ke({},x,{className:c,ref:y}),s))});Yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Yn.classNames={fullWidth:Tn,zeroRight:On};var ki,qu=function(){if(ki)return ki;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ku(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qu();return t&&e.setAttribute("nonce",t),e}function Gu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ku())&&(Gu(t,n),Yu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ju=function(){var e=Zu();return function(t,n){R(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Os=function(){var e=Ju(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Xu={left:0,top:0,right:0,gap:0},Or=function(e){return parseInt(e||"",10)||0},Qu=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[Or(n),Or(r),Or(o)]},ed=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xu;var t=Qu(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])}},td=Os(),wt="data-scroll-locked",nd=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
21
+ .`.concat(Lu,` {
22
+ overflow: hidden `).concat(r,`;
23
+ padding-right: `).concat(s,"px ").concat(r,`;
24
+ }
25
+ body[`).concat(wt,`] {
26
+ overflow: hidden `).concat(r,`;
27
+ overscroll-behavior: contain;
28
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
29
+ padding-left: `.concat(o,`px;
30
+ padding-top: `).concat(i,`px;
31
+ padding-right: `).concat(a,`px;
32
+ margin-left:0;
33
+ margin-top:0;
34
+ margin-right: `).concat(s,"px ").concat(r,`;
35
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
36
+ }
37
+
38
+ .`).concat(On,` {
39
+ right: `).concat(s,"px ").concat(r,`;
40
+ }
41
+
42
+ .`).concat(Tn,` {
43
+ margin-right: `).concat(s,"px ").concat(r,`;
44
+ }
45
+
46
+ .`).concat(On," .").concat(On,` {
47
+ right: 0 `).concat(r,`;
48
+ }
49
+
50
+ .`).concat(Tn," .").concat(Tn,` {
51
+ margin-right: 0 `).concat(r,`;
52
+ }
53
+
54
+ body[`).concat(wt,`] {
55
+ `).concat(Iu,": ").concat(s,`px;
56
+ }
57
+ `)},Ai=function(){var e=parseInt(document.body.getAttribute(wt)||"0",10);return isFinite(e)?e:0},rd=function(){R(function(){return document.body.setAttribute(wt,(Ai()+1).toString()),function(){var e=Ai()-1;e<=0?document.body.removeAttribute(wt):document.body.setAttribute(wt,e.toString())}},[])},od=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;rd();var i=J(function(){return ed(o)},[o]);return S(td,{styles:nd(i,!t,o,n?"":"!important")})},Jr=!1;if(typeof window<"u")try{var _n=Object.defineProperty({},"passive",{get:function(){return Jr=!0,!0}});window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{Jr=!1}var vt=Jr?{passive:!1}:!1,id=function(e){return e.tagName==="TEXTAREA"},Ts=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!id(e)&&n[t]==="visible")},ad=function(e){return Ts(e,"overflowY")},sd=function(e){return Ts(e,"overflowX")},Pi=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ks(e,n);if(r){var o=As(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},cd=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ld=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ks=function(e,t){return e==="v"?ad(t):sd(t)},As=function(e,t){return e==="v"?cd(t):ld(t)},ud=function(e,t){return e==="h"&&t==="rtl"?-1:1},dd=function(e,t,n,r,o){var i=ud(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),u=!1,p=a>0,l=0,h=0;do{var f=As(e,s),m=f[0],v=f[1],_=f[2],g=v-_-i*m;(m||g)&&ks(e,s)&&(l+=g,h+=m),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&(o&&l===0||!o&&a>l)||!p&&(o&&h===0||!o&&-a>h))&&(u=!0),u},yn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ri=function(e){return[e.deltaX,e.deltaY]},Di=function(e){return e&&"current"in e?e.current:e},fd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},pd=function(e){return`
58
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
59
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
60
+ `)},hd=0,gt=[];function vd(e){var t=A([]),n=A([0,0]),r=A(),o=k(hd++)[0],i=k(function(){return Os()})[0],a=A(e);R(function(){a.current=e},[e]),R(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Mu([e.lockRef.current],(e.shards||[]).map(Di),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=H(function(v,_){if("touches"in v&&v.touches.length===2)return!a.current.allowPinchZoom;var g=yn(v),b=n.current,w="deltaX"in v?v.deltaX:b[0]-g[0],y="deltaY"in v?v.deltaY:b[1]-g[1],x,$=v.target,C=Math.abs(w)>Math.abs(y)?"h":"v";if("touches"in v&&C==="h"&&$.type==="range")return!1;var E=Pi(C,$);if(!E)return!0;if(E?x=C:(x=C==="v"?"h":"v",E=Pi(C,$)),!E)return!1;if(!r.current&&"changedTouches"in v&&(w||y)&&(r.current=x),!x)return!0;var O=r.current||x;return dd(O,_,v,O==="h"?w:y,!0)},[]),c=H(function(v){var _=v;if(!(!gt.length||gt[gt.length-1]!==i)){var g="deltaY"in _?Ri(_):yn(_),b=t.current.filter(function(x){return x.name===_.type&&x.target===_.target&&fd(x.delta,g)})[0];if(b&&b.should){_.cancelable&&_.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(Di).filter(Boolean).filter(function(x){return x.contains(_.target)}),y=w.length>0?s(_,w[0]):!a.current.noIsolation;y&&_.cancelable&&_.preventDefault()}}},[]),u=H(function(v,_,g,b){var w={name:v,delta:_,target:g,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(y){return y!==w})},1)},[]),p=H(function(v){n.current=yn(v),r.current=void 0},[]),l=H(function(v){u(v.type,Ri(v),v.target,s(v,e.lockRef.current))},[]),h=H(function(v){u(v.type,yn(v),v.target,s(v,e.lockRef.current))},[]);R(function(){return gt.push(i),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:h}),document.addEventListener("wheel",c,vt),document.addEventListener("touchmove",c,vt),document.addEventListener("touchstart",p,vt),function(){gt=gt.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,vt),document.removeEventListener("touchmove",c,vt),document.removeEventListener("touchstart",p,vt)}},[]);var f=e.removeScrollBar,m=e.inert;return S(L,null,m?S(i,{styles:pd(o)}):null,f?S(od,{gapMode:"margin"}):null)}const gd=Bu(Ss,vd);var Ps=Y(function(e,t){return S(Yn,Ke({},e,{ref:t,sideCar:gd}))});Ps.classNames=Yn.classNames;const Rs=Ps;var md=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},mt=new WeakMap,bn=new WeakMap,wn={},Tr=0,Ds=function(e){return e&&(e.host||Ds(e.parentNode))},_d=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ds(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})},yd=function(e,t,n,r){var o=_d(t,Array.isArray(e)?e:[e]);wn[n]||(wn[n]=new WeakMap);var i=wn[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 p=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(h){if(s.has(h))p(h);else try{var f=h.getAttribute(r),m=f!==null&&f!=="false",v=(mt.get(h)||0)+1,_=(i.get(h)||0)+1;mt.set(h,v),i.set(h,_),a.push(h),v===1&&m&&bn.set(h,!0),_===1&&h.setAttribute(n,"true"),m||h.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return p(t),s.clear(),Tr++,function(){a.forEach(function(l){var h=mt.get(l)-1,f=i.get(l)-1;mt.set(l,h),i.set(l,f),h||(bn.has(l)||l.removeAttribute(r),bn.delete(l)),f||l.removeAttribute(n)}),Tr--,Tr||(mt=new WeakMap,mt=new WeakMap,bn=new WeakMap,wn={})}},Ns=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||md(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),yd(r,o,n,"aria-hidden")):function(){return null}};const Ms="Dialog",[Ls,r_]=Oo(Ms),[bd,rt]=Ls(Ms),wd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=A(null),c=A(null),[u=!1,p]=_s({prop:r,defaultProp:o,onChange:i});return S(bd,{scope:t,triggerRef:s,contentRef:c,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:u,onOpenChange:p,onOpenToggle:H(()=>p(l=>!l),[p]),modal:a},n)},xd="DialogTrigger",$d=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(xd,n),i=ke(t,o.triggerRef);return S(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":To(o.open)},r,{ref:i,onClick:we(e.onClick,o.onOpenToggle)}))}),Is="DialogPortal",[Ed,js]=Ls(Is,{forceMount:void 0}),Cd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rt(Is,t);return S(Ed,{scope:t,forceMount:n},Se.map(r,a=>S(Pt,{present:n||i.open},S($s,{asChild:!0,container:o},a))))},Xr="DialogOverlay",Sd=Y((e,t)=>{const n=js(Xr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Xr,e.__scopeDialog);return i.modal?S(Pt,{present:r||i.open},S(Od,G({},o,{ref:t}))):null}),Od=Y((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(Xr,n);return S(Rs,{as:Gn,allowPinchZoom:!0,shards:[o.contentRef]},S(nt.div,G({"data-state":To(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Zt="DialogContent",Td=Y((e,t)=>{const n=js(Zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Zt,e.__scopeDialog);return S(Pt,{present:r||i.open},i.modal?S(kd,G({},o,{ref:t})):S(Ad,G({},o,{ref:t})))}),kd=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=A(null),o=ke(t,n.contentRef,r);return R(()=>{const i=r.current;if(i)return Ns(i)},[]),S(Fs,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:we(e.onFocusOutside,i=>i.preventDefault())}))}),Ad=Y((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=A(!1),o=A(!1);return S(Fs,G({},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()}}))}),Fs=Y((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rt(Zt,n),c=A(null),u=ke(t,c);return Es(),S(L,null,S(ws,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},S(ys,G({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":To(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function To(e){return e?"open":"closed"}const Pd=wd,Rd=$d,Dd=Cd,Nd=Sd,Md=Td,Ld=["top","right","bottom","left"],Ce=Math.min,ce=Math.max,In=Math.round,xn=Math.floor,Xe=e=>({x:e,y:e}),Id={left:"right",right:"left",bottom:"top",top:"bottom"},jd={start:"end",end:"start"};function Qr(e,t,n){return ce(e,Ce(t,n))}function He(e,t){return typeof e=="function"?e(t):e}function Ue(e){return e.split("-")[0]}function Rt(e){return e.split("-")[1]}function ko(e){return e==="x"?"y":"x"}function Ao(e){return e==="y"?"height":"width"}function Qe(e){return["top","bottom"].includes(Ue(e))?"y":"x"}function Po(e){return ko(Qe(e))}function Fd(e,t,n){n===void 0&&(n=!1);const r=Rt(e),o=Po(e),i=Ao(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=jn(a)),[a,jn(a)]}function Vd(e){const t=jn(e);return[eo(e),t,eo(t)]}function eo(e){return e.replace(/start|end/g,t=>jd[t])}function Hd(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 Ud(e,t,n,r){const o=Rt(e);let i=Hd(Ue(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(eo)))),i}function jn(e){return e.replace(/left|right|bottom|top/g,t=>Id[t])}function Wd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vs(e){return typeof e!="number"?Wd(e):{top:e,right:e,bottom:e,left:e}}function Fn(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 Ni(e,t,n){let{reference:r,floating:o}=e;const i=Qe(t),a=Po(t),s=Ao(a),c=Ue(t),u=i==="y",p=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let f;switch(c){case"top":f={x:p,y:r.y-o.height};break;case"bottom":f={x:p,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:l};break;case"left":f={x:r.x-o.width,y:l};break;default:f={x:r.x,y:r.y}}switch(Rt(t)){case"start":f[a]-=h*(n&&u?-1:1);break;case"end":f[a]+=h*(n&&u?-1:1);break}return f}const zd=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:p,y:l}=Ni(u,r,c),h=r,f={},m=0;for(let v=0;v<s.length;v++){const{name:_,fn:g}=s[v],{x:b,y:w,data:y,reset:x}=await g({x:p,y:l,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});p=b??p,l=w??l,f={...f,[_]:{...f[_],...y}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(h=x.placement),x.rects&&(u=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:p,y:l}=Ni(u,h,c)),v=-1)}return{x:p,y:l,placement:h,strategy:o,middlewareData:f}};async function Jt(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:p="viewport",elementContext:l="floating",altBoundary:h=!1,padding:f=0}=He(t,e),m=Vs(f),_=s[h?l==="floating"?"reference":"floating":l],g=Fn(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:p,strategy:c})),b=l==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),y=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=Fn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:c}):b);return{top:(g.top-x.top+m.top)/y.y,bottom:(x.bottom-g.bottom+m.bottom)/y.y,left:(g.left-x.left+m.left)/y.x,right:(x.right-g.right+m.right)/y.x}}const Bd=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:p=0}=He(e,t)||{};if(u==null)return{};const l=Vs(p),h={x:n,y:r},f=Po(o),m=Ao(f),v=await a.getDimensions(u),_=f==="y",g=_?"top":"left",b=_?"bottom":"right",w=_?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[f]-h[f]-i.floating[m],x=h[f]-i.reference[f],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let C=$?$[w]:0;(!C||!await(a.isElement==null?void 0:a.isElement($)))&&(C=s.floating[w]||i.floating[m]);const E=y/2-x/2,O=C/2-v[m]/2-1,P=Ce(l[g],O),M=Ce(l[b],O),D=P,F=C-v[m]-M,T=C/2-v[m]/2+E,N=Qr(D,T,F),I=!c.arrow&&Rt(o)!=null&&T!==N&&i.reference[m]/2-(T<D?P:M)-v[m]/2<0,j=I?T<D?T-D:T-F:0;return{[f]:h[f]+j,data:{[f]:N,centerOffset:T-N-j,...I&&{alignmentOffset:j}},reset:I}}}),qd=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:p=!0,crossAxis:l=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,..._}=He(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Ue(o),b=Qe(s),w=Ue(s)===s,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=h||(w||!v?[jn(s)]:Vd(s)),$=m!=="none";!h&&$&&x.push(...Ud(s,v,m,y));const C=[s,...x],E=await Jt(t,_),O=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&O.push(E[g]),l){const T=Fd(o,a,y);O.push(E[T[0]],E[T[1]])}if(P=[...P,{placement:o,overflows:O}],!O.every(T=>T<=0)){var M,D;const T=(((M=i.flip)==null?void 0:M.index)||0)+1,N=C[T];if(N)return{data:{index:T,overflows:P},reset:{placement:N}};let I=(D=P.filter(j=>j.overflows[0]<=0).sort((j,U)=>j.overflows[1]-U.overflows[1])[0])==null?void 0:D.placement;if(!I)switch(f){case"bestFit":{var F;const j=(F=P.filter(U=>{if($){const Z=Qe(U.placement);return Z===b||Z==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Z=>Z>0).reduce((Z,jt)=>Z+jt,0)]).sort((U,Z)=>U[1]-Z[1])[0])==null?void 0:F[0];j&&(I=j);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Mi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Li(e){return Ld.some(t=>e[t]>=0)}const Kd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=He(e,t);switch(r){case"referenceHidden":{const i=await Jt(t,{...o,elementContext:"reference"}),a=Mi(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Li(a)}}}case"escaped":{const i=await Jt(t,{...o,altBoundary:!0}),a=Mi(i,n.floating);return{data:{escapedOffsets:a,escaped:Li(a)}}}default:return{}}}}};async function Gd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ue(n),s=Rt(n),c=Qe(n)==="y",u=["left","top"].includes(a)?-1:1,p=i&&c?-1:1,l=He(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:m}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...l};return s&&typeof m=="number"&&(f=s==="end"?m*-1:m),c?{x:f*p,y:h*u}:{x:h*u,y:f*p}}const Yd=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 Gd(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}}}}},Zd=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:g,y:b}=_;return{x:g,y:b}}},...c}=He(e,t),u={x:n,y:r},p=await Jt(t,c),l=Qe(Ue(o)),h=ko(l);let f=u[h],m=u[l];if(i){const _=h==="y"?"top":"left",g=h==="y"?"bottom":"right",b=f+p[_],w=f-p[g];f=Qr(b,f,w)}if(a){const _=l==="y"?"top":"left",g=l==="y"?"bottom":"right",b=m+p[_],w=m-p[g];m=Qr(b,m,w)}const v=s.fn({...t,[h]:f,[l]:m});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Jd=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}=He(e,t),p={x:n,y:r},l=Qe(o),h=ko(l);let f=p[h],m=p[l];const v=He(s,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=h==="y"?"height":"width",y=i.reference[h]-i.floating[w]+_.mainAxis,x=i.reference[h]+i.reference[w]-_.mainAxis;f<y?f=y:f>x&&(f=x)}if(u){var g,b;const w=h==="y"?"width":"height",y=["top","left"].includes(Ue(o)),x=i.reference[l]-i.floating[w]+(y&&((g=a.offset)==null?void 0:g[l])||0)+(y?0:_.crossAxis),$=i.reference[l]+i.reference[w]+(y?0:((b=a.offset)==null?void 0:b[l])||0)-(y?_.crossAxis:0);m<x?m=x:m>$&&(m=$)}return{[h]:f,[l]:m}}}},Xd=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}=He(e,t),c=await Jt(t,s),u=Ue(n),p=Rt(n),l=Qe(n)==="y",{width:h,height:f}=r.floating;let m,v;u==="top"||u==="bottom"?(m=u,v=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(v=u,m=p==="end"?"top":"bottom");const _=f-c.top-c.bottom,g=h-c.left-c.right,b=Ce(f-c[m],_),w=Ce(h-c[v],g),y=!t.middlewareData.shift;let x=b,$=w;if(l?$=p||y?Ce(w,g):g:x=p||y?Ce(b,_):_,y&&!p){const E=ce(c.left,0),O=ce(c.right,0),P=ce(c.top,0),M=ce(c.bottom,0);l?$=h-2*(E!==0||O!==0?E+O:ce(c.left,c.right)):x=f-2*(P!==0||M!==0?P+M:ce(c.top,c.bottom))}await a({...t,availableWidth:$,availableHeight:x});const C=await o.getDimensions(i.floating);return h!==C.width||f!==C.height?{reset:{rects:!0}}:{}}}};function Dt(e){return Hs(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function We(e){var t;return(t=(Hs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hs(e){return e instanceof Node||e instanceof ue(e).Node}function xe(e){return e instanceof Element||e instanceof ue(e).Element}function Oe(e){return e instanceof HTMLElement||e instanceof ue(e).HTMLElement}function Ii(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}function sn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Qd(e){return["table","td","th"].includes(Dt(e))}function Zn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ro(e){const t=Do(),n=xe(e)?$e(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 ef(e){let t=et(e);for(;Oe(t)&&!kt(t);){if(Ro(t))return t;if(Zn(t))return null;t=et(t)}return null}function Do(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function kt(e){return["html","body","#document"].includes(Dt(e))}function $e(e){return ue(e).getComputedStyle(e)}function Jn(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if(Dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ii(e)&&e.host||We(e);return Ii(t)?t.host:t}function Us(e){const t=et(e);return kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oe(t)&&sn(t)?t:Us(t)}function Xt(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),a=ue(o);if(i){const s=to(a);return t.concat(a,a.visualViewport||[],sn(o)?o:[],s&&n?Xt(s):[])}return t.concat(o,Xt(o,[],n))}function to(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ws(e){const t=$e(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Oe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=In(n)!==i||In(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function No(e){return xe(e)?e:e.contextElement}function xt(e){const t=No(e);if(!Oe(t))return Xe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ws(t);let a=(i?In(n.width):n.width)/r,s=(i?In(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const tf=Xe(0);function zs(e){const t=ue(e);return!Do()||!t.visualViewport?tf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ue(e)?!1:t}function ft(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=No(e);let a=Xe(1);t&&(r?xe(r)&&(a=xt(r)):a=xt(e));const s=nf(i,n,r)?zs(i):Xe(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,p=o.width/a.x,l=o.height/a.y;if(i){const h=ue(i),f=r&&xe(r)?ue(r):r;let m=h,v=to(m);for(;v&&r&&f!==m;){const _=xt(v),g=v.getBoundingClientRect(),b=$e(v),w=g.left+(v.clientLeft+parseFloat(b.paddingLeft))*_.x,y=g.top+(v.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,u*=_.y,p*=_.x,l*=_.y,c+=w,u+=y,m=ue(v),v=to(m)}}return Fn({width:p,height:l,x:c,y:u})}function rf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=We(r),s=t?Zn(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Xe(1);const p=Xe(0),l=Oe(r);if((l||!l&&!i)&&((Dt(r)!=="body"||sn(a))&&(c=Jn(r)),Oe(r))){const h=ft(r);u=xt(r),p.x=h.x+r.clientLeft,p.y=h.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x,y:n.y*u.y-c.scrollTop*u.y+p.y}}function of(e){return Array.from(e.getClientRects())}function Bs(e){return ft(We(e)).left+Jn(e).scrollLeft}function af(e){const t=We(e),n=Jn(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Bs(e);const s=-n.scrollTop;return $e(r).direction==="rtl"&&(a+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function sf(e,t){const n=ue(e),r=We(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=Do();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function cf(e,t){const n=ft(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Oe(e)?xt(e):Xe(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 ji(e,t,n){let r;if(t==="viewport")r=sf(e,n);else if(t==="document")r=af(We(e));else if(xe(t))r=cf(t,n);else{const o=zs(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Fn(r)}function qs(e,t){const n=et(e);return n===t||!xe(n)||kt(n)?!1:$e(n).position==="fixed"||qs(n,t)}function lf(e,t){const n=t.get(e);if(n)return n;let r=Xt(e,[],!1).filter(s=>xe(s)&&Dt(s)!=="body"),o=null;const i=$e(e).position==="fixed";let a=i?et(e):e;for(;xe(a)&&!kt(a);){const s=$e(a),c=Ro(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||sn(a)&&!c&&qs(e,a))?r=r.filter(p=>p!==a):o=s,a=et(a)}return t.set(e,r),r}function uf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Zn(t)?[]:lf(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,p)=>{const l=ji(t,p,o);return u.top=ce(l.top,u.top),u.right=Ce(l.right,u.right),u.bottom=Ce(l.bottom,u.bottom),u.left=ce(l.left,u.left),u},ji(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function df(e){const{width:t,height:n}=Ws(e);return{width:t,height:n}}function ff(e,t,n){const r=Oe(t),o=We(t),i=n==="fixed",a=ft(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Xe(0);if(r||!r&&!i)if((Dt(t)!=="body"||sn(o))&&(s=Jn(t)),r){const l=ft(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=Bs(o));const u=a.left+s.scrollLeft-c.x,p=a.top+s.scrollTop-c.y;return{x:u,y:p,width:a.width,height:a.height}}function kr(e){return $e(e).position==="static"}function Fi(e,t){return!Oe(e)||$e(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ks(e,t){const n=ue(e);if(Zn(e))return n;if(!Oe(e)){let o=et(e);for(;o&&!kt(o);){if(xe(o)&&!kr(o))return o;o=et(o)}return n}let r=Fi(e,t);for(;r&&Qd(r)&&kr(r);)r=Fi(r,t);return r&&kt(r)&&kr(r)&&!Ro(r)?n:r||ef(e)||n}const pf=async function(e){const t=this.getOffsetParent||Ks,n=this.getDimensions,r=await n(e.floating);return{reference:ff(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hf(e){return $e(e).direction==="rtl"}const vf={convertOffsetParentRelativeRectToViewportRelativeRect:rf,getDocumentElement:We,getClippingRect:uf,getOffsetParent:Ks,getElementRects:pf,getClientRects:of,getDimensions:df,getScale:xt,isElement:xe,isRTL:hf};function gf(e,t){let n=null,r;const o=We(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:p,width:l,height:h}=e.getBoundingClientRect();if(s||t(),!l||!h)return;const f=xn(p),m=xn(o.clientWidth-(u+l)),v=xn(o.clientHeight-(p+h)),_=xn(u),b={rootMargin:-f+"px "+-m+"px "+-v+"px "+-_+"px",threshold:ce(0,Ce(1,c))||1};let w=!0;function y(x){const $=x[0].intersectionRatio;if($!==c){if(!w)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(y,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(e)}return a(!0),i}function mf(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=No(e),p=o||i?[...u?Xt(u):[],...Xt(t)]:[];p.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const l=u&&s?gf(u,n):null;let h=-1,f=null;a&&(f=new ResizeObserver(g=>{let[b]=g;b&&b.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),u&&!c&&f.observe(u),f.observe(t));let m,v=c?ft(e):null;c&&_();function _(){const g=ft(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,m=requestAnimationFrame(_)}return n(),()=>{var g;p.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),l==null||l(),(g=f)==null||g.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const _f=Yd,yf=Zd,bf=qd,wf=Xd,xf=Kd,Vi=Bd,$f=Jd,Ef=(e,t,n)=>{const r=new Map,o={platform:vf,...n},i={...o.platform,_c:r};return zd(e,t,{...o,platform:i})};var kn=typeof document<"u"?Te:R;function Vn(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(!Vn(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)&&!Vn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Gs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hi(e,t){const n=Gs(e);return Math.round(t*n)/n}function Ui(e){const t=A(e);return kn(()=>{t.current=e}),t}function Cf(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,[p,l]=k({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=k(r);Vn(h,r)||f(r);const[m,v]=k(null),[_,g]=k(null),b=H(j=>{j!==$.current&&($.current=j,v(j))},[]),w=H(j=>{j!==C.current&&(C.current=j,g(j))},[]),y=i||m,x=a||_,$=A(null),C=A(null),E=A(p),O=c!=null,P=Ui(c),M=Ui(o),D=H(()=>{if(!$.current||!C.current)return;const j={placement:t,strategy:n,middleware:h};M.current&&(j.platform=M.current),Ef($.current,C.current,j).then(U=>{const Z={...U,isPositioned:!0};F.current&&!Vn(E.current,Z)&&(E.current=Z,on(()=>{l(Z)}))})},[h,t,n,M]);kn(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,l(j=>({...j,isPositioned:!1})))},[u]);const F=A(!1);kn(()=>(F.current=!0,()=>{F.current=!1}),[]),kn(()=>{if(y&&($.current=y),x&&(C.current=x),y&&x){if(P.current)return P.current(y,x,D);D()}},[y,x,D,P,O]);const T=J(()=>({reference:$,floating:C,setReference:b,setFloating:w}),[b,w]),N=J(()=>({reference:y,floating:x}),[y,x]),I=J(()=>{const j={position:n,left:0,top:0};if(!N.floating)return j;const U=Hi(N.floating,p.x),Z=Hi(N.floating,p.y);return s?{...j,transform:"translate("+U+"px, "+Z+"px)",...Gs(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:Z}},[n,s,N.floating,p.x,p.y]);return J(()=>({...p,update:D,refs:T,elements:N,floatingStyles:I}),[p,D,T,N,I])}const Sf=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?Vi({element:r.current,padding:o}).fn(n):{}:r?Vi({element:r,padding:o}).fn(n):{}}}},Of=(e,t)=>({..._f(e),options:[e,t]}),Tf=(e,t)=>({...yf(e),options:[e,t]}),kf=(e,t)=>({...$f(e),options:[e,t]}),Af=(e,t)=>({...bf(e),options:[e,t]}),Pf=(e,t)=>({...wf(e),options:[e,t]}),Rf=(e,t)=>({...xf(e),options:[e,t]}),Df=(e,t)=>({...Sf(e),options:[e,t]});function Nf(e){const[t,n]=k(void 0);return Tt(()=>{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 Ys="Popper",[Zs,Js]=Oo(Ys),[Mf,Xs]=Zs(Ys),Lf=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k(null);return S(Mf,{scope:t,anchor:r,onAnchorChange:o},n)},If="PopperAnchor",jf=Y((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Xs(If,n),a=A(null),s=ke(t,a);return R(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:S(nt.div,G({},o,{ref:s}))}),Qs="PopperContent",[Ff,o_]=Zs(Qs),Vf=Y((e,t)=>{var n,r,o,i,a,s,c,u;const{__scopePopper:p,side:l="bottom",sideOffset:h=0,align:f="center",alignOffset:m=0,arrowPadding:v=0,avoidCollisions:_=!0,collisionBoundary:g=[],collisionPadding:b=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:$,...C}=e,E=Xs(Qs,p),[O,P]=k(null),M=ke(t,B=>P(B)),[D,F]=k(null),T=Nf(D),N=(n=T==null?void 0:T.width)!==null&&n!==void 0?n:0,I=(r=T==null?void 0:T.height)!==null&&r!==void 0?r:0,j=l+(f!=="center"?"-"+f:""),U=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(g)?g:[g],jt=Z.length>0,me={padding:U,boundary:Z.filter(Hf),altBoundary:jt},{refs:ze,floatingStyles:ot,placement:ln,isPositioned:Ae,middlewareData:Pe}=Cf({strategy:"fixed",placement:j,whileElementsMounted:(...B)=>mf(...B,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[Of({mainAxis:h+I,alignmentAxis:m}),_&&Tf({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?kf():void 0,...me}),_&&Af({...me}),Pf({...me,apply:({elements:B,rects:se,availableWidth:Be,availableHeight:ee})=>{const{width:ne,height:_e}=se.reference,at=B.floating.style;at.setProperty("--radix-popper-available-width",`${Be}px`),at.setProperty("--radix-popper-available-height",`${ee}px`),at.setProperty("--radix-popper-anchor-width",`${ne}px`),at.setProperty("--radix-popper-anchor-height",`${_e}px`)}}),D&&Df({element:D,padding:v}),Uf({arrowWidth:N,arrowHeight:I}),y&&Rf({strategy:"referenceHidden",...me})]}),[Ft,or]=ec(ln),ht=Je($);Tt(()=>{Ae&&(ht==null||ht())},[Ae,ht]);const it=(o=Pe.arrow)===null||o===void 0?void 0:o.x,un=(i=Pe.arrow)===null||i===void 0?void 0:i.y,W=((a=Pe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[z,te]=k();return Tt(()=>{O&&te(window.getComputedStyle(O).zIndex)},[O]),S("div",{ref:ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...ot,transform:Ae?ot.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(s=Pe.transformOrigin)===null||s===void 0?void 0:s.x,(c=Pe.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},S(Ff,{scope:p,placedSide:Ft,onArrowChange:F,arrowX:it,arrowY:un,shouldHideArrow:W},S(nt.div,G({"data-side":Ft,"data-align":or},C,{ref:M,style:{...C.style,animation:Ae?void 0:"none",opacity:(u=Pe.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function Hf(e){return e!==null}const Uf=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,h=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[m,v]=ec(s),_={start:"0%",center:"50%",end:"100%"}[v],g=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+h/2,b=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+f/2;let w="",y="";return m==="bottom"?(w=l?_:`${g}px`,y=`${-f}px`):m==="top"?(w=l?_:`${g}px`,y=`${c.floating.height+f}px`):m==="right"?(w=`${-f}px`,y=l?_:`${b}px`):m==="left"&&(w=`${c.floating.width+f}px`,y=l?_:`${b}px`),{data:{x:w,y}}}});function ec(e){const[t,n="center"]=e.split("-");return[t,n]}const Wf=Lf,zf=jf,Bf=Vf,tc="Popover",[nc,i_]=Oo(tc,[Js]),Mo=Js(),[qf,Nt]=nc(tc),Kf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Mo(t),c=A(null),[u,p]=k(!1),[l=!1,h]=_s({prop:r,defaultProp:o,onChange:i});return S(Wf,s,S(qf,{scope:t,contentId:Sn(),triggerRef:c,open:l,onOpenChange:h,onOpenToggle:H(()=>h(f=>!f),[h]),hasCustomAnchor:u,onCustomAnchorAdd:H(()=>p(!0),[]),onCustomAnchorRemove:H(()=>p(!1),[]),modal:a},n))},Gf="PopoverTrigger",Yf=Y((e,t)=>{const{__scopePopover:n,...r}=e,o=Nt(Gf,n),i=Mo(n),a=ke(t,o.triggerRef),s=S(nt.button,G({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ic(o.open)},r,{ref:a,onClick:we(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:S(zf,G({asChild:!0},i),s)}),rc="PopoverPortal",[Zf,Jf]=nc(rc,{forceMount:void 0}),Xf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Nt(rc,t);return S(Zf,{scope:t,forceMount:n},S(Pt,{present:n||i.open},S($s,{asChild:!0,container:o},r)))},Qt="PopoverContent",Qf=Y((e,t)=>{const n=Jf(Qt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Nt(Qt,e.__scopePopover);return S(Pt,{present:r||i.open},i.modal?S(ep,G({},o,{ref:t})):S(tp,G({},o,{ref:t})))}),ep=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=A(null),o=ke(t,r),i=A(!1);return R(()=>{const a=r.current;if(a)return Ns(a)},[]),S(Rs,{as:Gn,allowPinchZoom:!0},S(oc,G({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:we(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:we(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),tp=Y((e,t)=>{const n=Nt(Qt,e.__scopePopover),r=A(!1),o=A(!1);return S(oc,G({},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()}}))}),oc=Y((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:p,...l}=e,h=Nt(Qt,n),f=Mo(n);return Es(),S(ws,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},S(ys,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1)},S(Bf,G({"data-state":ic(h.open),role:"dialog",id:h.contentId},f,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 ic(e){return e?"open":"closed"}const np=Kf,rp=Yf,op=Xf,ip=Qf,Wi=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},ap=(e,t={by:"results-count",order:"descending"})=>{const n=[...e];switch(t.by){case"results-count":n.sort((r,o)=>r.jobs-o.jobs);break;case"alphabetically":n.sort((r,o)=>r.label.localeCompare(o.label));break;case"numerically":n.sort((r,o)=>{const i=Wi(r.value),a=Wi(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},cn=ge({base:"fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",variants:{hasValue:{false:"text-copy-neutral ring-job-card-stroke",true:"text-interactive-accent-text ring-job-card-stroke"},size:{md:"py-2 px-4",unsized:""}},defaultVariants:{size:"md",hasValue:!1}}),ac=ge({base:"flex-1 gutter-stable group/filter flex-col p-2 bg-app flex max-w-full overflow-y-auto items-stretch",variants:{ring:{default:"border-b-px border-neutral-4",unset:""}},defaultVariants:{ring:"default"}}),sc=ge({base:"max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",variants:{type:{pill:"",line:"[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"}}}),cc=ge({base:"cursor-pointer flex fr gap-2 font-style-tag pointer-fine:group-[&:first-child]/filter:group-[&:first-child]/tag:rounded-t-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",variants:{active:{true:"bg-accent-2 text-accent-11",false:"text-neutral-11"},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,active:!1,class:"hover:bg-neutral-2"}],defaultVariants:{disabled:!1,active:!1}}),sp=ge({base:"rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",variants:{colorScheme:{accentStrong:"text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",neutralStrong:"text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"}}}),cp=({children:e,colorScheme:t})=>d("span",{class:sp({colorScheme:t}),children:d("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),lp=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},up=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},dp=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},fp=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,onClose:i})=>{const{t:a}=re(),s=nn(n()),c=J(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const f=s.data[t.key]??[];return Object.fromEntries(f.map(m=>[m.value,m.jobs]))}default:yt(s)}},[s,t.key]),u=lc(e),p=u.length>0,[l,h]=k();return d("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.searchable&&d("div",{class:"border-b-px border-neutral-4",children:d("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:l,onInput:f=>h(f.currentTarget.value),placeholder:a("type_to_search")})}),(()=>{switch(s.queryState){case"error":return d(Ze,{error:new Error(a("filters_loading_error"),{cause:s.error}),class:"flex-1",resetError:()=>s.swr.mutate()});case"idle":case"loading":return d("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((f,m)=>d("div",{style:{animationDelay:m*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},m))});case"revalidating":case"loaded":{const f=s.data[t.key]??[],m=l&&l.length>1?f.filter(g=>g.label.toLowerCase().includes(l.toLowerCase())):f,v=[];for(const g of m){if(g.label.length<1)continue;const b={...g,results:dp(c,g),disabled:up(c,g)};switch(t.results){case"only-available":b.disabled===!1&&v.push(b);break;default:v.push(b)}}return v.find(g=>!g.disabled)?d("ul",{class:ac(),children:ap(v,t.sortSuggestions).map(g=>{const b=u.includes(g.value);return d("li",{class:sc({type:"line"}),children:d("button",{type:"button",disabled:g.disabled,"data-filter":!0,"data-current-value":b?"true":void 0,onClick:()=>{switch(e.select){case"many":{const w=lp(u,g.value);o({select:"many",value:w});break}case"one":o({select:"one",value:b?void 0:g.value});break;default:yt(e)}},class:cc({active:b,disabled:g.disabled}),children:[d("span",{class:"max-w-full truncate",children:g.label})," ",d(cp,{colorScheme:b?"accentStrong":"neutralStrong",children:g.results})]})},g.value)})}):d("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:a("no_filter_options_available")})}default:yt(s)}})(),d("footer",{class:"flex flex-none justify-end p-2",children:[d("div",{class:"flex-1",children:p&&d("button",{type:"button",class:je({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[d(Q,{"aria-hidden":!0,name:"x"})," ",a("clear")]})}),e.select==="many"&&r&&d("div",{class:"flex items-center overflow-hidden",children:d("p",{class:"theme-light:text-neutral-11 theme-dark:text-neutral-12 font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center",children:[u.length," ",a("selected")]})}),d("div",{class:"flex-1",children:d("button",{type:"button",class:je({variant:p?"accent":"neutral",class:"ml-auto"}),onClick:i,children:a(p?"done":"close")},p?"done":"close")})]})]})},zi=8,Bi={contract_type:"clock",title:"magnifier",city:"mapPin",town:"mapPin",country:"mapPin",company_name:"briefcase",category:"briefcase",pay:"pay",pay_currency:"pay",pay_mask:"pay",pay_display:"pay",pay_max:"pay",pay_min:"pay",pay_type:"pay"},qi=ge({base:"theme-fill:fr theme-fill:bg-neutral-2 theme-fill:hover:bg-neutral-3 theme-stroke:fr theme-stroke:hover:fr theme-stroke:ring-px theme-stroke:bg-lowest theme-stroke:ring-neutral-4 theme-stroke:hover:ring-neutral-6 group relative flex cursor-pointer select-none items-center gap-1.5 py-2.5 pl-3.5 pr-3 font-style-filter font-family-filter font-weight-filter text-style-filter duration-snappy outline-none ijs-filter flex-shrink-0 min-w-0 theme-rounded:rounded-md theme-soft:rounded-sm transition-all ease-expo-out active:scale-[0.975] origin-[50%_1.75rem]",variants:{state:{default:"text-copy-neutral-lowcontrast hover:text-copy-neutral",active:"text-copy-neutral"}}}),Ki=ge({base:"bg-lowest isolate z-50 flex flex-col overflow-hidden ring-neutral-4 ring-px",variants:{mode:{mobile:"fixed bottom-0 w-full h-[80svh] rounded-t-section animate-slide-out-bottom pb-[env(safe-area-inset-bottom)]",desktop:"min-w-64 max-w-xs max-h-[--radix-popover-content-available-height] rounded-section animate-slideDownFade data-[side=top]:animate-slideUpFade shadow-lg"}}}),lc=e=>typeof e.value=="string"?[e.value]:e.value??[],pp=({selectedValues:e})=>{const t=e.length;return t===0?null:d("span",{"aria-label":"Current value",class:"animate-appear-tag text-style-job-card-info font-style-tag font-family-tag font-weight-tag text-tag-accent-strong-copy bg-tag-accent-strong-bg min-w-6 min-h-6 absolute -right-1 -top-1 inline-flex items-center justify-center rounded-[999px] px-2 tabular-nums",children:t},t)},hp=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:c})=>{const u=Cc(r.key,Bi)?Bi[r.key]:void 0,p=r.icon??u??"filter",l=lc(t),h=l.length>0,f=gs("(pointer: coarse)"),m=d(L,{children:[d("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[d(Q,{"aria-hidden":!0,class:"flex-none",name:p}),d("span",{class:"truncate",children:r.label})]}),d(Q,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),d(pp,{selectedValues:l})]}),v=d(fp,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:f});return f?d(Pd,{open:e,onOpenChange:n,children:[d(Rd,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),onTouchStart:vp,children:m}),d(Dd,{children:d("div",{class:"inploi-job-search","data-widget-id":c,children:[d(Nd,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),d(Md,{class:Ki({mode:"mobile",class:Kr(s)}),children:[d("header",{class:"theme-fill:bg-neutral-1 text-neutral-12 border-b-px border-neutral-4 flex cursor-default items-center gap-2 p-4",children:[d(Q,{name:p,class:"flex-none"}),d("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),v]})]})})]}):d(np,{open:e,onOpenChange:_=>n(_),modal:f,children:[d(rp,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:qi({state:e||h?"active":"default"}),children:m}),d(op,{children:d("div",{class:"inploi-job-search","data-widget-id":c,children:d(ip,{side:"bottom",sideOffset:zi,align:"center",collisionPadding:zi,class:Ki({mode:"desktop",class:Kr(s)}),children:v})})})]})};function vp(){}const gp=(e,t)=>{var n,r,o;switch(t.select){case"many":(n=t.value)==null||n.forEach(i=>{var a,s;switch(e.select){case"many":(a=e.value)!=null&&a.includes(i)||(s=e.value)==null||s.push(i);break;case"one":e.value=i}});break;case"one":if(!t.value)break;switch(e.select){case"many":(r=e.value)!=null&&r.includes(t.value)||(o=e.value)==null||o.push(t.value);break;case"one":e.value=t.value}break}},mp=({value:e,activeKey:t})=>{switch(e==null?void 0:e.select){case void 0:return{newValue:void 0,newActiveKey:t};case"one":case"many":return{newValue:e,newActiveKey:t};default:yt(e)}},_p=({properties:e,state:t,onFilterValueChange:n,onResetFilters:r,rpcClient:o,theme:i,alerts:a,widgetId:s,i18n:c})=>{const{t:u}=re(),[p,l]=k(void 0),h=J(()=>({filters:Un(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),f=nn(Yt(Gr({state:h,baseKey:"filters"}),()=>Yo({rpcClient:o,state:h,t:u,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Nn)),m=H(v=>()=>{const _={...t,filters:{...t.filters,[v]:h.filters[v]}};return Yt(Gr({state:_,baseKey:"filters"}),()=>Yo({rpcClient:o,state:_,t:u,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Nn)},[o,h.filters,t,u,c]);return f.queryState==="error"?d(Ze,{error:new Error(u("filters_loading_error"),{cause:f.error}),resetError:()=>f.swr.mutate()}):d("div",{class:"ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center",children:[e.filter(v=>v.hidden!==!0).map(v=>{const _=p===v.key,g=t.filters[v.key]??{select:v.select,value:void 0},b=h.filters[v.key];b&&gp(g,b);const w=$=>{const{newActiveKey:C,newValue:E}=mp({property:v,activeKey:p,value:$??b,properties:e,appliedFilters:t.filters});return l(C),n(v.key,E)},y=$=>l($?v.key:void 0),x=m(v.key);return d(qt,{Fallback:Ze,children:d(hp,{unfilteredQuery:f,active:_,property:v,onActiveChange:y,value:g,useQuery:x,onValueChange:w,theme:i,widgetId:s})},v.key)}),d("button",{type:"button",class:je({variant:"neutral"}),onClick:r,children:u("reset")}),a?d("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:d("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[d("div",{class:"block h-6 w-6"}),d("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:a.params.config.label})]})}):null]})};function yp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Xn=yp,bp=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,wp=bp,xp=wp,$p=typeof self=="object"&&self&&self.Object===Object&&self,Ep=xp||$p||Function("return this")(),Qn=Ep,Cp=Qn,Sp=function(){return Cp.Date.now()},Op=Sp,Tp=/\s/;function kp(e){for(var t=e.length;t--&&Tp.test(e.charAt(t)););return t}var Ap=kp,Pp=Ap,Rp=/^\s+/;function Dp(e){return e&&e.slice(0,Pp(e)+1).replace(Rp,"")}var Np=Dp,Mp=Qn,Lp=Mp.Symbol,Lo=Lp,Gi=Lo,uc=Object.prototype,Ip=uc.hasOwnProperty,jp=uc.toString,Ht=Gi?Gi.toStringTag:void 0;function Fp(e){var t=Ip.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var o=jp.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),o}var Vp=Fp,Hp=Object.prototype,Up=Hp.toString;function Wp(e){return Up.call(e)}var zp=Wp,Yi=Lo,Bp=Vp,qp=zp,Kp="[object Null]",Gp="[object Undefined]",Zi=Yi?Yi.toStringTag:void 0;function Yp(e){return e==null?e===void 0?Gp:Kp:Zi&&Zi in Object(e)?Bp(e):qp(e)}var dc=Yp;function Zp(e){return e!=null&&typeof e=="object"}var Jp=Zp,Xp=dc,Qp=Jp,eh="[object Symbol]";function th(e){return typeof e=="symbol"||Qp(e)&&Xp(e)==eh}var er=th,nh=Np,Ji=Xn,rh=er,Xi=0/0,oh=/^[-+]0x[0-9a-f]+$/i,ih=/^0b[01]+$/i,ah=/^0o[0-7]+$/i,sh=parseInt;function ch(e){if(typeof e=="number")return e;if(rh(e))return Xi;if(Ji(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ji(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nh(e);var n=ih.test(e);return n||ah.test(e)?sh(e.slice(2),n?2:8):oh.test(e)?Xi:+e}var lh=ch,uh=Xn,Ar=Op,Qi=lh,dh="Expected a function",fh=Math.max,ph=Math.min;function hh(e,t,n){var r,o,i,a,s,c,u=0,p=!1,l=!1,h=!0;if(typeof e!="function")throw new TypeError(dh);t=Qi(t)||0,uh(n)&&(p=!!n.leading,l="maxWait"in n,i=l?fh(Qi(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function f($){var C=r,E=o;return r=o=void 0,u=$,a=e.apply(E,C),a}function m($){return u=$,s=setTimeout(g,t),p?f($):a}function v($){var C=$-c,E=$-u,O=t-C;return l?ph(O,i-E):O}function _($){var C=$-c,E=$-u;return c===void 0||C>=t||C<0||l&&E>=i}function g(){var $=Ar();if(_($))return b($);s=setTimeout(g,v($))}function b($){return s=void 0,h&&r?f($):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function y(){return s===void 0?a:b(Ar())}function x(){var $=Ar(),C=_($);if(r=arguments,o=this,c=$,C){if(s===void 0)return m(c);if(l)return clearTimeout(s),s=setTimeout(g,t),f(c)}return s===void 0&&(s=setTimeout(g,t)),a}return x.cancel=w,x.flush=y,x}var vh=hh;const gh=$o(vh),no="|",fc=(e,t)=>{const n=structuredClone(e);return n.forEach(r=>{if(t.has(r.key)){const o=t.get(r.key);if(!o)return;switch(r.select){case"one":{r.defaultValue=o;break}case"many":o.includes(no)?r.defaultValue=o.split(no):r.defaultValue=o}}}),n},pc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},hc=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},mh=({searchParams:e})=>({properties:t})=>({filters:Un(fc(t,e),"defaultValue"),mode:pc(e),geo:vc(e),page:An(e.get("page"))??1,view:hc(e),query:e.get("query")??""}),_h=(e,t)=>{var n,r;if(e.filters!==void 0){const o=zn({filters:e.filters,query:"",mode:e.mode??"query",page:e.page??1,view:e.view??"list"});for(const[i,a]of Object.entries(o))if(i!=="geolocation"){if(a==null){t.delete(i);continue}Array.isArray(a)?a.length===0?t.delete(i):t.set(i,a.join(no)):typeof a=="string"&&t.set(i,a)}}"geo"in e&&(((n=e.geo)==null?void 0:n.type)==="provided"?(e.geo.coords?(t.set("lat",e.geo.coords.lat.toString()),t.set("lng",e.geo.coords.lng.toString())):(t.delete("lat"),t.delete("lng")),t.set("radius",e.geo.radius.toString())):((r=e.geo)==null||r.type,t.delete("lat"),t.delete("lng"),t.delete("radius"))),"query"in e&&(e.query?t.set("query",e.query):t.delete("query")),"page"in e&&(e.page&&e.page>1?t.set("page",e.page.toString()):t.delete("page")),"view"in e&&(e.view?t.set("view",e.view):t.delete("view"))},An=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},vc=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=An(t),i=An(n),a=An(r)??Hn(ro);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?Hn(ro):a}},gc=(e,t=1e3)=>{const[n,r]=k(e),o=J(()=>gh(i=>r(i),t),[t]);return R(()=>{o(e)},[e,o]),n},yh=Y(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onQueryChange:a,onBlur:s,onFocus:c,inputProps:u,menuProps:p,query:l},h)=>{const[f,m]=k(!1),[v,_]=k(),{t:g}=re(),b=A();R(()=>{var y;_((y=o[0])==null?void 0:y.id)},[o]);const w=y=>{i(y),m(!1)};return d("div",{class:"relative h-full",children:[d("input",{name:n,ref:h,disabled:e,"data-active":f?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:cn({size:"md"}),onFocus:()=>{c==null||c(),m(!0)},onBlur:()=>{b.current=window.setTimeout(()=>{s==null||s(),m(!1)},100)},value:l,onChange:y=>a(y.currentTarget.value),onKeyDown:y=>{switch(m(!0),y.key){case"ArrowDown":case"ArrowUp":{const x=y.key==="ArrowDown"?1:-1;y.preventDefault();const $=o.findIndex(E=>E.id===v);if($===-1)return;const C=o[$+x]??o[y.key==="ArrowDown"?0:o.length-1];if(!C)return;_(C.id);break}case"Enter":{if(y.preventDefault(),!v)return;i(v)}}},...u}),!t&&f&&!e&&o.length>0?d("ul",{className:ac({ring:"unset",className:"ring-width-section rounded-input ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"}),id:`ijs-${n}-menu`,onMouseDown:()=>{b.current&&clearTimeout(b.current)},...p,children:t?d("div",{role:"alert",children:g("geo_suggestions_error")}):o.map(y=>d("li",{class:sc({type:"line",className:"group/tag"}),children:d("button",{type:"button",onMouseEnter:()=>_(y.id),class:cc({active:y.id===v,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>w(y.id),onKeyDown:x=>{x.key==="Enter"&&w(y.id)},children:y.label})},y.id))}):null]})}),bh=(e={})=>new Promise((t,n)=>{var r,o;if((r=e.signal)!=null&&r.aborted){n(new DOMException("Aborted","AbortError"));return}navigator.geolocation.getCurrentPosition(i=>t(i.coords),i=>n(i),e),(o=e.signal)==null||o.addEventListener("abort",()=>{n(new DOMException("Aborted","AbortError"))},{once:!0})}),wh={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},ea=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,xh=({onLocate:e,onError:t,signal:n})=>{const[r,o]=k("idle"),[i,a]=k(null),{t:s}=re(),c=u=>{o("idle"),a(u),e(u)};return d("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(ea){if(o("loading"),i)return c(i);bh({signal:n}).then(u=>{const p={lat:u.latitude,lng:u.longitude};c(p)}).catch(u=>{if(u instanceof DOMException&&u.name==="AbortError")return o("idle");o("error");const p=wh[u.code];if(!p)return;const l=s(p);t(l)})}},"data-state":r,class:je({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!ea||r==="error",children:d(Q,{name:"target-location"})})},$t=ge({base:"block fr font-style-tag font-family-tag font-weight-tag",variants:{variant:{neutralWeak:"text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",neutralStrong:"text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",accentStrong:"text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",monetaryWeak:"text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"},interactive:{true:"ease-expo-out rounded-interactive transition-all duration-snappy",false:"rounded-tag"},size:{xs:"px-2 py-0.5 text-style-tag",sm:"px-3 py-1.5 text-style-tag",lg:"px-5 py-2.5 text-style-tag",unsized:""},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,interactive:!0,class:"cursor-pointer active:scale-[0.975]"}],defaultVariants:{variant:"neutralWeak",size:"sm",disabled:!1,interactive:!1}}),$h="https://api.mapbox.com/search/geocode/v6/forward",Eh="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Ch=e=>atob(e).split("").reverse().join(""),Sh=le({features:tn(pe(le({properties:le({mapbox_id:K(),place_formatted:Ye(K()),name_preferred:Ye(K(),"Untitled location"),coordinates:pe(le({latitude:be(),longitude:be()}),fe(({latitude:e,longitude:t})=>({lat:e,lng:t})))})}),fe(e=>e.properties)))}),Oh=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Th=async e=>{if(!e)return[];const t=new URL($h);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",Ch(Eh));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=po(Sh,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return Oh(o,i=>i.name_preferred+i.place_formatted)},kh=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=re(),[a,s]=k(""),[c,u]=k(),p=gc(a,500),[l,h]=k(new AbortController),f=Yt(p,Th,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:m,queryState:v,error:_}=nn(f),[g,b]=k("view"),w=A(null);return R(()=>{if(g==="edit"){if(!w.current)return;w.current.focus()}},[g]),d("div",{class:"relative flex-1",children:[g==="view"&&n?d("button",{"aria-label":i("geo_search_placeholder"),type:"button",class:cn({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{b("edit")},children:d("div",{class:$t({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:c??i("location_provided")})}):d(yh,{ref:w,error:_,query:a,name:"location-search",onQueryChange:s,onFocus:()=>{l.abort(),h(new AbortController)},onBlur:()=>{b("view"),s("")},onItemSelect:y=>{if(v!=="loaded")return;const x=m.find($=>$.mapbox_id===y);x&&(e(x.coordinates),b("view"),u(x.name_preferred))},inputPlaceholder:i("geo_search_placeholder"),items:(m==null?void 0:m.map(y=>({id:y.mapbox_id,label:d("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[d("strong",{class:"truncate",children:y.name_preferred})," ",d("span",{class:"flex-1 truncate opacity-50",children:y.place_formatted})]})})))??[]}),d("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?d(xh,{onLocate:y=>{b("view"),u(i("geo_my_location")),t({type:"provided",coords:y,radius:r})},onError:o,signal:l.signal}):d("button",{type:"button","aria-label":i("geo_clear_search"),onClick:()=>{s(""),u(void 0),t({radius:r,type:"provided"}),b("edit"),w.current&&(w.current.value="",w.current.focus())},class:je({variant:"neutral",size:"lg",icon:"only"}),children:d(Q,{name:"x"})})})]})},Ah=[.25,.5,1,3,5,10,15,20,30,40],Ph=[.5,1,3,5,10,15,25,50,100],ro=20,Rh=25,Hn=e=>e*1609.34,ta=e=>e*1e3,Dh=pe(le({type:ct("provided"),lat:Ye(pe(K(),fe(Number))),lng:Ye(pe(K(),fe(Number))),radius:pe(K(),fe(Number))}),fe(e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0}))),Nh=({value:e,onValueChange:t,logger:n,distanceUnit:r="miles"})=>{const{t:o,locale:i}=re(),a=qn(),[s,c]=k(),u=J(()=>new Intl.NumberFormat(i??void 0,{style:"unit",unit:r==="miles"?"mile":"kilometer",unitDisplay:"short",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),[i,r]),p=r==="miles"?Hn(ro):ta(Rh),l=(e==null?void 0:e.type)==="provided"?e.radius:p,h=r==="miles"?Ah.map(f=>({value:Hn(f),label:u.format(f)})):Ph.map(f=>({value:ta(f),label:u.format(f)}));return d("div",{class:"flex flex-col gap-2",children:[d("form",{onChange:f=>{const m=new FormData(f.currentTarget),v=po(Dh,Object.fromEntries(m.entries()));if(!v.success){n.error(v.issues),c(v.issues[0].message);return}t(v.output)},class:"flex flex-col gap-2 md:flex-row",children:[d("input",{type:"hidden",name:"type",value:"provided"}),(e==null?void 0:e.type)==="provided"&&e.coords?d(L,{children:[d("input",{type:"hidden",name:"lat",value:e.coords.lat}),d("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,d(kh,{coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:l,onValueChange:t,onSelect:f=>{c(void 0),t({type:"provided",radius:l,coords:f})},onError:c}),d("div",{class:"relative",children:[d("label",{class:"sr-only",for:a,children:o("geo_range_label")}),d("select",{id:a,name:"radius",class:cn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:l,onChange:f=>{c(void 0),t({type:"provided",coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:Number(f.currentTarget.value)})},children:h.map(f=>d("option",{value:f.value,class:"truncate",children:f.label},f.value))}),d("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:d(Q,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),s?d("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[d(Q,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),s]}):null]})},Mh=2,Lh=({value:e,onValueChange:t})=>{const[n,r]=k(e??""),o=n!==""&&n===e,{t:i}=re();return R(()=>{r(e??"")},[e]),R(()=>{let a=n.trim();if(a.length<=Mh&&(a=null),a===null){t("");return}const s=setTimeout(()=>{t(a)},300);return()=>clearTimeout(s)},[n,t]),d("div",{class:"flex flex-col gap-3",children:d("div",{class:"relative",children:[d("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[d(Q,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:St({"text-copy-neutral-icon":!o,"text-copy-accent-icon":o})}),d("span",{class:"sr-only",children:"Keyword"})]}),d("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:cn({hasValue:o,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:i("type_to_search_jobs"),value:n,onChange:a=>{r(a.currentTarget.value)}}),d("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{r("")},children:d(Q,{name:"x"})})]})})},Ih=({intervalMs:e,strings:t,class:n})=>{const[r,o]=k(0),[i,a]=k(!0),s=[...t,t[0]];return R(()=>{r===s.length&&(a(!1),o(0));const c=setTimeout(()=>{a(!0),o(u=>u+1)},e);return()=>clearTimeout(c)},[r,s.length,e]),d("div",{className:St("relative h-full w-full overflow-hidden",n),children:d("div",{className:St("absolute w-full",{"transition-transform duration-500 ease-in-out":i}),style:{height:`${100*s.length}%`,transform:`translateY(-${r*(100/s.length)}%)`},children:s.map((c,u)=>d("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:c},u))})})},jh=(e,t)=>{R(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},na=3,Fh=({value:e,onValueChange:t,options:n})=>{const[r,o]=k(e??""),i=r.trim(),a=i!==""&&i===e,{t:s}=re(),c=i.split("");R(()=>{o(e??"")},[e]);const[u,p]=k(0),l=A(null);return jh(l,h=>{h.target instanceof HTMLInputElement&&p(h.target.scrollLeft)}),R(()=>{let h=r.trim();if(h.length<=na&&(h=null),h===null){t("");return}const f=setTimeout(()=>{t(h.trim())},1e3);return()=>clearTimeout(f)},[r,t]),d("div",{class:"mb-2 flex flex-col gap-2",children:[d("div",{class:"relative",children:[d("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[d(Q,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:St("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!a,"text-copy-accent-icon":a})}),d("span",{class:"sr-only",children:"Keyword"})]}),d("input",{ref:l,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:n!=null&&n.suggestions?n.suggestions.join(", "):" ",class:cn({hasValue:a,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:r,onChange:h=>{const f=h.currentTarget.value.trim();o(f)},onKeyDown:h=>{if(h.key==="Enter"){if(h.currentTarget.value.trim().length<=na)return;h.preventDefault(),t(r)}}}),d("div",{"data-synced":a,class:"font-weight-input text-copy-neutral group pointer-events-none absolute inset-x-10 inset-y-0 flex overflow-hidden tracking-tight peer-placeholder-shown:right-0",children:i.length>0?d("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-u}px)`},children:c.map((h,f)=>d("span",{style:{animationDelay:`${f*300/c.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:h===" "?" ":h},i+f))}):n!=null&&n.suggestions?d(Ih,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),d("button",{type:"button",class:je({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{o(""),t("")},children:d(Q,{name:"x"})})]}),d("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})};var Vh=Array.isArray,Io=Vh,Hh=Io,Uh=er,Wh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zh=/^\w*$/;function Bh(e,t){if(Hh(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Uh(e)?!0:zh.test(e)||!Wh.test(e)||t!=null&&e in Object(t)}var qh=Bh,Kh=dc,Gh=Xn,Yh="[object AsyncFunction]",Zh="[object Function]",Jh="[object GeneratorFunction]",Xh="[object Proxy]";function Qh(e){if(!Gh(e))return!1;var t=Kh(e);return t==Zh||t==Jh||t==Yh||t==Xh}var ev=Qh,tv=Qn,nv=tv["__core-js_shared__"],rv=nv,Pr=rv,ra=function(){var e=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ov(e){return!!ra&&ra in e}var iv=ov,av=Function.prototype,sv=av.toString;function cv(e){if(e!=null){try{return sv.call(e)}catch{}try{return e+""}catch{}}return""}var lv=cv,uv=ev,dv=iv,fv=Xn,pv=lv,hv=/[\\^$.*+?()[\]{}|]/g,vv=/^\[object .+?Constructor\]$/,gv=Function.prototype,mv=Object.prototype,_v=gv.toString,yv=mv.hasOwnProperty,bv=RegExp("^"+_v.call(yv).replace(hv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wv(e){if(!fv(e)||dv(e))return!1;var t=uv(e)?bv:vv;return t.test(pv(e))}var xv=wv;function $v(e,t){return e==null?void 0:e[t]}var Ev=$v,Cv=xv,Sv=Ev;function Ov(e,t){var n=Sv(e,t);return Cv(n)?n:void 0}var mc=Ov,Tv=mc,kv=Tv(Object,"create"),tr=kv,oa=tr;function Av(){this.__data__=oa?oa(null):{},this.size=0}var Pv=Av;function Rv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Dv=Rv,Nv=tr,Mv="__lodash_hash_undefined__",Lv=Object.prototype,Iv=Lv.hasOwnProperty;function jv(e){var t=this.__data__;if(Nv){var n=t[e];return n===Mv?void 0:n}return Iv.call(t,e)?t[e]:void 0}var Fv=jv,Vv=tr,Hv=Object.prototype,Uv=Hv.hasOwnProperty;function Wv(e){var t=this.__data__;return Vv?t[e]!==void 0:Uv.call(t,e)}var zv=Wv,Bv=tr,qv="__lodash_hash_undefined__";function Kv(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bv&&t===void 0?qv:t,this}var Gv=Kv,Yv=Pv,Zv=Dv,Jv=Fv,Xv=zv,Qv=Gv;function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mt.prototype.clear=Yv;Mt.prototype.delete=Zv;Mt.prototype.get=Jv;Mt.prototype.has=Xv;Mt.prototype.set=Qv;var eg=Mt;function tg(){this.__data__=[],this.size=0}var ng=tg;function rg(e,t){return e===t||e!==e&&t!==t}var og=rg,ig=og;function ag(e,t){for(var n=e.length;n--;)if(ig(e[n][0],t))return n;return-1}var nr=ag,sg=nr,cg=Array.prototype,lg=cg.splice;function ug(e){var t=this.__data__,n=sg(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():lg.call(t,n,1),--this.size,!0}var dg=ug,fg=nr;function pg(e){var t=this.__data__,n=fg(t,e);return n<0?void 0:t[n][1]}var hg=pg,vg=nr;function gg(e){return vg(this.__data__,e)>-1}var mg=gg,_g=nr;function yg(e,t){var n=this.__data__,r=_g(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var bg=yg,wg=ng,xg=dg,$g=hg,Eg=mg,Cg=bg;function Lt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Lt.prototype.clear=wg;Lt.prototype.delete=xg;Lt.prototype.get=$g;Lt.prototype.has=Eg;Lt.prototype.set=Cg;var Sg=Lt,Og=mc,Tg=Qn,kg=Og(Tg,"Map"),Ag=kg,ia=eg,Pg=Sg,Rg=Ag;function Dg(){this.size=0,this.__data__={hash:new ia,map:new(Rg||Pg),string:new ia}}var Ng=Dg;function Mg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Lg=Mg,Ig=Lg;function jg(e,t){var n=e.__data__;return Ig(t)?n[typeof t=="string"?"string":"hash"]:n.map}var rr=jg,Fg=rr;function Vg(e){var t=Fg(this,e).delete(e);return this.size-=t?1:0,t}var Hg=Vg,Ug=rr;function Wg(e){return Ug(this,e).get(e)}var zg=Wg,Bg=rr;function qg(e){return Bg(this,e).has(e)}var Kg=qg,Gg=rr;function Yg(e,t){var n=Gg(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Zg=Yg,Jg=Ng,Xg=Hg,Qg=zg,em=Kg,tm=Zg;function It(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}It.prototype.clear=Jg;It.prototype.delete=Xg;It.prototype.get=Qg;It.prototype.has=em;It.prototype.set=tm;var nm=It,_c=nm,rm="Expected a function";function jo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rm);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(jo.Cache||_c),n}jo.Cache=_c;var om=jo,im=om,am=500;function sm(e){var t=im(e,function(r){return n.size===am&&n.clear(),r}),n=t.cache;return t}var cm=sm,lm=cm,um=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dm=/\\(\\)?/g,fm=lm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(um,function(n,r,o,i){t.push(o?i.replace(dm,"$1"):r||n)}),t}),pm=fm;function hm(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var vm=hm,aa=Lo,gm=vm,mm=Io,_m=er,ym=1/0,sa=aa?aa.prototype:void 0,ca=sa?sa.toString:void 0;function yc(e){if(typeof e=="string")return e;if(mm(e))return gm(e,yc)+"";if(_m(e))return ca?ca.call(e):"";var t=e+"";return t=="0"&&1/e==-ym?"-0":t}var bm=yc,wm=bm;function xm(e){return e==null?"":wm(e)}var $m=xm,Em=Io,Cm=qh,Sm=pm,Om=$m;function Tm(e,t){return Em(e)?e:Cm(e,t)?[e]:Sm(Om(e))}var km=Tm,Am=er,Pm=1/0;function Rm(e){if(typeof e=="string"||Am(e))return e;var t=e+"";return t=="0"&&1/e==-Pm?"-0":t}var Dm=Rm,Nm=km,Mm=Dm;function Lm(e,t){t=Nm(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Mm(t[n++])];return n&&n==r?e:void 0}var Im=Lm,jm=Im;function Fm(e,t,n){var r=e==null?void 0:jm(e,t);return r===void 0?n:r}var Vm=Fm;const Hm=$o(Vm),zt=({chars:e})=>d("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),bc=ge({base:"ijs-job relative rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex gap-4 fr ease-expo-out min-w-0 p-4 transition-all duration-medium",variants:{interactive:{true:"active:bg-job-card-bg-active active:ring-job-card-stroke-active hover:bg-job-card-bg-active hover:ring-job-card-stroke-active active:scale-[0.975]",false:"animate-skeleton"}},defaultVariants:{interactive:!0}}),Um=ge({base:"font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading text-pretty",variants:{size:{sm:"text-style-filter",default:"text-style-job-heading"}},defaultVariants:{size:"default"}}),Rr=({job:e,property:t})=>{if(!t)return null;const n=Hm(e.raw,t.key);return t.transform?t.transform(n):n},Wm=({job:e,config:t="hidden"})=>t==="hidden"?null:d("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:t.replace(":","/")},children:e.company.logo?d("img",{src:e.company.logo,alt:e.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),la=e=>Array.isArray(e)?e:[e],zm=1e3*60*60*24,wc=({job:e,config:t,onJobClick:n,size:r})=>{var f,m,v;const{t:o}=re(),i=t.subheading?Rr({job:e,property:t.subheading}):null,a=t.infoTags.flatMap(_=>la(Rr({job:e,property:_}))).filter(Boolean),s=la((f=t.overrides)!=null&&f.salary?Rr({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),c=t.postedDate??"show",u=(m=t.overrides)!=null&&m.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,p=t.newUnderDays??7,l=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-p*zm:!1,h=_=>{var g,b;n==null||n(e),(b=(g=t.overrides)==null?void 0:g.onClick)==null||b.call(g,_)};return d("a",{onMouseEnter:(v=t.overrides)==null?void 0:v.onMouseEnter,onClick:h,href:u,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:bc(),children:[d("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[d("div",{class:"gap-logo flex items-center",children:[d(Wm,{job:e,config:r!=="sm"?t.logo:void 0}),d("div",{class:"flex flex-col items-start gap-1",children:[d("div",{class:"order-2 flex flex-col gap-1",children:[e.match?d("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[d(Q,{name:"ai",class:"size-4 inline-block"}),d("span",{children:e.match})]}):null,d("p",{class:Um({size:r}),children:[e.title.trim(),l&&c!=="hide"&&d(L,{children:[" ",d("span",{"aria-hidden":!0,class:"ring-px ring-tag-accent-strong-bg rounded-job-card text-tag-accent-strong-bg font-weight-tag not-sr-only order-1 inline-block px-2 py-1 align-middle text-[10px] leading-none",children:o("new")})]})]}),i?d("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:i}):null]}),c==="show"?d("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[o("posted")," ",e.relativePostedDate]}):null]})]}),d("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[d("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:s.map((_,g)=>d("span",{class:$t({variant:"monetaryWeak",size:"xs"}),children:_},g))}),a.length>0&&d("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:a.map(_=>d("li",{class:$t({size:"xs",class:"max-w-full truncate"}),children:_},_))})]})]}),r==="sm"?d("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:d(Q,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):d("div",{"aria-hidden":!0,class:"flex items-center",children:d(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Fo=({config:e,animationDelay:t,seed:n})=>{const r=e.logo??"hidden",o=e.postedDate??"show";return d("div",{"aria-hidden":!0,style:{animationDelay:t+"s"},class:bc({interactive:!1}),children:[d("div",{class:"flex flex-1 flex-col gap-4",children:[d("div",{class:"flex items-center gap-4",children:[r==="hidden"?null:d("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:r.replace(":","/")}}),d("div",{class:"flex flex-col items-start gap-1",children:[o==="show"?d("p",{class:"text-style-job-card-info text-copy-job-info",children:d(zt,{chars:12})}):null,d("div",{class:"flex flex-col gap-1",children:[d("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:d(zt,{chars:13+(n+5)*n%7})}),e.subheading!==null?d("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:d(zt,{chars:7+n*n%3})}):null]})]})]}),d("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&d("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),d("div",{class:"flex items-center gap-2",children:[d("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),d("span",{class:$t({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),d("div",{"aria-hidden":!0,class:"flex items-center",children:d(Q,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Bm=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=re(),i=Math.min(lt,r);return e==="revalidating"?d("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:lt}).map((a,s)=>d("li",{children:d(Fo,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):d("button",{type:"button",class:je({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:t,children:[o("load_more_count",{count:i})," ",o("of_remaining_count",{count:r})]})},qm=({state:e,rpcClient:t,jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,onPaginate:a,mode:s,afterResults:c,prioritySegment:u,i18n:p})=>d(L,{children:Array.from({length:e.page}).map((l,h)=>{const f=h===e.page-1;return d(qt,{Fallback:Ze,children:d(Km,{state:e,rpcClient:t,page:h+1,isFirst:h===0,isLast:f,fetchNextPage:()=>{a(e.page+1)},jobCardConfig:n,initialData:r,onResultsUpdate:o,onJobClick:i,mode:s,afterResults:c,prioritySegment:u,i18n:p},h)},h)})}),ua=({page:e})=>{const{t}=re();return d("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:n=>{n.preventDefault()},children:[d("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),d("span",{class:"text-style-tag justify-center text-center",children:[t("page")," ",e]}),d("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},Km=({state:e,rpcClient:t,page:n,isFirst:r,isLast:o,fetchNextPage:i,jobCardConfig:a,initialData:s,onResultsUpdate:c,onJobClick:u,afterResults:p,prioritySegment:l,i18n:h})=>{const{t:f}=re(),m=n===1?s:void 0,{data:v,error:_,queryState:g,swr:b}=nn(Yt(Gr({state:e,baseKey:n.toString()}),()=>La({rpcClient:t,state:e,page:n,t:f,prioritySegment:l,locale:h?h.locale:void 0,fallbackLocale:h?h.fallbackLocale:void 0}),{...Nn,fallbackData:m}));switch(R(()=>{v&&r&&c&&c({totalCount:v.pagination.total})},[v,r,c]),g){case"idle":return null;case"loading":return d(L,{children:[r?d("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[d("div",{class:"flex-1"}),d("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:d(zt,{chars:8})}),d("div",{class:"flex flex-1 justify-end",children:p})]}):d(ua,{page:n}),d("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:lt}).map((w,y)=>d("li",{children:d(Fo,{seed:y,animationDelay:(y-lt)*.1,config:a})},y))})]});case"error":return d(Ze,{error:new Error(f("jobs_loading_error"),{cause:_}),resetError:()=>b.mutate()});case"revalidating":case"loaded":{if(pa(v.pagination.current_page===n,"Received wrong page from server"),v.pagination.total===0)return d("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[d(Q,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),d("div",{class:"flex flex-col items-center gap-1",children:[d("p",{class:"text-copy-neutral text-style-job-heading",children:f("no_jobs_found")}),d("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:f("no_jobs_found_description")})]})]});const w=v.pagination.last_page!==v.pagination.current_page,y=n*lt,x=Math.max(v.pagination.total-y,0),$=C=>{u(C,n)};return d(L,{children:[r?d("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[d("div",{class:"flex-1"}),d("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:f("jobs_found",{count:v.pagination.total})}),d("div",{class:"flex flex-1 justify-end",children:p})]}):d(ua,{page:n}),d("ul",{"aria-label":`Page ${n}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:v.results.map(C=>d("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:g==="revalidating"?.33:1},children:d(wc,{job:C,onJobClick:$,config:a})},C.id))}),w&&o&&d(Bm,{state:g,fetchNextPage:i,config:a,remainingItems:x})]})}default:yt(g)}},Gm=wo(()=>Promise.resolve().then(()=>require("./map-4b050679.cjs")).then(e=>e.Map)),Ym=({state:e,rpcClient:t,mapConfig:n,onGeoChange:r,afterResults:o,onJobClick:i,jobCardConfig:a,prioritySegment:s,i18n:c})=>{var _,g;const{t:u}=re(),[p,l]=k(new AbortController),h=gs("(max-width: 767px)"),f=H(b=>{r(b),p.abort(),l(new AbortController)},[r,p]),m=nn(Yt(["map",e],()=>Yc({rpcClient:t,state:e,t:u,signal:p.signal,prioritySegment:s,locale:c?c.locale:void 0,fallbackLocale:c?c.fallbackLocale:void 0}),Nn));if(m.queryState==="error")return d(Ze,{error:new Error(u("jobs_loading_error"),{cause:m.error}),resetError:()=>m.swr.mutate()});const v=m.queryState==="loaded"||m.queryState==="revalidating";return d(L,{children:[d("div",{class:"flex items-center gap-2",children:[d("div",{class:"flex-1"}),d("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:v?m.data.results.length!==0&&u("map_jobs_showing",{count:m.data.results.length}):d("div",{class:"animate-skeleton",children:d(zt,{chars:8})})}),d("div",{class:"flex flex-1 justify-end",children:o})]}),d("div",{class:"theme-fill:bg-neutral-2 theme-stroke:bg-lowest ring-px theme-fill:ring-neutral-3 theme-stroke:ring-neutral-3 theme-soft:rounded-lg theme-rounded:rounded-xl relative flex h-auto flex-col items-stretch overflow-hidden md:h-[70svh] md:flex-row",children:[d("div",{class:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:v?d(bt,{fallback:d("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:d(Gm,{config:n,mapData:m,autoFit:((_=e.geo)==null?void 0:_.type)!=="bounds",onBoundsChange:f})}):d("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),d("ul",{class:"flex h-full w-full snap-x snap-proximity scroll-px-4 gap-3 overflow-auto p-4 md:order-1 md:max-w-xl md:flex-col",children:[((g=m.data)==null?void 0:g.results.length)===0?d("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[d(Q,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),d("div",{class:"flex flex-col items-center gap-1",children:[d("p",{class:"text-copy-neutral text-style-job-heading",children:u("no_jobs_found")}),d("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:u("no_jobs_found_description")})]})]}):null,v?m.data.results.map(b=>d("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:m.queryState==="revalidating"?.33:1},children:d(wc,{job:b,onJobClick:w=>i(w,1),config:a,size:h?"sm":void 0})},b.id)):Array.from({length:6}).map((b,w)=>d("li",{children:d(Fo,{seed:w,animationDelay:(w-6)*.1,config:a})},w))]})]})]})},da=ge({base:"flex items-center justify-center cursor-pointer text-style-tag rounded-interactive active:scale-95 transition-all duration-snappy pl-2 pr-2.5 py-1.5 gap-1",variants:{active:{true:"bg-lowest text-neutral-12 shadow-sm animate-appear-tag",false:"text-neutral-10 hover:text-neutral-12"}},defaultVariants:{active:!1}}),Zm=({value:e,onValueChange:t})=>{const{t:n}=re();return d("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[d("button",{type:"button","aria-pressed":e==="list",class:da({active:e==="list"}),onClick:()=>t("list"),children:[d(Q,{name:"list",class:"size-5"}),d("span",{children:n("list")})]}),d("button",{type:"button","aria-pressed":e==="map",class:da({active:e==="map"}),onClick:()=>t("map"),children:[d(Q,{name:"map",class:"size-5"}),d("span",{children:n("map")})]})]})},Jm=e=>{const t=e.state.view,n=e.mapConfig&&e.mapConfig.enabled?d(Zm,{value:t,onValueChange:e.onViewChange}):null;return t==="list"?d(qm,{afterResults:n,...e}):d(Ym,{...e,afterResults:n})},Un=(e,t="value")=>e.reduce((n,r)=>{switch(r.select){case"one":{const o=r.value??r[t],i=typeof o=="string"?o:o==null?void 0:o[0];n[r.key]={select:r.select,value:i};break}case"many":{const o=r.value??r[t],i=typeof o=="string"?[o]:Array.isArray(o)?o:[];n[r.key]={select:r.select,value:i};break}default:yt(r.select)}return n},{}),Pn=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>{const r=n==null?void 0:n.value;return[t,Array.isArray(r)?r:r?[r]:[]]}).filter(([,t])=>t!==void 0&&t.length>0)),fa=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,Xm=({rpcClient:e,logger:t,properties:n,analytics:r,initialData:o,onStateChange:i,params:a})=>{var E,O,P,M,D,F;const{t:s}=re(),c=A(null),u=J(()=>Un(n,"defaultValue"),[n]),[p,l]=k(!0),[h,f]=k(()=>typeof a.initialState=="function"?a.initialState(a):a.initialState),[m,v]=k(0),{onJobClick:_,analyticsPaginate:g}=Qm({appRef:c,analytics:r,state:h,hasInteracted:!p,totalCount:m,defaultFilters:u}),b=H(T=>{f(N=>{if(N.page===T)return N;const I={...N,page:T};return i==null||i(I),I}),g(T)},[g,i]),w=H(T=>{f(N=>{const I={...N,view:T};return i==null||i(I),I})},[i]),y=H(T=>{f(N=>{var U;if(!N.query&&!T||N.query===T)return N;l(!1);const I=fa(N.geo),j={...N,query:T,geo:I,page:1,mode:(U=a.naturalLanguageSearch)!=null&&U.enabled?"vector":"query"};return i==null||i(j),j})},[i,(E=a.naturalLanguageSearch)==null?void 0:E.enabled]),x=H(T=>{l(!1),f(N=>{const I={...N,geo:T};return i==null||i(I),I})},[i]),$=H(()=>{f(T=>{const N={...T,filters:Un(n,"defaultValue"),query:"",geo:void 0,page:1};return i==null||i(N),N})},[i,n]),C=J(()=>(e.environment,new Map),[e.environment]);return d(Ql,{value:{provider:()=>C},children:d("div",{ref:c,class:St("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(O=a.theme.accessibility)==null?void 0:O.reducedMotion},Kr(a.theme)),children:[d(qt,{Fallback:Ze,children:d("div",{class:"flex flex-col gap-2",children:[d("div",{class:"px-4",children:d("div",{class:"bg-section-strong-bg ring-section-weak-stroke rounded-section ring-px lg:ring-width-section flex flex-col gap-4 p-4 md:flex-row",children:[d("section",{class:"flex flex-1 flex-col gap-1",children:[d("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:s("search_label")}),(P=a.naturalLanguageSearch)!=null&&P.enabled?d(Fh,{value:h.query,onValueChange:y,options:a.naturalLanguageSearch}):a.enableKeywordSearch?d(Lh,{value:h.query,onValueChange:y}):null]}),(M=a.geolocation)!=null&&M.enabled?d("section",{class:"flex flex-1 flex-col gap-1",children:[d("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:s("geo_label")}),d(Nh,{value:h.geo,distanceUnit:a.geolocation.distanceUnit,onValueChange:T=>{l(!1),f(N=>{const I={...N,geo:T,page:1};return i==null||i(I),I}),g(1)},logger:t})]}):null]})}),d(_p,{state:h,onFilterValueChange:(T,N)=>{l(!1),f(I=>{const j={...I.filters,[T]:N},U=fa(I.geo),Z={...I,filters:j,geo:U,page:1};return i==null||i(Z),Z}),g(1)},onResetFilters:$,properties:n,rpcClient:e,alerts:a.alerts,theme:a.theme,widgetId:a.widgetId,i18n:a.i18n})]})}),d("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[d(qt,{Fallback:Ze,children:d(Jm,{state:h,rpcClient:e,jobCardConfig:a.jobCard,mapConfig:a.map,initialData:p?o==null?void 0:o.jobs:void 0,onResultsUpdate:T=>{v(T.totalCount)},onJobClick:_,onPaginate:b,mode:(D=a.naturalLanguageSearch)!=null&&D.enabled?"vector":"query",onGeoChange:x,onViewChange:w,prioritySegment:(F=a.results)==null?void 0:F.prioritySegment,i18n:a.i18n})}),a.feedback?d("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[d("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("feedback")}),d("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:d("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})},Qm=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=H((u=1)=>({query:n.query,mode:n.mode,filters:Pn(n.filters),default_filters:Pn(r),total_count:o,page_size:lt,page:u}),[n.query,n.mode,n.filters,r,o]);return eu(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),R(()=>{const u=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Pn(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:a()}))},5e3);return()=>{clearTimeout(u)}},[t,i,a,o,n.query,n.filters]),{onJobClick:(u,p)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:u.id,...a(p)}})},analyticsPaginate:u=>{t.log({event:"SEARCH_PAGINATE",properties:a(u)})}}};exports.A=A;exports.D=Ct;exports.E=co;exports.ErrorBoundary=qt;exports.IconSpritesheet=cl;exports.JOB_SEARCH_WIDGET_ID=Vc;exports.JobSearch=Xm;exports.TranslationProvider=nl;exports.UnstyledErrorView=al;exports._=S;exports.commonjsGlobal=Ut;exports.createTFunction=rl;exports.d=k;exports.defaultTerms=ol;exports.filtersToPayload=Pn;exports.generateColorThemeCss=lu;exports.getDefaultExportFromCjs=$o;exports.getGeolocationFromSearchParams=vc;exports.getJobSearchResults=La;exports.getModeFromSearchParams=pc;exports.getStatefulPropertiesFromSearchParams=fc;exports.getViewFromSearchParams=hc;exports.getWidgetStateFromSearchParams=mh;exports.invariant=pa;exports.k=L;exports.setWidgetStateToSearchParams=_h;exports.u=d;exports.useDebouncedValue=gc;exports.useTranslation=re;exports.y=R;
package/dist/utils.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-b4e9d978.cjs");require("@inploi/sdk");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getModeFromSearchParams=e.getModeFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;exports.getViewFromSearchParams=e.getViewFromSearchParams;exports.getWidgetStateFromSearchParams=e.getWidgetStateFromSearchParams;exports.setWidgetStateToSearchParams=e.setWidgetStateToSearchParams;exports.useDebouncedValue=e.useDebouncedValue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-dfd6ec89.cjs");require("@inploi/sdk");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getModeFromSearchParams=e.getModeFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;exports.getViewFromSearchParams=e.getViewFromSearchParams;exports.getWidgetStateFromSearchParams=e.getWidgetStateFromSearchParams;exports.setWidgetStateToSearchParams=e.setWidgetStateToSearchParams;exports.useDebouncedValue=e.useDebouncedValue;
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import { v as t, q as s, p as o, r as m, s as S, t as c, n as g } from "./utils-6f4e34d7.js";
1
+ import { v as t, q as s, p as o, r as m, s as S, t as c, n as g } from "./utils-93aaa8ea.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  t as getGeolocationFromSearchParams,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-job-search",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-job-search.js",
6
6
  "types": "dist/index.d.ts",