@inploi/plugin-job-search 1.2.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +67 -67
- package/cdn/style.css +1 -1
- package/dist/components/filter-section.d.ts +2 -1
- package/dist/components/job-search.d.ts +6 -6
- package/dist/components/keyword-search.d.ts +1 -1
- package/dist/components/natural-language-section.d.ts +1 -1
- package/dist/components/results.d.ts +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +188 -1414
- package/dist/job-search.api.d.ts +4 -0
- package/dist/job-search.d.ts +5 -9
- package/dist/job-search.schemas.d.ts +2 -0
- package/dist/lib/i18n.d.ts +12 -0
- package/dist/lib/utils.d.ts +11 -2
- package/dist/lib/utils.test.d.ts +1 -0
- package/dist/{map-46afc08b.cjs → map-65730508.cjs} +1 -1
- package/dist/{map-d278fb0e.js → map-9c517e65.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/utils-0070abd5.cjs +60 -0
- package/dist/utils-7ca39932.js +8338 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +8 -3
- package/package.json +2 -2
- package/dist/utils-cd874e5a.cjs +0 -60
- package/dist/utils-dde9ec9c.js +0 -7041
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";var dc=Object.defineProperty;var fc=(e,t,n)=>t in e?dc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var rr=(e,t,n)=>(fc(e,typeof t!="symbol"?t+"":t,n),n);var bt=e=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(e)}`)};function oa(e,t){if(!e)throw new Error(t)}function pc(e,t){return e in t}var No={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},hc=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)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 No?No[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")},gc=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),vc=({from:e=new Date,to:t,formatter:n=gc,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 ia,st,Io,aa,Rr,sa,wt={},ca=[],mc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,jn=Array.isArray;function Ne(e,t){for(var n in t)e[n]=t[n];return e}function la(e){var t=e.parentNode;t&&t.removeChild(e)}function O(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 zt(e,a,r,o,null)}function zt(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++ia};return o==null&&exports.l.vnode!=null&&exports.l.vnode(i),i}function ua(){return{current:null}}function L(e){return e.children}function de(e,t){this.props=e,this.context=t}function An(e,t){if(t==null)return e.__?An(e.__,e.__.__k.indexOf(e)+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"?An(e):null}function da(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 da(e)}}function Dr(e){(!e.__d&&(e.__d=!0)&&st.push(e)&&!Tn.__r++||Io!==exports.l.debounceRendering)&&((Io=exports.l.debounceRendering)||aa)(Tn)}function Tn(){var e,t,n,r,o,i,a,s,l;for(st.sort(Rr);e=st.shift();)e.__d&&(t=st.length,r=void 0,o=void 0,i=void 0,s=(a=(n=e).__v).__e,(l=n.__P)&&(r=[],o=[],(i=Ne({},a)).__v=a.__v+1,ro(l,a,i,n.__n,l.ownerSVGElement!==void 0,a.__h!=null?[s]:null,r,s??An(a),a.__h,o),ga(r,a,o),a.__e!=s&&da(a)),st.length>t&&st.sort(Rr));Tn.__r=0}function fa(e,t,n,r,o,i,a,s,l,d,f){var c,p,h,v,g,y,m,_,w,b,x=0,$=r&&r.__k||ca,C=$.length,E=C,S=t.length;for(n.__k=[],c=0;c<S;c++)(v=n.__k[c]=(v=t[c])==null||typeof v=="boolean"||typeof v=="function"?null:typeof v=="string"||typeof v=="number"||typeof v=="bigint"?zt(null,v,null,null,v):jn(v)?zt(L,{children:v},null,null,null):v.__b>0?zt(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)!=null&&(v.__=n,v.__b=n.__b+1,(_=_c(v,$,m=c+x,E))===-1?h=wt:(h=$[_]||wt,$[_]=void 0,E--),ro(e,v,h,o,i,a,s,l,d,f),g=v.__e,(p=v.ref)&&h.ref!=p&&(h.ref&&oo(h.ref,null,v),f.push(p,v.__c||g,v)),g!=null&&(y==null&&(y=g),b=!(w=h===wt||h.__v===null)&&_===m,w?_==-1&&x--:_!==m&&(_===m+1?(x++,b=!0):_>m?E>S-m?(x+=_-m,b=!0):x--:x=_<m&&_==m-1?_-m:0),m=c+x,b=b||_==c&&!w,typeof v.type!="function"||_===m&&h.__k!==v.__k?typeof v.type=="function"||b?v.__d!==void 0?(l=v.__d,v.__d=void 0):l=g.nextSibling:l=ha(e,g,l):l=pa(v,l,e),typeof n.type=="function"&&(n.__d=l)));for(n.__e=y,c=C;c--;)$[c]!=null&&(typeof n.type=="function"&&$[c].__e!=null&&$[c].__e==n.__d&&(n.__d=$[c].__e.nextSibling),va($[c],$[c]))}function pa(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?pa(r,t,n):ha(n,r.__e,t));return t}function Le(e,t){return t=t||[],e==null||typeof e=="boolean"||(jn(e)?e.some(function(n){Le(n,t)}):t.push(e)),t}function ha(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function _c(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type)return n;if(r>(l!=null?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&o==l.key&&i===l.type)return s;s++}}return-1}function yc(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||kn(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||kn(e,i,t[i],n[i],r)}function Lo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||mc.test(t)?n:n+"px"}function kn(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||Lo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Lo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Fo:Mo,i):e.removeEventListener(t,i?Fo:Mo,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Mo(e){return this.l[e.type+!1](exports.l.event?exports.l.event(e):e)}function Fo(e){return this.l[e.type+!0](exports.l.event?exports.l.event(e):e)}function ro(e,t,n,r,o,i,a,s,l,d){var f,c,p,h,v,g,y,m,_,w,b,x,$,C,E,S=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(f=exports.l.__b)&&f(t);try{e:if(typeof S=="function"){if(m=t.props,_=(f=S.contextType)&&r[f.__c],w=f?_?_.props.value:f.__:r,n.__c?y=(c=t.__c=n.__c).__=c.__E:("prototype"in S&&S.prototype.render?t.__c=c=new S(m,w):(t.__c=c=new de(m,w),c.constructor=S,c.render=wc),_&&_.sub(c),c.props=m,c.state||(c.state={}),c.context=w,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),S.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ne({},c.__s)),Ne(c.__s,S.getDerivedStateFromProps(m,c.__s))),h=c.props,v=c.state,c.__v=t,p)S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S.getDerivedStateFromProps==null&&m!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,w),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,w)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(A){A&&(A.__=t)}),b=0;b<c._sb.length;b++)c.__h.push(c._sb[b]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,w),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,v,g)})}if(c.context=w,c.props=m,c.__P=e,c.__e=!1,x=exports.l.__r,$=0,"prototype"in S&&S.prototype.render){for(c.state=c.__s,c.__d=!1,x&&x(t),f=c.render(c.props,c.state,c.context),C=0;C<c._sb.length;C++)c.__h.push(c._sb[C]);c._sb=[]}else do c.__d=!1,x&&x(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++$<25);c.state=c.__s,c.getChildContext!=null&&(r=Ne(Ne({},r),c.getChildContext())),p||c.getSnapshotBeforeUpdate==null||(g=c.getSnapshotBeforeUpdate(h,v)),fa(e,jn(E=f!=null&&f.type===L&&f.key==null?f.props.children:f)?E:[E],t,n,r,o,i,a,s,l,d),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),y&&(c.__E=c.__=null)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=bc(n.__e,t,n,r,o,i,a,l,d);(f=exports.l.diffed)&&f(t)}catch(A){t.__v=null,(l||i!=null)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),exports.l.__e(A,t,n)}}function ga(e,t,n){for(var r=0;r<n.length;r++)oo(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 bc(e,t,n,r,o,i,a,s,l){var d,f,c,p=n.props,h=t.props,v=t.type,g=0;if(v==="svg"&&(o=!0),i!=null){for(;g<i.length;g++)if((d=i[g])&&"setAttribute"in d==!!v&&(v?d.localName===v:d.nodeType===3)){e=d,i[g]=null;break}}if(e==null){if(v===null)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),i=null,s=!1}if(v===null)p===h||s&&e.data===h||(e.data=h);else{if(i=i&&en.call(e.childNodes),f=(p=n.props||wt).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!s){if(i!=null)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(c||f)&&(c&&(f&&c.__html==f.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(yc(e,h,p,o,s),c)t.__k=[];else if(fa(e,jn(g=t.props.children)?g:[g],t,n,r,o&&v!=="foreignObject",i,a,i?i[0]:n.__k&&An(n,0),s,l),i!=null)for(g=i.length;g--;)i[g]!=null&&la(i[g]);s||("value"in h&&(g=h.value)!==void 0&&(g!==e.value||v==="progress"&&!g||v==="option"&&g!==p.value)&&kn(e,"value",g,p.value,!1),"checked"in h&&(g=h.checked)!==void 0&&g!==e.checked&&kn(e,"checked",g,p.checked,!1))}return e}function oo(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){exports.l.__e(r,n)}}function va(e,t,n){var r,o;if(exports.l.unmount&&exports.l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||oo(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,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&va(r[o],t,n||typeof e.type!="function");n||e.__e==null||la(e.__e),e.__=e.__e=e.__d=void 0}function wc(e,t,n){return this.constructor(e,n)}function Ct(e,t,n){var r,o,i,a;exports.l.__&&exports.l.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],ro(t,e=(!r&&n||t).__k=O(L,null,[e]),o||wt,wt,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?en.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),ga(i,e,a)}function io(e,t){Ct(e,t,io)}function xc(e,t,n){var r,o,i,a,s=Ne({},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),zt(e.type,s,r||e.key,o||e.ref,null)}function ut(e,t){var n={__c:t="__cC"+sa++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(s){s.__e=!0,Dr(s)})},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}en=ca.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}},ia=0,de.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ne({},this.state),typeof e=="function"&&(e=e(Ne({},n),this.props)),e&&Ne(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Dr(this))},de.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Dr(this))},de.prototype.render=L,st=[],aa=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rr=function(e,t){return e.__v.__b-t.__v.__b},Tn.__r=0,sa=0;var Nr="RFC3986",Ir={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:e=>String(e)},$c="RFC1738",Ec=Array.isArray,_e=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),or=1024,Cc=(e,t,n,r,o)=>{if(e.length===0)return e;let i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(s){return"%26%23"+parseInt(s.slice(2),16)+"%3B"});let a="";for(let s=0;s<i.length;s+=or){const l=i.length>=or?i.slice(s,s+or):i,d=[];for(let f=0;f<l.length;++f){let c=l.charCodeAt(f);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===$c&&(c===40||c===41)){d[d.length]=l.charAt(f);continue}if(c<128){d[d.length]=_e[c];continue}if(c<2048){d[d.length]=_e[192|c>>6]+_e[128|c&63];continue}if(c<55296||c>=57344){d[d.length]=_e[224|c>>12]+_e[128|c>>6&63]+_e[128|c&63];continue}f+=1,c=65536+((c&1023)<<10|l.charCodeAt(f)&1023),d[d.length]=_e[240|c>>18]+_e[128|c>>12&63]+_e[128|c>>6&63]+_e[128|c&63]}a+=d.join("")}return a};function Sc(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function jo(e,t){if(Ec(e)){const n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)}var Oc=Object.prototype.hasOwnProperty,ma={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},be=Array.isArray,Ac=Array.prototype.push,_a=function(e,t){Ac.apply(e,be(t)?t:[t])},Tc=Date.prototype.toISOString,Q={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Cc,encodeValuesOnly:!1,format:Nr,formatter:Ir[Nr],indices:!1,serializeDate(e){return Tc.call(e)},skipNulls:!1,strictNullHandling:!1};function kc(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}var ir={};function ya(e,t,n,r,o,i,a,s,l,d,f,c,p,h,v,g,y,m){let _=e,w=m,b=0,x=!1;for(;(w=w.get(ir))!==void 0&&!x;){const A=w.get(e);if(b+=1,typeof A<"u"){if(A===b)throw new RangeError("Cyclic object value");x=!0}typeof w.get(ir)>"u"&&(b=0)}if(typeof d=="function"?_=d(t,_):_ instanceof Date?_=p==null?void 0:p(_):n==="comma"&&be(_)&&(_=jo(_,function(A){return A instanceof Date?p==null?void 0:p(A):A})),_===null){if(i)return l&&!g?l(t,Q.encoder,y,"key",h):t;_=""}if(kc(_)||Sc(_)){if(l){const A=g?t:l(t,Q.encoder,y,"key",h);return[(v==null?void 0:v(A))+"="+(v==null?void 0:v(l(_,Q.encoder,y,"value",h)))]}return[(v==null?void 0:v(t))+"="+(v==null?void 0:v(String(_)))]}const $=[];if(typeof _>"u")return $;let C;if(n==="comma"&&be(_))g&&l&&(_=jo(_,l)),C=[{value:_.length>0?_.join(",")||null:void 0}];else if(be(d))C=d;else{const A=Object.keys(_);C=f?A.sort(f):A}const E=s?String(t).replace(/\./g,"%2E"):String(t),S=r&&be(_)&&_.length===1?E+"[]":E;if(o&&be(_)&&_.length===0)return S+"[]";for(let A=0;A<C.length;++A){const T=C[A],k=typeof T=="object"&&typeof T.value<"u"?T.value:_[T];if(a&&k===null)continue;const R=c&&s?T.replace(/\./g,"%2E"):T,N=be(_)?typeof n=="function"?n(S,R):S:S+(c?"."+R:"["+R+"]");m.set(e,b);const K=new WeakMap;K.set(ir,m),_a($,ya(k,N,n,r,o,i,a,s,n==="comma"&&g&&be(_)?null:l,d,f,c,p,h,v,g,y,K))}return $}function Pc(e=Q){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||Q.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=Nr;if(typeof e.format<"u"){if(!Oc.call(Ir,e.format))throw new TypeError("Unknown format option provided.");n=e.format}const r=Ir[n];let o=Q.filter;(typeof e.filter=="function"||be(e.filter))&&(o=e.filter);let i;if(e.arrayFormat&&e.arrayFormat in ma?i=e.arrayFormat:"indices"in e?i=e.indices?"indices":"repeat":i=Q.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const a=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:Q.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Q.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Q.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Q.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?Q.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Q.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Q.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Q.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Q.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Q.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Q.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Q.strictNullHandling}}function ao(e,t={}){let n=e;const r=Pc(t);let o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):be(r.filter)&&(i=r.filter,o=i);const a=[];if(typeof n!="object"||n===null)return"";const s=ma[r.arrayFormat],l=s==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);const d=new WeakMap;for(let p=0;p<o.length;++p){const h=o[p];r.skipNulls&&n[h]===null||_a(a,ya(n[h],h,s,l,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,d))}const f=a.join(r.delimiter);let c=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?c+="utf8=%26%2310003%3B&":c+="utf8=%E2%9C%93&"),f.length>0?c+f:""}var tn=class extends Error{constructor(t){super(t[0].message);rr(this,"issues");this.name="ValiError",this.issues=t}};function Vo(e,t){return{...e,_parse(n,r){return e._parse(t(n),r)}}}function nn(e){return{issues:e}}function dt(e){return{output:e}}function Rc(e,t){return{reason:e==null?void 0:e.reason,validation:t.validation,origin:(e==null?void 0:e.origin)||"value",message:t.message,input:t.input,path:t.path,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function Dc(e,t){return{reason:t,origin:e==null?void 0:e.origin,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}}function et(e,t,n,r){if(!t||!t.length||n!=null&&n.skipPipe)return dt(e);let o,i,a=e;for(const s of t){const l=s._parse(a);if(l.issues){o=o||Dc(n,r);for(const d of l.issues){const f=Rc(o,d);i?i.push(f):i=[f]}if(o.abortEarly||o.abortPipeEarly)break}else a=l.output}return i?nn(i):dt(a)}function Ge(e,t){return Array.isArray(e)?[void 0,e]:[e,t]}function ba(e){return typeof e=="function"?e():e}function Nc(e,t,n,r){return nn([{validation:e,message:ba(t),input:n,requirement:r}])}function Ic(e,t,n){if(!e||typeof e=="object"&&!Array.isArray(e)){const[i,a]=Ge(t,n);return[e,i,a]}const[r,o]=Ge(e,t);return[void 0,r,o]}function tt(e,t,n,r,o,i){return{issues:[{reason:t,validation:n,origin:(e==null?void 0:e.origin)||"value",message:ba(r),input:o,issues:i,abortEarly:e==null?void 0:e.abortEarly,abortPipeEarly:e==null?void 0:e.abortPipeEarly,skipPipe:e==null?void 0:e.skipPipe}]}}function wa(e){return typeof e.default=="function"?e.default():e.default}function Lc(e){return{type:"any",async:!1,pipe:e,_parse(t,n){return et(t,this.pipe,n,"any")}}}function Vn(e,t,n){const[r="Invalid type",o]=Ge(t,n);return{type:"array",async:!1,item:e,message:r,pipe:o,_parse(i,a){if(!Array.isArray(i))return tt(a,"type","array",this.message,i);let s;const l=[];for(let d=0;d<i.length;d++){const f=i[d],c=this.item._parse(f,a);if(c.issues){const p={type:"array",input:i,key:d,value:f};for(const h of c.issues)h.path?h.path.unshift(p):h.path=[p],s==null||s.push(h);if(s||(s=c.issues),a!=null&&a.abortEarly)break}else l.push(c.output)}return s?nn(s):et(l,this.pipe,a,"array")}}}function Lr(e,t){const[n="Invalid type",r]=Ge(e,t);return{type:"boolean",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="boolean"?tt(i,"type","boolean",this.message,o):et(o,this.pipe,i,"boolean")}}}function Pe(e,t="Invalid type"){return{type:"literal",async:!1,literal:e,message:t,_parse(n,r){return n!==this.literal?tt(r,"type","literal",this.message,n):dt(n)}}}function oe(e,t){return{type:"nullable",async:!1,wrapped:e,default:t,_parse(n,r){if(n===null){const o=wa(this);if(o===void 0)return dt(n);n=o}return this.wrapped._parse(n,r)}}}function $e(e,t){const[n="Invalid type",r]=Ge(e,t);return{type:"number",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="number"||isNaN(o)?tt(i,"type","number",this.message,o):et(o,this.pipe,i,"number")}}}function ue(e,t,n,r){const[o,i="Invalid type",a]=Ic(t,n,r);let s;return{type:"object",async:!1,entries:e,rest:o,message:i,pipe:a,_parse(l,d){if(!l||typeof l!="object")return tt(d,"type","object",this.message,l);s=s||Object.entries(this.entries);let f;const c={};for(const[p,h]of s){const v=l[p],g=h._parse(v,d);if(g.issues){const y={type:"object",input:l,key:p,value:v};for(const m of g.issues)m.path?m.path.unshift(y):m.path=[y],f==null||f.push(m);if(f||(f=g.issues),d!=null&&d.abortEarly)break}else(g.output!==void 0||p in l)&&(c[p]=g.output)}if(this.rest&&!(d!=null&&d.abortEarly&&f)){for(const p in l)if(!(p in this.entries)){const h=l[p],v=this.rest._parse(h,d);if(v.issues){const g={type:"object",input:l,key:p,value:h};for(const y of v.issues)y.path?y.path.unshift(g):y.path=[g],f==null||f.push(y);if(f||(f=v.issues),d!=null&&d.abortEarly)break}else c[p]=v.output}}return f?nn(f):et(c,this.pipe,d,"object")}}}function Re(e,t){return{type:"optional",async:!1,wrapped:e,default:t,_parse(n,r){if(n===void 0){const o=wa(this);if(o===void 0)return dt(n);n=o}return this.wrapped._parse(n,r)}}}function V(e,t){const[n="Invalid type",r]=Ge(e,t);return{type:"string",async:!1,message:n,pipe:r,_parse(o,i){return typeof o!="string"?tt(i,"type","string",this.message,o):et(o,this.pipe,i,"string")}}}function Mc(e,t,n,r){if(typeof t=="object"&&!Array.isArray(t)){const[a,s]=Ge(n,r);return[e,t,a,s]}const[o,i]=Ge(t,n);return[V(),e,o,i]}var Fc=["__proto__","prototype","constructor"];function xa(e,t,n,r){const[o,i,a="Invalid type",s]=Mc(e,t,n,r);return{type:"record",async:!1,key:o,value:i,message:a,pipe:s,_parse(l,d){if(!l||typeof l!="object")return tt(d,"type","record",this.message,l);let f;const c={};for(const[p,h]of Object.entries(l))if(!Fc.includes(p)){let v;const g=this.key._parse(p,{origin:"key",abortEarly:d==null?void 0:d.abortEarly,abortPipeEarly:d==null?void 0:d.abortPipeEarly,skipPipe:d==null?void 0:d.skipPipe});if(g.issues){v={type:"record",input:l,key:p,value:h};for(const m of g.issues)m.path=[v],f==null||f.push(m);if(f||(f=g.issues),d!=null&&d.abortEarly)break}const y=this.value._parse(h,d);if(y.issues){v=v||{type:"record",input:l,key:p,value:h};for(const m of y.issues)m.path?m.path.unshift(v):m.path=[v],f==null||f.push(m);if(f||(f=y.issues),d!=null&&d.abortEarly)break}!g.issues&&!y.issues&&(c[g.output]=y.output)}return f?nn(f):et(c,this.pipe,d,"record")}}}function Ho(e,t="Invalid type"){return{type:"union",async:!1,options:e,message:t,_parse(n,r){let o,i;for(const a of this.options){const s=a._parse(n,r);if(s.issues)if(o)for(const l of s.issues)o.push(l);else o=s.issues;else{i=[s.output];break}}return i?dt(i[0]):tt(r,"type","union",this.message,n,o)}}}function so(e,t,n){const r=e._parse(t,n);if(r.issues)throw new tn(r.issues);return r.output}function co(e,t,n){const r=e._parse(t,n);return r.issues?{success:!1,error:new tn(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function Ie(e,t,n){return{...e,_parse(r,o){const i=e._parse(r,o);if(i.issues)return i;const a=t(i.output);return n&&!Array.isArray(n)?n._parse(a,o):et(a,n,o,typeof a)}}}function jc(e="Invalid URL"){return{type:"url",async:!1,message:e,requirement(t){try{return new URL(t),!0}catch{return!1}},_parse(t){return this.requirement(t)?dt(t):Nc(this.type,this.message,t,this.requirement)}}}const Vc="inploi-job-search",ct=10,Hc=xa(Vn(ue({label:Vo(V(),String),value:Vo(V(),String),jobs:$e()}))),Uc=V([jc()]),Wc=ue({total:$e(),current_page:$e(),per_page:$e(),last_page:$e()}),zc=ue({id:$e(),company_name:V(),company_logo:oe(Re(V())),employment_type:V(),location_type:Ho([Pe("LOCATION"),Pe("REMOTE"),Pe("HYBRID")]),pay_type:oe(Ho([Pe("ANNUALLY"),Pe("HOURLY"),Pe("MONTHLY"),Pe("WEEKLY"),Pe("DAILY")])),pay_currency:V(),pay_mask:Lr(),pay_display:Lr(),pay:oe(V()),pay_min:oe(V()),pay_max:oe(V()),description:V(),title:V(),contract_type:oe(V()),created_at:oe(V()),custom_data:oe(xa(Lc())),href:V(),industry:oe(V()),category:oe(V()),skills:Re(V()),town:Re(V()),city:oe(V()),country:oe(V()),vector_distance:Re(oe(V())),coordinates:Re(oe(ue({lat:$e(),lng:$e()})))}),$a=e=>Ie(zc,t=>{const n=co(Uc,t.company_logo);return{id:t.id,createdAt:t.created_at,company:{name:t.company_name,logo:n.success?n.output:null},employmentType:t.employment_type,locationType:t.location_type,pay:hc({salary:t,config:{locales:void 0},t:e})??null,description:t.description,title:t.title,contractType:t.contract_type,href:t.href,relativePostedDate:t.created_at?vc({to:new Date(t.created_at),t:e}):"INVALID DATE",customData:t.custom_data,raw:t,match:t.vector_distance&&parseFloat(t.vector_distance)<.15?e("great_match"):null}}),Bc=e=>Ie(ue({data:Vn($a(e)),pagination:Wc}),t=>({pagination:t.pagination,results:t.data})),qc=e=>!e||Array.isArray(e)&&e.length===0?null:e,Hn=e=>{var n,r;const t={};for(const o in e.filters){const i=e.filters[o];t[o]=qc(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},Uo=async({apiClient:e,state:t,logger:n,signal:r})=>{try{const o=new URLSearchParams(ao({filters:Hn(t),query:t.query})),i="/search/filters",a=await e.fetch([i,o.toString()].filter(Boolean).join("?"),{signal:r});return so(Hc,a)}catch(o){throw o instanceof tn?n.error(o.message,o.issues):n.error(o),o}},Ea=async({apiClient:e,logger:t,signal:n,state:r,page:o=1,t:i})=>{try{const a=new URLSearchParams(ao({filters:Hn(r)}));a.set("page",o.toString()),a.set("per_page",ct.toString()),r.query.length>0&&(a.set("query",r.query),a.set("mode",r.mode));const s=await e.fetch(["/search/results",a.toString()].filter(Boolean).join("?"),{signal:n});return so(Bc(i),s)}catch(a){throw a instanceof tn?t.error(a.message,a.issues):t.error(a),a}},Kc=e=>Ie(ue({data:Vn($a(e)),pagination:ue({has_more:Lr()})}),t=>({results:t.data,pagination:t.pagination})),Gc=async({apiClient:e,logger:t,signal:n,state:r,t:o})=>{try{const i=new URLSearchParams(ao({filters:Hn(r)}));r.query&&(i.set("query",r.query),i.set("mode",r.mode));const a=await e.fetch(["/search/map-results",i.toString()].filter(Boolean).join("?"),{signal:n});return so(Kc(o),a)}catch(i){throw i instanceof tn?t.error(i.message,i.issues):t.error(i),i}},rn=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")},Pn={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var Yc=0;function u(e,t,n,r,o,i){var a,s,l={};for(s in t)s=="ref"?a=t[s]:l[s]=t[s];var d={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Yc,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return exports.l.vnode&&exports.l.vnode(d),d}function Ca(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=Ca(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=Ca(e))&&(r&&(r+=" "),r+=t);return r}var Zc=["other","few","many","two","one","zero"],Wo=({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,(l,d)=>{var f;return((f=a==null?void 0:a[d])==null?void 0:f.toString())??""});case"object":{if(typeof(a==null?void 0:a.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let l=r.select(a.count);if(!(l in s)){const d=Zc.find(f=>f in s);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=d}return s[l].replace(/{{(\w+)}}/g,(d,f)=>{var c;return((c=a==null?void 0:a[f])==null?void 0:c.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Me,z,ar,zo,Ot=0,Sa=[],wn=[],Bo=exports.l.__b,qo=exports.l.__r,Ko=exports.l.diffed,Go=exports.l.__c,Yo=exports.l.unmount;function ht(e,t){exports.l.__h&&exports.l.__h(z,e,Ot||t),Ot=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:wn}),n.__[e]}function P(e){return Ot=1,Un(Aa,e)}function Un(e,t,n){var r=ht(Me++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Aa(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,s);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=z,!z.u)){var o=function(s,l,d){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,s,l,d);var c=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===s)&&(!i||i.call(this,s,l,d))};z.u=!0;var i=z.shouldComponentUpdate,a=z.componentWillUpdate;z.componentWillUpdate=function(s,l,d){if(this.__e){var f=i;i=void 0,o(s,l,d),i=f}a&&a.call(this,s,l,d)},z.shouldComponentUpdate=o}return r.__N||r.__}function I(e,t){var n=ht(Me++,3);!exports.l.__s&&fo(n.__H,t)&&(n.__=e,n.i=t,z.__H.__h.push(n))}function Ue(e,t){var n=ht(Me++,4);!exports.l.__s&&fo(n.__H,t)&&(n.__=e,n.i=t,z.__h.push(n))}function D(e){return Ot=5,ee(function(){return{current:e}},[])}function Oa(e,t,n){Ot=6,Ue(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ee(e,t){var n=ht(Me++,7);return fo(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function j(e,t){return Ot=8,ee(function(){return e},t)}function kt(e){var t=z.context[e.__c],n=ht(Me++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(z)),t.props.value):e.__}function lo(e,t){exports.l.useDebugValue&&exports.l.useDebugValue(t?t(e):e)}function Jc(e){var t=ht(Me++,10),n=P();return t.__=e,z.componentDidCatch||(z.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function uo(){var e=ht(Me++,11);if(!e.__){for(var t=z.__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=Sa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xn),e.__H.__h.forEach(Mr),e.__H.__h=[]}catch(t){e.__H.__h=[],exports.l.__e(t,e.__v)}}exports.l.__b=function(e){z=null,Bo&&Bo(e)},exports.l.__r=function(e){qo&&qo(e),Me=0;var t=(z=e.__c).__H;t&&(ar===z?(t.__h=[],z.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=wn,n.__N=n.i=void 0})):(t.__h.forEach(xn),t.__h.forEach(Mr),t.__h=[],Me=0)),ar=z},exports.l.diffed=function(e){Ko&&Ko(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Sa.push(t)!==1&&zo===exports.l.requestAnimationFrame||((zo=exports.l.requestAnimationFrame)||Qc)(Xc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==wn&&(n.__=n.__V),n.i=void 0,n.__V=wn})),ar=z=null},exports.l.__c=function(e,t){t.some(function(n){try{n.__h.forEach(xn),n.__h=n.__h.filter(function(r){return!r.__||Mr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],exports.l.__e(r,n.__v)}}),Go&&Go(e,t)},exports.l.unmount=function(e){Yo&&Yo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{xn(r)}catch(o){t=o}}),n.__H=void 0,t&&exports.l.__e(t,n.__v))};var Zo=typeof requestAnimationFrame=="function";function Qc(e){var t,n=function(){clearTimeout(r),Zo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Zo&&(t=requestAnimationFrame(n))}function xn(e){var t=z,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),z=t}function Mr(e){var t=z;e.__c=e.__(),z=t}function fo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Aa(e,t){return typeof t=="function"?t(e):t}var Jo=ut(null),el=e=>({TranslationProvider:({terms:t,children:n,locale:r})=>{const o=ee(()=>(console.log("instantiating"),Wo({locale:r,terms:e,overrides:t})),[t,r]);return u(Jo.Provider,{value:{t:o,locale:r},children:n})},useTranslation:()=>{const t=kt(Jo);if(t===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:t.t,locale:t.locale}},createTFunction:({overrides:t,locale:n})=>Wo({terms:e,overrides:t,locale:n})});const{TranslationProvider:tl,useTranslation:ne,createTFunction:nl}=el({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"});function Ta(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=Ta(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sr(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ta(e))&&(r&&(r+=" "),r+=t);return r}const Xo=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,rl=e=>{const t=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,l;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"](sr(i)):typeof(e==null||(l=e.hooks)===null||l===void 0?void 0:l.onComplete)<"u"?e==null?void 0:e.hooks.onComplete(sr(i)):sr(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 l=Object.fromEntries(Object.entries(s||{}).filter(d=>{let[f]=d;return!["class","className"].includes(f)}));return t(i.map(d=>d(l)),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:l}=o,d=Object.keys(s).map(p=>{const h=i==null?void 0:i[p],v=l==null?void 0:l[p],g=Xo(h)||Xo(v);return s[p][g]}),f={...l,...i&&Object.entries(i).reduce((p,h)=>{let[v,g]=h;return typeof g>"u"?p:{...p,[v]:g}},{})},c=o==null||(a=o.compoundVariants)===null||a===void 0?void 0:a.reduce((p,h)=>{let{class:v,className:g,...y}=h;return Object.entries(y).every(m=>{let[_,w]=m;const b=f[_];return Array.isArray(w)?w.includes(b):b===w})?[...p,v,g]:p},[]);return t(o==null?void 0:o.base,d,c,i==null?void 0:i.class,i==null?void 0:i.className)},cx:t}},{compose:Qm,cva:fe,cx:e_}=rl(),Fe=fe({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"}}),ol=({error:e,resetError:t})=>{const{t:n}=ne();return u("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:[u("p",{children:e.message}),u("button",{type:"button",onClick:t,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:n("retry")})]})},je=({error:e,resetError:t,class:n,...r})=>{const{t:o}=ne();return u("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:[u("div",{class:"flex max-w-full flex-col gap-1",children:[u("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:o("widget_unavailable")}),u("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})]}),u("button",{type:"button",class:Fe({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:t,children:o("retry")})]})};class qt extends de{constructor(){super(...arguments);rr(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 u(n,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const il={briefcase:u(L,{children:[u("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"}),u("path",{d:"M4.75 11.75H19.25"}),u("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),u("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:u(L,{children:[u("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"}),u("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"}),u("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),u("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),u("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),u("circle",{cx:"18.75",cy:"12",r:"2"}),u("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:u(L,{children:[u("path",{d:"M16.75 10.25H13.75"}),u("path",{d:"M16.75 13.25H13.75"}),u("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"}),u("path",{d:"M10.25 12.25V18.25"})]}),circles:u(L,{children:[u("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"}),u("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:u(L,{children:[u("path",{d:"M14 9L12 13L9.5 12"}),u("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:u(L,{children:u("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:u(L,{children:[u("path",{d:"M5 13.75H19"}),u("path",{d:"M5 10.25H19"}),u("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"}),u("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:u(L,{children:[u("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"}),u("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"}),u("path",{d:"M16 16L19 19"})]}),magnifierSimple:u(L,{children:[u("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"}),u("path",{d:"M16 16L19 19"})]}),mapPin:u(L,{children:u(L,{children:[u("circle",{cx:"12",cy:"9",r:"2"}),u("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"}),u("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:u(L,{children:[u("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),u("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:u(L,{children:[u("path",{d:"M18.5 8.5L17.5 9.5"}),u("path",{d:"M5.5 8.5L6.5 9.5"}),u("path",{d:"M12 6L12 7.5"}),u("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"}),u("path",{d:"M20.25 15.25H12H3.75"}),u("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:u("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:u("path",{d:"M12 8V16M8 12H16"}),"chevron-right":u("path",{d:"M11 8L15 12L11 16"}),ai:u("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":u(L,{children:[u("circle",{cx:"12",cy:"12",r:"0.75"}),u("circle",{cx:"12",cy:"12",r:"5.75"}),u("path",{d:"M12 4.25V6.25"}),u("path",{d:"M12 17.75V19.75"}),u("path",{d:"M4.25 12L6.25 12"}),u("path",{d:"M17.75 12L19.75 12"})]}),warning:u("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:u(L,{children:[u("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),u("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),u("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:u(L,{children:[u("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),u("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},al=({theme:e})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:u("defs",{children:Object.entries(il).map(([t,n])=>{var r;return u("symbol",{id:`i-icon-${t}`,children:u("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)})})}),J=({name:e,...t})=>u("svg",{viewBox:"0 0 24 24",width:24,height:24,...t,children:u("use",{href:`#i-icon-${e}`})}),ka=e=>{const[t,n]=P(!1);return I(()=>{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},sl=(e,{minViewTime:t=1e3,visibilityThreshold:n=0,onView:r})=>{const[o,i]=P(!1);I(()=>{if(o||!e.current)return;let a;const s=new IntersectionObserver(l=>l.forEach(d=>{clearTimeout(a),d.isIntersecting&&(a=setTimeout(()=>{i(!0),r()},t))}),{threshold:n});return s.observe(e.current),()=>{s.disconnect(),clearTimeout(a)}},[e,t,n,r,o])};var cl=["1","2","3","4","5","6","7","8","9","10","11","12"],ll={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]}},ul=(e,t=1,n)=>r=>{const[o,i]=ll[n][r];return"oklch("+o+"% "+i*t+" "+e+")"},cr=e=>{const t=ul(e.hue,e.chroma,e.mode);return Object.fromEntries(cl.map(n=>[e.prefix+n,e.transform(t(n))]))},lr=e=>e,dl=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)},dn=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Fr=(e,...t)=>{if(!t.length)return e;const n=t.shift();if(dn(e)&&dn(n))for(const r in n){const o=n[r];if(dn(o)){e[r]||Object.assign(e,{[r]:{}});const i=e[r];dn(i)&&Fr(i,o)}else Object.assign(e,{[r]:n[r]})}return Fr(e,...t)},fl=e=>{function t(n,r){const o=[e.prefix,r.toString().replace(/\./g,"-")].join("");return n==="declaration"?`--${o}`:`var(--${o})`}return t},pl=()=>({core:e=>({semantic:t=>({component:n=>({from:r=>{const{theme:o,getToken:i}=r,a=p=>i("reference",p.toString()),s=e({theme:o}),l=t({theme:o,core:a,raw:{core:s}}),d=n({theme:o,core:a,semantic:a,raw:{core:s,semantic:l}}),f=dl(Fr(s,l,d)),c=([p,h],v)=>{const g=[v,p].filter(Boolean).join(".");return typeof h=="object"?Object.entries(h).flatMap(y=>c(y,g)):[[r.getToken("declaration",g),h]]};return{values:f,declarations:Object.fromEntries(Object.entries(f).flatMap(p=>c(p))),ref:p=>i("reference",p.toString())}}})})})});const ye=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)},[ur,dr,fn]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],hl=pl().core(({theme:e})=>{var t,n,r,o;return{color:{black:ur,white:dr,lowest:e.mode==="light"?dr:ur,highest:e.mode==="light"?ur:dr,...cr({prefix:"a-",hue:e.accent.hue,chroma:e.accent.chroma,mode:e.mode,transform:lr}),...cr({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:lr}),...cr({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:lr})}}}).semantic(({core:e,theme:t,raw:n})=>{var s,l,d,f,c,p,h,v,g,y,m,_,w,b,x,$,C,E,S,A,T;const r=(k,R)=>n.core.color[k].replace(")",` / ${R})`),{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":((l=o.filter)==null?void 0:l.fontFamily)??o.fontFamily??"inherit","font-job-heading":((d=t.typography.jobHeading)==null?void 0:d.fontFamily)??t.typography.fontFamily??"inherit","font-tag":((f=o.tag)==null?void 0:f.fontFamily)??o.fontFamily??"inherit","weight-default":((c=o.weight)==null?void 0:c.toString())??"inherit","style-filter":((p=o.filter)==null?void 0:p.style)??o.style??"inherit","weight-filter":((v=(h=o.filter)==null?void 0:h.weight)==null?void 0:v.toString())??((g=o.weight)==null?void 0:g.toString())??"inherit","style-tag":((y=o.tag)==null?void 0:y.style)??o.style??"inherit","style-job-heading":((m=o.jobHeading)==null?void 0:m.style)??o.style??"inherit","weight-tag":((w=(_=o.tag)==null?void 0:_.weight)==null?void 0:w.toString())??((b=o.weight)==null?void 0:b.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":((A=(S=o.input)==null?void 0:S.weight)==null?void 0:A.toString())??((T=o.weight)==null?void 0:T.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"):fn,"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":fn,"radius-app":ye(t).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":ye(t).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":ye(t).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":ye(t).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":ye(t).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":ye(t).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":ye(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":ye(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"?fn:e(a?"color.n-7":"color.n-3"),"section-strong-stroke-color":i==="fill"?fn:e(a?"color.n-11":"color.n-4"),"section-stroke-width":ye(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":ye(t).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),gl=fl({prefix:"i-"}),vl=e=>{const t=hl.from({theme:e.theme,getToken:gl}),n=Object.entries(t.declarations).map(([o,i])=>`${o}: ${i};`);return`.inploi-job-search${e.widgetId?`[data-widget-id="${e.widgetId}"]`:""} {
|
|
2
|
+
${n.concat(n).join(`
|
|
3
|
+
`)}
|
|
4
|
+
}`},jr=e=>{const t=[];return t.push(e.corners),t.push(e.highlights),t.push(e.mode),t};function Pa(e,t){for(var n in t)e[n]=t[n];return e}function Vr(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 fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function Rn(e){this.props=e}function Ra(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:Vr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,O(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Rn.prototype=new de).isPureReactComponent=!0,Rn.prototype.shouldComponentUpdate=function(e,t){return Vr(this.props,e)||Vr(this.state,t)};var Qo=exports.l.__b;exports.l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qo&&Qo(e)};var ml=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function q(e){function t(n){var r=Pa({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ml,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ei=function(e,t){return e==null?null:Le(Le(e).map(t))},Ce={map:ei,forEach:ei,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},_l=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)}_l(e,t,n,r)};var ti=exports.l.unmount;function Da(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=Pa({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Da(r,t,n)})),e}function Na(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Na(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function xt(){this.__u=0,this.t=null,this.__b=null}function Ia(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function po(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 O(n,i)}return o.displayName="Lazy",o.__f=!0,o}function yt(){this.u=null,this.o=null}exports.l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ti&&ti(e)},(xt.prototype=new de).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Ia(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 d=r.state.__a;r.__v.__k[0]=Na(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},xt.prototype.componentWillUnmount=function(){this.t=[]},xt.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]=Da(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&O(L,null,e.fallback);return o&&(o.__h=null),[O(L,null,t.__a?null:e.children),o]};var ni=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function yl(e){return this.getChildContext=function(){return e.context},e.children}function bl(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ct(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ct(O(yl,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function La(e,t){var n=O(bl,{__v:e,i:t});return n.containerInfo=t,n}(yt.prototype=new de).__a=function(e){var t=this,n=Ia(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ni(t,e,r)):o()};n?n(i):i()}},yt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Le(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},yt.prototype.componentDidUpdate=yt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ni(e,n,t)})};var Ma=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,wl=/^(?: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]/,xl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$l=/[A-Z0-9]/g,El=typeof document<"u",Cl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Fa(e,t,n){return t.__k==null&&(t.textContent=""),Ct(e,t),typeof n=="function"&&n(),e?e.__c:null}function ja(e,t,n){return io(e,t),typeof n=="function"&&n(),e?e.__c:null}de.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(de.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ri=exports.l.event;function Sl(){}function Ol(){return this.cancelBubble}function Al(){return this.defaultPrevented}exports.l.event=function(e){return ri&&(e=ri(e)),e.persist=Sl,e.isPropagationStopped=Ol,e.isDefaultPrevented=Al,e.nativeEvent=e};var ho,Tl={enumerable:!1,configurable:!0,get:function(){return this.class}},oi=exports.l.vnode;exports.l.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||El&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||Cl(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":xl.test(i)?i=s:r.indexOf("-")===-1&&wl.test(i)?i=i.replace($l,"-$&").toLowerCase():a===null&&(a=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Le(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Le(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Tl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ma,oi&&oi(e)};var ii=exports.l.__r;exports.l.__r=function(e){ii&&ii(e),ho=e.__c};var ai=exports.l.diffed;exports.l.diffed=function(e){ai&&ai(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),ho=null};var Va={ReactCurrentDispatcher:{current:{readContext:function(e){return ho.__n[e.__c].props.value}}}},kl="17.0.2";function Ha(e){return O.bind(null,e)}function ft(e){return!!e&&e.$$typeof===Ma}function Pt(e){return ft(e)?xc.apply(null,arguments):e}function Ua(e){return!!e.__k&&(Ct(null,e),!0)}function Wa(e){return e&&(e.base||e.nodeType===1&&e)||null}var za=function(e,t){return e(t)},on=function(e,t){return e(t)},Ba=L;function go(e){e()}function qa(e){return e}function Ka(){return[!1,go]}var Ga=Ue;function Ya(e,t){var n=t(),r=P({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Ue(function(){o.__=n,o.v=t,fr(o.__,t())||i({h:o})},[e,n,t]),I(function(){return fr(o.__,o.v())||i({h:o}),e(function(){fr(o.__,o.v())||i({h:o})})},[e]),n}var an={useState:P,useId:uo,useReducer:Un,useEffect:I,useLayoutEffect:Ue,useInsertionEffect:Ga,useTransition:Ka,useDeferredValue:qa,useSyncExternalStore:Ya,startTransition:go,useRef:D,useImperativeHandle:Oa,useMemo:ee,useCallback:j,useContext:kt,useDebugValue:lo,version:"17.0.2",Children:Ce,render:Fa,hydrate:ja,unmountComponentAtNode:Ua,createPortal:La,createElement:O,createContext:ut,createFactory:Ha,cloneElement:Pt,createRef:ua,Fragment:L,isValidElement:ft,findDOMNode:Wa,Component:de,PureComponent:Rn,memo:Ra,forwardRef:q,flushSync:on,unstable_batchedUpdates:za,StrictMode:Ba,Suspense:xt,SuspenseList:yt,lazy:po,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Va};const Za=Object.freeze(Object.defineProperty({__proto__:null,Children:Ce,Component:de,Fragment:L,PureComponent:Rn,StrictMode:Ba,Suspense:xt,SuspenseList:yt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Va,cloneElement:Pt,createContext:ut,createElement:O,createFactory:Ha,createPortal:La,createRef:ua,default:an,findDOMNode:Wa,flushSync:on,forwardRef:q,hydrate:ja,isValidElement:ft,lazy:po,memo:Ra,render:Fa,startTransition:go,unmountComponentAtNode:Ua,unstable_batchedUpdates:za,useCallback:j,useContext:kt,useDebugValue:lo,useDeferredValue:qa,useEffect:I,useErrorBoundary:Jc,useId:uo,useImperativeHandle:Oa,useInsertionEffect:Ga,useLayoutEffect:Ue,useMemo:ee,useReducer:Un,useRef:D,useState:P,useSyncExternalStore:Ya,useTransition:Ka,version:kl},Symbol.toStringTag,{value:"Module"}));var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pl(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 Hr={exports:{}},pr={};const Ja=Pl(Za);/**
|
|
5
|
+
* @license React
|
|
6
|
+
* use-sync-external-store-shim.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/var si;function Rl(){if(si)return pr;si=1;var e=Ja;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(c,p){var h=p(),v=r({inst:{value:h,getSnapshot:p}}),g=v[0].inst,y=v[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&y({inst:g})},[c,h,p]),o(function(){return l(g)&&y({inst:g}),c(function(){l(g)&&y({inst:g})})},[c]),a(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!n(c,h)}catch{return!0}}function d(c,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return pr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,pr}var hr={};/**
|
|
13
|
+
* @license React
|
|
14
|
+
* use-sync-external-store-shim.development.js
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the MIT license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/var ci;function Dl(){return ci||(ci=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=Ja,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var b=arguments.length,x=new Array(b>1?b-1:0),$=1;$<b;$++)x[$-1]=arguments[$];r("error",w,x)}}function r(w,b,x){{var $=t.ReactDebugCurrentFrame,C=$.getStackAddendum();C!==""&&(b+="%s",x=x.concat([C]));var E=x.map(function(S){return String(S)});E.unshift("Warning: "+b),Function.prototype.apply.call(console[w],console,E)}}function o(w,b){return w===b&&(w!==0||1/w===1/b)||w!==w&&b!==b}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,s=e.useEffect,l=e.useLayoutEffect,d=e.useDebugValue,f=!1,c=!1;function p(w,b,x){f||e.startTransition!==void 0&&(f=!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 $=b();if(!c){var C=b();i($,C)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var E=a({inst:{value:$,getSnapshot:b}}),S=E[0].inst,A=E[1];return l(function(){S.value=$,S.getSnapshot=b,h(S)&&A({inst:S})},[w,$,b]),s(function(){h(S)&&A({inst:S});var T=function(){h(S)&&A({inst:S})};return w(T)},[w]),d($),$}function h(w){var b=w.getSnapshot,x=w.value;try{var $=b();return!i(x,$)}catch{return!0}}function v(w,b,x){return b()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!g,m=y?v:p,_=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m;hr.useSyncExternalStore=_,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"?Hr.exports=Rl():Hr.exports=Dl();var Nl=Hr.exports;const Ke=()=>{},ie=Ke(),gr=Object,M=e=>e===ie,we=e=>typeof e=="function",Ye=(e,t)=>({...e,...t}),Il=e=>we(e.then),pn=new WeakMap;let Ll=0;const Kt=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(gr(e)===e&&!r&&n!=RegExp){if(o=pn.get(e),o)return o;if(o=++Ll+"~",pn.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Kt(e[i])+",";pn.set(e,o)}if(n==gr){o="#";const a=gr.keys(e).sort();for(;!M(i=a.pop());)M(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},De=new WeakMap,vr={},hn={},mo="undefined",Wn=typeof window!=mo,Ur=typeof document!=mo,Ml=()=>Wn&&typeof window.requestAnimationFrame!=mo,Xa=(e,t)=>{const n=De.get(e);return[()=>!M(t)&&e.get(t)||vr,r=>{if(!M(t)){const o=e.get(t);t in hn||(hn[t]=o),n[5](t,Ye(o,r),o||vr)}},n[6],()=>!M(t)&&t in hn?hn[t]:!M(t)&&e.get(t)||vr]};let Wr=!0;const Fl=()=>Wr,[zr,Br]=Wn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ke,Ke],jl=()=>{const e=Ur&&document.visibilityState;return M(e)||e!=="hidden"},Vl=e=>(Ur&&document.addEventListener("visibilitychange",e),zr("focus",e),()=>{Ur&&document.removeEventListener("visibilitychange",e),Br("focus",e)}),Hl=e=>{const t=()=>{Wr=!0,e()},n=()=>{Wr=!1};return zr("online",t),zr("offline",n),()=>{Br("online",t),Br("offline",n)}},Ul={isOnline:Fl,isVisible:jl},Wl={initFocus:Vl,initReconnect:Hl},li=!an.useId,Gt=!Wn||"Deno"in window,zl=e=>Ml()?window.requestAnimationFrame(e):setTimeout(e,1),mr=Gt?I:Ue,_r=typeof navigator<"u"&&navigator.connection,ui=!Gt&&_r&&(["slow-2g","2g"].includes(_r.effectiveType)||_r.saveData),_o=e=>{if(we(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 Bl=0;const qr=()=>++Bl,Qa=0,es=1,ts=2,ql=3;var Ht={__proto__:null,ERROR_REVALIDATE_EVENT:ql,FOCUS_EVENT:Qa,MUTATE_EVENT:ts,RECONNECT_EVENT:es};async function ns(...e){const[t,n,r,o]=e,i=Ye({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const d=p=>typeof s=="function"?s(p):s!==!1,f=i.throwOnError;if(we(n)){const p=n,h=[],v=t.keys();for(const g of v)!/^\$(inf|sub)\$/.test(g)&&p(t.get(g)._k)&&h.push(g);return Promise.all(h.map(c))}return c(n);async function c(p){const[h]=_o(p);if(!h)return;const[v,g]=Xa(t,h),[y,m,_,w]=De.get(t),b=()=>{const R=y[h];return(we(i.revalidate)?i.revalidate(v().data,p):i.revalidate!==!1)&&(delete _[h],delete w[h],R&&R[0])?R[0](ts).then(()=>v().data):v().data};if(e.length<3)return b();let x=r,$;const C=qr();m[h]=[C,0];const E=!M(l),S=v(),A=S.data,T=S._c,k=M(T)?A:T;if(E&&(l=we(l)?l(k,A):l,g({data:l,_c:k})),we(x))try{x=x(k)}catch(R){$=R}if(x&&Il(x))if(x=await x.catch(R=>{$=R}),C!==m[h][0]){if($)throw $;return x}else $&&E&&d($)&&(a=!0,g({data:k,_c:ie}));if(a&&!$)if(we(a)){const R=a(x,k);g({data:R,error:ie,_c:ie})}else g({data:x,error:ie,_c:ie});if(m[h][1]=qr(),Promise.resolve(b()).then(()=>{g({_c:ie})}),$){if(f)throw $;return}return x}}const di=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Kl=(e,t)=>{if(!De.has(e)){const n=Ye(Wl,t),r={},o=ns.bind(ie,e);let i=Ke;const a={},s=(f,c)=>{const p=a[f]||[];return a[f]=p,p.push(c),()=>p.splice(p.indexOf(c),1)},l=(f,c,p)=>{e.set(f,c);const h=a[f];if(h)for(const v of h)v(c,p)},d=()=>{if(!De.has(e)&&(De.set(e,[r,{},{},{},o,l,s]),!Gt)){const f=n.initFocus(setTimeout.bind(ie,di.bind(ie,r,Qa))),c=n.initReconnect(setTimeout.bind(ie,di.bind(ie,r,es)));i=()=>{f&&f(),c&&c(),De.delete(e)}}};return d(),[e,o,d,i]}return[e,De.get(e)[4]]},Gl=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!M(i)&&a>i||setTimeout(r,s,o)},Yl=(e,t)=>Kt(e)==Kt(t),[rs,Zl]=Kl(new Map),Jl=Ye({onLoadingSlow:Ke,onSuccess:Ke,onError:Ke,onErrorRetry:Gl,onDiscarded:Ke,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ui?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ui?5e3:3e3,compare:Yl,isPaused:()=>!1,cache:rs,mutate:Zl,fallback:{}},Ul),Xl=(e,t)=>{const n=Ye(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=Ye(o,a))}return n},Ql=ut({}),eu="$inf$",os=Wn&&window.__SWR_DEVTOOLS_USE__,tu=os?window.__SWR_DEVTOOLS_USE__:[],nu=()=>{os&&(window.__SWR_DEVTOOLS_REACT__=an)},ru=e=>we(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ou=()=>Ye(Jl,kt(Ql)),iu=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=_o(t),[,,,s]=De.get(rs);if(a.startsWith(eu))return n(...i);const l=s[a];return M(l)?n(...i):(delete s[a],l)}),r),au=tu.concat(iu),su=e=>function(...n){const r=ou(),[o,i,a]=ru(n),s=Xl(r,a);let l=e;const{use:d}=s,f=(d||[]).concat(au);for(let c=f.length;c--;)l=f[c](l);return l(o,i||s.fetcher||null,s)},cu=(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())}};nu();const fi=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)}),yr={dedupe:!0},lu=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:c,keepPreviousData:p}=n,[h,v,g,y]=De.get(r),[m,_]=_o(e),w=D(!1),b=D(!1),x=D(m),$=D(t),C=D(n),E=()=>C.current,S=()=>E().isVisible()&&E().isOnline(),[A,T,k,R]=Xa(r,m),N=D({}).current,K=M(a)?n.fallback[m]:a,Y=(H,U)=>{for(const te in N){const W=te;if(W==="data"){if(!o(H[W],U[W])&&(!M(H[W])||!o(Ae,U[W])))return!1}else if(U[W]!==H[W])return!1}return!0},F=ee(()=>{const H=(()=>!m||!t?!1:M(s)?E().isPaused()||i?!1:M(l)?!0:l:s)(),U=re=>{const he=Ye(re);return delete he._k,H?{isValidating:!0,isLoading:!0,...he}:he},te=A(),W=R(),ae=U(te),Be=te===W?ae:U(W);let X=ae;return[()=>{const re=U(A());return Y(re,X)?(X.data=re.data,X.isLoading=re.isLoading,X.isValidating=re.isValidating,X.error=re.error,X):(X=re,re)},()=>Be]},[r,m]),G=Nl.useSyncExternalStore(j(H=>k(m,(U,te)=>{Y(te,U)||H()}),[r,m]),F[0],F[1]),Z=!w.current,jt=h[m]&&h[m].length>0,pe=G.data,ze=M(pe)?K:pe,ot=G.error,ln=D(ze),Ae=p?M(pe)?ln.current:pe:ze,Te=(()=>jt&&!M(ot)?!1:Z&&!M(s)?s:E().isPaused()?!1:i?M(ze)?!1:l:M(ze)||l)(),Vt=!!(m&&t&&Z&&Te),er=M(G.isValidating)?Vt:G.isValidating,gt=M(G.isLoading)?Vt:G.isLoading,it=j(async H=>{const U=$.current;if(!m||!U||b.current||E().isPaused())return!1;let te,W,ae=!0;const Be=H||{},X=!g[m]||!Be.dedupe,re=()=>li?!b.current&&m===x.current&&w.current:m===x.current,he={isValidating:!1,isLoading:!1},at=()=>{T(he)},Ro=()=>{const le=g[m];le&&le[1]===W&&delete g[m]},Do={isValidating:!0};M(A().data)&&(Do.isLoading=!0);try{if(X&&(T(Do),n.loadingTimeout&&M(A().data)&&setTimeout(()=>{ae&&re()&&E().onLoadingSlow(m,n)},n.loadingTimeout),g[m]=[U(_),qr()]),[te,W]=g[m],te=await te,X&&setTimeout(Ro,n.dedupingInterval),!g[m]||g[m][1]!==W)return X&&re()&&E().onDiscarded(m),!1;he.error=ie;const le=v[m];if(!M(le)&&(W<=le[0]||W<=le[1]||le[1]===0))return at(),X&&re()&&E().onDiscarded(m),!1;const ke=A().data;he.data=o(ke,te)?ke:te,X&&re()&&E().onSuccess(te,m,n)}catch(le){Ro();const ke=E(),{shouldRetryOnError:tr}=ke;ke.isPaused()||(he.error=le,X&&re()&&(ke.onError(le,m,ke),(tr===!0||we(tr)&&tr(le))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||S())&&ke.onErrorRetry(le,m,ke,uc=>{const nr=h[m];nr&&nr[0]&&nr[0](Ht.ERROR_REVALIDATE_EVENT,uc)},{retryCount:(Be.retryCount||0)+1,dedupe:!0})))}return ae=!1,at(),!0},[m,r]),un=j((...H)=>ns(r,x.current,...H),[]);if(mr(()=>{$.current=t,C.current=n,M(pe)||(ln.current=pe)}),mr(()=>{if(!m)return;const H=it.bind(ie,yr);let U=0;const W=cu(m,h,(ae,Be={})=>{if(ae==Ht.FOCUS_EVENT){const X=Date.now();E().revalidateOnFocus&&X>U&&S()&&(U=X+E().focusThrottleInterval,H())}else if(ae==Ht.RECONNECT_EVENT)E().revalidateOnReconnect&&S()&&H();else{if(ae==Ht.MUTATE_EVENT)return it();if(ae==Ht.ERROR_REVALIDATE_EVENT)return it(Be)}});return b.current=!1,x.current=m,w.current=!0,T({_k:_}),Te&&(M(ze)||Gt?H():zl(H)),()=>{b.current=!0,W()}},[m]),mr(()=>{let H;function U(){const W=we(d)?d(A().data):d;W&&H!==-1&&(H=setTimeout(te,W))}function te(){!A().error&&(f||E().isVisible())&&(c||E().isOnline())?it(yr).then(U):U()}return U(),()=>{H&&(clearTimeout(H),H=-1)}},[d,f,c,m]),lo(Ae),i&&M(ze)&&m){if(!li&&Gt)throw new Error("Fallback data is required when using suspense in SSR.");$.current=t,C.current=n,b.current=!1;const H=y[m];if(!M(H)){const U=un(H);fi(U)}if(M(ot)){const U=it(yr);M(Ae)||(U.status="fulfilled",U.value=!0),fi(U)}else throw ot}return{mutate:un,get data(){return N.data=!0,Ae},get error(){return N.error=!0,ot},get isValidating(){return N.isValidating=!0,er},get isLoading(){return N.isLoading=!0,gt}}},Yt=su(lu),Kr=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 B(){return B=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},B.apply(this,arguments)}function ge(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 is(...e){return t=>e.forEach(n=>uu(n,t))}function Oe(...e){return j(is(...e),e)}function yo(e,t=[]){let n=[];function r(i,a){const s=ut(a),l=n.length;n=[...n,a];function d(c){const{scope:p,children:h,...v}=c,g=(p==null?void 0:p[e][l])||s,y=ee(()=>v,Object.values(v));return O(g.Provider,{value:y},h)}function f(c,p){const h=(p==null?void 0:p[e][l])||s,v=kt(h);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}const o=()=>{const i=n.map(a=>ut(a));return function(s){const l=(s==null?void 0:s[e])||i;return ee(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};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:l,scopeName:d})=>{const c=l(i)[`__scope${d}`];return{...s,...c}},{});return ee(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}const At=globalThis!=null&&globalThis.document?Ue:()=>{},fu=Za["useId".toString()]||(()=>{});let pu=0;function $n(e){const[t,n]=P(fu());return At(()=>{e||n(r=>r??String(pu++))},[e]),e||(t?`radix-${t}`:"")}function Ze(e){const t=D(e);return I(()=>{t.current=e}),ee(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function as({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=hu({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=Ze(n),l=j(d=>{if(i){const c=typeof d=="function"?d(e):d;c!==e&&s(c)}else o(d)},[i,e,o,s]);return[a,l]}function hu({defaultProp:e,onChange:t}){const n=P(e),[r]=n,o=D(r),i=Ze(t);return I(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const zn=q((e,t)=>{const{children:n,...r}=e,o=Ce.toArray(n),i=o.find(vu);if(i){const a=i.props.children,s=o.map(l=>l===i?Ce.count(a)>1?Ce.only(null):ft(a)?a.props.children:null:l);return O(Gr,B({},r,{ref:t}),ft(a)?Pt(a,void 0,s):null)}return O(Gr,B({},r,{ref:t}),n)});zn.displayName="Slot";const Gr=q((e,t)=>{const{children:n,...r}=e;return ft(n)?Pt(n,{...mu(r,n.props),ref:t?is(t,n.ref):n.ref}):Ce.count(n)>1?Ce.only(null):null});Gr.displayName="SlotClone";const gu=({children:e})=>O(L,null,e);function vu(e){return ft(e)&&e.type===gu}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=q((r,o)=>{const{asChild:i,...a}=r,s=i?zn:t;return I(()=>{window[Symbol.for("radix-ui")]=!0},[]),O(s,B({},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=Ze(e);I(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Yr="dismissableLayer.update",wu="dismissableLayer.pointerDownOutside",xu="dismissableLayer.focusOutside";let pi;const $u=ut({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ss=q((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,f=kt($u),[c,p]=P(null),h=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,v]=P({}),g=Oe(t,E=>p(E)),y=Array.from(f.layers),[m]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),_=y.indexOf(m),w=c?y.indexOf(c):-1,b=f.layersWithOutsidePointerEventsDisabled.size>0,x=w>=_,$=Eu(E=>{const S=E.target,A=[...f.branches].some(T=>T.contains(S));!x||A||(i==null||i(E),s==null||s(E),E.defaultPrevented||l==null||l())},h),C=Cu(E=>{const S=E.target;[...f.branches].some(T=>T.contains(S))||(a==null||a(E),s==null||s(E),E.defaultPrevented||l==null||l())},h);return bu(E=>{w===f.layers.size-1&&(o==null||o(E),!E.defaultPrevented&&l&&(E.preventDefault(),l()))},h),I(()=>{if(c)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(pi=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(c)),f.layers.add(c),hi(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=pi)}},[c,h,r,f]),I(()=>()=>{c&&(f.layers.delete(c),f.layersWithOutsidePointerEventsDisabled.delete(c),hi())},[c,f]),I(()=>{const E=()=>v({});return document.addEventListener(Yr,E),()=>document.removeEventListener(Yr,E)},[]),O(nt.div,B({},d,{ref:g,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Eu(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=D(!1),o=D(()=>{});return I(()=>{const i=s=>{if(s.target&&!r.current){let d=function(){cs(wu,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}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=Ze(e),r=D(!1);return I(()=>{const o=i=>{i.target&&!r.current&&cs(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 hi(){const e=new CustomEvent(Yr);document.dispatchEvent(e)}function cs(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 br="focusScope.autoFocusOnMount",wr="focusScope.autoFocusOnUnmount",gi={bubbles:!1,cancelable:!0},ls=q((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=P(null),d=Ze(o),f=Ze(i),c=D(null),p=Oe(t,g=>l(g)),h=D({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I(()=>{if(r){let g=function(w){if(h.paused||!s)return;const b=w.target;s.contains(b)?c.current=b:qe(c.current,{select:!0})},y=function(w){if(h.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||qe(c.current,{select:!0}))},m=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&qe(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const _=new MutationObserver(m);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),_.disconnect()}}},[r,s,h.paused]),I(()=>{if(s){mi.add(h);const g=document.activeElement;if(!s.contains(g)){const m=new CustomEvent(br,gi);s.addEventListener(br,d),s.dispatchEvent(m),m.defaultPrevented||(Su(Pu(us(s)),{select:!0}),document.activeElement===g&&qe(s))}return()=>{s.removeEventListener(br,d),setTimeout(()=>{const m=new CustomEvent(wr,gi);s.addEventListener(wr,f),s.dispatchEvent(m),m.defaultPrevented||qe(g??document.body,{select:!0}),s.removeEventListener(wr,f),mi.remove(h)},0)}}},[s,d,f,h]);const v=j(g=>{if(!n&&!r||h.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(y&&m){const _=g.currentTarget,[w,b]=Ou(_);w&&b?!g.shiftKey&&m===b?(g.preventDefault(),n&&qe(w,{select:!0})):g.shiftKey&&m===w&&(g.preventDefault(),n&&qe(b,{select:!0})):m===_&&g.preventDefault()}},[n,r,h.paused]);return O(nt.div,B({tabIndex:-1},a,{ref:p,onKeyDown:v}))});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=us(e),n=vi(t,e),r=vi(t.reverse(),e);return[n,r]}function us(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 vi(e,t){for(const n of e)if(!Au(n,{upTo:t}))return n}function Au(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 Tu(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&&Tu(e)&&t&&e.select()}}const mi=ku();function ku(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=_i(e,t),e.unshift(t)},remove(t){var n;e=_i(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function _i(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 ds=q((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(O(nt.div,B({},o,{ref:t})),r):null});function Ru(e,t){return Un((n,r)=>{const o=t[n][r];return o??n},e)}const Rt=e=>{const{present:t,children:n}=e,r=Du(t),o=typeof n=="function"?n({present:r.isPresent}):Ce.only(n),i=Oe(r.ref,o.ref);return typeof n=="function"||r.isPresent?Pt(o,{ref:i}):null};Rt.displayName="Presence";function Du(e){const[t,n]=P(),r=D({}),o=D(e),i=D("none"),a=e?"mounted":"unmounted",[s,l]=Ru(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I(()=>{const d=gn(r.current);i.current=s==="mounted"?d:"none"},[s]),At(()=>{const d=r.current,f=o.current;if(f!==e){const p=i.current,h=gn(d);e?l("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),At(()=>{if(t){const d=c=>{const h=gn(r.current).includes(c.animationName);c.target===t&&h&&on(()=>l("ANIMATION_END"))},f=c=>{c.target===t&&(i.current=gn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:j(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function gn(e){return(e==null?void 0:e.animationName)||"none"}let xr=0;function fs(){I(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:yi()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:yi()),xr++,()=>{xr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),xr--}},[])}function yi(){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 xe=function(){return xe=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},xe.apply(this,arguments)};function ps(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 Nu(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 En="right-scroll-bar-position",Cn="width-before-scroll-bar",Iu="with-scroll-bars-hidden",Lu="--removed-body-scroll-bar-size";function $r(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Mu(e,t){var n=P(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"?Ue:I,bi=new WeakMap;function ju(e,t){var n=Mu(t||null,function(r){return e.forEach(function(o){return $r(o,r)})});return Fu(function(){var r=bi.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||$r(s,null)}),i.forEach(function(s){o.has(s)||$r(s,a)})}bi.set(n,e)},[e]),n}function Vu(e){return e}function Hu(e,t){t===void 0&&(t=Vu);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 l=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function Uu(e){e===void 0&&(e={});var t=Hu(null);return t.options=xe({async:!0,ssr:!1},e),t}var hs=function(e){var t=e.sideCar,n=ps(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 O(r,xe({},n))};hs.isSideCarExport=!0;function Wu(e,t){return e.useMedium(t),hs}var gs=Uu(),Er=function(){},Bn=q(function(e,t){var n=D(null),r=P({onScrollCapture:Er,onWheelCapture:Er,onTouchMoveCapture:Er}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,c=e.shards,p=e.sideCar,h=e.noIsolation,v=e.inert,g=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,_=ps(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,b=ju([n,t]),x=xe(xe({},_),o);return O(L,null,f&&O(w,{sideCar:gs,removeScrollBar:d,shards:c,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),a?Pt(Ce.only(s),xe(xe({},x),{ref:b})):O(m,xe({},x,{className:l,ref:b}),s))});Bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bn.classNames={fullWidth:Cn,zeroRight:En};var wi,zu=function(){if(wi)return wi;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zu();return t&&e.setAttribute("nonce",t),e}function qu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ku(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bu())&&(qu(t,n),Ku(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yu=function(){var e=Gu();return function(t,n){I(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vs=function(){var e=Yu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Zu={left:0,top:0,right:0,gap:0},Cr=function(e){return parseInt(e||"",10)||0},Ju=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[Cr(n),Cr(r),Cr(o)]},Xu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Zu;var t=Ju(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])}},Qu=vs(),$t="data-scroll-locked",ed=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(Iu,` {
|
|
22
|
+
overflow: hidden `).concat(r,`;
|
|
23
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
24
|
+
}
|
|
25
|
+
body[`).concat($t,`] {
|
|
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(En,` {
|
|
39
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.`).concat(Cn,` {
|
|
43
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.`).concat(En," .").concat(En,` {
|
|
47
|
+
right: 0 `).concat(r,`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.`).concat(Cn," .").concat(Cn,` {
|
|
51
|
+
margin-right: 0 `).concat(r,`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body[`).concat($t,`] {
|
|
55
|
+
`).concat(Lu,": ").concat(s,`px;
|
|
56
|
+
}
|
|
57
|
+
`)},xi=function(){var e=parseInt(document.body.getAttribute($t)||"0",10);return isFinite(e)?e:0},td=function(){I(function(){return document.body.setAttribute($t,(xi()+1).toString()),function(){var e=xi()-1;e<=0?document.body.removeAttribute($t):document.body.setAttribute($t,e.toString())}},[])},nd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;td();var i=ee(function(){return Xu(o)},[o]);return O(Qu,{styles:ed(i,!t,o,n?"":"!important")})},Zr=!1;if(typeof window<"u")try{var vn=Object.defineProperty({},"passive",{get:function(){return Zr=!0,!0}});window.addEventListener("test",vn,vn),window.removeEventListener("test",vn,vn)}catch{Zr=!1}var vt=Zr?{passive:!1}:!1,rd=function(e){return e.tagName==="TEXTAREA"},ms=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!rd(e)&&n[t]==="visible")},od=function(e){return ms(e,"overflowY")},id=function(e){return ms(e,"overflowX")},$i=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=_s(e,n);if(r){var o=ys(e,n),i=o[1],a=o[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ad=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},sd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_s=function(e,t){return e==="v"?od(t):id(t)},ys=function(e,t){return e==="v"?ad(t):sd(t)},cd=function(e,t){return e==="h"&&t==="rtl"?-1:1},ld=function(e,t,n,r,o){var i=cd(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),d=!1,f=a>0,c=0,p=0;do{var h=ys(e,s),v=h[0],g=h[1],y=h[2],m=g-y-i*v;(v||m)&&_s(e,s)&&(c+=m,p+=v),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&(o&&c===0||!o&&a>c)||!f&&(o&&p===0||!o&&-a>p))&&(d=!0),d},mn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ei=function(e){return[e.deltaX,e.deltaY]},Ci=function(e){return e&&"current"in e?e.current:e},ud=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dd=function(e){return`
|
|
58
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
59
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
60
|
+
`)},fd=0,mt=[];function pd(e){var t=D([]),n=D([0,0]),r=D(),o=P(fd++)[0],i=P(function(){return vs()})[0],a=D(e);I(function(){a.current=e},[e]),I(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Nu([e.lockRef.current],(e.shards||[]).map(Ci),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=j(function(g,y){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var m=mn(g),_=n.current,w="deltaX"in g?g.deltaX:_[0]-m[0],b="deltaY"in g?g.deltaY:_[1]-m[1],x,$=g.target,C=Math.abs(w)>Math.abs(b)?"h":"v";if("touches"in g&&C==="h"&&$.type==="range")return!1;var E=$i(C,$);if(!E)return!0;if(E?x=C:(x=C==="v"?"h":"v",E=$i(C,$)),!E)return!1;if(!r.current&&"changedTouches"in g&&(w||b)&&(r.current=x),!x)return!0;var S=r.current||x;return ld(S,y,g,S==="h"?w:b,!0)},[]),l=j(function(g){var y=g;if(!(!mt.length||mt[mt.length-1]!==i)){var m="deltaY"in y?Ei(y):mn(y),_=t.current.filter(function(x){return x.name===y.type&&x.target===y.target&&ud(x.delta,m)})[0];if(_&&_.should){y.cancelable&&y.preventDefault();return}if(!_){var w=(a.current.shards||[]).map(Ci).filter(Boolean).filter(function(x){return x.contains(y.target)}),b=w.length>0?s(y,w[0]):!a.current.noIsolation;b&&y.cancelable&&y.preventDefault()}}},[]),d=j(function(g,y,m,_){var w={name:g,delta:y,target:m,should:_};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(b){return b!==w})},1)},[]),f=j(function(g){n.current=mn(g),r.current=void 0},[]),c=j(function(g){d(g.type,Ei(g),g.target,s(g,e.lockRef.current))},[]),p=j(function(g){d(g.type,mn(g),g.target,s(g,e.lockRef.current))},[]);I(function(){return mt.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:p}),document.addEventListener("wheel",l,vt),document.addEventListener("touchmove",l,vt),document.addEventListener("touchstart",f,vt),function(){mt=mt.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,vt),document.removeEventListener("touchmove",l,vt),document.removeEventListener("touchstart",f,vt)}},[]);var h=e.removeScrollBar,v=e.inert;return O(L,null,v?O(i,{styles:dd(o)}):null,h?O(nd,{gapMode:"margin"}):null)}const hd=Wu(gs,pd);var bs=q(function(e,t){return O(Bn,xe({},e,{ref:t,sideCar:hd}))});bs.classNames=Bn.classNames;const ws=bs;var gd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_t=new WeakMap,_n=new WeakMap,yn={},Sr=0,xs=function(e){return e&&(e.host||xs(e.parentNode))},vd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xs(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})},md=function(e,t,n,r){var o=vd(t,Array.isArray(e)?e:[e]);yn[n]||(yn[n]=new WeakMap);var i=yn[n],a=[],s=new Set,l=new Set(o),d=function(c){!c||s.has(c)||(s.add(c),d(c.parentNode))};o.forEach(d);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(p){if(s.has(p))f(p);else try{var h=p.getAttribute(r),v=h!==null&&h!=="false",g=(_t.get(p)||0)+1,y=(i.get(p)||0)+1;_t.set(p,g),i.set(p,y),a.push(p),g===1&&v&&_n.set(p,!0),y===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",p,m)}})};return f(t),s.clear(),Sr++,function(){a.forEach(function(c){var p=_t.get(c)-1,h=i.get(c)-1;_t.set(c,p),i.set(c,h),p||(_n.has(c)||c.removeAttribute(r),_n.delete(c)),h||c.removeAttribute(n)}),Sr--,Sr||(_t=new WeakMap,_t=new WeakMap,_n=new WeakMap,yn={})}},$s=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||gd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),md(r,o,n,"aria-hidden")):function(){return null}};const Es="Dialog",[Cs,t_]=yo(Es),[_d,rt]=Cs(Es),yd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=D(null),l=D(null),[d=!1,f]=as({prop:r,defaultProp:o,onChange:i});return O(_d,{scope:t,triggerRef:s,contentRef:l,contentId:$n(),titleId:$n(),descriptionId:$n(),open:d,onOpenChange:f,onOpenToggle:j(()=>f(c=>!c),[f]),modal:a},n)},bd="DialogTrigger",wd=q((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(bd,n),i=Oe(t,o.triggerRef);return O(nt.button,B({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bo(o.open)},r,{ref:i,onClick:ge(e.onClick,o.onOpenToggle)}))}),Ss="DialogPortal",[xd,Os]=Cs(Ss,{forceMount:void 0}),$d=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rt(Ss,t);return O(xd,{scope:t,forceMount:n},Ce.map(r,a=>O(Rt,{present:n||i.open},O(ds,{asChild:!0,container:o},a))))},Jr="DialogOverlay",Ed=q((e,t)=>{const n=Os(Jr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Jr,e.__scopeDialog);return i.modal?O(Rt,{present:r||i.open},O(Cd,B({},o,{ref:t}))):null}),Cd=q((e,t)=>{const{__scopeDialog:n,...r}=e,o=rt(Jr,n);return O(ws,{as:zn,allowPinchZoom:!0,shards:[o.contentRef]},O(nt.div,B({"data-state":bo(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Zt="DialogContent",Sd=q((e,t)=>{const n=Os(Zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rt(Zt,e.__scopeDialog);return O(Rt,{present:r||i.open},i.modal?O(Od,B({},o,{ref:t})):O(Ad,B({},o,{ref:t})))}),Od=q((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=D(null),o=Oe(t,n.contentRef,r);return I(()=>{const i=r.current;if(i)return $s(i)},[]),O(As,B({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,i=>i.preventDefault())}))}),Ad=q((e,t)=>{const n=rt(Zt,e.__scopeDialog),r=D(!1),o=D(!1);return O(As,B({},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 l=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),As=q((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rt(Zt,n),l=D(null),d=Oe(t,l);return fs(),O(L,null,O(ls,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(ss,B({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":bo(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function bo(e){return e?"open":"closed"}const Td=yd,kd=wd,Pd=$d,Rd=Ed,Dd=Sd,Nd=["top","right","bottom","left"],Ee=Math.min,se=Math.max,Dn=Math.round,bn=Math.floor,Je=e=>({x:e,y:e}),Id={left:"right",right:"left",bottom:"top",top:"bottom"},Ld={start:"end",end:"start"};function Xr(e,t,n){return se(e,Ee(t,n))}function Ve(e,t){return typeof e=="function"?e(t):e}function He(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function wo(e){return e==="x"?"y":"x"}function xo(e){return e==="y"?"height":"width"}function Xe(e){return["top","bottom"].includes(He(e))?"y":"x"}function $o(e){return wo(Xe(e))}function Md(e,t,n){n===void 0&&(n=!1);const r=Dt(e),o=$o(e),i=xo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Nn(a)),[a,Nn(a)]}function Fd(e){const t=Nn(e);return[Qr(e),t,Qr(t)]}function Qr(e){return e.replace(/start|end/g,t=>Ld[t])}function jd(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 Vd(e,t,n,r){const o=Dt(e);let i=jd(He(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Qr)))),i}function Nn(e){return e.replace(/left|right|bottom|top/g,t=>Id[t])}function Hd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ts(e){return typeof e!="number"?Hd(e):{top:e,right:e,bottom:e,left:e}}function In(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 Si(e,t,n){let{reference:r,floating:o}=e;const i=Xe(t),a=$o(t),s=xo(a),l=He(t),d=i==="y",f=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(Dt(t)){case"start":h[a]-=p*(n&&d?-1:1);break;case"end":h[a]+=p*(n&&d?-1:1);break}return h}const Ud=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=Si(d,r,l),p=r,h={},v=0;for(let g=0;g<s.length;g++){const{name:y,fn:m}=s[g],{x:_,y:w,data:b,reset:x}=await m({x:f,y:c,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:d,platform:a,elements:{reference:e,floating:t}});f=_??f,c=w??c,h={...h,[y]:{...h[y],...b}},x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(p=x.placement),x.rects&&(d=x.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:f,y:c}=Si(d,p,l)),g=-1)}return{x:f,y:c,placement:p,strategy:o,middlewareData:h}};async function Jt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=Ve(t,e),v=Ts(h),y=s[p?c==="floating"?"reference":"floating":c],m=In(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:l})),_=c==="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)),b=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=In(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:_,offsetParent:w,strategy:l}):_);return{top:(m.top-x.top+v.top)/b.y,bottom:(x.bottom-m.bottom+v.bottom)/b.y,left:(m.left-x.left+v.left)/b.x,right:(x.right-m.right+v.right)/b.x}}const Wd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:d,padding:f=0}=Ve(e,t)||{};if(d==null)return{};const c=Ts(f),p={x:n,y:r},h=$o(o),v=xo(h),g=await a.getDimensions(d),y=h==="y",m=y?"top":"left",_=y?"bottom":"right",w=y?"clientHeight":"clientWidth",b=i.reference[v]+i.reference[h]-p[h]-i.floating[v],x=p[h]-i.reference[h],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=$?$[w]:0;(!C||!await(a.isElement==null?void 0:a.isElement($)))&&(C=s.floating[w]||i.floating[v]);const E=b/2-x/2,S=C/2-g[v]/2-1,A=Ee(c[m],S),T=Ee(c[_],S),k=A,R=C-g[v]-T,N=C/2-g[v]/2+E,K=Xr(k,N,R),Y=!l.arrow&&Dt(o)!=null&&N!==K&&i.reference[v]/2-(N<k?A:T)-g[v]/2<0,F=Y?N<k?N-k:N-R:0;return{[h]:p[h]+F,data:{[h]:K,centerOffset:N-K-F,...Y&&{alignmentOffset:F}},reset:Y}}}),zd=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:l,elements:d}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...y}=Ve(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=He(o),_=Xe(s),w=He(s)===s,b=await(l.isRTL==null?void 0:l.isRTL(d.floating)),x=p||(w||!g?[Nn(s)]:Fd(s)),$=v!=="none";!p&&$&&x.push(...Vd(s,g,v,b));const C=[s,...x],E=await Jt(t,y),S=[];let A=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&S.push(E[m]),c){const N=Md(o,a,b);S.push(E[N[0]],E[N[1]])}if(A=[...A,{placement:o,overflows:S}],!S.every(N=>N<=0)){var T,k;const N=(((T=i.flip)==null?void 0:T.index)||0)+1,K=C[N];if(K)return{data:{index:N,overflows:A},reset:{placement:K}};let Y=(k=A.filter(F=>F.overflows[0]<=0).sort((F,G)=>F.overflows[1]-G.overflows[1])[0])==null?void 0:k.placement;if(!Y)switch(h){case"bestFit":{var R;const F=(R=A.filter(G=>{if($){const Z=Xe(G.placement);return Z===_||Z==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(Z=>Z>0).reduce((Z,jt)=>Z+jt,0)]).sort((G,Z)=>G[1]-Z[1])[0])==null?void 0:R[0];F&&(Y=F);break}case"initialPlacement":Y=s;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function Oi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ai(e){return Nd.some(t=>e[t]>=0)}const Bd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ve(e,t);switch(r){case"referenceHidden":{const i=await Jt(t,{...o,elementContext:"reference"}),a=Oi(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ai(a)}}}case"escaped":{const i=await Jt(t,{...o,altBoundary:!0}),a=Oi(i,n.floating);return{data:{escapedOffsets:a,escaped:Ai(a)}}}default:return{}}}}};async function qd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=He(n),s=Dt(n),l=Xe(n)==="y",d=["left","top"].includes(a)?-1:1,f=i&&l?-1:1,c=Ve(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*f,y:p*d}:{x:p*d,y:h*f}}const Kd=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,l=await qd(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Gd=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:y=>{let{x:m,y:_}=y;return{x:m,y:_}}},...l}=Ve(e,t),d={x:n,y:r},f=await Jt(t,l),c=Xe(He(o)),p=wo(c);let h=d[p],v=d[c];if(i){const y=p==="y"?"top":"left",m=p==="y"?"bottom":"right",_=h+f[y],w=h-f[m];h=Xr(_,h,w)}if(a){const y=c==="y"?"top":"left",m=c==="y"?"bottom":"right",_=v+f[y],w=v-f[m];v=Xr(_,v,w)}const g=s.fn({...t,[p]:h,[c]:v});return{...g,data:{x:g.x-n,y:g.y-r}}}}},Yd=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:l=!0,crossAxis:d=!0}=Ve(e,t),f={x:n,y:r},c=Xe(o),p=wo(c);let h=f[p],v=f[c];const g=Ve(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=p==="y"?"height":"width",b=i.reference[p]-i.floating[w]+y.mainAxis,x=i.reference[p]+i.reference[w]-y.mainAxis;h<b?h=b:h>x&&(h=x)}if(d){var m,_;const w=p==="y"?"width":"height",b=["top","left"].includes(He(o)),x=i.reference[c]-i.floating[w]+(b&&((m=a.offset)==null?void 0:m[c])||0)+(b?0:y.crossAxis),$=i.reference[c]+i.reference[w]+(b?0:((_=a.offset)==null?void 0:_[c])||0)-(b?y.crossAxis:0);v<x?v=x:v>$&&(v=$)}return{[p]:h,[c]:v}}}},Zd=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}=Ve(e,t),l=await Jt(t,s),d=He(n),f=Dt(n),c=Xe(n)==="y",{width:p,height:h}=r.floating;let v,g;d==="top"||d==="bottom"?(v=d,g=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=d,v=f==="end"?"top":"bottom");const y=h-l.top-l.bottom,m=p-l.left-l.right,_=Ee(h-l[v],y),w=Ee(p-l[g],m),b=!t.middlewareData.shift;let x=_,$=w;if(c?$=f||b?Ee(w,m):m:x=f||b?Ee(_,y):y,b&&!f){const E=se(l.left,0),S=se(l.right,0),A=se(l.top,0),T=se(l.bottom,0);c?$=p-2*(E!==0||S!==0?E+S:se(l.left,l.right)):x=h-2*(A!==0||T!==0?A+T:se(l.top,l.bottom))}await a({...t,availableWidth:$,availableHeight:x});const C=await o.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function Nt(e){return ks(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function We(e){var t;return(t=(ks(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ks(e){return e instanceof Node||e instanceof ce(e).Node}function ve(e){return e instanceof Element||e instanceof ce(e).Element}function Se(e){return e instanceof HTMLElement||e instanceof ce(e).HTMLElement}function Ti(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}function sn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jd(e){return["table","td","th"].includes(Nt(e))}function qn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Eo(e){const t=Co(),n=ve(e)?me(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 Xd(e){let t=Qe(e);for(;Se(t)&&!Tt(t);){if(Eo(t))return t;if(qn(t))return null;t=Qe(t)}return null}function Co(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Tt(e){return["html","body","#document"].includes(Nt(e))}function me(e){return ce(e).getComputedStyle(e)}function Kn(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qe(e){if(Nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ti(e)&&e.host||We(e);return Ti(t)?t.host:t}function Ps(e){const t=Qe(e);return Tt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&sn(t)?t:Ps(t)}function Xt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ps(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=ce(o);if(i){const s=eo(a);return t.concat(a,a.visualViewport||[],sn(o)?o:[],s&&n?Xt(s):[])}return t.concat(o,Xt(o,[],n))}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rs(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Se(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Dn(n)!==i||Dn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function So(e){return ve(e)?e:e.contextElement}function Et(e){const t=So(e);if(!Se(t))return Je(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Rs(t);let a=(i?Dn(n.width):n.width)/r,s=(i?Dn(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Qd=Je(0);function Ds(e){const t=ce(e);return!Co()||!t.visualViewport?Qd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ef(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function pt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=So(e);let a=Je(1);t&&(r?ve(r)&&(a=Et(r)):a=Et(e));const s=ef(i,n,r)?Ds(i):Je(0);let l=(o.left+s.x)/a.x,d=(o.top+s.y)/a.y,f=o.width/a.x,c=o.height/a.y;if(i){const p=ce(i),h=r&&ve(r)?ce(r):r;let v=p,g=eo(v);for(;g&&r&&h!==v;){const y=Et(g),m=g.getBoundingClientRect(),_=me(g),w=m.left+(g.clientLeft+parseFloat(_.paddingLeft))*y.x,b=m.top+(g.clientTop+parseFloat(_.paddingTop))*y.y;l*=y.x,d*=y.y,f*=y.x,c*=y.y,l+=w,d+=b,v=ce(g),g=eo(v)}}return In({width:f,height:c,x:l,y:d})}function tf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=We(r),s=t?qn(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},d=Je(1);const f=Je(0),c=Se(r);if((c||!c&&!i)&&((Nt(r)!=="body"||sn(a))&&(l=Kn(r)),Se(r))){const p=pt(r);d=Et(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x,y:n.y*d.y-l.scrollTop*d.y+f.y}}function nf(e){return Array.from(e.getClientRects())}function Ns(e){return pt(We(e)).left+Kn(e).scrollLeft}function rf(e){const t=We(e),n=Kn(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ns(e);const s=-n.scrollTop;return me(r).direction==="rtl"&&(a+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function of(e,t){const n=ce(e),r=We(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const d=Co();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function af(e,t){const n=pt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Se(e)?Et(e):Je(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,d=r*i.y;return{width:a,height:s,x:l,y:d}}function ki(e,t,n){let r;if(t==="viewport")r=of(e,n);else if(t==="document")r=rf(We(e));else if(ve(t))r=af(t,n);else{const o=Ds(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return In(r)}function Is(e,t){const n=Qe(e);return n===t||!ve(n)||Tt(n)?!1:me(n).position==="fixed"||Is(n,t)}function sf(e,t){const n=t.get(e);if(n)return n;let r=Xt(e,[],!1).filter(s=>ve(s)&&Nt(s)!=="body"),o=null;const i=me(e).position==="fixed";let a=i?Qe(e):e;for(;ve(a)&&!Tt(a);){const s=me(a),l=Eo(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||sn(a)&&!l&&Is(e,a))?r=r.filter(f=>f!==a):o=s,a=Qe(a)}return t.set(e,r),r}function cf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?qn(t)?[]:sf(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((d,f)=>{const c=ki(t,f,o);return d.top=se(c.top,d.top),d.right=Ee(c.right,d.right),d.bottom=Ee(c.bottom,d.bottom),d.left=se(c.left,d.left),d},ki(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function lf(e){const{width:t,height:n}=Rs(e);return{width:t,height:n}}function uf(e,t,n){const r=Se(t),o=We(t),i=n==="fixed",a=pt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Je(0);if(r||!r&&!i)if((Nt(t)!=="body"||sn(o))&&(s=Kn(t)),r){const c=pt(t,!0,i,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else o&&(l.x=Ns(o));const d=a.left+s.scrollLeft-l.x,f=a.top+s.scrollTop-l.y;return{x:d,y:f,width:a.width,height:a.height}}function Or(e){return me(e).position==="static"}function Pi(e,t){return!Se(e)||me(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ls(e,t){const n=ce(e);if(qn(e))return n;if(!Se(e)){let o=Qe(e);for(;o&&!Tt(o);){if(ve(o)&&!Or(o))return o;o=Qe(o)}return n}let r=Pi(e,t);for(;r&&Jd(r)&&Or(r);)r=Pi(r,t);return r&&Tt(r)&&Or(r)&&!Eo(r)?n:r||Xd(e)||n}const df=async function(e){const t=this.getOffsetParent||Ls,n=this.getDimensions,r=await n(e.floating);return{reference:uf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ff(e){return me(e).direction==="rtl"}const pf={convertOffsetParentRelativeRectToViewportRelativeRect:tf,getDocumentElement:We,getClippingRect:cf,getOffsetParent:Ls,getElementRects:df,getClientRects:nf,getDimensions:lf,getScale:Et,isElement:ve,isRTL:ff};function hf(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,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:d,top:f,width:c,height:p}=e.getBoundingClientRect();if(s||t(),!c||!p)return;const h=bn(f),v=bn(o.clientWidth-(d+c)),g=bn(o.clientHeight-(f+p)),y=bn(d),_={rootMargin:-h+"px "+-v+"px "+-g+"px "+-y+"px",threshold:se(0,Ee(1,l))||1};let w=!0;function b(x){const $=x[0].intersectionRatio;if($!==l){if(!w)return a();$?a(!1,$):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(b,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,_)}n.observe(e)}return a(!0),i}function gf(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:l=!1}=r,d=So(e),f=o||i?[...d?Xt(d):[],...Xt(t)]:[];f.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=d&&s?hf(d,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(m=>{let[_]=m;_&&_.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),n()}),d&&!l&&h.observe(d),h.observe(t));let v,g=l?pt(e):null;l&&y();function y(){const m=pt(e);g&&(m.x!==g.x||m.y!==g.y||m.width!==g.width||m.height!==g.height)&&n(),g=m,v=requestAnimationFrame(y)}return n(),()=>{var m;f.forEach(_=>{o&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),c==null||c(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const vf=Kd,mf=Gd,_f=zd,yf=Zd,bf=Bd,Ri=Wd,wf=Yd,xf=(e,t,n)=>{const r=new Map,o={platform:pf,...n},i={...o.platform,_c:r};return Ud(e,t,{...o,platform:i})};var Sn=typeof document<"u"?Ue:I;function Ln(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(!Ln(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)&&!Ln(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ms(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Di(e,t){const n=Ms(e);return Math.round(t*n)/n}function Ni(e){const t=D(e);return Sn(()=>{t.current=e}),t}function $f(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:l,open:d}=e,[f,c]=P({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=P(r);Ln(p,r)||h(r);const[v,g]=P(null),[y,m]=P(null),_=j(F=>{F!==$.current&&($.current=F,g(F))},[]),w=j(F=>{F!==C.current&&(C.current=F,m(F))},[]),b=i||v,x=a||y,$=D(null),C=D(null),E=D(f),S=l!=null,A=Ni(l),T=Ni(o),k=j(()=>{if(!$.current||!C.current)return;const F={placement:t,strategy:n,middleware:p};T.current&&(F.platform=T.current),xf($.current,C.current,F).then(G=>{const Z={...G,isPositioned:!0};R.current&&!Ln(E.current,Z)&&(E.current=Z,on(()=>{c(Z)}))})},[p,t,n,T]);Sn(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,c(F=>({...F,isPositioned:!1})))},[d]);const R=D(!1);Sn(()=>(R.current=!0,()=>{R.current=!1}),[]),Sn(()=>{if(b&&($.current=b),x&&(C.current=x),b&&x){if(A.current)return A.current(b,x,k);k()}},[b,x,k,A,S]);const N=ee(()=>({reference:$,floating:C,setReference:_,setFloating:w}),[_,w]),K=ee(()=>({reference:b,floating:x}),[b,x]),Y=ee(()=>{const F={position:n,left:0,top:0};if(!K.floating)return F;const G=Di(K.floating,f.x),Z=Di(K.floating,f.y);return s?{...F,transform:"translate("+G+"px, "+Z+"px)",...Ms(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:Z}},[n,s,K.floating,f.x,f.y]);return ee(()=>({...f,update:k,refs:N,elements:K,floatingStyles:Y}),[f,k,N,K,Y])}const Ef=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?Ri({element:r.current,padding:o}).fn(n):{}:r?Ri({element:r,padding:o}).fn(n):{}}}},Cf=(e,t)=>({...vf(e),options:[e,t]}),Sf=(e,t)=>({...mf(e),options:[e,t]}),Of=(e,t)=>({...wf(e),options:[e,t]}),Af=(e,t)=>({..._f(e),options:[e,t]}),Tf=(e,t)=>({...yf(e),options:[e,t]}),kf=(e,t)=>({...bf(e),options:[e,t]}),Pf=(e,t)=>({...Ef(e),options:[e,t]});function Rf(e){const[t,n]=P(void 0);return At(()=>{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 l=i.borderBoxSize,d=Array.isArray(l)?l[0]:l;a=d.inlineSize,s=d.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 Fs="Popper",[js,Vs]=yo(Fs),[Df,Hs]=js(Fs),Nf=e=>{const{__scopePopper:t,children:n}=e,[r,o]=P(null);return O(Df,{scope:t,anchor:r,onAnchorChange:o},n)},If="PopperAnchor",Lf=q((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Hs(If,n),a=D(null),s=Oe(t,a);return I(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:O(nt.div,B({},o,{ref:s}))}),Us="PopperContent",[Mf,n_]=js(Us),Ff=q((e,t)=>{var n,r,o,i,a,s,l,d;const{__scopePopper:f,side:c="bottom",sideOffset:p=0,align:h="center",alignOffset:v=0,arrowPadding:g=0,avoidCollisions:y=!0,collisionBoundary:m=[],collisionPadding:_=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:$,...C}=e,E=Hs(Us,f),[S,A]=P(null),T=Oe(t,W=>A(W)),[k,R]=P(null),N=Rf(k),K=(n=N==null?void 0:N.width)!==null&&n!==void 0?n:0,Y=(r=N==null?void 0:N.height)!==null&&r!==void 0?r:0,F=c+(h!=="center"?"-"+h:""),G=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},Z=Array.isArray(m)?m:[m],jt=Z.length>0,pe={padding:G,boundary:Z.filter(jf),altBoundary:jt},{refs:ze,floatingStyles:ot,placement:ln,isPositioned:Ae,middlewareData:Te}=$f({strategy:"fixed",placement:F,whileElementsMounted:(...W)=>gf(...W,{animationFrame:x==="always"}),elements:{reference:E.anchor},middleware:[Cf({mainAxis:p+Y,alignmentAxis:v}),y&&Sf({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Of():void 0,...pe}),y&&Af({...pe}),Tf({...pe,apply:({elements:W,rects:ae,availableWidth:Be,availableHeight:X})=>{const{width:re,height:he}=ae.reference,at=W.floating.style;at.setProperty("--radix-popper-available-width",`${Be}px`),at.setProperty("--radix-popper-available-height",`${X}px`),at.setProperty("--radix-popper-anchor-width",`${re}px`),at.setProperty("--radix-popper-anchor-height",`${he}px`)}}),k&&Pf({element:k,padding:g}),Vf({arrowWidth:K,arrowHeight:Y}),b&&kf({strategy:"referenceHidden",...pe})]}),[Vt,er]=Ws(ln),gt=Ze($);At(()=>{Ae&&(gt==null||gt())},[Ae,gt]);const it=(o=Te.arrow)===null||o===void 0?void 0:o.x,un=(i=Te.arrow)===null||i===void 0?void 0:i.y,H=((a=Te.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[U,te]=P();return At(()=>{S&&te(window.getComputedStyle(S).zIndex)},[S]),O("div",{ref:ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...ot,transform:Ae?ot.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(s=Te.transformOrigin)===null||s===void 0?void 0:s.x,(l=Te.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},O(Mf,{scope:f,placedSide:Vt,onArrowChange:R,arrowX:it,arrowY:un,shouldHideArrow:H},O(nt.div,B({"data-side":Vt,"data-align":er},C,{ref:T,style:{...C.style,animation:Ae?void 0:"none",opacity:(d=Te.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))});function jf(e){return e!==null}const Vf=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:d}=t,c=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[v,g]=Ws(s),y={start:"0%",center:"50%",end:"100%"}[g],m=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,_=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let w="",b="";return v==="bottom"?(w=c?y:`${m}px`,b=`${-h}px`):v==="top"?(w=c?y:`${m}px`,b=`${l.floating.height+h}px`):v==="right"?(w=`${-h}px`,b=c?y:`${_}px`):v==="left"&&(w=`${l.floating.width+h}px`,b=c?y:`${_}px`),{data:{x:w,y:b}}}});function Ws(e){const[t,n="center"]=e.split("-");return[t,n]}const Hf=Nf,Uf=Lf,Wf=Ff,zs="Popover",[Bs,r_]=yo(zs,[Vs]),Oo=Vs(),[zf,It]=Bs(zs),Bf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Oo(t),l=D(null),[d,f]=P(!1),[c=!1,p]=as({prop:r,defaultProp:o,onChange:i});return O(Hf,s,O(zf,{scope:t,contentId:$n(),triggerRef:l,open:c,onOpenChange:p,onOpenToggle:j(()=>p(h=>!h),[p]),hasCustomAnchor:d,onCustomAnchorAdd:j(()=>f(!0),[]),onCustomAnchorRemove:j(()=>f(!1),[]),modal:a},n))},qf="PopoverTrigger",Kf=q((e,t)=>{const{__scopePopover:n,...r}=e,o=It(qf,n),i=Oo(n),a=Oe(t,o.triggerRef),s=O(nt.button,B({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gs(o.open)},r,{ref:a,onClick:ge(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:O(Uf,B({asChild:!0},i),s)}),qs="PopoverPortal",[Gf,Yf]=Bs(qs,{forceMount:void 0}),Zf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=It(qs,t);return O(Gf,{scope:t,forceMount:n},O(Rt,{present:n||i.open},O(ds,{asChild:!0,container:o},r)))},Qt="PopoverContent",Jf=q((e,t)=>{const n=Yf(Qt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=It(Qt,e.__scopePopover);return O(Rt,{present:r||i.open},i.modal?O(Xf,B({},o,{ref:t})):O(Qf,B({},o,{ref:t})))}),Xf=q((e,t)=>{const n=It(Qt,e.__scopePopover),r=D(null),o=Oe(t,r),i=D(!1);return I(()=>{const a=r.current;if(a)return $s(a)},[]),O(ws,{as:zn,allowPinchZoom:!0},O(Ks,B({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,d=s.button===2||l;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ge(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),Qf=q((e,t)=>{const n=It(Qt,e.__scopePopover),r=D(!1),o=D(!1);return O(Ks,B({},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 l=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),Ks=q((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:f,...c}=e,p=It(Qt,n),h=Oo(n);return fs(),O(ls,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},O(ss,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1)},O(Wf,B({"data-state":Gs(p.open),role:"dialog",id:p.contentId},h,c,{ref:t,style:{...c.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 Gs(e){return e?"open":"closed"}const ep=Bf,tp=Kf,np=Zf,rp=Jf,lt=fe({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}}),cn=fe({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}}),Ys=fe({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"}}),Zs=fe({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"}}}),Js=fe({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}}),op=fe({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"}}}),ip=({children:e,colorScheme:t})=>u("span",{class:op({colorScheme:t}),children:u("span",{class:"block w-[3ch] text-center tabular-nums",children:e})}),ap=(e,t)=>{const n=e.indexOf(t);return n===-1?[...e,t]:e.filter((r,o)=>o!==n)},Ii=e=>{var n;const t=Number((n=e.match(/\d/g))==null?void 0:n.join(""));return Number.isNaN(t)?0:t},sp=(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=Ii(r.value),a=Ii(o.value);return i-a});break}return t.order==="descending"&&n.reverse(),n},cp=(e,t)=>{if(e===null)return!1;const n=e[t.value];return n===void 0?!0:n===0},lp=(e,t)=>{const n=r=>r>99?"99+":r.toString();return n(e===null?t.jobs:e[t.value]??0)},up=({value:e,property:t,useQuery:n,isMobile:r,onValueChange:o,unfilteredQuery:i,onClose:a})=>{const{t:s}=ne(),l=rn(n()),d=ee(()=>{switch(l.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const v=l.data[t.key]??[];return Object.fromEntries(v.map(g=>[g.value,g.jobs]))}default:bt(l)}},[l,t.key]),f=Xs(e),c=f.length>0,[p,h]=P();return l.queryState==="error"?u(je,{error:new Error(s("filters_loading_error"),{cause:l.error}),resetError:()=>l.swr.mutate()}):u("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[t.searchable&&u("div",{class:"border-b-px border-neutral-4",children:u("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:p,onInput:v=>h(v.currentTarget.value),placeholder:s("type_to_search")})}),(()=>{switch(i.queryState){case"error":return u(je,{error:new Error(s("filters_loading_error"),{cause:i.error}),class:"flex-1",resetError:()=>i.swr.mutate()});case"idle":case"loading":return u("div",{class:"flex px-4",children:u("div",{"aria-hidden":!0,class:lt({size:"lg",variant:"neutralStrong",interactive:!0,class:"animate-skeleton flex-1 cursor-default opacity-20 active:-scale-100"}),children:u("span",{class:"inline-block w-[10ch]"})})});case"revalidating":case"loaded":{const v=i.data[t.key]??[],g=p&&p.length>1?v.filter(_=>_.label.toLowerCase().includes(p.toLowerCase())):v,y=[];for(const _ of g){if(_.label.length<1)continue;const w={..._,results:lp(d,_),disabled:cp(d,_)};switch(t.results){case"only-available":w.disabled===!1&&y.push(w);break;default:y.push(w)}}return y.find(_=>!_.disabled)?u("ul",{class:Ys(),children:sp(y,t.sortSuggestions).map(_=>{const w=f.includes(_.value);return u("li",{class:Zs({type:"line"}),children:u("button",{type:"button",disabled:_.disabled,"data-filter":!0,"data-current-value":w?"true":void 0,onClick:()=>{switch(e.select){case"many":{const b=ap(f,_.value);o({select:"many",value:b});break}case"one":o({select:"one",value:w?void 0:_.value});break;default:bt(e)}},class:Js({active:w,disabled:_.disabled}),children:[u("span",{class:"max-w-full truncate",children:_.label})," ",u(ip,{colorScheme:w?"accentStrong":"neutralStrong",children:_.results})]})},_.value)})}):u("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:s("no_filter_options_available")})}default:bt(i)}})(),u("footer",{class:"flex flex-none justify-end p-2",children:[u("div",{class:"flex-1",children:c&&u("button",{type:"button",class:Fe({variant:"neutral",icon:"left"}),onClick:()=>{o(void 0)},children:[u(J,{"aria-hidden":!0,name:"x"})," ",s("clear")]})}),e.select==="many"&&r&&u("div",{class:"flex items-center overflow-hidden",children:u("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:[f.length," ",s("selected")]})}),u("div",{class:"flex-1",children:u("button",{type:"button",class:Fe({variant:c?"accent":"neutral",class:"ml-auto"}),onClick:a,children:s(c?"done":"close")},c?"done":"close")})]})]})},Li=8,Mi={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"},Fi=fe({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"}}}),ji=fe({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"}}}),Xs=e=>typeof e.value=="string"?[e.value]:e.value??[],dp=({selectedValues:e})=>{const t=e.length;return t===0?null:u("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)},fp=({active:e,value:t,onActiveChange:n,property:r,onValueChange:o,unfilteredQuery:i,useQuery:a,theme:s,widgetId:l})=>{const d=pc(r.key,Mi)?Mi[r.key]:void 0,f=r.icon??d??"filter",c=Xs(t),p=c.length>0,h=ka("(pointer: coarse)"),v=u(L,{children:[u("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[u(J,{"aria-hidden":!0,class:"flex-none",name:f}),u("span",{class:"truncate",children:r.label})]}),u(J,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),u(dp,{selectedValues:c})]}),g=u(up,{useQuery:a,onClose:()=>n(!1),onValueChange:o,unfilteredQuery:i,property:r,value:t,isMobile:h});return h?u(Td,{open:e,onOpenChange:n,children:[u(kd,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:Fi({state:e||p?"active":"default"}),onTouchStart:pp,children:v}),u(Pd,{children:u("div",{class:"inploi-job-search","data-widget-id":l,children:[u(Rd,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),u(Dd,{class:ji({mode:"mobile",class:jr(s)}),children:[u("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:[u(J,{name:f,class:"flex-none"}),u("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:r.label})]}),g]})]})})]}):u(ep,{open:e,onOpenChange:y=>n(y),modal:h,children:[u(tp,{"data-filter-key":r.key,"aria-label":r.label,"aria-selected":e?"true":void 0,class:Fi({state:e||p?"active":"default"}),children:v}),u(np,{children:u("div",{class:"inploi-job-search","data-widget-id":l,children:u(rp,{side:"bottom",sideOffset:Li,align:"center",collisionPadding:Li,class:ji({mode:"desktop",class:jr(s)}),children:g})})})]})};function pp(){}const hp=(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}},gp=({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:bt(e)}},vp=({properties:e,state:t,onFilterValueChange:n,onResetFilters:r,apiClient:o,logger:i,theme:a,alerts:s,widgetId:l})=>{const{t:d}=ne(),[f,c]=P(void 0),p=ee(()=>({filters:Fn(e,"value"),mode:t.mode,query:"",geo:void 0,page:1,view:"list"}),[e,t.mode]),h=rn(Yt(Kr({state:p,baseKey:"filters"}),()=>Uo({apiClient:o,logger:i,state:p}),Pn)),v=j(g=>()=>{const y={...t,filters:{...t.filters,[g]:p.filters[g]}};return Yt(Kr({state:y,baseKey:"filters"}),()=>Uo({apiClient:o,logger:i,state:y}),Pn)},[o,p.filters,i,t]);return h.queryState==="error"?u(je,{error:new Error(d("filters_loading_error"),{cause:h.error}),resetError:()=>h.swr.mutate()}):u("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(g=>g.hidden!==!0).map(g=>{const y=f===g.key,m=t.filters[g.key]??{select:g.select,value:void 0},_=p.filters[g.key];_&&hp(m,_);const w=$=>{const{newActiveKey:C,newValue:E}=gp({property:g,activeKey:f,value:$??_,properties:e,appliedFilters:t.filters});return c(C),n(g.key,E)},b=$=>c($?g.key:void 0),x=v(g.key);return u(qt,{Fallback:je,children:u(fp,{unfilteredQuery:h,active:y,property:g,onActiveChange:b,value:m,useQuery:x,onValueChange:w,theme:a,widgetId:l})},g.key)}),u("button",{type:"button",class:Fe({variant:"neutral"}),onClick:r,children:d("reset")}),s?u("div",{id:"inploi-job-alerts",class:"min-h-[36px]"}):null]})};function mp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gn=mp,_p=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,yp=_p,bp=yp,wp=typeof self=="object"&&self&&self.Object===Object&&self,xp=bp||wp||Function("return this")(),Yn=xp,$p=Yn,Ep=function(){return $p.Date.now()},Cp=Ep,Sp=/\s/;function Op(e){for(var t=e.length;t--&&Sp.test(e.charAt(t)););return t}var Ap=Op,Tp=Ap,kp=/^\s+/;function Pp(e){return e&&e.slice(0,Tp(e)+1).replace(kp,"")}var Rp=Pp,Dp=Yn,Np=Dp.Symbol,Ao=Np,Vi=Ao,Qs=Object.prototype,Ip=Qs.hasOwnProperty,Lp=Qs.toString,Ut=Vi?Vi.toStringTag:void 0;function Mp(e){var t=Ip.call(e,Ut),n=e[Ut];try{e[Ut]=void 0;var r=!0}catch{}var o=Lp.call(e);return r&&(t?e[Ut]=n:delete e[Ut]),o}var Fp=Mp,jp=Object.prototype,Vp=jp.toString;function Hp(e){return Vp.call(e)}var Up=Hp,Hi=Ao,Wp=Fp,zp=Up,Bp="[object Null]",qp="[object Undefined]",Ui=Hi?Hi.toStringTag:void 0;function Kp(e){return e==null?e===void 0?qp:Bp:Ui&&Ui in Object(e)?Wp(e):zp(e)}var ec=Kp;function Gp(e){return e!=null&&typeof e=="object"}var Yp=Gp,Zp=ec,Jp=Yp,Xp="[object Symbol]";function Qp(e){return typeof e=="symbol"||Jp(e)&&Zp(e)==Xp}var Zn=Qp,eh=Rp,Wi=Gn,th=Zn,zi=0/0,nh=/^[-+]0x[0-9a-f]+$/i,rh=/^0b[01]+$/i,oh=/^0o[0-7]+$/i,ih=parseInt;function ah(e){if(typeof e=="number")return e;if(th(e))return zi;if(Wi(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wi(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eh(e);var n=rh.test(e);return n||oh.test(e)?ih(e.slice(2),n?2:8):nh.test(e)?zi:+e}var sh=ah,ch=Gn,Ar=Cp,Bi=sh,lh="Expected a function",uh=Math.max,dh=Math.min;function fh(e,t,n){var r,o,i,a,s,l,d=0,f=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(lh);t=Bi(t)||0,ch(n)&&(f=!!n.leading,c="maxWait"in n,i=c?uh(Bi(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function h($){var C=r,E=o;return r=o=void 0,d=$,a=e.apply(E,C),a}function v($){return d=$,s=setTimeout(m,t),f?h($):a}function g($){var C=$-l,E=$-d,S=t-C;return c?dh(S,i-E):S}function y($){var C=$-l,E=$-d;return l===void 0||C>=t||C<0||c&&E>=i}function m(){var $=Ar();if(y($))return _($);s=setTimeout(m,g($))}function _($){return s=void 0,p&&r?h($):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),d=0,r=l=o=s=void 0}function b(){return s===void 0?a:_(Ar())}function x(){var $=Ar(),C=y($);if(r=arguments,o=this,l=$,C){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),a}return x.cancel=w,x.flush=b,x}var ph=fh;const hh=vo(ph),to="|",tc=(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(to)?r.defaultValue=o.split(to):o.includes(",")?r.defaultValue=o.split(","):r.defaultValue=o}}}),n},nc=e=>{const t=e.get("mode");return t==="vector"||t==="query"?t:"query"},rc=e=>{const t=e.get("view");return t==="list"||t==="map"?t:"list"},gh=({searchParams:e})=>({properties:t})=>({filters:Fn(tc(t,e),"defaultValue"),mode:nc(e),page:On(e.get("page"))??1,view:rc(e),query:e.get("query")??""}),vh=(e,t)=>{var n,r;if(e.filters!==void 0){const o=Hn({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(to)):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"))},On=e=>{if(!e)return;const t=Number(e);if(!Number.isNaN(t))return t},mh=e=>{const t=e.get("lat"),n=e.get("lng"),r=e.get("radius");if(!t&&!n||!t||!n)return;const o=On(t),i=On(n),a=On(r)??Mn(no);if(!(o===void 0||i===void 0))return{type:"provided",coords:{lat:o,lng:i},radius:Number.isNaN(a)?Mn(no):a}},oc=(e,t=1e3)=>{const[n,r]=P(e),o=ee(()=>hh(i=>r(i),t),[t]);return I(()=>{o(e)},[e,o]),n},_h=q(({disabled:e,error:t,name:n,inputPlaceholder:r,items:o,onItemSelect:i,onQueryChange:a,onBlur:s,onFocus:l,inputProps:d,menuProps:f,query:c},p)=>{const[h,v]=P(!1),[g,y]=P(),{t:m}=ne(),_=D();I(()=>{var b;y((b=o[0])==null?void 0:b.id)},[o]);const w=b=>{i(b),v(!1)};return u("div",{class:"relative h-full",children:[u("input",{name:n,ref:p,disabled:e,"data-active":h?"true":void 0,"aria-controls":`ijs-${n}-menu`,placeholder:r,class:cn({size:"md"}),onFocus:()=>{l==null||l(),v(!0)},onBlur:()=>{_.current=window.setTimeout(()=>{s==null||s(),v(!1)},100)},value:c,onChange:b=>a(b.currentTarget.value),onKeyDown:b=>{switch(v(!0),b.key){case"ArrowDown":case"ArrowUp":{const x=b.key==="ArrowDown"?1:-1;b.preventDefault();const $=o.findIndex(E=>E.id===g);if($===-1)return;const C=o[$+x]??o[b.key==="ArrowDown"?0:o.length-1];if(!C)return;y(C.id);break}case"Enter":{if(b.preventDefault(),!g)return;i(g)}}},...d}),!t&&h&&!e&&o.length>0?u("ul",{className:Ys({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:()=>{_.current&&clearTimeout(_.current)},...f,children:t?u("div",{role:"alert",children:m("geo_suggestions_error")}):o.map(b=>u("li",{class:Zs({type:"line",className:"group/tag"}),children:u("button",{type:"button",onMouseEnter:()=>y(b.id),class:Js({active:b.id===g,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>w(b.id),onKeyDown:x=>{x.key==="Enter"&&w(b.id)},children:b.label})},b.id))}):null]})}),yh=(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})}),bh={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},qi=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,wh=({onLocate:e,onError:t,signal:n})=>{const[r,o]=P("idle"),[i,a]=P(null),{t:s}=ne(),l=d=>{o("idle"),a(d),e(d)};return u("button",{"aria-label":s(r==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(qi){if(o("loading"),i)return l(i);yh({signal:n}).then(d=>{const f={lat:d.latitude,lng:d.longitude};l(f)}).catch(d=>{if(d instanceof DOMException&&d.name==="AbortError")return o("idle");o("error");const f=bh[d.code];if(!f)return;const c=s(f);t(c)})}},"data-state":r,class:Fe({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!qi||r==="error",children:u(J,{name:"target-location"})})},xh="https://api.mapbox.com/search/geocode/v6/forward",$h="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Eh=e=>atob(e).split("").reverse().join(""),Ch=ue({features:Vn(Ie(ue({properties:ue({mapbox_id:V(),place_formatted:Re(V()),name_preferred:Re(V(),"Untitled location"),coordinates:Ie(ue({latitude:$e(),longitude:$e()}),({latitude:e,longitude:t})=>({lat:e,lng:t}))})}),e=>e.properties))}),Sh=(e,t)=>Array.from(new Map(e.map(n=>[typeof t=="function"?t(n):n[t],n])).values()),Oh=async e=>{if(!e)return[];const t=new URL(xh);t.searchParams.set("q",e),t.searchParams.set("proximity","ip"),t.searchParams.set("access_token",Eh($h));const n=await fetch(t);if(!n.ok)throw new Error("Failed to get address details");const r=co(Ch,await n.json());if(r.success===!1)throw console.error(r.issues),new Error("Invalid data");const{features:o}=r.output;return Sh(o,i=>i.name_preferred+i.place_formatted)},Ah=({onSelect:e,onValueChange:t,coords:n,radius:r,onError:o})=>{const{t:i}=ne(),[a,s]=P(""),[l,d]=P(),f=oc(a,500),[c,p]=P(new AbortController),h=Yt(f,Oh,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:v,queryState:g,error:y}=rn(h),[m,_]=P("view"),w=D(null);return I(()=>{if(m==="edit"){if(!w.current)return;w.current.focus()}},[m]),u("div",{class:"relative flex-1",children:[m==="view"&&n?u("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:()=>{_("edit")},children:u("div",{class:lt({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:l??i("location_provided")})}):u(_h,{ref:w,error:y,query:a,name:"location-search",onQueryChange:s,onFocus:()=>{c.abort(),p(new AbortController)},onBlur:()=>{_("view"),s("")},onItemSelect:b=>{if(g!=="loaded")return;const x=v.find($=>$.mapbox_id===b);x&&(e(x.coordinates),_("view"),d(x.name_preferred))},inputPlaceholder:i("geo_search_placeholder"),items:(v==null?void 0:v.map(b=>({id:b.mapbox_id,label:u("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[u("strong",{class:"truncate",children:b.name_preferred})," ",u("span",{class:"flex-1 truncate opacity-50",children:b.place_formatted})]})})))??[]}),u("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!a&&!n?u(wh,{onLocate:b=>{_("view"),d(i("geo_my_location")),t({type:"provided",coords:b,radius:r})},onError:o,signal:c.signal}):u("button",{type:"button","aria-label":i("geo_clear_search"),onClick:()=>{s(""),d(void 0),t({radius:r,type:"provided"}),_("edit"),w.current&&(w.current.value="",w.current.focus())},class:Fe({variant:"neutral",size:"lg",icon:"only"}),children:u(J,{name:"x"})})})]})},Th=[.25,.5,1,3,5,10,15,20,30,40],no=20,Mn=e=>e*1609.34,kh=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),Ph=Ie(ue({type:Pe("provided"),lat:Re(Ie(V(),e=>Number(e))),lng:Re(Ie(V(),e=>Number(e))),radius:Ie(V(),e=>Number(e))}),e=>({radius:e.radius,type:e.type,coords:e.lat&&e.lng?{lat:e.lat,lng:e.lng}:void 0})),Rh=({value:e,onValueChange:t,logger:n})=>{const{t:r}=ne(),o=uo(),i=(e==null?void 0:e.type)==="provided"?e.radius:Mn(no),[a,s]=P();return u("div",{class:"flex flex-col gap-2",children:[u("form",{onChange:l=>{const d=new FormData(l.currentTarget),f=co(Ph,Object.fromEntries(d.entries()));if(!f.success){n.error(f.issues),s(f.issues[0].message);return}t(f.output)},class:"flex flex-col gap-2 md:flex-row",children:[u("input",{type:"hidden",name:"type",value:"provided"}),(e==null?void 0:e.type)==="provided"&&e.coords?u(L,{children:[u("input",{type:"hidden",name:"lat",value:e.coords.lat}),u("input",{type:"hidden",name:"lng",value:e.coords.lng})]}):null,u(Ah,{coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:i,onValueChange:t,onSelect:l=>{s(void 0),t({type:"provided",radius:i,coords:l})},onError:s}),u("div",{class:"relative",children:[u("label",{class:"sr-only",for:o,children:r("geo_range_label")}),u("select",{id:o,name:"radius",class:cn({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:i,onChange:l=>{s(void 0),t({type:"provided",coords:(e==null?void 0:e.type)==="provided"?e.coords:void 0,radius:Number(l.currentTarget.value)})},children:Th.map(l=>u("option",{value:Mn(l),class:"truncate",children:kh.format(l)},l))}),u("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:u(J,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),a?u("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[u(J,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),a]}):null]})},Dh=2,Nh=({value:e,onValueChange:t})=>{const[n,r]=P(e??""),o=n!==""&&n===e,{t:i}=ne();return I(()=>{let a=n.trim();if(a.length<=Dh&&(a=null),a===null){t("");return}const s=setTimeout(()=>{t(a)},300);return()=>clearTimeout(s)},[n,t]),u("div",{class:"flex flex-col gap-3",children:u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(J,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:St({"text-copy-neutral-icon":!o,"text-copy-accent-icon":o})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("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)}}),u("button",{type:"button",class:Fe({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{r("")},children:u(J,{name:"x"})})]})})},Ih=({intervalMs:e,strings:t,class:n})=>{const[r,o]=P(0),[i,a]=P(!0),s=[...t,t[0]];return I(()=>{r===s.length&&(a(!1),o(0));const l=setTimeout(()=>{a(!0),o(d=>d+1)},e);return()=>clearTimeout(l)},[r,s.length,e]),u("div",{className:St("relative h-full w-full overflow-hidden",n),children:u("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((l,d)=>u("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:l},d))})})},Lh=(e,t)=>{I(()=>{const n=r=>{document.activeElement===e.current&&t(r)};return document.addEventListener("selectionchange",n),()=>document.removeEventListener("selectionchange",n)},[e,t])},Ki=3,Mh=({value:e,onValueChange:t,options:n})=>{const[r,o]=P(e??""),i=r.trim(),a=i!==""&&i===e,{t:s}=ne(),l=i.split(""),[d,f]=P(0),c=D(null);return Lh(c,p=>{p.target instanceof HTMLInputElement&&f(p.target.scrollLeft)}),I(()=>{let p=r.trim();if(p.length<=Ki&&(p=null),p===null){t("");return}const h=setTimeout(()=>{t(p.trim())},1e3);return()=>clearTimeout(h)},[r,t]),u("div",{class:"mb-2 flex flex-col gap-2",children:[u("div",{class:"relative",children:[u("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[u(J,{"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})}),u("span",{class:"sr-only",children:"Keyword"})]}),u("input",{ref:c,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:p=>{const h=p.currentTarget.value.trim();o(h)},onKeyDown:p=>{if(p.key==="Enter"){if(p.currentTarget.value.trim().length<=Ki)return;p.preventDefault(),t(r)}}}),u("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?u("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-d}px)`},children:l.map((p,h)=>u("span",{style:{animationDelay:`${h*300/l.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:p===" "?" ":p},i+h))}):n!=null&&n.suggestions?u(Ih,{intervalMs:2e3,strings:n.suggestions,class:"opacity-30","aria-hidden":!0}):null}),u("button",{type:"button",class:Fe({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:u(J,{name:"x"})})]}),u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})};var Fh=Array.isArray,To=Fh,jh=To,Vh=Zn,Hh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uh=/^\w*$/;function Wh(e,t){if(jh(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Vh(e)?!0:Uh.test(e)||!Hh.test(e)||t!=null&&e in Object(t)}var zh=Wh,Bh=ec,qh=Gn,Kh="[object AsyncFunction]",Gh="[object Function]",Yh="[object GeneratorFunction]",Zh="[object Proxy]";function Jh(e){if(!qh(e))return!1;var t=Bh(e);return t==Gh||t==Yh||t==Kh||t==Zh}var Xh=Jh,Qh=Yn,eg=Qh["__core-js_shared__"],tg=eg,Tr=tg,Gi=function(){var e=/[^.]+$/.exec(Tr&&Tr.keys&&Tr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ng(e){return!!Gi&&Gi in e}var rg=ng,og=Function.prototype,ig=og.toString;function ag(e){if(e!=null){try{return ig.call(e)}catch{}try{return e+""}catch{}}return""}var sg=ag,cg=Xh,lg=rg,ug=Gn,dg=sg,fg=/[\\^$.*+?()[\]{}|]/g,pg=/^\[object .+?Constructor\]$/,hg=Function.prototype,gg=Object.prototype,vg=hg.toString,mg=gg.hasOwnProperty,_g=RegExp("^"+vg.call(mg).replace(fg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yg(e){if(!ug(e)||lg(e))return!1;var t=cg(e)?_g:pg;return t.test(dg(e))}var bg=yg;function wg(e,t){return e==null?void 0:e[t]}var xg=wg,$g=bg,Eg=xg;function Cg(e,t){var n=Eg(e,t);return $g(n)?n:void 0}var ic=Cg,Sg=ic,Og=Sg(Object,"create"),Jn=Og,Yi=Jn;function Ag(){this.__data__=Yi?Yi(null):{},this.size=0}var Tg=Ag;function kg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pg=kg,Rg=Jn,Dg="__lodash_hash_undefined__",Ng=Object.prototype,Ig=Ng.hasOwnProperty;function Lg(e){var t=this.__data__;if(Rg){var n=t[e];return n===Dg?void 0:n}return Ig.call(t,e)?t[e]:void 0}var Mg=Lg,Fg=Jn,jg=Object.prototype,Vg=jg.hasOwnProperty;function Hg(e){var t=this.__data__;return Fg?t[e]!==void 0:Vg.call(t,e)}var Ug=Hg,Wg=Jn,zg="__lodash_hash_undefined__";function Bg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Wg&&t===void 0?zg:t,this}var qg=Bg,Kg=Tg,Gg=Pg,Yg=Mg,Zg=Ug,Jg=qg;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=Kg;Lt.prototype.delete=Gg;Lt.prototype.get=Yg;Lt.prototype.has=Zg;Lt.prototype.set=Jg;var Xg=Lt;function Qg(){this.__data__=[],this.size=0}var ev=Qg;function tv(e,t){return e===t||e!==e&&t!==t}var nv=tv,rv=nv;function ov(e,t){for(var n=e.length;n--;)if(rv(e[n][0],t))return n;return-1}var Xn=ov,iv=Xn,av=Array.prototype,sv=av.splice;function cv(e){var t=this.__data__,n=iv(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():sv.call(t,n,1),--this.size,!0}var lv=cv,uv=Xn;function dv(e){var t=this.__data__,n=uv(t,e);return n<0?void 0:t[n][1]}var fv=dv,pv=Xn;function hv(e){return pv(this.__data__,e)>-1}var gv=hv,vv=Xn;function mv(e,t){var n=this.__data__,r=vv(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _v=mv,yv=ev,bv=lv,wv=fv,xv=gv,$v=_v;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=bv;Mt.prototype.get=wv;Mt.prototype.has=xv;Mt.prototype.set=$v;var Ev=Mt,Cv=ic,Sv=Yn,Ov=Cv(Sv,"Map"),Av=Ov,Zi=Xg,Tv=Ev,kv=Av;function Pv(){this.size=0,this.__data__={hash:new Zi,map:new(kv||Tv),string:new Zi}}var Rv=Pv;function Dv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Nv=Dv,Iv=Nv;function Lv(e,t){var n=e.__data__;return Iv(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Qn=Lv,Mv=Qn;function Fv(e){var t=Mv(this,e).delete(e);return this.size-=t?1:0,t}var jv=Fv,Vv=Qn;function Hv(e){return Vv(this,e).get(e)}var Uv=Hv,Wv=Qn;function zv(e){return Wv(this,e).has(e)}var Bv=zv,qv=Qn;function Kv(e,t){var n=qv(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Gv=Kv,Yv=Rv,Zv=jv,Jv=Uv,Xv=Bv,Qv=Gv;function Ft(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])}}Ft.prototype.clear=Yv;Ft.prototype.delete=Zv;Ft.prototype.get=Jv;Ft.prototype.has=Xv;Ft.prototype.set=Qv;var em=Ft,ac=em,tm="Expected a function";function ko(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tm);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(ko.Cache||ac),n}ko.Cache=ac;var nm=ko,rm=nm,om=500;function im(e){var t=rm(e,function(r){return n.size===om&&n.clear(),r}),n=t.cache;return t}var am=im,sm=am,cm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lm=/\\(\\)?/g,um=sm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cm,function(n,r,o,i){t.push(o?i.replace(lm,"$1"):r||n)}),t}),dm=um;function fm(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 pm=fm,Ji=Ao,hm=pm,gm=To,vm=Zn,mm=1/0,Xi=Ji?Ji.prototype:void 0,Qi=Xi?Xi.toString:void 0;function sc(e){if(typeof e=="string")return e;if(gm(e))return hm(e,sc)+"";if(vm(e))return Qi?Qi.call(e):"";var t=e+"";return t=="0"&&1/e==-mm?"-0":t}var _m=sc,ym=_m;function bm(e){return e==null?"":ym(e)}var wm=bm,xm=To,$m=zh,Em=dm,Cm=wm;function Sm(e,t){return xm(e)?e:$m(e,t)?[e]:Em(Cm(e))}var Om=Sm,Am=Zn,Tm=1/0;function km(e){if(typeof e=="string"||Am(e))return e;var t=e+"";return t=="0"&&1/e==-Tm?"-0":t}var Pm=km,Rm=Om,Dm=Pm;function Nm(e,t){t=Rm(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Dm(t[n++])];return n&&n==r?e:void 0}var Im=Nm,Lm=Im;function Mm(e,t,n){var r=e==null?void 0:Lm(e,t);return r===void 0?n:r}var Fm=Mm;const jm=vo(Fm),Bt=({chars:e})=>u("span",{style:{width:e+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),cc=fe({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}}),Vm=fe({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"}}),kr=({job:e,property:t})=>{if(!t)return null;const n=jm(e.raw,t.key);return t.transform?t.transform(n):n},Hm=({job:e,config:t="hidden"})=>t==="hidden"?null:u("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:t.replace(":","/")},children:e.company.logo?u("img",{src:e.company.logo,alt:e.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),ea=e=>Array.isArray(e)?e:[e],Um=1e3*60*60*24,lc=({job:e,config:t,onJobClick:n,size:r})=>{var h,v,g;const{t:o}=ne(),i=t.subheading?kr({job:e,property:t.subheading}):null,a=t.infoTags.flatMap(y=>ea(kr({job:e,property:y}))).filter(Boolean),s=ea((h=t.overrides)!=null&&h.salary?kr({job:e,property:t.overrides.salary}):e.pay).filter(Boolean),l=t.postedDate??"show",d=(v=t.overrides)!=null&&v.baseUrl?t.overrides.baseUrl(e.id.toString()):e.href,f=t.newUnderDays??7,c=e.createdAt?new Date(e.createdAt).getTime()>Date.now()-f*Um:!1,p=y=>{var m,_;n==null||n(e),(_=(m=t.overrides)==null?void 0:m.onClick)==null||_.call(m,y)};return u("a",{onMouseEnter:(g=t.overrides)==null?void 0:g.onMouseEnter,onClick:p,href:d,target:t.openJob==="redirect-new-tab"?"_blank":void 0,class:cc(),children:[u("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[u("div",{class:"gap-logo flex items-center",children:[u(Hm,{job:e,config:r!=="sm"?t.logo:void 0}),u("div",{class:"flex flex-col items-start gap-1",children:[u("div",{class:"order-2 flex flex-col gap-1",children:[e.match?u("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[u(J,{name:"ai",class:"size-4 inline-block"}),u("span",{children:e.match})]}):null,u("p",{class:Vm({size:r}),children:[e.title.trim(),c&&l!=="hide"&&u(L,{children:[" ",u("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?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:i}):null]}),l==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[o("posted")," ",e.relativePostedDate]}):null]})]}),u("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[u("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:s.map((y,m)=>u("span",{class:lt({variant:"monetaryWeak",size:"xs"}),children:y},m))}),a.length>0&&u("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:a.map(y=>u("li",{class:lt({size:"xs",class:"max-w-full truncate"}),children:y},y))})]})]}),r==="sm"?u("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:u(J,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):u("div",{"aria-hidden":!0,class:"flex items-center",children:u(J,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Po=({config:e,animationDelay:t,seed:n})=>{const r=e.logo??"hidden",o=e.postedDate??"show";return u("div",{"aria-hidden":!0,style:{animationDelay:t+"s"},class:cc({interactive:!1}),children:[u("div",{class:"flex flex-1 flex-col gap-4",children:[u("div",{class:"flex items-center gap-4",children:[r==="hidden"?null:u("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:r.replace(":","/")}}),u("div",{class:"flex flex-col items-start gap-1",children:[o==="show"?u("p",{class:"text-style-job-card-info text-copy-job-info",children:u(Bt,{chars:12})}):null,u("div",{class:"flex flex-col gap-1",children:[u("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:u(Bt,{chars:13+(n+5)*n%7})}),e.subheading!==null?u("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:u(Bt,{chars:7+n*n%3})}):null]})]})]}),u("div",{class:"flex flex-col items-start gap-2",children:[n%2===0&&u("span",{class:lt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),u("div",{class:"flex items-center gap-2",children:[u("span",{class:lt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),u("span",{class:lt({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),u("div",{"aria-hidden":!0,class:"flex items-center",children:u(J,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Wm=({state:e,fetchNextPage:t,config:n,remainingItems:r})=>{const{t:o}=ne(),i=Math.min(ct,r);return e==="revalidating"?u("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:ct}).map((a,s)=>u("li",{children:u(Po,{seed:s,animationDelay:(s-4)*.1,config:n})},s))}):u("button",{type:"button",class:Fe({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})]})},zm=({state:e,apiClient:t,logger:n,jobCardConfig:r,initialData:o,onResultsUpdate:i,onJobClick:a,onPaginate:s,mode:l,afterResults:d})=>u(L,{children:Array.from({length:e.page}).map((f,c)=>{const p=c===e.page-1;return u(qt,{Fallback:je,children:u(Bm,{state:e,apiClient:t,logger:n,page:c+1,isFirst:c===0,isLast:p,fetchNextPage:()=>{s(e.page+1)},jobCardConfig:r,initialData:o,onResultsUpdate:i,onJobClick:a,mode:l,afterResults:d},c)},c)})}),ta=({page:e})=>{const{t}=ne();return u("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:[u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),u("span",{class:"text-style-tag justify-center text-center",children:[t("page")," ",e]}),u("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},Bm=({state:e,apiClient:t,logger:n,page:r,isFirst:o,isLast:i,fetchNextPage:a,jobCardConfig:s,initialData:l,onResultsUpdate:d,onJobClick:f,afterResults:c})=>{const{t:p}=ne(),h=r===1?l:void 0,{data:v,error:g,queryState:y,swr:m}=rn(Yt(Kr({state:e,baseKey:r.toString()}),()=>Ea({apiClient:t,logger:n,state:e,page:r,t:p}),{...Pn,fallbackData:h}));switch(I(()=>{v&&o&&d&&d({totalCount:v.pagination.total})},[v,o,d]),y){case"idle":return null;case"loading":return u(L,{children:[o?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:u(Bt,{chars:8})}),u("div",{class:"flex flex-1 justify-end",children:c})]}):u(ta,{page:r}),u("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:ct}).map((_,w)=>u("li",{children:u(Po,{seed:w,animationDelay:(w-ct)*.1,config:s})},w))})]});case"error":return u(je,{error:new Error(p("jobs_loading_error"),{cause:g}),resetError:()=>m.mutate()});case"revalidating":case"loaded":{if(oa(v.pagination.current_page===r,"Received wrong page from server"),v.pagination.total===0)return u("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[u(J,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:p("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:p("no_jobs_found_description")})]})]});const _=v.pagination.last_page!==v.pagination.current_page,w=r*ct,b=Math.max(v.pagination.total-w,0),x=$=>{f($,r)};return u(L,{children:[o?u("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:p("jobs_found",{count:v.pagination.total})}),u("div",{class:"flex flex-1 justify-end",children:c})]}):u(ta,{page:r}),u("ul",{"aria-label":`Page ${r}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:v.results.map($=>u("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:y==="revalidating"?.33:1},children:u(lc,{job:$,onJobClick:x,config:s})},$.id))}),_&&i&&u(Wm,{state:y,fetchNextPage:a,config:s,remainingItems:b})]})}default:bt(y)}},qm=po(()=>Promise.resolve().then(()=>require("./map-65730508.cjs")).then(e=>e.Map)),Km=({state:e,apiClient:t,logger:n,mapConfig:r,onGeoChange:o,afterResults:i,onJobClick:a,jobCardConfig:s})=>{var g,y;const{t:l}=ne(),[d,f]=P(new AbortController),c=ka("(max-width: 767px)"),p=j(m=>{o(m),d.abort(),f(new AbortController)},[o,d]),h=rn(Yt(["map",e],()=>Gc({apiClient:t,logger:n,state:e,t:l,signal:d.signal}),Pn));if(h.queryState==="error")return u(je,{error:new Error(l("jobs_loading_error"),{cause:h.error}),resetError:()=>h.swr.mutate()});const v=h.queryState==="loaded"||h.queryState==="revalidating";return u(L,{children:[u("div",{class:"flex items-center gap-2",children:[u("div",{class:"flex-1"}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:v?h.data.results.length!==0&&l("map_jobs_showing",{count:h.data.results.length}):u("div",{class:"animate-skeleton",children:u(Bt,{chars:8})})}),u("div",{class:"flex flex-1 justify-end",children:i})]}),u("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:[u("div",{class:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:v?u(xt,{fallback:u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:u(qm,{config:r,mapData:h,autoFit:((g=e.geo)==null?void 0:g.type)!=="bounds",onBoundsChange:p})}):u("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),u("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:[((y=h.data)==null?void 0:y.results.length)===0?u("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[u(J,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),u("div",{class:"flex flex-col items-center gap-1",children:[u("p",{class:"text-copy-neutral text-style-job-heading",children:l("no_jobs_found")}),u("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:l("no_jobs_found_description")})]})]}):null,v?h.data.results.map(m=>u("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:h.queryState==="revalidating"?.33:1},children:u(lc,{job:m,onJobClick:_=>a(_,1),config:s,size:c?"sm":void 0})},m.id)):Array.from({length:6}).map((m,_)=>u("li",{children:u(Po,{seed:_,animationDelay:(_-6)*.1,config:s})},_))]})]})]})},na=fe({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}}),Gm=({value:e,onValueChange:t})=>{const{t:n}=ne();return u("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[u("button",{type:"button","aria-pressed":e==="list",class:na({active:e==="list"}),onClick:()=>t("list"),children:[u(J,{name:"list",class:"size-5"}),u("span",{children:n("list")})]}),u("button",{type:"button","aria-pressed":e==="map",class:na({active:e==="map"}),onClick:()=>t("map"),children:[u(J,{name:"map",class:"size-5"}),u("span",{children:n("map")})]})]})},Ym=e=>{const t=e.state.view,n=e.mapConfig&&e.mapConfig.enabled?u(Gm,{value:t,onValueChange:e.onViewChange}):null;return t==="list"?u(zm,{afterResults:n,...e}):u(Km,{...e,afterResults:n})},Fn=(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:bt(r.select)}return n},{}),Pr=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)),ra=e=>(e==null?void 0:e.type)==="bounds"?void 0:e,Zm=({apiClient:e,logger:t,properties:n,analytics:r,initialData:o,onStateChange:i,params:a})=>{var C,E,S,A;const{t:s}=ne(),l=D(null),d=ee(()=>Fn(n,"defaultValue"),[n]),[f,c]=P(!0),[p,h]=P(()=>typeof a.initialState=="function"?a.initialState(a):a.initialState),[v,g]=P(0),{onJobClick:y,analyticsPaginate:m}=Jm({appRef:l,analytics:r,state:p,hasInteracted:!f,totalCount:v,defaultFilters:d}),_=j(T=>{h(k=>{if(k.page===T)return k;const R={...k,page:T};return i==null||i(R),R}),m(T)},[m,i]),w=j(T=>{h(k=>{const R={...k,view:T};return i==null||i(R),R})},[i]),b=j(T=>{h(k=>{if(!k.query&&!T||k.query===T)return k;c(!1);const R=ra(k.geo),N={...k,query:T,geo:R,page:1};return i==null||i(N),N})},[i]),x=j(T=>{c(!1),h(k=>{const R={...k,geo:T};return i==null||i(R),R})},[i]),$=j(()=>{h(T=>{const k={...T,filters:Fn(n,"defaultValue"),query:"",geo:void 0,page:1};return i==null||i(k),k})},[i,n]);return u("div",{ref:l,class:St("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(C=a.theme.accessibility)==null?void 0:C.reducedMotion},jr(a.theme)),children:[u(qt,{Fallback:je,children:u("div",{class:"flex flex-col gap-2",children:[u("div",{class:"px-4",children:u("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:[u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:s("search_label")}),(E=a.naturalLanguageSearch)!=null&&E.enabled?u(Mh,{value:p.query,onValueChange:b,options:a.naturalLanguageSearch}):a.enableKeywordSearch?u(Nh,{value:p.query,onValueChange:b}):null]}),(S=a.geolocation)!=null&&S.enabled?u("section",{class:"flex flex-1 flex-col gap-1",children:[u("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:s("geo_label")}),u(Rh,{value:p.geo,onValueChange:T=>{c(!1),h(k=>{const R={...k,geo:T,page:1};return i==null||i(R),R}),m(1)},logger:t})]}):null]})}),u(vp,{state:p,onFilterValueChange:(T,k)=>{c(!1),h(R=>{const N={...R.filters,[T]:k},K=ra(R.geo),Y={...R,filters:N,geo:K,page:1};return i==null||i(Y),Y}),m(1)},onResetFilters:$,properties:n,logger:t,apiClient:e,alerts:a.alerts,theme:a.theme,widgetId:a.widgetId})]})}),u("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[u(qt,{Fallback:je,children:u(Ym,{state:p,logger:t,apiClient:e,jobCardConfig:a.jobCard,mapConfig:a.map,initialData:f?o==null?void 0:o.jobs:void 0,onResultsUpdate:T=>{g(T.totalCount)},onJobClick:y,onPaginate:_,mode:(A=a.naturalLanguageSearch)!=null&&A.enabled?"vector":"query",onGeoChange:x,onViewChange:w})}),a.feedback?u("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[u("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("feedback")}),u("div",{"data-widget":"inploi-feedback","data-key":"job-search"})]}):null]})]})},Jm=({appRef:e,analytics:t,state:n,defaultFilters:r,totalCount:o,hasInteracted:i})=>{const a=j((d=1)=>({query:n.query,mode:n.mode,filters:Pr(n.filters),default_filters:Pr(r),total_count:o,page_size:ct,page:d}),[n.query,n.mode,n.filters,r,o]);return sl(e,{minViewTime:2e3,onView:()=>{t.log({event:"VIEW_SEARCH",properties:a()})}}),I(()=>{const d=window.setTimeout(()=>{i&&(!n.query&&!Object.keys(Pr(n.filters)).length||o!==0&&t.log({event:"SEARCH_SETTLE",properties:a()}))},5e3);return()=>{clearTimeout(d)}},[t,i,a,o,n.query,n.filters]),{onJobClick:(d,f)=>{t.log({event:"SEARCH_JOB_CLICK",properties:{job_id:d.id,...a(f)}})},analyticsPaginate:d=>{t.log({event:"SEARCH_PAGINATE",properties:a(d)})}}};exports.D=Ct;exports.E=io;exports.ErrorBoundary=qt;exports.IconSpritesheet=al;exports.JOB_SEARCH_WIDGET_ID=Vc;exports.JobSearch=Zm;exports.TranslationProvider=tl;exports.UnstyledErrorView=ol;exports._=D;exports.commonjsGlobal=Wt;exports.createTFunction=nl;exports.generateColorThemeCss=vl;exports.getDefaultExportFromCjs=vo;exports.getGeolocationFromSearchParams=mh;exports.getJobSearchResults=Ea;exports.getModeFromSearchParams=nc;exports.getStatefulPropertiesFromSearchParams=tc;exports.getViewFromSearchParams=rc;exports.getWidgetStateFromSearchParams=gh;exports.h=P;exports.invariant=oa;exports.k=L;exports.o=u;exports.p=I;exports.setWidgetStateToSearchParams=vh;exports.useDebouncedValue=oc;exports.useTranslation=ne;exports.y=O;
|