@inploi/plugin-job-search 8.0.0 → 8.0.2

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