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