@inploi/plugin-chatbot 14.18.2 → 14.19.1

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.
@@ -1,21 +0,0 @@
1
- "use strict";const bt=require("@inploi/sdk");var ue=typeof document<"u"?document.currentScript:null,Ee=new Set(["Error","TypeError","RangeError","ReferenceError","SyntaxError","URIError","EvalError","AggregateError","AbortError","TimeoutError","NetworkError","NotAllowedError","NotFoundError","NotSupportedError","InvalidStateError","QuotaExceededError","SecurityError","DataCloneError","ChunkLoadError"]),Ei=[/^Cannot (?:read|set) properties of (?:undefined|null) \((?:reading|setting) '[\w$]{1,40}'\)$/,/^[\w$.]{1,60} is (?:not a function|not iterable|not defined|not a constructor|undefined|null)$/,/^(?:undefined|null) is not an object \(evaluating '[\w$.]{1,60}'\)$/,/^can't access property "[\w$]{1,40}", [\w$.]{1,60} is (?:undefined|null)$/,/^(?:Script error\.|Assignment to constant variable\.|Maximum call stack size exceeded|Invalid array length|Invalid time value|Failed to fetch|Load failed|Importing a module script failed\.|NetworkError when attempting to fetch resource\.)$/],Ci=`IDBDatabase IDBObjectStore IDBTransaction IDBFactory IDBRequest IDBOpenDBRequest IDBIndex IDBCursor IDBKeyRange
2
- Storage StorageManager Window Document Element HTMLElement HTMLIFrameElement HTMLMediaElement HTMLFormElement
3
- HTMLInputElement Node EventTarget Navigator Clipboard ServiceWorkerContainer ServiceWorkerRegistration Response
4
- Request Headers URL URLSearchParams Blob File FileReader FormData MessagePort Worker Cache CacheStorage History
5
- Location CustomElementRegistry ReadableStream WritableStream AbortSignal Performance Crypto SubtleCrypto
6
- MediaDevices ResizeObserver IntersectionObserver MutationObserver Notification Permissions LockManager
7
- DOMTokenList ShadowRoot Selection Range TextDecoder TextEncoder WebSocket XMLHttpRequest
8
- transaction objectStore createObjectStore deleteObjectStore createIndex index put get getAll getKey delete add
9
- clear count openCursor open deleteDatabase setItem getItem removeItem key postMessage fetch json text arrayBuffer
10
- blob formData querySelector querySelectorAll appendChild removeChild insertBefore replaceChild append prepend
11
- remove contains observe unobserve disconnect play pause writeText readText write read share register
12
- getRegistration requestStorageAccess focus blur scrollTo scrollIntoView setAttribute getAttribute
13
- getBoundingClientRect attachShadow define pushState replaceState assign replace reload send close abort
14
- requestAnimationFrame matchMedia getComputedStyle createElement structuredClone localStorage sessionStorage
15
- indexedDB serviceWorker clipboard cookie`,Ti=["The operation is insecure.","The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.","The user aborted a request.","The operation was aborted.","signal is aborted without reason","Fetch is aborted","The quota has been exceeded.","The object is in an invalid state.","The string did not match the expected pattern.","The object can not be found here.","The operation is not supported.","The database connection is closing.","The transaction has finished.","The transaction is not active.","The transaction was aborted, so the request cannot be fulfilled.","One of the specified object stores was not found.","Connection to Indexed Database server lost. Refresh the page to try again","Attempt to get a record from database without an in-progress transaction","Database deleted by request of the user","An internal error was encountered in the Indexed Database server","Internal error opening backing store for indexedDB.open.","Access is denied for this document.","Access to the IndexedDB API is denied in this context.","The document is sandboxed and lacks the 'allow-same-origin' flag.","The play() request was interrupted by a call to pause().","The play() request was interrupted because the media was removed from the document.","play() failed because the user didn't interact with the document first.","The network connection was lost.","The request timed out.","The Internet connection appears to be offline.","A server with the specified hostname could not be found.","Network request failed","Illegal invocation","cancelled"],Ii=/^Failed to (?:execute|read|set|construct) (?:the )?'([\w$]{1,40})'(?: (?:on|property (?:from|on)|from) '([\w$]{1,40})')?(?:: (.*))?$/,vo,Pi=t=>{let{apis:e,sentences:o}=vo??(vo={apis:new Set(Ci.split(/\s+/)),sentences:new Set(Ti)});if(o.has(t))return t;let a=Ii.exec(t);if(!a)return"";let[,i,n,r]=a;return e.has(i)&&(n===void 0||e.has(n))&&(r===void 0||o.has(r))?t:""},Ai=/^\s*at\s|@(?:[a-z][\w+.-]*:\/\/|\[native code\])/i,ji=/\b(?:chrome|moz|safari|safari-web|ms-browser)-extension:\/\//,Oi=/\[native code\]|<anonymous>|\(native\)/,Di=t=>ji.test(t)?"extension":Oi.test(t)?"native":"script",mo=/^(Failed to fetch dynamically imported module|error loading dynamically imported module)/,Mi=/^((?:[\w-]{1,20}\/){0,3}[\w.-]{1,80}\.js)(?:\?retry=\d{1,3})?:(\d{1,7})(?::(\d{1,7}))?\)?$/,Ni=/^ResizeObserver loop (?:completed with undelivered notifications\.|limit exceeded)$/,Ri=({error:t,message:e})=>t==null&&Ni.test(e),ie=t=>t instanceof Error?Ee.has(t.name)?t.name:"Error":typeof t,zi=new Set(["DOMException","Object","Array","Promise","Event","ErrorEvent","PromiseRejectionEvent","ProgressEvent","CloseEvent","MessageEvent","Response","Request","XMLHttpRequest"]),Fi=t=>{var a,i;let e=t===null?"null":typeof t,o={message:"",stack:"",thrown:{type:e,ctor:"",keys:0,message_length:0,stack_lines:0}};if(typeof t=="string")return{...o,thrown:{...o.thrown,message_length:t.length}};if(typeof t!="object"||t===null)return o;try{let{message:n,stack:r}=t,s=(i=(a=Object.getPrototypeOf(t))==null?void 0:a.constructor)==null?void 0:i.name,l=typeof s!="string"?"":Ee.has(s)||zi.has(s)?s:"other",d=typeof n=="string"?n:"",u=typeof r=="string"?r:"";return{message:t instanceof Error||Ee.has(l)||l==="DOMException"?d:"",stack:u,thrown:{type:e,ctor:l,keys:Object.keys(t).length,message_length:d.length,stack_lines:u?u.split(`
16
- `,1e3).length:0}}}catch{return o}},Li=(t,e,o="")=>{let a=ie(t),{message:i,stack:n,thrown:r}=Fi(t),s=(t==null?o:i).slice(0,300),l=Ei.some(h=>h.test(s))?s:mo.test(s)?mo.exec(s)[1]:Pi(s),d=[],u=new Set;for(let h of n.split(`
17
- `,60)){let w=h.indexOf(e),p=w!==-1&&(w===0||" (@".includes(h[w-1])),g=p?Mi.exec(h.slice(w+e.length).trim()):null;g?d.push([g[1],g[2],g[3]].filter(Boolean).join(":")):p?u.add("build"):Ai.test(h)&&u.add(Di(h))}d.splice(10);let c={name:a,message:l,stack:d,foreign:[...u].sort(),thrown:r};for(;JSON.stringify(c).length>1400&&c.stack.length;)c.stack.pop();return c},_o="inploi-candidate-beacon-seed",Bi=()=>{try{return typeof sessionStorage>"u"?void 0:sessionStorage}catch{return}},Ui=()=>({host:"s2811583.eu-central-1a.betterstackdata.com",token:"LHJqsZXu82MrkgUP44JHAwvU",sampleRate:Math.min(1,Math.max(0,1))}),sa=t=>{let e=3735928559,o=1103547991;for(let a=0;a<t.length;a++){let i=t.charCodeAt(a);e=Math.imul(e^i,2654435761),o=Math.imul(o^i,1597334677)}return e=Math.imul(e^e>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(e^e>>>13,3266489909),4294967296*(2097151&o)+(e>>>0)},Hi=(t,e)=>{try{let o=t==null?void 0:t.getItem(_o);if(o)return o;let a=e();return t==null||t.setItem(_o,a),a}catch{return e()}},Wi=[["facebook",/\bFB(?:AN|AV|_IAB)\b/],["instagram",/\bInstagram (\d+)/],["linkedin",/\bLinkedInApp\b/],["tiktok",/\b(?:musical_ly|BytedanceWebview|TikTok)\b/],["samsung",/\bSamsungBrowser\/(\d+)/],["edge",/\bEdg(?:e|A|iOS)?\/(\d+)/],["opera",/\bOPR\/(\d+)/],["firefox",/\b(?:Firefox|FxiOS)\/(\d+)/],["chrome",/\b(?:Chrome|CriOS)\/(\d+)/],["safari",/\bVersion\/(\d+)[\d.]* (?:Mobile\/\S+ )?Safari\//]],Vi=[["ios",/\b(?:iPhone|iPad|iPod)\b/],["android",/\bAndroid\b/],["windows",/\bWindows\b/],["chromeos",/\bCrOS\b/],["mac",/\bMacintosh\b/],["linux",/\bLinux\b/]],qi=t=>{var a,i;let e=Wi.find(([,n])=>n.test(t)),o=(a=e==null?void 0:e[1].exec(t))==null?void 0:a[1];return{browser:e?[e[0],o].filter(Boolean).join(" "):"other",platform:((i=Vi.find(([,n])=>n.test(t)))==null?void 0:i[0])??"other"}},Yi=(t=typeof document>"u"?void 0:document)=>{var n,r;let e=()=>typeof performance>"u"?0:Math.round(performance.now()),o=(t==null?void 0:t.visibilityState)==="hidden"?e():null,a=null,i=!1;return t==null||t.addEventListener("visibilitychange",()=>{t.visibilityState==="hidden"?o=e():o!==null&&(a=e())}),(n=t==null?void 0:t.defaultView)==null||n.addEventListener("pagehide",()=>i=!0),(r=t==null?void 0:t.defaultView)==null||r.addEventListener("pageshow",()=>i=!1),()=>{var d;let s=typeof navigator>"u"?void 0:navigator,l=(d=s==null?void 0:s.connection)==null?void 0:d.effectiveType;return{visibility:(t==null?void 0:t.visibilityState)??"unknown",was_hidden:o!==null,hidden_at_ms:o,shown_at_ms:a,unloading:i,online:typeof(s==null?void 0:s.onLine)=="boolean"?s.onLine:null,connection:typeof l=="string"?l.slice(0,8):null,...qi((s==null?void 0:s.userAgent)??""),page_ms:e()}}},Ki=new Set(["boot_failed","fatal","submit_blocked"]),Zi=(t,e,o)=>{if(e.unloading||e.visibility==="hidden")return!0;if(t!=="boot_failed"||e.hidden_at_ms===null)return!1;if(o.elapsed_ms===void 0)return!0;let a=e.page_ms-o.elapsed_ms;return e.hidden_at_ms>=a||e.shown_at_ms!==null&&e.shown_at_ms>=a},Xi=(t,e,o,a,i)=>{var r;if(e)return"abandoned";if(i.online===!1)return"offline";let n=[a.phase,a.stage,o==null?void 0:o.slice(0,40),a.http_status??((r=a.error)==null?void 0:r.name)];return[...new Set(n.filter(s=>s!==void 0&&s!=="").map(String))].join(":")||t},Gi=({config:t,version:e,env:o,seed:a,automated:i=typeof navigator<"u"&&navigator.webdriver===!0,company:n,page:r=Yi(),now:s=Date.now,post:l=(d,u)=>fetch(d,u)})=>{let d=sa(a),u=s(),c=t!==void 0&&d%1e4<t.sampleRate*1e4,h=new Set;return{send:(w,p,g={})=>{if(!t||!c||!e)return;let $=r(),x=Ki.has(w),C=x&&Zi(w,$,g),A=C?`${w}:abandoned`:w;if(h.has(A))return;h.add(A);let{error:D,...M}=g,N={dt:new Date(s()).toISOString(),message:"Candidate widget beacon",kind:w,version:e,company_slug:(n==null?void 0:n())??null,env:o==="production"?"production":"staging",mode:i?"test":"live",seed_hash:d.toString(36),sample_rate:t.sampleRate,...p&&{reason:p.slice(0,40)},...x&&{abandoned:C,cause:Xi(w,C,p,g,$).slice(0,60)},since_start_ms:Math.max(0,Math.round(s()-u)),...$,...M,...D&&{error:D,error_message:D.message,error_frame:D.stack[0]??null}};l(`https://${t.host}`,{method:"POST",keepalive:!0,headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"},body:JSON.stringify(N)}).catch(()=>{})}}},ot;function la(t){return{lang:(t==null?void 0:t.lang)??(ot==null?void 0:ot.lang),message:t==null?void 0:t.message,abortEarly:(t==null?void 0:t.abortEarly)??(ot==null?void 0:ot.abortEarly),abortPipeEarly:(t==null?void 0:t.abortPipeEarly)??(ot==null?void 0:ot.abortPipeEarly)}}var pe;function Ji(t){return pe==null?void 0:pe.get(t)}var he;function Qi(t){return he==null?void 0:he.get(t)}var fe;function tn(t,e){var o;return(o=fe==null?void 0:fe.get(t))==null?void 0:o.get(e)}function Ze(t){var o,a;let e=typeof t;return e==="string"?`"${t}"`:e==="number"||e==="bigint"||e==="boolean"?`${t}`:e==="object"||e==="function"?(t&&((a=(o=Object.getPrototypeOf(t))==null?void 0:o.constructor)==null?void 0:a.name))??"null":e}function W(t,e,o,a,i){let n=i&&"input"in i?i.input:o.value,r=(i==null?void 0:i.expected)??t.expects??null,s=(i==null?void 0:i.received)??Ze(n),l={kind:t.kind,type:t.type,input:n,expected:r,received:s,message:`Invalid ${e}: ${r?`Expected ${r} but r`:"R"}eceived ${s}`,requirement:t.requirement,path:i==null?void 0:i.path,issues:i==null?void 0:i.issues,lang:a.lang,abortEarly:a.abortEarly,abortPipeEarly:a.abortPipeEarly},d=t.kind==="schema",u=(i==null?void 0:i.message)??t.message??tn(t.reference,l.lang)??(d?Qi(l.lang):null)??a.message??Ji(l.lang);u!==void 0&&(l.message=typeof u=="function"?u(l):u),d&&(o.typed=!1),o.issues?o.issues.push(l):o.issues=[l]}function F(t){return{version:1,vendor:"valibot",validate(e){return t["~run"]({value:e},la())}}}function en(t,e){return Object.hasOwn(t,e)&&e!=="__proto__"&&e!=="prototype"&&e!=="constructor"}function Xe(t,e){let o=[...new Set(t)];return o.length>1?`(${o.join(` ${e} `)})`:o[0]??"never"}function ca(t){return{kind:"transformation",type:"transform",reference:ca,async:!1,operation:t,"~run"(e){return e.value=this.operation(e.value),e}}}function on(t,e,o){return typeof t.fallback=="function"?t.fallback(e,o):t.fallback}function Ge(t,e,o){return typeof t.default=="function"?t.default(e,o):t.default}function da(){return{kind:"schema",type:"any",reference:da,expects:"any",async:!1,get"~standard"(){return F(this)},"~run"(t){return t.typed=!0,t}}}function ua(t,e){return{kind:"schema",type:"array",reference:ua,expects:"Array",async:!1,item:t,message:e,get"~standard"(){return F(this)},"~run"(o,a){var n;let i=o.value;if(Array.isArray(i)){o.typed=!0,o.value=[];for(let r=0;r<i.length;r++){let s=i[r],l=this.item["~run"]({value:s},a);if(l.issues){let d={type:"array",origin:"value",input:i,key:r,value:s};for(let u of l.issues)u.path?u.path.unshift(d):u.path=[d],(n=o.issues)==null||n.push(u);if(o.issues||(o.issues=l.issues),a.abortEarly){o.typed=!1;break}}l.typed||(o.typed=!1),o.value.push(l.value)}}else W(this,"type",o,a);return o}}}function Je(t){return{kind:"schema",type:"boolean",reference:Je,expects:"boolean",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return typeof e.value=="boolean"?e.typed=!0:W(this,"type",e,o),e}}}function H(t,e){return{kind:"schema",type:"literal",reference:H,expects:Ze(t),async:!1,literal:t,message:e,get"~standard"(){return F(this)},"~run"(o,a){return o.value===this.literal?o.typed=!0:W(this,"type",o,a),o}}}function pa(t){return{kind:"schema",type:"null",reference:pa,expects:"null",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return e.value===null?e.typed=!0:W(this,"type",e,o),e}}}function wt(t,e){return{kind:"schema",type:"nullable",reference:wt,expects:`(${t.expects} | null)`,async:!1,wrapped:t,default:e,get"~standard"(){return F(this)},"~run"(o,a){return o.value===null&&(this.default!==void 0&&(o.value=Ge(this,o,a)),o.value===null)?(o.typed=!0,o):this.wrapped["~run"](o,a)}}}function Zt(t){return{kind:"schema",type:"number",reference:Zt,expects:"number",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return typeof e.value=="number"&&!isNaN(e.value)?e.typed=!0:W(this,"type",e,o),e}}}function P(t,e){return{kind:"schema",type:"object",reference:P,expects:"Object",async:!1,entries:t,message:e,get"~standard"(){return F(this)},"~run"(o,a){var n;let i=o.value;if(i&&typeof i=="object"){o.typed=!0,o.value={};for(let r in this.entries){let s=this.entries[r];if(r in i||(s.type==="exact_optional"||s.type==="optional"||s.type==="nullish")&&s.default!==void 0){let l=r in i?i[r]:Ge(s),d=s["~run"]({value:l},a);if(d.issues){let u={type:"object",origin:"value",input:i,key:r,value:l};for(let c of d.issues)c.path?c.path.unshift(u):c.path=[u],(n=o.issues)==null||n.push(c);if(o.issues||(o.issues=d.issues),a.abortEarly){o.typed=!1;break}}d.typed||(o.typed=!1),o.value[r]=d.value}else if(s.fallback!==void 0)o.value[r]=on(s);else if(s.type!=="exact_optional"&&s.type!=="optional"&&s.type!=="nullish"&&(W(this,"key",o,a,{input:void 0,expected:`"${r}"`,path:[{type:"object",origin:"key",input:i,key:r,value:i[r]}]}),a.abortEarly))break}}else W(this,"type",o,a);return o}}}function B(t,e){return{kind:"schema",type:"optional",reference:B,expects:`(${t.expects} | undefined)`,async:!1,wrapped:t,default:e,get"~standard"(){return F(this)},"~run"(o,a){return o.value===void 0&&(this.default!==void 0&&(o.value=Ge(this,o,a)),o.value===void 0)?(o.typed=!0,o):this.wrapped["~run"](o,a)}}}function ha(t,e){return{kind:"schema",type:"picklist",reference:ha,expects:Xe(t.map(Ze),"|"),async:!1,options:t,message:e,get"~standard"(){return F(this)},"~run"(o,a){return this.options.includes(o.value)?o.typed=!0:W(this,"type",o,a),o}}}function Qe(t,e,o){return{kind:"schema",type:"record",reference:Qe,expects:"Object",async:!1,key:t,value:e,message:o,get"~standard"(){return F(this)},"~run"(a,i){var r,s;let n=a.value;if(n&&typeof n=="object"){a.typed=!0,a.value={};for(let l in n)if(en(n,l)){let d=n[l],u=this.key["~run"]({value:l},i);if(u.issues){let h={type:"object",origin:"key",input:n,key:l,value:d};for(let w of u.issues)w.path=[h],(r=a.issues)==null||r.push(w);if(a.issues||(a.issues=u.issues),i.abortEarly){a.typed=!1;break}}let c=this.value["~run"]({value:d},i);if(c.issues){let h={type:"object",origin:"value",input:n,key:l,value:d};for(let w of c.issues)w.path?w.path.unshift(h):w.path=[h],(s=a.issues)==null||s.push(w);if(a.issues||(a.issues=c.issues),i.abortEarly){a.typed=!1;break}}(!u.typed||!c.typed)&&(a.typed=!1),u.typed&&(a.value[u.value]=c.value)}}else W(this,"type",a,i);return a}}}function R(t){return{kind:"schema",type:"string",reference:R,expects:"string",async:!1,message:t,get"~standard"(){return F(this)},"~run"(e,o){return typeof e.value=="string"?e.typed=!0:W(this,"type",e,o),e}}}function yo(t){let e;if(t)for(let o of t)e?e.push(...o.issues):e=o.issues;return e}function to(t,e){return{kind:"schema",type:"union",reference:to,expects:Xe(t.map(o=>o.expects),"|"),async:!1,options:t,message:e,get"~standard"(){return F(this)},"~run"(o,a){let i,n,r;for(let s of this.options){let l=s["~run"]({value:o.value},a);if(l.typed)if(l.issues)n?n.push(l):n=[l];else{i=l;break}else r?r.push(l):r=[l]}if(i)return i;if(n){if(n.length===1)return n[0];W(this,"type",o,a,{issues:yo(n)}),o.typed=!0}else{if((r==null?void 0:r.length)===1)return r[0];W(this,"type",o,a,{issues:yo(r)})}return o}}}function $t(){return{kind:"schema",type:"unknown",reference:$t,expects:"unknown",async:!1,get"~standard"(){return F(this)},"~run"(t){return t.typed=!0,t}}}function fa(t,e,o){return{kind:"schema",type:"variant",reference:fa,expects:"Object",async:!1,key:t,options:e,message:o,get"~standard"(){return F(this)},"~run"(a,i){let n=a.value;if(n&&typeof n=="object"){let r,s=0,l=this.key,d=[],u=(c,h)=>{for(let w of c.options){if(w.type==="variant")u(w,new Set(h).add(w.key));else{let p=!0,g=0;for(let $ of h){let x=w.entries[$];if($ in n?x["~run"]({typed:!1,value:n[$]},{abortEarly:!0}).issues:x.type!=="exact_optional"&&x.type!=="optional"&&x.type!=="nullish"){p=!1,l!==$&&(s<g||s===g&&$ in n&&!(l in n))&&(s=g,l=$,d=[]),l===$&&d.push(w.entries[$].expects);break}g++}if(p){let $=w["~run"]({value:n},i);(!r||!r.typed&&$.typed)&&(r=$)}}if(r&&!r.issues)break}};if(u(this,new Set([this.key])),r)return r;W(this,"type",a,i,{input:n[l],expected:Xe(d,"|"),path:[{type:"object",origin:"value",input:n,key:l,value:n[l]}]})}else W(this,"type",a,i);return a}}}function an(...t){return{...t[0],pipe:t,get"~standard"(){return F(this)},"~run"(e,o){for(let a of t)if(a.kind!=="metadata"){if(e.issues&&(a.kind==="schema"||a.kind==="transformation")){e.typed=!1;break}(!e.issues||!o.abortEarly&&!o.abortPipeEarly)&&(e=a["~run"](e,o))}return e}}}function zt(t,e,o){let a=t["~run"]({value:e},la(o));return{typed:a.typed,success:!a.issues,output:a.value,issues:a.issues}}var nn=t=>({ok:!0,err:!1,val:t}),rn=t=>({err:!0,ok:!1,val:t}),eo=t=>t.filter(e=>(e.type==="question-boolean"||e.type==="question-enum")&&!!e.data.preApply);function wa(t,e,o){var r,s;let a=t.find(l=>l.type==="pre-apply-result");if(!a)return;let i=(r=e[a.data.participationKey])==null?void 0:r.value,n={};if(i===!0)for(let l of eo(t)){let d=(s=e[l.data.key])==null?void 0:s.value;Array.isArray(d)&&d.length===1&&(d=d[0]),(typeof d=="boolean"||typeof d=="string")&&(n[l.data.key]=d)}return{node_id:a.id,flow_session_id:o,participation:i,answers:n}}function sn(t,e){let o=wa(t,e,""),a=eo(t).map(n=>{let r=n.data.preApply,s=o==null?void 0:o.answers[n.data.key],l=n.type==="question-boolean"?typeof s=="boolean":n.data.options.some(d=>d.value===s);return{key:n.data.key,severity:r.severity,message:r.mismatchMessage,matched:l&&s===r.expectedValue,valid:l}}),i=(o==null?void 0:o.participation)===!1?"skipped":(o==null?void 0:o.participation)===!0&&a.length>0&&a.every(n=>n.valid)?"completed":"unavailable";return{status:i,hasHardConcerns:i==="completed"?a.some(n=>!n.matched&&n.severity==="hard"):null,hasAdvisoryConcerns:i==="completed"?a.some(n=>!n.matched&&n.severity==="advisory"):null,answers:i==="completed"?a:[]}}function ln(t,e){let o=new Set(eo(t).map(a=>a.data.key));for(let a of t)a.type==="pre-apply-result"&&(o.add(a.data.key),o.add(a.data.participationKey));return Object.fromEntries(Object.entries(e).filter(([a])=>!o.has(a)))}var cn=()=>{try{let t=Intl.DateTimeFormat().resolvedOptions().timeZone;return typeof t=="string"&&t.length>0?t:void 0}catch{return}},ht=class extends Error{constructor(){super("Aborted")}},oo=(t,e)=>{if(e.length===0)return;let o=t;for(let a of e){if(o==null||typeof o!="object")return;o=o[a]}return o},dn=(t,e="all")=>{let o={},a=e==="all"?null:new Set(e);for(let i in t){let n=t[i];n&&(a&&!a.has(i)||(o[i]=n.value))}return o},ga=(t,e)=>{let o=new Set(t.flatMap(a=>a.type==="add-submission"?[a.data.key]:[]));return Object.entries(e).some(([a,i])=>i!==void 0&&i.type!=="integration"&&!o.has(a))},un=({key:t,submissions:e})=>{var a;let o=(a=e[t])==null?void 0:a.value;if(typeof o!="string"&&typeof o!="number")throw new Error(`Submission at “${t}” is not a string or number`);return o},pn=({key:t,path:e,submissions:o,context:a})=>{if(t==="$context"){if(!e)return;let i=oo(a,e);switch(typeof i){case"string":return{type:"string",value:i};case"number":return{type:"number",value:i};case"boolean":return{type:"boolean",value:i};default:console.warn(`Unexpected type for $context.${e.join(".")}`,i);return}}return o[t]},hn=t=>{let e=t.split(".").pop();return e?nn(e?"."+e:""):rn("No file extension found")},ba=(t,e)=>{if(e.length===0)return!0;let o=e.map(a=>a.toLowerCase());return t.every(a=>{let i=hn(a.name);return i.ok&&o.includes(i.val.toLowerCase())})},Ce={".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".rtf":"application/rtf",".odt":"application/vnd.oasis.opendocument.text",".txt":"text/plain",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png"},fn=t=>[...new Set([...t,...t.map(e=>Ce[e.toLowerCase()]).filter(e=>e!==void 0)])].join(","),wn=64*1024,gn=1024,bn=[208,207,17,224,161,177,26,225],vn=[80,75,3,4],Te=(t,e)=>e.every((o,a)=>t[a]===o),xo=(t,e,o=t.length)=>{let a=Array.from(e,n=>n.charCodeAt(0)),i=Math.min(o,t.length)-a.length;for(let n=0;n<=i;n++)if(Te(t.subarray(n),a))return!0;return!1},mn=t=>{if(xo(t,"%PDF-",gn))return".pdf";if(Te(t,bn))return".doc";if(Te(t,vn)&&xo(t,"word/"))return".docx"},_n=async(t,e)=>{if(ba([t],e))return t;let o=t.name.lastIndexOf(".");if((o===-1?"":t.name.slice(o).toLowerCase())in Ce)return t;let a=mn(new Uint8Array(await t.slice(0,wn).arrayBuffer()));return!a||!e.some(i=>i.toLowerCase()===a)?t:new File([t],`${t.name}${a}`,{type:Ce[a],lastModified:t.lastModified})},yn=t=>t<=1e3?`${Math.round(t)}KB`:t<1e3*10?`${(t/1e3).toFixed(1)}MB`:`${Math.round(t/1e3)}MB`,xn=t=>typeof t=="string"?t:`+${t.countryCode} ${t.phoneNumber}`,kn=P({integration_response:P({data:P({redirect_url:R(),message:B(wt(R())),button_text:B(wt(R()))})})}),va=t=>zt(kn,t).success,$n=P({integration_response:P({status:B($t()),error:P({message:R(),data:B($t())})})}),ma=t=>zt($n,t).success,Sn=P({success:H(!0),integration_response:P({data:P({outcome:H("pending"),message:B($t())}),error:B(pa())})}),_a=t=>{let e=zt(Sn,t);if(!e.success||va(t))return;let{message:o}=e.output.integration_response.data;return typeof o=="string"&&o.trim()?{message:o}:{}};P({success:H(!1),message:B($t())});var En=P({error:H("Validation failed"),messages:P({})}),Cn=(t,e)=>e===422&&zt(En,t).success,Tn=(t,e)=>{if(!ma(t))return;let o=t.integration_response,a=o.error.data,i=typeof a=="object"&&a!==null?a:{},n=p=>typeof i[p]=="string"?i[p]:void 0,r=p=>typeof i[p]=="boolean"?i[p]:void 0,s=p=>{let g=i[p];return Number.isSafeInteger(g)&&g>=0?g:void 0},l=p=>{let g=n(p),$=g===void 0?NaN:Date.parse(g);return Number.isFinite($)?$:void 0},d=typeof o.status=="number"?o.status:e,u=n("phase"),c=n("verdict"),h=n("code"),w=d===409&&u==="submit"&&c==="confirmed"?"duplicate":d===410&&h==="job_closed"?"closed":u==="submit"&&c==="unknown"?"unknown":void 0;return{message:o.error.message,status:d,phase:u,providerStatus:s("provider_status"),retryAfterSeconds:s("retry_after_seconds"),retryable:r("retryable"),verdict:c,code:h,reason:n("reason"),maintenanceUntil:l("maintenance_until"),field:n("field"),outcome:w}},In=fa("reason",[P({outcome:H("sent"),reason:H("sandbox"),ats_label:wt(R())}),P({outcome:H("held"),reason:ha(["production_connection","no_sandbox_known","company_hold"]),ats_label:wt(R())}),P({outcome:H("internal"),reason:H("internal"),ats_label:wt(R())}),P({outcome:H("held"),reason:H("redirect"),ats_label:R()})]),Pn=t=>{let e=zt(P({staging_destination:In}),t);if(!e.success)return;let o=e.output.staging_destination;switch(o.reason){case"sandbox":return`Staging: sent to ${o.ats_label===null?"the ATS":o.ats_label} sandbox`;case"production_connection":return"Staging: held, production connection";case"no_sandbox_known":return"Staging: held, no sandbox known";case"company_hold":return"Staging: held, company set to hold all";case"internal":return"Staging: saved in inploi (no ATS)";case"redirect":return`Staging: held, redirect to ${o.ats_label}`}},ya=3e4,An=2e4,jn=6e4,xa=12e4,ka=360*6e4,On=60*6e4,$a=t=>{let e=(t==null?void 0:t.reason)==="provider_maintenance"?t.maintenanceUntil:void 0,o=e===void 0?0:e-Date.now();return o>0&&o<=ka?e:void 0},Dn=t=>{if((t==null?void 0:t.reason)!=="provider_maintenance"||t.outcome==="unknown")return;let e=$a(t);return e===void 0?{}:{until:e}},Mn=(t,e)=>new Intl.DateTimeFormat(e,{hour:"numeric",minute:"2-digit"}).format(t),Nn=(t,e)=>{let o=$a(e);if(o!==void 0)return{waitMs:o-Date.now(),throttles:(t??0)+1,maintenance:!0};if(!((e==null?void 0:e.reason)==="provider_maintenance"||(e==null?void 0:e.retryable)===!0&&(e.providerStatus===429||e.providerStatus!==void 0&&e.providerStatus>=500||e.phase==="workflow"&&e.verdict==="not_submitted")))return{waitMs:ya};let a=(t??0)+1,i=Math.min(a*An,jn),n=(e.retryAfterSeconds??0)*1e3;return{waitMs:Math.min(Math.max(i,n),xa),throttles:a}},Rn=t=>(t==null?void 0:t.code)==="captcha_failed"&&t.verdict==="not_submitted",zn=t=>{if(!ma(t))return!1;let e=t.integration_response.error.data;return typeof e=="object"&&e!==null&&"fallback"in e&&e.fallback==="contact"},Fn=t=>((t==null?void 0:t.phase)==="workflow"||(t==null?void 0:t.phase)==="authentication"||(t==null?void 0:t.code)==="captcha_failed")&&t.retryable===!0&&t.verdict==="not_submitted",Ln=t=>(t==null?void 0:t.outcome)==="unknown"&&t.code==="repeatable_provider_crash",Bn=t=>(t==null?void 0:t.phase)==="submit"&&t.verdict==="confirmed"&&t.code==="unreadable_document"&&typeof t.field=="string"&&t.status!==void 0&&t.status>=400&&t.status<500?t.field:void 0,Un=(t,e)=>{if(typeof t!="object"||t===null)return null;let o=t.integration_response;if(typeof o!="object"||o===null){if(e===void 0)return null;let l="code"in t&&typeof t.code=="string"?t.code:void 0;return{service:"API",response:{status:e,payload:l===void 0?{}:{code:l}}}}let a=o;if(typeof a.status!="number"||a.service!==void 0&&typeof a.service!="string")return null;let i="data"in a,n=a.error,r=typeof n=="object"&&n!==null&&typeof n.message=="string"&&"data"in n;if(!i&&!r)return null;let s=i?a.data:n.data??null;return{service:a.service??"INVALID_SERVICE",response:{status:a.status,payload:s},..._a(t)&&{outcome:"pending"}}},Hn=t=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(t))return!1;let e=new Date(`${t}T00:00:00Z`);return Number.isFinite(e.getTime())&&e.toISOString().slice(0,10)===t},Wn=(t,e)=>{if(!Hn(t))throw new RangeError("Invalid ISO calendar date");return new Intl.DateTimeFormat(e,{dateStyle:"long",timeZone:"UTC"}).format(new Date(`${t}T00:00:00Z`))},Vn=t=>new Promise((e,o)=>{let a=new FileReader;a.onload=()=>{if(typeof a.result!="string"||!a.result)return o(new Error("Invalid file"));e(a.result)},a.onerror=o,a.readAsDataURL(t)}),ko=t=>typeof t=="object"&&t!==null&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null),ao=(t,e)=>t?{...t,...Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0).map(([o,a])=>{let i=t[o];return[o,ko(i)&&ko(a)?ao(i,a):a]}))}:e,qn=({context:t,schema:e,logger:o})=>{if(e)for(let a in e){let i=e[a];if(!i)continue;let n=oo(t,a.split("."));if(i.required&&n==null){let r=`Configuration error in context: ${a} is required`;throw o.error(r),new Error(r)}if(n!=null)switch(i.type){case"number":if(typeof n!="number")throw new Error(`Configuration error in context: ${a} is not a number`);break;case"string":if(typeof n!="string")throw new Error(`Configuration error in context: ${a} is not a string`);break;default:i.type}}},Sa=an(to([R(),Zt()]),ca(String)),Ea=P({id:Sa,version:Zt(),build:Zt(),nodes:ua(da()),context_schema:B(wt(Qe(R(),P({required:Je(),type:to([H("string"),H("number")])}))))}),Yn=P({flow:Ea}),Kn=P({company:P({name:R()}),context:B(Qe(R(),$t())),flow:Ea,job:P({id:Sa,title:R()}),user:B(P({city:B(R()),country:B(R()),isEU:B(Je()),continent:B(R())}))}),Zn=(t,e)=>({id:t.job.id,id_type:(e==null?void 0:e.idType)==="internal"&&e.id===t.job.id?"internal":"external"}),Xn=bt.endpoint({pathname:"/flow/job/:id",method:"GET",schema:{searchParams:bt.typed(),response:Kn}}),Gn=bt.endpoint({pathname:"/flow/id/:id",method:"GET",schema:{response:Yn}}),Ft,b,Ca,Ta,pt,$o,Ia,Ie,Pa,yt={},Aa=[],Jn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ne=Array.isArray;function at(t,e){for(var o in e)t[o]=e[o];return t}function ja(t){var e=t.parentNode;e&&e.removeChild(t)}function K(t,e,o){var a,i,n,r={};for(n in e)n=="key"?a=e[n]:n=="ref"?i=e[n]:r[n]=e[n];if(arguments.length>2&&(r.children=arguments.length>3?Ft.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(n in t.defaultProps)r[n]===void 0&&(r[n]=t.defaultProps[n]);return At(t,r,a,i,null)}function At(t,e,o,a,i){var n={type:t,props:e,key:o,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Ca};return i==null&&b.vnode!=null&&b.vnode(n),n}function Qn(){return{current:null}}function Z(t){return t.children}function G(t,e){this.props=t,this.context=e}function Xt(t,e){if(e==null)return t.__?Xt(t.__,t.__.__k.indexOf(t)+1):null;for(var o;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null)return o.__e;return typeof t.type=="function"?Xt(t):null}function Oa(t){var e,o;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((o=t.__k[e])!=null&&o.__e!=null){t.__e=t.__c.base=o.__e;break}return Oa(t)}}function Pe(t){(!t.__d&&(t.__d=!0)&&pt.push(t)&&!Gt.__r++||$o!==b.debounceRendering)&&(($o=b.debounceRendering)||Ia)(Gt)}function Gt(){var t,e,o,a,i,n,r,s,l;for(pt.sort(Ie);t=pt.shift();)t.__d&&(e=pt.length,a=void 0,i=void 0,n=void 0,s=(r=(o=t).__v).__e,(l=o.__P)&&(a=[],i=[],(n=at({},r)).__v=r.__v+1,io(l,r,n,o.__n,l.ownerSVGElement!==void 0,r.__h!=null?[s]:null,a,s??Xt(r),r.__h,i),Ra(a,r,i),r.__e!=s&&Oa(r)),pt.length>e&&pt.sort(Ie));Gt.__r=0}function Da(t,e,o,a,i,n,r,s,l,d,u){var c,h,w,p,g,$,x,C,A,D,M=0,N=a&&a.__k||Aa,v=N.length,m=v,_=e.length;for(o.__k=[],c=0;c<_;c++)(p=o.__k[c]=(p=e[c])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?At(null,p,null,null,p):ne(p)?At(Z,{children:p},null,null,null):p.__b>0?At(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null&&(p.__=o,p.__b=o.__b+1,(C=tr(p,N,x=c+M,m))===-1?w=yt:(w=N[C]||yt,N[C]=void 0,m--),io(t,p,w,i,n,r,s,l,d,u),g=p.__e,(h=p.ref)&&w.ref!=h&&(w.ref&&no(w.ref,null,p),u.push(h,p.__c||g,p)),g!=null&&($==null&&($=g),D=!(A=w===yt||w.__v===null)&&C===x,A?C==-1&&M--:C!==x&&(C===x+1?(M++,D=!0):C>x?m>_-x?(M+=C-x,D=!0):M--:M=C<x&&C==x-1?C-x:0),x=c+M,D=D||C==c&&!A,typeof p.type!="function"||C===x&&w.__k!==p.__k?typeof p.type=="function"||D?p.__d!==void 0?(l=p.__d,p.__d=void 0):l=g.nextSibling:l=Na(t,g,l):l=Ma(p,l,t),typeof o.type=="function"&&(o.__d=l)));for(o.__e=$,c=v;c--;)N[c]!=null&&(typeof o.type=="function"&&N[c].__e!=null&&N[c].__e==o.__d&&(o.__d=N[c].__e.nextSibling),za(N[c],N[c]))}function Ma(t,e,o){for(var a,i=t.__k,n=0;i&&n<i.length;n++)(a=i[n])&&(a.__=t,e=typeof a.type=="function"?Ma(a,e,o):Na(o,a.__e,e));return e}function it(t,e){return e=e||[],t==null||typeof t=="boolean"||(ne(t)?t.some(function(o){it(o,e)}):e.push(t)),e}function Na(t,e,o){return o==null||o.parentNode!==t?t.insertBefore(e,null):e==o&&e.parentNode!=null||t.insertBefore(e,o),e.nextSibling}function tr(t,e,o,a){var i=t.key,n=t.type,r=o-1,s=o+1,l=e[o];if(l===null||l&&i==l.key&&n===l.type)return o;if(a>(l!=null?1:0))for(;r>=0||s<e.length;){if(r>=0){if((l=e[r])&&i==l.key&&n===l.type)return r;r--}if(s<e.length){if((l=e[s])&&i==l.key&&n===l.type)return s;s++}}return-1}function er(t,e,o,a,i){var n;for(n in o)n==="children"||n==="key"||n in e||Jt(t,n,null,o[n],a);for(n in e)i&&typeof e[n]!="function"||n==="children"||n==="key"||n==="value"||n==="checked"||o[n]===e[n]||Jt(t,n,e[n],o[n],a)}function So(t,e,o){e[0]==="-"?t.setProperty(e,o??""):t[e]=o==null?"":typeof o!="number"||Jn.test(e)?o:o+"px"}function Jt(t,e,o,a,i){var n;t:if(e==="style")if(typeof o=="string")t.style.cssText=o;else{if(typeof a=="string"&&(t.style.cssText=a=""),a)for(e in a)o&&e in o||So(t.style,e,"");if(o)for(e in o)a&&o[e]===a[e]||So(t.style,e,o[e])}else if(e[0]==="o"&&e[1]==="n")n=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+n]=o,o?a||t.addEventListener(e,n?Co:Eo,n):t.removeEventListener(e,n?Co:Eo,n);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e in t)try{t[e]=o??"";break t}catch{}typeof o=="function"||(o==null||o===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,o))}}function Eo(t){return this.l[t.type+!1](b.event?b.event(t):t)}function Co(t){return this.l[t.type+!0](b.event?b.event(t):t)}function io(t,e,o,a,i,n,r,s,l,d){var u,c,h,w,p,g,$,x,C,A,D,M,N,v,m,_=e.type;if(e.constructor!==void 0)return null;o.__h!=null&&(l=o.__h,s=e.__e=o.__e,e.__h=null,n=[s]),(u=b.__b)&&u(e);try{t:if(typeof _=="function"){if(x=e.props,C=(u=_.contextType)&&a[u.__c],A=u?C?C.props.value:u.__:a,o.__c?$=(c=e.__c=o.__c).__=c.__E:("prototype"in _&&_.prototype.render?e.__c=c=new _(x,A):(e.__c=c=new G(x,A),c.constructor=_,c.render=ar),C&&C.sub(c),c.props=x,c.state||(c.state={}),c.context=A,c.__n=a,h=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),_.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=at({},c.__s)),at(c.__s,_.getDerivedStateFromProps(x,c.__s))),w=c.props,p=c.state,c.__v=e,h)_.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(_.getDerivedStateFromProps==null&&x!==w&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,A),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,A)===!1||e.__v===o.__v)){for(e.__v!==o.__v&&(c.props=x,c.state=c.__s,c.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.forEach(function(y){y&&(y.__=e)}),D=0;D<c._sb.length;D++)c.__h.push(c._sb[D]);c._sb=[],c.__h.length&&r.push(c);break t}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,A),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(w,p,g)})}if(c.context=A,c.props=x,c.__P=t,c.__e=!1,M=b.__r,N=0,"prototype"in _&&_.prototype.render){for(c.state=c.__s,c.__d=!1,M&&M(e),u=c.render(c.props,c.state,c.context),v=0;v<c._sb.length;v++)c.__h.push(c._sb[v]);c._sb=[]}else do c.__d=!1,M&&M(e),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++N<25);c.state=c.__s,c.getChildContext!=null&&(a=at(at({},a),c.getChildContext())),h||c.getSnapshotBeforeUpdate==null||(g=c.getSnapshotBeforeUpdate(w,p)),Da(t,ne(m=u!=null&&u.type===Z&&u.key==null?u.props.children:u)?m:[m],e,o,a,i,n,r,s,l,d),c.base=e.__e,e.__h=null,c.__h.length&&r.push(c),$&&(c.__E=c.__=null)}else n==null&&e.__v===o.__v?(e.__k=o.__k,e.__e=o.__e):e.__e=or(o.__e,e,o,a,i,n,r,l,d);(u=b.diffed)&&u(e)}catch(y){e.__v=null,(l||n!=null)&&(e.__e=s,e.__h=!!l,n[n.indexOf(s)]=null),b.__e(y,e,o)}}function Ra(t,e,o){for(var a=0;a<o.length;a++)no(o[a],o[++a],o[++a]);b.__c&&b.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(n){n.call(i)})}catch(n){b.__e(n,i.__v)}})}function or(t,e,o,a,i,n,r,s,l){var d,u,c,h=o.props,w=e.props,p=e.type,g=0;if(p==="svg"&&(i=!0),n!=null){for(;g<n.length;g++)if((d=n[g])&&"setAttribute"in d==!!p&&(p?d.localName===p:d.nodeType===3)){t=d,n[g]=null;break}}if(t==null){if(p===null)return document.createTextNode(w);t=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,w.is&&w),n=null,s=!1}if(p===null)h===w||s&&t.data===w||(t.data=w);else{if(n=n&&Ft.call(t.childNodes),u=(h=o.props||yt).dangerouslySetInnerHTML,c=w.dangerouslySetInnerHTML,!s){if(n!=null)for(h={},g=0;g<t.attributes.length;g++)h[t.attributes[g].name]=t.attributes[g].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(er(t,w,h,i,s),c)e.__k=[];else if(Da(t,ne(g=e.props.children)?g:[g],e,o,a,i&&p!=="foreignObject",n,r,n?n[0]:o.__k&&Xt(o,0),s,l),n!=null)for(g=n.length;g--;)n[g]!=null&&ja(n[g]);s||("value"in w&&(g=w.value)!==void 0&&(g!==t.value||p==="progress"&&!g||p==="option"&&g!==h.value)&&Jt(t,"value",g,h.value,!1),"checked"in w&&(g=w.checked)!==void 0&&g!==t.checked&&Jt(t,"checked",g,h.checked,!1))}return t}function no(t,e,o){try{typeof t=="function"?t(e):t.current=e}catch(a){b.__e(a,o)}}function za(t,e,o){var a,i;if(b.unmount&&b.unmount(t),(a=t.ref)&&(a.current&&a.current!==t.__e||no(a,null,e)),(a=t.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(n){b.__e(n,e)}a.base=a.__P=null,t.__c=void 0}if(a=t.__k)for(i=0;i<a.length;i++)a[i]&&za(a[i],e,o||typeof t.type!="function");o||t.__e==null||ja(t.__e),t.__=t.__e=t.__d=void 0}function ar(t,e,o){return this.constructor(t,o)}function vt(t,e,o){var a,i,n,r;b.__&&b.__(t,e),i=(a=typeof o=="function")?null:o&&o.__k||e.__k,n=[],r=[],io(e,t=(!a&&o||e).__k=K(Z,null,[t]),i||yt,yt,e.ownerSVGElement!==void 0,!a&&o?[o]:i?null:e.firstChild?Ft.call(e.childNodes):null,n,!a&&o?o:i?i.__e:e.firstChild,a,r),Ra(n,t,r)}function Fa(t,e){vt(t,e,Fa)}function ir(t,e,o){var a,i,n,r,s=at({},t.props);for(n in t.type&&t.type.defaultProps&&(r=t.type.defaultProps),e)n=="key"?a=e[n]:n=="ref"?i=e[n]:s[n]=e[n]===void 0&&r!==void 0?r[n]:e[n];return arguments.length>2&&(s.children=arguments.length>3?Ft.call(arguments,2):o),At(t.type,s,a||t.key,i||t.ref,null)}function La(t,e){var o={__c:e="__cC"+Pa++,__:t,Consumer:function(a,i){return a.children(i)},Provider:function(a){var i,n;return this.getChildContext||(i=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(r){this.props.value!==r.value&&i.some(function(s){s.__e=!0,Pe(s)})},this.sub=function(r){i.push(r);var s=r.componentWillUnmount;r.componentWillUnmount=function(){i.splice(i.indexOf(r),1),s&&s.call(r)}}),a.children}};return o.Provider.__=o.Consumer.contextType=o}Ft=Aa.slice,b={__e:function(t,e,o,a){for(var i,n,r;e=e.__;)if((i=e.__c)&&!i.__)try{if((n=i.constructor)&&n.getDerivedStateFromError!=null&&(i.setState(n.getDerivedStateFromError(t)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,a||{}),r=i.__d),r)return i.__E=i}catch(s){t=s}throw t}},Ca=0,Ta=function(t){return t!=null&&t.constructor===void 0},G.prototype.setState=function(t,e){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=at({},this.state),typeof t=="function"&&(t=t(at({},o),this.props)),t&&at(o,t),t!=null&&this.__v&&(e&&this._sb.push(e),Pe(this))},G.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Pe(this))},G.prototype.render=Z,pt=[],Ia=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ie=function(t,e){return t.__v.__b-e.__v.__b},Gt.__r=0,Pa=0;var ct,I,we,To,St=0,Ba=[],Ht=[],Io=b.__b,Po=b.__r,Ao=b.diffed,jo=b.__c,Oo=b.unmount;function Et(t,e){b.__h&&b.__h(I,t,St||e),St=0;var o=I.__H||(I.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Ht}),o.__[t]}function ro(t){return St=1,Ua(Wa,t)}function Ua(t,e,o){var a=Et(ct++,2);if(a.t=t,!a.__c&&(a.__=[o?o(e):Wa(void 0,e),function(s){var l=a.__N?a.__N[0]:a.__[0],d=a.t(l,s);l!==d&&(a.__N=[d,a.__[1]],a.__c.setState({}))}],a.__c=I,!I.u)){var i=function(s,l,d){if(!a.__c.__H)return!0;var u=a.__c.__H.__.filter(function(h){return h.__c});if(u.every(function(h){return!h.__N}))return!n||n.call(this,s,l,d);var c=!1;return u.forEach(function(h){if(h.__N){var w=h.__[0];h.__=h.__N,h.__N=void 0,w!==h.__[0]&&(c=!0)}}),!(!c&&a.__c.props===s)&&(!n||n.call(this,s,l,d))};I.u=!0;var n=I.shouldComponentUpdate,r=I.componentWillUpdate;I.componentWillUpdate=function(s,l,d){if(this.__e){var u=n;n=void 0,i(s,l,d),n=u}r&&r.call(this,s,l,d)},I.shouldComponentUpdate=i}return a.__N||a.__}function re(t,e){var o=Et(ct++,3);!b.__s&&so(o.__H,e)&&(o.__=t,o.i=e,I.__H.__h.push(o))}function _t(t,e){var o=Et(ct++,4);!b.__s&&so(o.__H,e)&&(o.__=t,o.i=e,I.__h.push(o))}function mt(t){return St=5,dt(function(){return{current:t}},[])}function nr(t,e,o){St=6,_t(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function dt(t,e){var o=Et(ct++,7);return so(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function rr(t,e){return St=8,dt(function(){return t},e)}function Ha(t){var e=I.context[t.__c],o=Et(ct++,9);return o.c=t,e?(o.__==null&&(o.__=!0,e.sub(I)),e.props.value):t.__}function sr(t,e){b.useDebugValue&&b.useDebugValue(e?e(t):t)}function lr(){var t=Et(ct++,11);if(!t.__){for(var e=I.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var o=e.__m||(e.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function cr(){for(var t;t=Ba.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Wt),t.__H.__h.forEach(Ae),t.__H.__h=[]}catch(e){t.__H.__h=[],b.__e(e,t.__v)}}b.__b=function(t){I=null,Io&&Io(t)},b.__r=function(t){Po&&Po(t),ct=0;var e=(I=t.__c).__H;e&&(we===I?(e.__h=[],I.__h=[],e.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Ht,o.__N=o.i=void 0})):(e.__h.forEach(Wt),e.__h.forEach(Ae),e.__h=[],ct=0)),we=I},b.diffed=function(t){Ao&&Ao(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ba.push(e)!==1&&To===b.requestAnimationFrame||((To=b.requestAnimationFrame)||dr)(cr)),e.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Ht&&(o.__=o.__V),o.i=void 0,o.__V=Ht})),we=I=null},b.__c=function(t,e){e.some(function(o){try{o.__h.forEach(Wt),o.__h=o.__h.filter(function(a){return!a.__||Ae(a)})}catch(a){e.some(function(i){i.__h&&(i.__h=[])}),e=[],b.__e(a,o.__v)}}),jo&&jo(t,e)},b.unmount=function(t){Oo&&Oo(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(a){try{Wt(a)}catch(i){e=i}}),o.__H=void 0,e&&b.__e(e,o.__v))};var Do=typeof requestAnimationFrame=="function";function dr(t){var e,o=function(){clearTimeout(a),Do&&cancelAnimationFrame(e),setTimeout(t)},a=setTimeout(o,100);Do&&(e=requestAnimationFrame(o))}function Wt(t){var e=I,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),I=e}function Ae(t){var e=I;t.__c=t.__(),I=e}function so(t,e){return!t||t.length!==e.length||e.some(function(o,a){return o!==t[a]})}function Wa(t,e){return typeof e=="function"?e(t):e}var ur=Symbol.for("preact-signals");function lo(){if(xt>1)xt--;else{for(var t,e=!1;jt!==void 0;){var o=jt;for(jt=void 0,je++;o!==void 0;){var a=o.o;if(o.o=void 0,o.f&=-3,!(8&o.f)&&qa(o))try{o.c()}catch(i){e||(t=i,e=!0)}o=a}}if(je=0,xt--,e)throw t}}var E=void 0,jt=void 0,xt=0,je=0,Qt=0;function Va(t){if(E!==void 0){var e=t.n;if(e===void 0||e.t!==E)return e={i:0,S:t,p:E.s,n:void 0,t:E,e:void 0,x:void 0,r:e},E.s!==void 0&&(E.s.n=e),E.s=e,t.n=e,32&E.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=E.s,e.n=void 0,E.s.n=e,E.s=e),e}}function z(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}z.prototype.brand=ur;z.prototype.h=function(){return!0};z.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};z.prototype.U=function(t){if(this.t!==void 0){var e=t.e,o=t.x;e!==void 0&&(e.x=o,t.e=void 0),o!==void 0&&(o.e=e,t.x=void 0),t===this.t&&(this.t=o)}};z.prototype.subscribe=function(t){var e=this;return uo(function(){var o=e.value,a=E;E=void 0;try{t(o)}finally{E=a}})};z.prototype.valueOf=function(){return this.value};z.prototype.toString=function(){return this.value+""};z.prototype.toJSON=function(){return this.value};z.prototype.peek=function(){var t=E;E=void 0;try{return this.value}finally{E=t}};Object.defineProperty(z.prototype,"value",{get:function(){var t=Va(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(je>100)throw new Error("Cycle detected");this.v=t,this.i++,Qt++,xt++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{lo()}}}});function Y(t){return new z(t)}function qa(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Ya(t){for(var e=t.s;e!==void 0;e=e.n){var o=e.S.n;if(o!==void 0&&(e.r=o),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Ka(t){for(var e=t.s,o=void 0;e!==void 0;){var a=e.p;e.i===-1?(e.S.U(e),a!==void 0&&(a.n=e.n),e.n!==void 0&&(e.n.p=a)):o=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=a}t.s=o}function Ct(t){z.call(this,void 0),this.x=t,this.s=void 0,this.g=Qt-1,this.f=4}(Ct.prototype=new z).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Qt))return!0;if(this.g=Qt,this.f|=1,this.i>0&&!qa(this))return this.f&=-2,!0;var t=E;try{Ya(this),E=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(o){this.v=o,this.f|=16,this.i++}return E=t,Ka(this),this.f&=-2,!0};Ct.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}z.prototype.S.call(this,t)};Ct.prototype.U=function(t){if(this.t!==void 0&&(z.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};Ct.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(Ct.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=Va(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function pr(t){return new Ct(t)}function Za(t){var e=t.u;if(t.u=void 0,typeof e=="function"){xt++;var o=E;E=void 0;try{e()}catch(a){throw t.f&=-2,t.f|=8,co(t),a}finally{E=o,lo()}}}function co(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Za(t)}function hr(t){if(E!==this)throw new Error("Out-of-order effect");Ka(this),E=t,this.f&=-2,8&this.f&&co(this),lo()}function Lt(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Lt.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};Lt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Za(this),Ya(this),xt++;var t=E;return E=this,hr.bind(this,t)};Lt.prototype.N=function(){2&this.f||(this.f|=2,this.o=jt,jt=this)};Lt.prototype.d=function(){this.f|=8,1&this.f||co(this)};function uo(t){var e=new Lt(t);try{e.c()}catch(o){throw e.d(),o}return e.d.bind(e)}var ge;function Tt(t,e){b[t]=e.bind(null,b[t]||function(){})}function te(t){ge&&ge(),ge=t&&t.S()}function Xa(t){var e=this,o=t.data,a=wr(o);a.value=o;var i=dt(function(){for(var n=e.__v;n=n.__;)if(n.__c){n.__c.__$f|=4;break}return e.__$u.c=function(){var r;!Ta(i.peek())&&((r=e.base)==null?void 0:r.nodeType)===3?e.base.data=i.peek():(e.__$f|=1,e.setState({}))},pr(function(){var r=a.value.value;return r===0?0:r===!0?"":r||""})},[]);return i.value}Xa.displayName="_st";Object.defineProperties(z.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Xa},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Tt("__b",function(t,e){if(typeof e.type=="string"){var o,a=e.props;for(var i in a)if(i!=="children"){var n=a[i];n instanceof z&&(o||(e.__np=o={}),o[i]=n,a[i]=n.peek())}}t(e)});Tt("__r",function(t,e){te();var o,a=e.__c;a&&(a.__$f&=-2,(o=a.__$u)===void 0&&(a.__$u=o=(function(i){var n;return uo(function(){n=this}),n.c=function(){a.__$f|=1,a.setState({})},n})())),te(o),t(e)});Tt("__e",function(t,e,o,a){te(),t(e,o,a)});Tt("diffed",function(t,e){te();var o;if(typeof e.type=="string"&&(o=e.__e)){var a=e.__np,i=e.props;if(a){var n=o.U;if(n)for(var r in n){var s=n[r];s!==void 0&&!(r in a)&&(s.d(),n[r]=void 0)}else o.U=n={};for(var l in a){var d=n[l],u=a[l];d===void 0?(d=fr(o,l,u,i),n[l]=d):d.o(u,i)}}}t(e)});function fr(t,e,o,a){var i=e in t&&t.ownerSVGElement===void 0,n=Y(o);return{o:function(r,s){n.value=r,a=s},d:uo(function(){var r=n.value.value;a[e]!==r&&(a[e]=r,i?t[e]=r:r?t.setAttribute(e,r):t.removeAttribute(e))})}}Tt("unmount",function(t,e){if(typeof e.type=="string"){var o=e.__e;if(o){var a=o.U;if(a){o.U=void 0;for(var i in a){var n=a[i];n&&n.d()}}}}else{var r=e.__c;if(r){var s=r.__$u;s&&(r.__$u=void 0,s.d())}}t(e)});Tt("__h",function(t,e,o,a){(a<3||a===9)&&(e.__$f|=2),t(e,o,a)});G.prototype.shouldComponentUpdate=function(t,e){var o=this.__$u;if(!(o&&o.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var a in e)return!0;for(var i in t)if(i!=="__source"&&t[i]!==this.props[i])return!0;for(var n in this.props)if(!(n in t))return!0;return!1};function wr(t){return dt(function(){return Y(t)},[])}const U=Symbol.for("@ts-pattern/matcher"),Ga=Symbol.for("@ts-pattern/isVariadic"),ee="@ts-pattern/anonymous-select-key",Oe=t=>!!(t&&typeof t=="object"),Vt=t=>t&&!!t[U],j=(t,e,o)=>{if(Vt(t)){const a=t[U](),{matched:i,selections:n}=a.match(e);return i&&n&&Object.keys(n).forEach(r=>o(r,n[r])),i}if(Oe(t)){if(!Oe(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let a=[],i=[],n=[];for(const r of t.keys()){const s=t[r];Vt(s)&&s[Ga]?n.push(s):n.length?i.push(s):a.push(s)}if(n.length){if(n.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<a.length+i.length)return!1;const r=e.slice(0,a.length),s=i.length===0?[]:e.slice(-i.length),l=e.slice(a.length,i.length===0?1/0:-i.length);return a.every((d,u)=>j(d,r[u],o))&&i.every((d,u)=>j(d,s[u],o))&&(n.length===0||j(n[0],l,o))}return t.length===e.length&&t.every((r,s)=>j(r,e[s],o))}return Reflect.ownKeys(t).every(a=>{const i=t[a];return(a in e||Vt(n=i)&&n[U]().matcherType==="optional")&&j(i,e[a],o);var n})}return Object.is(e,t)},L=t=>{var e,o,a;return Oe(t)?Vt(t)?(e=(o=(a=t[U]()).getSelectionKeys)==null?void 0:o.call(a))!=null?e:[]:Array.isArray(t)?Nt(t,L):Nt(Object.values(t),L):[]},Nt=(t,e)=>t.reduce((o,a)=>o.concat(e(a)),[]);function Ja(...t){if(t.length===1){const[e]=t;return o=>j(e,o,()=>{})}if(t.length===2){const[e,o]=t;return j(e,o,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`)}function O(t){return Object.assign(t,{optional:()=>po(t),and:e=>T(t,e),or:e=>Qa(t,e),select:e=>e===void 0?Rt(t):Rt(e,t)})}function De(t){return Object.assign((e=>Object.assign(e,{[Symbol.iterator](){let o=0;const a=[{value:Object.assign(e,{[Ga]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var i;return(i=a[o++])!=null?i:a.at(-1)}}}}))(t),{optional:()=>De(po(t)),select:e=>De(e===void 0?Rt(t):Rt(e,t))})}function po(t){return O({[U]:()=>({match:e=>{let o={};const a=(i,n)=>{o[i]=n};return e===void 0?(L(t).forEach(i=>a(i,void 0)),{matched:!0,selections:o}):{matched:j(t,e,a),selections:o}},getSelectionKeys:()=>L(t),matcherType:"optional"})})}const gr=(t,e)=>{for(const o of t)if(!e(o))return!1;return!0},br=(t,e)=>{for(const[o,a]of t.entries())if(!e(a,o))return!1;return!0},vr=(t,e)=>{const o=Reflect.ownKeys(t);for(const a of o)if(!e(a,t[a]))return!1;return!0};function T(...t){return O({[U]:()=>({match:e=>{let o={};const a=(i,n)=>{o[i]=n};return{matched:t.every(i=>j(i,e,a)),selections:o}},getSelectionKeys:()=>Nt(t,L),matcherType:"and"})})}function Qa(...t){return O({[U]:()=>({match:e=>{let o={};const a=(i,n)=>{o[i]=n};return Nt(t,L).forEach(i=>a(i,void 0)),{matched:t.some(i=>j(i,e,a)),selections:o}},getSelectionKeys:()=>Nt(t,L),matcherType:"or"})})}function k(t){return{[U]:()=>({match:e=>({matched:!!t(e)})})}}function Rt(...t){const e=typeof t[0]=="string"?t[0]:void 0,o=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return O({[U]:()=>({match:a=>{let i={[e??ee]:a};return{matched:o===void 0||j(o,a,(n,r)=>{i[n]=r}),selections:i}},getSelectionKeys:()=>[e??ee].concat(o===void 0?[]:L(o))})})}function ti(t){return!0}function J(t){return typeof t=="number"}function nt(t){return typeof t=="string"}function rt(t){return typeof t=="bigint"}const ei=O(k(ti)),mr=O(k(ti)),_r=ei,st=t=>Object.assign(O(t),{startsWith:e=>{return st(T(t,(o=e,k(a=>nt(a)&&a.startsWith(o)))));var o},endsWith:e=>{return st(T(t,(o=e,k(a=>nt(a)&&a.endsWith(o)))));var o},minLength:e=>st(T(t,(o=>k(a=>nt(a)&&a.length>=o))(e))),length:e=>st(T(t,(o=>k(a=>nt(a)&&a.length===o))(e))),maxLength:e=>st(T(t,(o=>k(a=>nt(a)&&a.length<=o))(e))),includes:e=>{return st(T(t,(o=e,k(a=>nt(a)&&a.includes(o)))));var o},regex:e=>{return st(T(t,(o=e,k(a=>nt(a)&&!!a.match(o)))));var o}}),Mo=st(k(nt)),Q=t=>Object.assign(O(t),{between:(e,o)=>Q(T(t,((a,i)=>k(n=>J(n)&&a<=n&&i>=n))(e,o))),lt:e=>Q(T(t,(o=>k(a=>J(a)&&a<o))(e))),gt:e=>Q(T(t,(o=>k(a=>J(a)&&a>o))(e))),lte:e=>Q(T(t,(o=>k(a=>J(a)&&a<=o))(e))),gte:e=>Q(T(t,(o=>k(a=>J(a)&&a>=o))(e))),int:()=>Q(T(t,k(e=>J(e)&&Number.isInteger(e)))),finite:()=>Q(T(t,k(e=>J(e)&&Number.isFinite(e)))),positive:()=>Q(T(t,k(e=>J(e)&&e>0))),negative:()=>Q(T(t,k(e=>J(e)&&e<0)))}),yr=Q(k(J)),lt=t=>Object.assign(O(t),{between:(e,o)=>lt(T(t,((a,i)=>k(n=>rt(n)&&a<=n&&i>=n))(e,o))),lt:e=>lt(T(t,(o=>k(a=>rt(a)&&a<o))(e))),gt:e=>lt(T(t,(o=>k(a=>rt(a)&&a>o))(e))),lte:e=>lt(T(t,(o=>k(a=>rt(a)&&a<=o))(e))),gte:e=>lt(T(t,(o=>k(a=>rt(a)&&a>=o))(e))),positive:()=>lt(T(t,k(e=>rt(e)&&e>0))),negative:()=>lt(T(t,k(e=>rt(e)&&e<0)))}),xr=lt(k(rt)),kr=O(k(function(t){return typeof t=="boolean"})),$r=O(k(function(t){return typeof t=="symbol"})),Sr=O(k(function(t){return t==null})),Er=O(k(function(t){return t!=null}));var ft={__proto__:null,matcher:U,optional:po,array:function(...t){return De({[U]:()=>({match:e=>{if(!Array.isArray(e))return{matched:!1};if(t.length===0)return{matched:!0};const o=t[0];let a={};if(e.length===0)return L(o).forEach(n=>{a[n]=[]}),{matched:!0,selections:a};const i=(n,r)=>{a[n]=(a[n]||[]).concat([r])};return{matched:e.every(n=>j(o,n,i)),selections:a}},getSelectionKeys:()=>t.length===0?[]:L(t[0])})})},set:function(...t){return O({[U]:()=>({match:e=>{if(!(e instanceof Set))return{matched:!1};let o={};if(e.size===0)return{matched:!0,selections:o};if(t.length===0)return{matched:!0};const a=(n,r)=>{o[n]=(o[n]||[]).concat([r])},i=t[0];return{matched:gr(e,n=>j(i,n,a)),selections:o}},getSelectionKeys:()=>t.length===0?[]:L(t[0])})})},map:function(...t){return O({[U]:()=>({match:e=>{if(!(e instanceof Map))return{matched:!1};let o={};if(e.size===0)return{matched:!0,selections:o};const a=(s,l)=>{o[s]=(o[s]||[]).concat([l])};if(t.length===0)return{matched:!0};var i;if(t.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(i=t[0])==null?void 0:i.toString()}`);const[n,r]=t;return{matched:br(e,(s,l)=>{const d=j(n,l,a),u=j(r,s,a);return d&&u}),selections:o}},getSelectionKeys:()=>t.length===0?[]:[...L(t[0]),...L(t[1])]})})},record:function(...t){return O({[U]:()=>({match:e=>{if(e===null||typeof e!="object"||Array.isArray(e))return{matched:!1};var o;if(t.length===0)throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(o=t[0])==null?void 0:o.toString()}`);let a={};const i=(s,l)=>{a[s]=(a[s]||[]).concat([l])},[n,r]=t.length===1?[Mo,t[0]]:t;return{matched:vr(e,(s,l)=>{const d=typeof s!="string"||Number.isNaN(Number(s))?null:Number(s),u=d!==null&&j(n,d,i),c=j(n,s,i),h=j(r,l,i);return(c||u)&&h}),selections:a}},getSelectionKeys:()=>t.length===0?[]:[...L(t[0]),...L(t[1])]})})},intersection:T,union:Qa,not:function(t){return O({[U]:()=>({match:e=>({matched:!j(t,e,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:k,select:Rt,any:ei,unknown:mr,_:_r,string:Mo,number:yr,bigint:xr,boolean:kr,symbol:$r,nullish:Sr,nonNullable:Er,instanceOf:function(t){return O(k((function(e){return o=>o instanceof e})(t)))},shape:function(t){return O(k(Ja(t)))}};let Cr=class extends Error{constructor(e){let o;try{o=JSON.stringify(e)}catch{o=e}super(`Pattern matching error: no pattern matches value ${o}`),this.input=void 0,this.input=e}};const Me={matched:!1,value:void 0};function se(t){return new Tr(t,Me)}let Tr=class Ne{constructor(e,o){this.input=void 0,this.state=void 0,this.input=e,this.state=o}with(...e){if(this.state.matched)return this;const o=e[e.length-1],a=[e[0]];let i;e.length===3&&typeof e[1]=="function"?i=e[1]:e.length>2&&a.push(...e.slice(1,e.length-1));let n=!1,r={};const s=(d,u)=>{n=!0,r[d]=u},l=!a.some(d=>j(d,this.input,s))||i&&!i(this.input)?Me:{matched:!0,value:o(n?ee in r?r[ee]:r:this.input,this.input)};return new Ne(this.input,l)}when(e,o){if(this.state.matched)return this;const a=!!e(this.input);return new Ne(this.input,a?{matched:!0,value:o(this.input,this.input)}:Me)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(e=Ir){return this.state.matched?this.state.value:e(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}};function Ir(t){throw new Cr(t)}var Pr=0;function f(t,e,o,a,i,n){var r,s,l={};for(s in e)s=="ref"?r=e[s]:l[s]=e[s];var d={type:t,props:l,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Pr,__source:i,__self:n};if(typeof t=="function"&&(r=t.defaultProps))for(s in r)l[s]===void 0&&(l[s]=r[s]);return b.vnode&&b.vnode(d),d}function oi(t){var e,o,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(o=oi(t[e]))&&(a&&(a+=" "),a+=o)}else for(o in t)t[o]&&(a&&(a+=" "),a+=o);return a}function le(){for(var t,e,o=0,a="",i=arguments.length;o<i;o++)(t=arguments[o])&&(e=oi(t))&&(a&&(a+=" "),a+=e);return a}const No=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ro=le,ce=(t,e)=>o=>{var a;if((e==null?void 0:e.variants)==null)return Ro(t,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:i,defaultVariants:n}=e,r=Object.keys(i).map(d=>{const u=o==null?void 0:o[d],c=n==null?void 0:n[d];if(u===null)return null;const h=No(u)||No(c);return i[d][h]}),s=o&&Object.entries(o).reduce((d,u)=>{let[c,h]=u;return h===void 0||(d[c]=h),d},{}),l=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,u)=>{let{class:c,className:h,...w}=u;return Object.entries(w).every(p=>{let[g,$]=p;return Array.isArray($)?$.includes({...n,...s}[g]):{...n,...s}[g]===$})?[...d,c,h]:d},[]);return Ro(t,r,l,o==null?void 0:o.class,o==null?void 0:o.className)};function ai(t,e){for(var o in e)t[o]=e[o];return t}function Re(t,e){for(var o in t)if(o!=="__source"&&!(o in e))return!0;for(var a in e)if(a!=="__source"&&t[a]!==e[a])return!0;return!1}function be(t,e){return t===e&&(t!==0||1/t==1/e)||t!=t&&e!=e}function ze(t){this.props=t}function Ar(t,e){function o(i){var n=this.props.ref,r=n==i.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,i)||!r:Re(this.props,i)}function a(i){return this.shouldComponentUpdate=o,K(t,i)}return a.displayName="Memo("+(t.displayName||t.name)+")",a.prototype.isReactComponent=!0,a.__f=!0,a}(ze.prototype=new G).isPureReactComponent=!0,ze.prototype.shouldComponentUpdate=function(t,e){return Re(this.props,t)||Re(this.state,e)};var zo=b.__b;b.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),zo&&zo(t)};var jr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ii(t){function e(o){var a=ai({},o);return delete a.ref,t(a,o.ref||null)}return e.$$typeof=jr,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Fo=function(t,e){return t==null?null:it(it(t).map(e))},Or={map:Fo,forEach:Fo,count:function(t){return t?it(t).length:0},only:function(t){var e=it(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:it},Dr=b.__e;b.__e=function(t,e,o,a){if(t.then){for(var i,n=e;n=n.__;)if((i=n.__c)&&i.__c)return e.__e==null&&(e.__e=o.__e,e.__k=o.__k),i.__c(t,e)}Dr(t,e,o,a)};var Lo=b.unmount;function ni(t,e,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(a){typeof a.__c=="function"&&a.__c()}),t.__c.__H=null),(t=ai({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(a){return ni(a,e,o)})),t}function ri(t,e,o){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(a){return ri(a,e,o)}),t.__c&&t.__c.__P===e&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function Ot(){this.__u=0,this.t=null,this.__b=null}function si(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function li(t){var e,o,a;function i(n){if(e||(e=t()).then(function(r){o=r.default||r},function(r){a=r}),a)throw a;if(!o)throw e;return K(o,n)}return i.displayName="Lazy",i.__f=!0,i}function Pt(){this.u=null,this.o=null}b.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Lo&&Lo(t)},(Ot.prototype=new G).__c=function(t,e){var o=e.__c,a=this;a.t==null&&(a.t=[]),a.t.push(o);var i=si(a.__v),n=!1,r=function(){n||(n=!0,o.__R=null,i?i(s):s())};o.__R=r;var s=function(){if(!--a.__u){if(a.state.__a){var d=a.state.__a;a.__v.__k[0]=ri(d,d.__c.__P,d.__c.__O)}var u;for(a.setState({__a:a.__b=null});u=a.t.pop();)u.forceUpdate()}},l=e.__h===!0;a.__u++||l||a.setState({__a:a.__b=a.__v.__k[0]}),t.then(r,r)},Ot.prototype.componentWillUnmount=function(){this.t=[]},Ot.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),a=this.__v.__k[0].__c;this.__v.__k[0]=ni(this.__b,o,a.__O=a.__P)}this.__b=null}var i=e.__a&&K(Z,null,t.fallback);return i&&(i.__h=null),[K(Z,null,e.__a?null:t.children),i]};var Bo=function(t,e,o){if(++o[1]===o[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;t.u=o=o[2]}};function Mr(t){return this.getChildContext=function(){return t.context},t.children}function Nr(t){var e=this,o=t.i;e.componentWillUnmount=function(){vt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==o&&e.componentWillUnmount(),t.__v?(e.l||(e.i=o,e.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(a){this.childNodes.push(a),e.i.appendChild(a)},insertBefore:function(a,i){this.childNodes.push(a),e.i.appendChild(a)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),e.i.removeChild(a)}}),vt(K(Mr,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Rr(t,e){var o=K(Nr,{__v:t,i:e});return o.containerInfo=e,o}(Pt.prototype=new G).__a=function(t){var e=this,o=si(e.__v),a=e.o.get(t);return a[0]++,function(i){var n=function(){e.props.revealOrder?(a.push(i),Bo(e,t,a)):i()};o?o(n):n()}},Pt.prototype.render=function(t){this.u=null,this.o=new Map;var e=it(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var o=e.length;o--;)this.o.set(e[o],this.u=[1,0,this.u]);return t.children},Pt.prototype.componentDidUpdate=Pt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,o){Bo(t,o,e)})};var ci=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,zr=/^(?: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]/,Fr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Lr=/[A-Z0-9]/g,Br=typeof document<"u",Ur=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Hr(t,e,o){return e.__k==null&&(e.textContent=""),vt(t,e),typeof o=="function"&&o(),t?t.__c:null}function Wr(t,e,o){return Fa(t,e),typeof o=="function"&&o(),t?t.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(G.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Uo=b.event;function Vr(){}function qr(){return this.cancelBubble}function Yr(){return this.defaultPrevented}b.event=function(t){return Uo&&(t=Uo(t)),t.persist=Vr,t.isPropagationStopped=qr,t.isDefaultPrevented=Yr,t.nativeEvent=t};var ho,Kr={enumerable:!1,configurable:!0,get:function(){return this.class}},Ho=b.vnode;b.vnode=function(t){typeof t.type=="string"&&(function(e){var o=e.props,a=e.type,i={};for(var n in o){var r=o[n];if(!(n==="value"&&"defaultValue"in o&&r==null||Br&&n==="children"&&a==="noscript"||n==="class"||n==="className")){var s=n.toLowerCase();n==="defaultValue"&&"value"in o&&o.value==null?n="value":n==="download"&&r===!0?r="":s==="ondoubleclick"?n="ondblclick":s!=="onchange"||a!=="input"&&a!=="textarea"||Ur(o.type)?s==="onfocus"?n="onfocusin":s==="onblur"?n="onfocusout":Fr.test(n)?n=s:a.indexOf("-")===-1&&zr.test(n)?n=n.replace(Lr,"-$&").toLowerCase():r===null&&(r=void 0):s=n="oninput",s==="oninput"&&i[n=s]&&(n="oninputCapture"),i[n]=r}}a=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=it(o.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),a=="select"&&i.defaultValue!=null&&(i.value=it(o.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),o.class&&!o.className?(i.class=o.class,Object.defineProperty(i,"className",Kr)):(o.className&&!o.class||o.class&&o.className)&&(i.class=i.className=o.className),e.props=i})(t),t.$$typeof=ci,Ho&&Ho(t)};var Wo=b.__r;b.__r=function(t){Wo&&Wo(t),ho=t.__c};var Vo=b.diffed;b.diffed=function(t){Vo&&Vo(t);var e=t.props,o=t.__e;o!=null&&t.type==="textarea"&&"value"in e&&e.value!==o.value&&(o.value=e.value==null?"":e.value),ho=null};var Zr={ReactCurrentDispatcher:{current:{readContext:function(t){return ho.__n[t.__c].props.value}}}};function Xr(t){return K.bind(null,t)}function di(t){return!!t&&t.$$typeof===ci}function Gr(t){return di(t)?ir.apply(null,arguments):t}function Jr(t){return!!t.__k&&(vt(null,t),!0)}function Qr(t){return t&&(t.base||t.nodeType===1&&t)||null}var ts=function(t,e){return t(e)},es=function(t,e){return t(e)},os=Z;function ui(t){t()}function as(t){return t}function is(){return[!1,ui]}var ns=_t;function rs(t,e){var o=e(),a=ro({h:{__:o,v:e}}),i=a[0].h,n=a[1];return _t(function(){i.__=o,i.v=e,be(i.__,e())||n({h:i})},[t,o,e]),re(function(){return be(i.__,i.v())||n({h:i}),t(function(){be(i.__,i.v())||n({h:i})})},[t]),o}var ss={useState:ro,useId:lr,useReducer:Ua,useEffect:re,useLayoutEffect:_t,useInsertionEffect:ns,useTransition:is,useDeferredValue:as,useSyncExternalStore:rs,startTransition:ui,useRef:mt,useImperativeHandle:nr,useMemo:dt,useCallback:rr,useContext:Ha,useDebugValue:sr,version:"17.0.2",Children:Or,render:Hr,hydrate:Wr,unmountComponentAtNode:Jr,createPortal:Rr,createElement:K,createContext:La,createFactory:Xr,cloneElement:Gr,createRef:Qn,Fragment:Z,isValidElement:di,findDOMNode:Qr,Component:G,PureComponent:ze,memo:Ar,forwardRef:ii,flushSync:es,unstable_batchedUpdates:ts,StrictMode:os,Suspense:Ot,SuspenseList:Pt,lazy:li,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Zr},ls=["other","few","many","two","one","zero"],qo=({terms:t,overrides:e,locale:o})=>{const a=new Intl.PluralRules(o);function i(n,r){const s=(e==null?void 0:e[n])??t[n];switch(typeof s){case"string":return s.replace(/{{(\w+)}}/g,(l,d)=>{var u;return((u=r==null?void 0:r[d])==null?void 0:u.toString())??""});case"object":{if(typeof(r==null?void 0:r.count)!="number")throw new Error(`Missing count for translation key “${n.toString()}”`);let l=a.select(r.count);if(!(l in s)){const d=ls.find(u=>u in s);if(!d)throw new Error(`Missing plural rule for translation key “${n.toString()}”`);l=d}return s[l].replace(/{{(\w+)}}/g,(d,u)=>{var c;return((c=r==null?void 0:r[u])==null?void 0:c.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${n.toString()}”.`)}}return i},Yo=La(null),pi=t=>({defaultTerms:t,TranslationProvider:({terms:e,children:o,locale:a})=>{const i=dt(()=>qo({locale:a,terms:t,overrides:e}),[e,a]);return f(Yo.Provider,{value:{t:i,locale:a},children:o})},useTranslation:()=>{const e=Ha(Yo);if(e===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:e.t,locale:e.locale}},createTFunction:({overrides:e,locale:o})=>qo({terms:t,overrides:e,locale:o})}),cs={conversation_history:"Conversation history",jump_to_current:"Jump to current question",send:"Send",submitting:"Sending your application…",skip:"Skip",skipped:"Skipped",submission_closed:"Sorry, this role closed while you were applying.",submission_duplicate_earlier_attempt:"You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.",submission_failed:"We couldn't submit your application. Choose Restart to try again.",submission_unknown_do_not_resubmit:"We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.",submission_unreadable_document:"We couldn't read that file. Please upload a different one.",submission_cooldown:{one:"Submit will be available again in {{count}} second.",other:"Submit will be available again in {{count}} seconds."},submission_cooldown_ready:"Submit is available again.",captcha_check:"One quick check before we send your application",submission_still_working:"Sending your application, this can take up to a minute. Please keep this page open.",file_preparing:{one:"Preparing your file…",other:"Preparing your files…"},file_ready:{one:"Your file is ready to send",other:"Your files are ready to send"},file_read_error:"We couldn't read this file. Select it again or choose another file.",file_read_error_replacement:"We couldn't read this file, so your previous file is no longer selected. Select it again or choose another file.",address_error:"We couldn't search for that address. Try again, or fill it in manually.",address_searching:"Searching addresses…",address_no_results:"We couldn't find that address. Check the spelling or postcode, or fill it in manually.",restart:"Restart",chat_messages:"Chat messages",file_name:"File name",file_size:"File size",file_total_size:"{{size}} total",loading:"Loading",minimize:"Minimise"},{defaultTerms:ds}=pi({submission_redirect_message:"One last step: finish your application on the employer's site.",complete_submission:"Continue on the employer's site",submission_completed:"Submission completed!",submission_pending:"Thanks, we've received your application and are processing it.",submission_failed:"Failed to submit",submission_provider_maintenance:"Sorry, our recruitment system is down for scheduled maintenance until about {{time}}. Please keep this page open and try again when maintenance ends. We apologise for the inconvenience.",submission_provider_maintenance_later:"Sorry, our recruitment system is down for scheduled maintenance until later today. Please keep this page open and try again when maintenance ends. We apologise for the inconvenience.",submission_available_at:"Submit will be available again at {{time}}.",resume_prompt:"You have an unfinished application for this role. Continue where you left off?",resume_continue:"Continue",resume_start_again:"Start again",captcha_failed:"Cloudflare seems to think you're a robot. If that's not the case, please try again in a moment.",close_application:"Close application",invalid_state:"Invalid application state",redirect_url_error:"Couldn’t get the redirect URL.",upload_file:{one:"Select file to upload",other:"Select files to upload"},file_max_size:"max {{size}}",file_extensions:"Accepted file extensions",address_error:"Something went wrong! Plase continue manually",address_search:"Type and search for places…",address_manual:"Fill in manually",back:"Back",search:"Search",unknown_error:"An error occurred",line1:"Line 1",line2:"Line 2",line3:"Line 3",city:"City",state:"State",postcode:"Postcode",country:"Country",select_country:"Select a country",validation_empty:"Please enter a value",validation_date:"Please enter a valid date (YYYY-MM-DD)",validation_email:"That doesn’t look like a valid email address",validation_url:"That doesn’t look like a valid URL",validation_max_chars:"Please enter no more than {{count}} characters",validation_min_chars:"Please enter {{count}} or more characters",validation_phone:"Please enter a valid phone number",validation_phone_min_chars:"Your phone number must be at least {{count}} digits long",validation_country_code:"Please select a country code",validation_number:"Please enter a valid number",validation_number_min:"Please enter a number greater than or equal to {{min}}",validation_number_max:"Please enter a number less than or equal to {{max}}",validation_number_whole:"Enter a whole number",validation_number_decimal_cases:"Please enter a number with at most {{count}} decimal cases",validation_file:"Please select a file",validation_file_ext:"Please only upload {{ext}} files",validation_file_min:{one:"Please upload at least one file",other:"Please only upload at least {{count}} files"},validation_file_max:{one:"Please only upload one file",other:"Please only upload up to {{count}} files"},validation_file_size:"Your file is too big. Please upload a file smaller than {{size}}",validation_file_empty:"This file is empty. If it’s saved in iCloud, Google Drive or OneDrive, download it to your device, then select it again.",validation_required:"This field is required.",validation_multiple_choice_min:{one:"Please select at least {{count}} option",other:"Please select at least {{count}} options"},validation_multiple_choice_max:{one:"Please select at most {{count}} option",other:"Please select at most {{count}} options"},optional:"optional"});const{TranslationProvider:us,useTranslation:Bt,createTFunction:ps}=pi({...ds,...cs,error_heading:"Something unexpected happened",flow_closed:"This role is no longer accepting applications.",undo:"Change answer",job_alerts_offer:"Want to hear about similar roles? We can email you at {{email}} when new ones open.",job_alerts_accept:"Get job alerts",job_alerts_decline:"No thanks",job_alerts_privacy:"We'll use your email only for these alerts. You can unsubscribe at any time.",job_alerts_privacy_sender:"{{employer}} will email you new jobs like this one. Every email has an unsubscribe link.",job_alerts_success:"Done. We'll email you about similar roles.",job_alerts_error:"Sorry, we couldn't set that up. Please try again later.",submission_duplicate:"You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.",submission_retryable:"We couldn't submit your application. Please try again.",submission_unknown:"We couldn't confirm whether your application was sent. Please check your email for a confirmation. If nothing arrives, choose Restart to apply again.",maximize:"Maximise",submit:"Submit",file_more:{one:"+{{count}} file",other:"+{{count}} files"}});function fo(t,e){if(!t)throw new Error(e)}var Fe=t=>t===null||typeof t!="object"?t:Array.isArray(t)?t.map(Fe):Object.keys(t).sort().reduce((e,o)=>(e[o]=Fe(t[o]),e),{}),hs=t=>{let e=JSON.stringify(Fe(t)),o=5381;for(let a=0;a<e.length;a++)o=o*33^e.charCodeAt(a);return(o>>>0).toString(36)};const Le=(t,e)=>e.some(o=>t instanceof o);let Ko,Zo;function fs(){return Ko||(Ko=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ws(){return Zo||(Zo=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Be=new WeakMap,ve=new WeakMap,de=new WeakMap;function gs(t){const e=new Promise((o,a)=>{const i=()=>{t.removeEventListener("success",n),t.removeEventListener("error",r)},n=()=>{o(gt(t.result)),i()},r=()=>{a(t.error),i()};t.addEventListener("success",n),t.addEventListener("error",r)});return de.set(e,t),e}function bs(t){if(Be.has(t))return;const e=new Promise((o,a)=>{const i=()=>{t.removeEventListener("complete",n),t.removeEventListener("error",r),t.removeEventListener("abort",r)},n=()=>{o(),i()},r=()=>{a(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",n),t.addEventListener("error",r),t.addEventListener("abort",r)});Be.set(t,e)}let Ue={get(t,e,o){if(t instanceof IDBTransaction){if(e==="done")return Be.get(t);if(e==="store")return o.objectStoreNames[1]?void 0:o.objectStore(o.objectStoreNames[0])}return gt(t[e])},set(t,e,o){return t[e]=o,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function hi(t){Ue=t(Ue)}function vs(t){return ws().includes(t)?function(...e){return t.apply(He(this),e),gt(this.request)}:function(...e){return gt(t.apply(He(this),e))}}function ms(t){return typeof t=="function"?vs(t):(t instanceof IDBTransaction&&bs(t),Le(t,fs())?new Proxy(t,Ue):t)}function gt(t){if(t instanceof IDBRequest)return gs(t);if(ve.has(t))return ve.get(t);const e=ms(t);return e!==t&&(ve.set(t,e),de.set(e,t)),e}const He=t=>de.get(t);function _s(t,e,{blocked:o,upgrade:a,blocking:i,terminated:n}={}){const r=indexedDB.open(t,e),s=gt(r);return a&&r.addEventListener("upgradeneeded",l=>{a(gt(r.result),l.oldVersion,l.newVersion,gt(r.transaction),l)}),o&&r.addEventListener("blocked",l=>o(l.oldVersion,l.newVersion,l)),s.then(l=>{n&&l.addEventListener("close",()=>n()),i&&l.addEventListener("versionchange",d=>i(d.oldVersion,d.newVersion,d))}).catch(()=>{}),s}const ys=["get","getKey","getAll","getAllKeys","count"],xs=["put","add","delete","clear"],me=new Map;function Xo(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(me.get(e))return me.get(e);const o=e.replace(/FromIndex$/,""),a=e!==o,i=xs.includes(o);if(!(o in(a?IDBIndex:IDBObjectStore).prototype)||!(i||ys.includes(o)))return;const n=async function(r,...s){const l=this.transaction(r,i?"readwrite":"readonly");let d=l.store;return a&&(d=d.index(s.shift())),(await Promise.all([d[o](...s),i&&l.done]))[0]};return me.set(e,n),n}hi(t=>({...t,get:(e,o,a)=>Xo(e,o)||t.get(e,o,a),has:(e,o)=>!!Xo(e,o)||t.has(e,o)}));const ks=["continue","continuePrimaryKey","advance"],Go={},We=new WeakMap,fi=new WeakMap,$s={get(t,e){if(!ks.includes(e))return t[e];let o=Go[e];return o||(o=Go[e]=function(...a){We.set(this,fi.get(this)[e](...a))}),o}};async function*Ss(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const o=new Proxy(e,$s);for(fi.set(o,e),de.set(o,He(e));e;)yield o,e=await(We.get(o)||e.continue()),We.delete(o)}function Jo(t,e){return e===Symbol.asyncIterator&&Le(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Le(t,[IDBIndex,IDBObjectStore])}hi(t=>({...t,get(e,o,a){return Jo(e,o)?Ss:t.get(e,o,a)},has(e,o){return Jo(e,o)||t.has(e,o)}}));const Dt=typeof indexedDB>"u"?void 0:_s("inploi-chatbot",3,{upgrade(t){try{t.deleteObjectStore("state")}catch{}t.createObjectStore("state")}}),Es=t=>({...t,messages:t.messages.map(e=>{if(e.type!=="link")return e;const{onClick:o,...a}=e;return a})});let qt,_e,It;const Qo=()=>{if(!qt)return It;const t=qt;qt=void 0;const e=oe(t),o=Dt==null?void 0:Dt.then(a=>a.put("state",Es(t.data),e)).finally(()=>{It===o&&(It=void 0)});return It=o,It},q={getStateData:async(t,e,o)=>{var i;const a=oe({...t,flowKeys:e,context:o});return(i=await Dt)==null?void 0:i.get("state",a)},getAllStateData:async()=>{var t;return((t=await Dt)==null?void 0:t.getAll("state"))??[]},setStateData:t=>{qt=t,clearTimeout(_e),_e=setTimeout(()=>void Qo(),1e3)},flushStateData:()=>(clearTimeout(_e),Qo()??Promise.resolve())},Cs=t=>e=>e?e.type===t:!1,Ts=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2),ta=()=>({messages:[],submissions:{},currentInput:null,nodeHistory:[],startedWriteNodeIds:[],isFinished:!1,hasInteracted:!1,sequence:0,flowSessionId:Ts()}),Is=t=>se(t).with({nativeEvent:{submitter:ft.select(ft.union(ft.instanceOf(HTMLButtonElement),ft.instanceOf(HTMLInputElement)))}},e=>e).otherwise(()=>{throw new Error("invalid submitter")}),Yt=(t,e,o,a=0)=>{if(!e.nextId)return o(e.id,{stepsMade:a,remainingSteps:0}),{stepsMade:a,remainingSteps:0};const i=t.find(d=>d.id===e.nextId);if(i===void 0)return{stepsMade:a,remainingSteps:0};const n=e.type==="if-block"?e.branchId:void 0,r=t.find(d=>d.id===n),s=e.type.includes("question")?1:0;if(r){const d=s+Math.max(Yt(t,i,o,a+s).remainingSteps,Yt(t,r,o,a+s).remainingSteps);return o(e.id,{stepsMade:a,remainingSteps:d}),{stepsMade:a,remainingSteps:d}}const l=s+Yt(t,i,o,a+s).remainingSteps;return o(e.id,{stepsMade:a,remainingSteps:l}),{stepsMade:a,remainingSteps:l}},Ps=t=>{const e={},o=t.find(a=>a.isHead);return o&&Yt(t,o,(a,i)=>{e[a]=i}),e},oe=t=>[...t.flowKeys,t.id,t.version,t.build,hs(t.hostContext??t.context)].join("/"),As=({data:t,nodes:e})=>{const o=t.startedWriteNodeIds===void 0?e.some(a=>a.type==="integration-application-submit"&&t.nodeHistory.includes(a.id)):t.startedWriteNodeIds.length>0;return!t.isFinished&&!o&&ga(e,t.submissions)},ea=({data:t,nodes:e})=>{var o;return!t.isFinished&&((((o=t.startedWriteNodeIds)==null?void 0:o.length)??0)>0||ga(e,t.submissions))},tt=Y({state:"idle"}),ye=new Set,ut=t=>{const{state:e,flow:o}=tt.value;if(e!=="loaded")return;fo(o,"No flow to update");const a=t(o.data);o.data=a,tt.value={state:e,flow:o},q.setStateData(o)},S={current$:tt,viewState$:Y("closed"),prepareFlow:async({jobAlerts:t,flow:e,context:o={},jobContext:a,flowKeys:i,title:n,analytics:r,job:s,employer:l,locationOrigin:d})=>{await q.flushStateData().catch(()=>{});const u=await q.getStateData(e,i,o),c=u??ta(),h=oe({...e,flowKeys:i,context:o}),w=u!==void 0&&!ye.has(h)&&As({data:c,nodes:e.nodes});return w||ye.add(h),{jobAlerts:t,data:c,offerResume:w,startedAt:new Date,nodeIdToProgress:Ps(e.nodes),flowKeys:i,id:e.id,version:e.version,nodes:e.nodes,build:e.build,context:a===void 0?o:ao(a,o),hostContext:a===void 0?void 0:o,title:n,analytics:r,job:s,employer:l,locationOrigin:d}},commitFlow:t=>{tt.value={state:"loaded",flow:t},q.setStateData(t)},settleResume:t=>{t.offerResume=!1,ye.add(oe(t))},cancelCurrentFlow:()=>{tt.value={state:"idle"},S.viewState$.value="closed"},markAsFinished:()=>ut(t=>({...t,isFinished:!0})),markAsInteracted:()=>ut(t=>({...t,hasInteracted:!0})),setCurrentNodeId:t=>ut(e=>(e.nodeHistory.push(t),e)),setApplicationRecovery:async t=>{ut(e=>(t?e.applicationRecovery=t:delete e.applicationRecovery,e)),await q.flushStateData()},restart:()=>{const{state:t,flow:e}=tt.value;if(t!=="loaded")throw new Error("Flow cannot be restarted: not in valid state");const o={...ta(),failedAttemptAt:e.data.failedAttemptAt,unconfirmedAttemptKeys:e.data.unconfirmedAttemptKeys,submitCooldown:e.data.submitCooldown},a={...e,data:o,startedAt:new Date,offerResume:!1};tt.value={state:t,flow:a},q.setStateData(a)},addMessage:(t,e)=>{const o={...t,groupId:e};return ut(a=>(a.messages.push(o),a))},removeMessagesSentByNodeIds:t=>{const{state:e,flow:o}=tt.value;fo(e==="loaded","Application not loaded");const a=o.data.messages.filter(i=>!i.groupId||!t.includes(i.groupId));o.data.messages=a,q.setStateData(o)},setSubmission:(t,e)=>ut(o=>(e===null?delete o.submissions[t]:o.submissions[t]=e,o)),setInput:t=>ut(e=>({...e,currentInput:t??null})),persistWriteBarrier:async t=>{tt.peek().flow===t&&(tt.value={state:"loaded",flow:t}),q.setStateData(t),await q.flushStateData()}},oa=({heading:t})=>{const{t:e}=Bt();return f("div",{class:"flex flex-grow flex-col items-center justify-center",children:[f("svg",{class:"text-error-9 h-16 w-16",fill:"none",xmlns:"http://www.w3.org/2000/svg","stroke-width":"2",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 96 96",children:[f("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z",fill:"#fff"}),f("path",{d:"M48 79H19.9l-1.3-.3a3 3 0 0 1-1.3-1.3c-.1-.3-.2-.6-.2-1.3l-.1-2.5V48a31 31 0 1 1 31 31Z"}),f("line",{x1:"36.7",y1:"39.3",x2:"44.8",y2:"47.4"}),f("line",{x1:"52.2",y1:"39.3",x2:"60.3",y2:"47.4"}),f("line",{x1:"44.7",y1:"39.2",x2:"36.6",y2:"47.3"}),f("line",{x1:"60.2",y1:"39.2",x2:"52.1",y2:"47.3"}),f("path",{d:"M38 56h19"})]}),f("div",{class:"flex flex-col gap-2 text-center",children:f("p",{class:"text-error-11 font-bold",children:e(t)})})]})},wi=t=>{const{t:e}=Bt();return f("svg",{role:"img",viewBox:"0 0 24 24",...t,children:[f("title",{children:e("loading")}),f("style",{children:"#s1{animation:3s linear infinite forwards s1__to}@keyframes s1__to{0%{transform:translate(12px,0)}66.666667%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,12px)}}#s2{animation:3s linear infinite forwards s2__ts}@keyframes s2__ts{0%{transform:scale(0,0)}70%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%{transform:scale(1,1)}}#s3{animation:3s linear infinite forwards s3__to}@keyframes s3__to{0%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,33.333333%{transform:translate(12px,24px)}}#s4{animation:3s linear infinite forwards s4__ts}@keyframes s4__ts{0%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}100%,30%{transform:scale(0,0)}}#s5{animation:3s linear infinite forwards s5__to}@keyframes s5__to{0%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}33.333333%{transform:translate(12px,12.045742px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%,66.666667%{transform:translate(12px,24px)}}#s6{animation:3s linear infinite forwards s6__ts}@keyframes s6__ts{0%,100%,63.333333%{transform:scale(0,0)}3.333333%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}33.333333%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}#s7{animation:3s linear infinite forwards s7__to}@keyframes s7__to{0%{transform:translate(12px,0)}33.333333%{transform:translate(12px,0);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}66.666667%{transform:translate(12px,12px);animation-timing-function:cubic-bezier(0.77,0,0.175,1)}100%{transform:translate(12px,24px)}}#s8{animation:3s linear infinite forwards s8__ts}@keyframes s8__ts{0%,100%,96.666667%{transform:scale(0,0)}36.666667%{transform:scale(0,0);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}66.666667%{transform:scale(1,1);animation-timing-function:cubic-bezier(0.86,0,0.07,1)}}"}),f("g",{id:"s1",transform:"translate(12,0)",children:f("g",{id:"s2",transform:"scale(0,0)",children:f("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),f("g",{id:"s3",transform:"translate(12,12)",children:f("g",{id:"s4",transform:"scale(1,1)",children:f("circle",{r:"6.5",transform:"translate(0,0)",fill:"currentColor"})})}),f("g",{id:"s5",transform:"translate(12,0)",children:f("g",{id:"s6",transform:"scale(0,0)",children:f("path",{d:"M6.5,13c3.5899,0,6.5-2.9101,6.5-6.5s-2.9101-6.5-6.5-6.5-6.5,2.91015-6.5,6.5s2.91015,6.5,6.5,6.5Zm0-4C7.88071,9,9,7.88071,9,6.5s-1.11929-2.5-2.5-2.5-2.5,1.11929-2.5,2.5s1.11929,2.5,2.5,2.5Z",transform:"translate(-6.5,-6.5)","clip-rule":"evenodd",fill:"currentColor","fill-rule":"evenodd"})})}),f("g",{id:"s7",transform:"translate(12,0)",children:f("g",{id:"s8",transform:"scale(0,0)",children:f("path",{d:"M0,6c0,3.58984,2.91016,6.5,6.5,6.5s6.5-2.91016,6.5-6.5h-4C9,7.38086,7.88086,8.5,6.5,8.5s-2.5-1.11914-2.5-2.5h-4Z",transform:"translate(-6.5,-9.25)",fill:"currentColor"})})})]})},aa=()=>f("div",{class:"flex flex-grow flex-col items-center justify-center",children:f(wi,{class:"text-neutral-6 h-8 w-8"})}),js=t=>{const o=t/100,a=1.3;return t<0?"0%":t>100?"100%":`${Math.round((1-(1-.1)*Math.pow(1-o,a))*100)}%`},Os=ce("touch-hitbox fr relative flex-none rounded-full p-2 transition-all",{variants:{variant:{neutral:"text-neutral-11 hover:text-neutral-12 active:text-neutral-12 hover:bg-interactive-bg-hover active:bg-interactive-bg-active ",white:"text-white/80 hover:text-white active:text-white hover:bg-white/20 active:bg-white/30"}},defaultVariants:{variant:"neutral"}}),ae=({class:t,children:e,variant:o,...a})=>f("button",{class:le(Os({variant:o}),t),...a,children:f("svg",{class:"block",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round",xmlns:"http://www.w3.org/2000/svg",children:e})}),gi=()=>f("path",{d:"M12.5 6.5L8 11L3.5 6.5"}),Ds=()=>{if(S.current$.value.state!=="loaded")return null;const t=S.current$.value.flow.nodeIdToProgress,e=S.current$.value.flow.data.nodeHistory.at(-1);if(e===void 0)return null;const o=t[e];if(o===void 0)return null;const a=100*(o.stepsMade/(o.remainingSteps+o.stepsMade));return f("div",{class:"bg-accent-3",children:f("div",{style:{width:js(a)},class:"bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"})})},Ms=({children:t,params:e,analytics:o,feedbackReady:a})=>{const{t:i}=Bt(),n=S.viewState$,r=!!e.feedback&&S.current$.value.state==="loaded"&&n.value==="maximised",s=r&&a.value,l=mt(!1);return re(()=>{var d,u;!s||l.current||(l.current=!0,o.log({event:"INTERACTION",properties:{tag:"feedback_shown"},customProperties:(u=(d=S.current$.peek().flow)==null?void 0:d.analytics)==null?void 0:u.customProperties}))},[s,o]),f(Z,{children:f("header",{class:"ring-divider bg-statusbar absolute left-0 right-0 top-0 z-20 mx-auto items-center ring-1 backdrop-blur-md backdrop-saturate-150",children:[f("div",{class:"ring-neutral-7 flex h-[var(--header-height)] gap-2 rounded-t-3xl ring-0 ring-inset transition-all duration-300 [&:has(>.view-switch:focus-visible)]:ring-1",children:[f("p",{id:"chatbot-status-bar",class:"sr-only",children:t}),f("button",{"aria-label":i("minimize"),onClick:()=>{n.value="minimised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:Ve,children:f("p",{"aria-hidden":!0,class:"text-neutral-12 truncate text-sm font-bold tracking-tight",children:t})}),f("div",{class:"flex flex-shrink-0 items-center gap-3 p-1.5",children:[e.feedback?f("div",{"data-widget":"inploi-feedback","data-key":"chatbot-header",class:le({hidden:!r}),children:f("div",{class:"ring-neutral-4 bg-neutral-3 h-8 w-[72px] animate-pulse rounded-full ring-1"})}):null,S.current$.value.state==="loaded"&&f(ae,{class:"mx-1","aria-label":i("restart"),onClick:()=>{S.restart()},children:[f("path",{d:"M12 8.5C12 9.29113 11.7654 10.0645 11.3259 10.7223C10.8864 11.3801 10.2616 11.8928 9.53073 12.1955C8.79983 12.4983 7.99556 12.5775 7.21964 12.4231C6.44371 12.2688 5.73098 11.8878 5.17157 11.3284C4.61216 10.769 4.2312 10.0563 4.07686 9.28036C3.92252 8.50444 4.00173 7.70017 4.30448 6.96927C4.60723 6.23836 5.11992 5.61365 5.77772 5.17412C6.43552 4.7346 7.20887 4.5 8 4.5H9"}),f("path",{d:"M8 7L10 4.5L8 2.5"})]},"restart"),f(ae,{class:"view-switch mx-1",onTouchStart:Ve,"aria-label":i("minimize"),onClick:()=>n.value="minimised",children:f(gi,{})},"minmax")]})]}),f(Ds,{})]})})};function Ve(){}const Ns=li(()=>Promise.resolve().then(()=>require("./chatbot-body-B9-4nZ6I.cjs")).then(t=>t.ChatbotBody)),bi=ce("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out",{variants:{view:{closed:"hidden",minimised:"max-w-[min(300px,calc(100vw-4rem))] h-[var(--header-height)] animate-slide-in-bottom",maximised:"max-w-[450px] h-[var(--content-height)] animate-maximise"}}}),vi=ce("relative flex h-full overflow-hidden rounded-3xl outline outline-1",{variants:{view:{closed:"hidden",minimised:"outline-accent-10 bg-accent-9",maximised:"outline-neutral-3 bg-neutral-1 flex-col"}}}),Rs=({open:t,...e})=>{const o=mt(null);return _t(()=>{const a=o.current;a&&(t?a.showModal():a.close())},[t]),f("dialog",{ref:o,...e})},zs=({env:t,logger:e,apiClient:o,rpcClient:a,analytics:i,talentBankClient:n,params:r,feedbackReady:s})=>{const{state:l,flow:d}=S.current$.value,u=S.viewState$.value,c=l!=="idle"&&u==="maximised",h=mt(null),w=d?[...d.data.nodeHistory].reverse().map(p=>d.nodes.find(g=>g.id===p)).find(p=>(p==null?void 0:p.type)==="flow-section"):void 0;return f(us,{terms:r.terms,locale:void 0,children:[f(Rs,{open:c,onClose:()=>S.viewState$.value="minimised",children:f("div",{ref:h,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-status-bar",class:bi({view:"maximised"}),children:f("div",{class:vi({view:"maximised"}),children:[f(Ms,{params:r,analytics:i,feedbackReady:s,children:w?f(Z,{children:[f("span",{class:"block",children:w.data.title}),f("span",{class:"block truncate text-xs font-normal",children:d==null?void 0:d.title})]}):d==null?void 0:d.title}),se({state:l,view:u}).with({state:"idle"},()=>null).with({state:"loading"},()=>f(aa,{},"loading")).with({state:"loaded"},()=>f(Ot,{fallback:f(aa,{},"loading"),children:f(Ns,{env:t,rpcClient:a,analytics:i,apiClient:o,logger:e,talentBankClient:n})})).with({state:"closed"},()=>f(oa,{heading:"flow_closed"})).with({state:"error"},()=>f(oa,{heading:"error_heading"})).exhaustive()]})})}),u==="minimised"?f(Fs,{flow:d}):null]})},Fs=({flow:t})=>{const{t:e}=Bt();return f("div",{class:bi({view:"minimised",class:"z-100 isolate"}),children:f("div",{class:vi({view:"minimised"}),children:[f("button",{onClick:()=>{S.viewState$.value="maximised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1 focus-visible:outline-none",onTouchStart:Ve,children:f("p",{"aria-hidden":!0,class:"truncate text-sm font-bold tracking-tight text-white",children:t==null?void 0:t.title})}),f("div",{class:"flex items-center px-0.5",children:f(ae,{class:"mx-1","aria-label":e("close_application"),onClick:S.cancelCurrentFlow,variant:"white",children:f("path",{d:"M12 12L4 4M12 4L4 12"})},"close")})]})})},mi="14.18.2",Ls=(t,e=mi)=>e===void 0?t:{fetch:(o,a)=>{if(o!=="/flow/submit")return t.fetch(o,a);const i=new Headers(a==null?void 0:a.headers);return i.set("x-inploi-widget-version",e),t.fetch(o,{...a,headers:Object.fromEntries(i.entries())})}};let Mt,_i,Kt;const Bs=t=>{const e=t.slice(0,t.lastIndexOf("/")+1);return/^https:\/\/[^/?#]+\/@inploi\/plugin-chatbot(?:@[\w.-]+)?\/cdn\/$/.test(e)?e:void 0},yi=(t,e,o)=>{const a=Li(t,e??`
18
- `,o);return{...a,stack:a.stack.filter(i=>i.startsWith("index.js:"))}},qe=t=>yi(t,Kt),xi=t=>typeof t=="object"&&t!==null&&"status"in t&&typeof t.status=="number"?t.status:void 0,kt=(t,e,o={})=>Mt==null?void 0:Mt.send(t,e,{...o,message:"Chatbot widget beacon",widget:"chatbot",key_hash:_i}),Us=t=>{const e=(o,a,i)=>{if(S.viewState$.value==="closed")return;const n=yi(a,t,i);n.stack.length&&kt("fatal",ie(a),{phase:"render",error:{...n,via:o}})};window.addEventListener("error",o=>{Ri(o)||e("error",o.error,o.message)}),window.addEventListener("unhandledrejection",o=>e("rejection",o.reason))},Hs=(t,e,o=typeof document>"u"?require("url").pathToFileURL(__filename).href:ue&&ue.tagName.toUpperCase()==="SCRIPT"&&ue.src||new URL("index-BQAeBeON.cjs",document.baseURI).href)=>{const a=Ui();Mt||!a||!t||(_i=e?sa(e).toString(36):void 0,Mt=Gi({config:a,version:mi,env:t,seed:Hi(Bi(),bt.generateUUID)}),Kt=Bs(o),Kt&&Us(Kt))},Ws=t=>{let e={application:void 0,attempts:0,blocked:!1};return{fetch:async(o,a)=>{if(o!=="/flow/submit")return t.fetch(o,a);const i=S.current$.value.flow;i!==e.application&&(e={application:i,attempts:0,blocked:!1});const n=e,r=++n.attempts,s=performance.now(),l=await t.fetch(o,a).catch(d=>{throw xi(d)===void 0&&!(d instanceof Error&&d.name==="AbortError")&&(n.blocked=!0,kt("submit_blocked",ie(d),{phase:"submit",error:qe(d),endpoint:"flow_submit",attempt:r,elapsed_ms:Math.round(performance.now()-s),body_kb:typeof(a==null?void 0:a.body)=="string"?Math.round(a.body.length/1024):void 0})),d});return n.blocked&&kt("submit_recovered",void 0,{phase:"submit",endpoint:"flow_submit",attempt:r}),l}}},Vs='[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;z-index:2147483647;font-size:16px;font-family:sans-serif;--i-lowest: 0 0% 100%;--i-e-1: 340 100% 99%;--i-e-2: 353 100% 98%;--i-e-3: 351 91% 96%;--i-e-4: 351 100% 93%;--i-e-5: 350 100% 90%;--i-e-6: 351 80% 86%;--i-e-7: 349 68% 81%;--i-e-8: 348 61% 74%;--i-e-9: 348 75% 59%;--i-e-10: 347 70% 55%;--i-e-11: 345 70% 47%;--i-e-12: 344 63% 24%;--header-height: 44px;--content-height: calc(100vh - 64px) ;--content-height: calc(100svh - 64px) }@media screen and (min-width:768px){[data-widget=inploi-chatbot]{--content-height: min(640px, calc(100vh - 16px) );--content-height: min(640px, calc(100svh - 16px) ) }}[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot] ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[data-widget=inploi-chatbot]{--tw-content: "";font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}[data-widget=inploi-chatbot] em{font-style:italic}[data-widget=inploi-chatbot] strong{font-weight:700}[data-widget=inploi-chatbot] *{font-weight:inherit;font-style:inherit;box-sizing:border-box;font-family:inherit;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent}[data-widget=inploi-chatbot] :before,[data-widget=inploi-chatbot] :after{box-sizing:border-box}[data-widget=inploi-chatbot] :is(ul,ol){list-style:none;padding:0;margin:0}[data-widget=inploi-chatbot] :is(p){margin:0;padding:0}[data-widget=inploi-chatbot] :is(li){margin:0;padding:0;list-style:none}[data-widget=inploi-chatbot] :is(button){margin:0;padding:0;border:unset;background:unset;text-align:unset}[data-widget=inploi-chatbot] .container{width:100%}@media(min-width:640px){[data-widget=inploi-chatbot] .container{max-width:640px}}@media(min-width:768px){[data-widget=inploi-chatbot] .container{max-width:768px}}@media(min-width:1024px){[data-widget=inploi-chatbot] .container{max-width:1024px}}@media(min-width:1280px){[data-widget=inploi-chatbot] .container{max-width:1280px}}@media(min-width:1536px){[data-widget=inploi-chatbot] .container{max-width:1536px}}[data-widget=inploi-chatbot] .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}[data-widget=inploi-chatbot] .\\!visible{visibility:visible!important}[data-widget=inploi-chatbot] .visible{visibility:visible}[data-widget=inploi-chatbot] .invisible{visibility:hidden}[data-widget=inploi-chatbot] .collapse{visibility:collapse}[data-widget=inploi-chatbot] .static{position:static}[data-widget=inploi-chatbot] .fixed{position:fixed}[data-widget=inploi-chatbot] .absolute{position:absolute}[data-widget=inploi-chatbot] .relative{position:relative}[data-widget=inploi-chatbot] .sticky{position:sticky}[data-widget=inploi-chatbot] .inset-0{top:0;right:0;bottom:0;left:0}[data-widget=inploi-chatbot] .bottom-0{bottom:0}[data-widget=inploi-chatbot] .bottom-1{bottom:4px}[data-widget=inploi-chatbot] .bottom-2{bottom:8px}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:10px}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-1\\/2{left:50%}[data-widget=inploi-chatbot] .left-2{left:8px}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-0\\.5{right:2px}[data-widget=inploi-chatbot] .right-1{right:4px}[data-widget=inploi-chatbot] .right-2{right:8px}[data-widget=inploi-chatbot] .top-0{top:0}[data-widget=inploi-chatbot] .isolate{isolation:isolate}[data-widget=inploi-chatbot] .z-20{z-index:20}[data-widget=inploi-chatbot] .z-50{z-index:50}[data-widget=inploi-chatbot] .m-0{margin:0}[data-widget=inploi-chatbot] .mx-1{margin-left:4px;margin-right:4px}[data-widget=inploi-chatbot] .mx-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:4px}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[data-widget=inploi-chatbot] .mt-0\\.5{margin-top:2px}[data-widget=inploi-chatbot] .mt-auto{margin-top:auto}[data-widget=inploi-chatbot] .block{display:block}[data-widget=inploi-chatbot] .inline-block{display:inline-block}[data-widget=inploi-chatbot] .inline{display:inline}[data-widget=inploi-chatbot] .flex{display:flex}[data-widget=inploi-chatbot] .inline-flex{display:inline-flex}[data-widget=inploi-chatbot] .table{display:table}[data-widget=inploi-chatbot] .table-row{display:table-row}[data-widget=inploi-chatbot] .flow-root{display:flow-root}[data-widget=inploi-chatbot] .grid{display:grid}[data-widget=inploi-chatbot] .inline-grid{display:inline-grid}[data-widget=inploi-chatbot] .contents{display:contents}[data-widget=inploi-chatbot] .list-item{display:list-item}[data-widget=inploi-chatbot] .\\!hidden{display:none!important}[data-widget=inploi-chatbot] .hidden{display:none}[data-widget=inploi-chatbot] .size-\\[1lh\\]{width:1lh;height:1lh}[data-widget=inploi-chatbot] .h-1\\.5{height:6px}[data-widget=inploi-chatbot] .h-16{height:64px}[data-widget=inploi-chatbot] .h-4{height:16px}[data-widget=inploi-chatbot] .h-48{height:192px}[data-widget=inploi-chatbot] .h-8{height:32px}[data-widget=inploi-chatbot] .h-\\[3px\\]{height:3px}[data-widget=inploi-chatbot] .h-\\[var\\(--content-height\\)\\]{height:var(--content-height)}[data-widget=inploi-chatbot] .h-\\[var\\(--header-height\\)\\]{height:var(--header-height)}[data-widget=inploi-chatbot] .h-full{height:100%}[data-widget=inploi-chatbot] .max-h-\\[calc\\(100\\%-var\\(--header-height\\)-4rem\\)\\]{max-height:calc(100% - var(--header-height) - 64px)}[data-widget=inploi-chatbot] .max-h-\\[calc\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 16px)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-0{min-height:0px}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[44px\\]{min-height:44px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 16px)}[data-widget=inploi-chatbot] .w-1\\.5{width:6px}[data-widget=inploi-chatbot] .w-16{width:64px}[data-widget=inploi-chatbot] .w-24{width:96px}[data-widget=inploi-chatbot] .w-4{width:16px}[data-widget=inploi-chatbot] .w-64{width:256px}[data-widget=inploi-chatbot] .w-8{width:32px}[data-widget=inploi-chatbot] .w-\\[72px\\]{width:72px}[data-widget=inploi-chatbot] .w-full{width:100%}[data-widget=inploi-chatbot] .min-w-0{min-width:0px}[data-widget=inploi-chatbot] .min-w-\\[2rem\\]{min-width:32px}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,384px)}[data-widget=inploi-chatbot] .max-w-\\[min\\(300px\\,calc\\(100vw-4rem\\)\\)\\]{max-width:min(300px,calc(100vw - 64px))}[data-widget=inploi-chatbot] .max-w-\\[var\\(--radix-popover-content-available-width\\)\\]{max-width:var(--radix-popover-content-available-width)}[data-widget=inploi-chatbot] .max-w-full{max-width:100%}[data-widget=inploi-chatbot] .flex-1{flex:1 1 0%}[data-widget=inploi-chatbot] .flex-auto{flex:1 1 auto}[data-widget=inploi-chatbot] .flex-none{flex:none}[data-widget=inploi-chatbot] .flex-shrink{flex-shrink:1}[data-widget=inploi-chatbot] .flex-shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .shrink{flex-shrink:1}[data-widget=inploi-chatbot] .shrink-0{flex-shrink:0}[data-widget=inploi-chatbot] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .scale-75{--tw-scale-x: .75;--tw-scale-y: .75;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}[data-widget=inploi-chatbot] .animate-bounce{animation:bounce 1s infinite}@keyframes bubble-in{0%{transform:translateY(100%) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}[data-widget=inploi-chatbot] .animate-bubble-in{animation:bubble-in .3s cubic-bezier(.34,1.56,.64,1)}@keyframes maximise{0%{transform:translateY(50%) scaleX(.7)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-maximise{animation:maximise .4s cubic-bezier(.16,1,.3,1)}@keyframes pulse{50%{opacity:.5}}[data-widget=inploi-chatbot] .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-in-bottom{0%{transform:translateY(-100%) scaleX(1.25)}to{transform:translateY(0)}}[data-widget=inploi-chatbot] .animate-slide-in-bottom{animation:slide-in-bottom .3s cubic-bezier(.175,.885,.32,1.275)}[data-widget=inploi-chatbot] .cursor-pointer{cursor:pointer}[data-widget=inploi-chatbot] .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-none{resize:none}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .scroll-pb-12{scroll-padding-bottom:48px}[data-widget=inploi-chatbot] .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}[data-widget=inploi-chatbot] .flex-col{flex-direction:column}[data-widget=inploi-chatbot] .flex-wrap{flex-wrap:wrap}[data-widget=inploi-chatbot] .items-start{align-items:flex-start}[data-widget=inploi-chatbot] .items-end{align-items:flex-end}[data-widget=inploi-chatbot] .items-center{align-items:center}[data-widget=inploi-chatbot] .items-stretch{align-items:stretch}[data-widget=inploi-chatbot] .justify-end{justify-content:flex-end}[data-widget=inploi-chatbot] .justify-center{justify-content:center}[data-widget=inploi-chatbot] .gap-0{gap:0px}[data-widget=inploi-chatbot] .gap-1{gap:4px}[data-widget=inploi-chatbot] .gap-1\\.5{gap:6px}[data-widget=inploi-chatbot] .gap-2{gap:8px}[data-widget=inploi-chatbot] .gap-2\\.5{gap:10px}[data-widget=inploi-chatbot] .gap-3{gap:12px}[data-widget=inploi-chatbot] .gap-4{gap:16px}[data-widget=inploi-chatbot] .self-center{align-self:center}[data-widget=inploi-chatbot] .overflow-hidden{overflow:hidden}[data-widget=inploi-chatbot] .overflow-y-auto{overflow-y:auto}[data-widget=inploi-chatbot] .overscroll-contain{overscroll-behavior:contain}[data-widget=inploi-chatbot] .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-widget=inploi-chatbot] .text-ellipsis{text-overflow:ellipsis}[data-widget=inploi-chatbot] .whitespace-nowrap{white-space:nowrap}[data-widget=inploi-chatbot] .text-balance{text-wrap:balance}[data-widget=inploi-chatbot] .text-pretty{text-wrap:pretty}[data-widget=inploi-chatbot] .break-words{overflow-wrap:break-word}[data-widget=inploi-chatbot] .rounded{border-radius:4px}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:16px}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:24px}[data-widget=inploi-chatbot] .rounded-\\[18px\\]{border-radius:18px}[data-widget=inploi-chatbot] .rounded-full{border-radius:9999px}[data-widget=inploi-chatbot] .rounded-lg{border-radius:8px}[data-widget=inploi-chatbot] .rounded-md{border-radius:6px}[data-widget=inploi-chatbot] .rounded-xl{border-radius:12px}[data-widget=inploi-chatbot] .rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}[data-widget=inploi-chatbot] .rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}[data-widget=inploi-chatbot] .rounded-t-3xl{border-top-left-radius:24px;border-top-right-radius:24px}[data-widget=inploi-chatbot] .rounded-bl-md{border-bottom-left-radius:6px}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:6px}[data-widget=inploi-chatbot] .border{border-width:1px}[data-widget=inploi-chatbot] .border-b{border-bottom-width:1px}[data-widget=inploi-chatbot] .border-t{border-top-width:1px}[data-widget=inploi-chatbot] .border-solid{border-style:solid}[data-widget=inploi-chatbot] .border-dashed{border-style:dashed}[data-widget=inploi-chatbot] .border-accent-9{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .border-divider{border-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .border-neutral-5{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-neutral-8{border-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .border-transparent{border-color:transparent}[data-widget=inploi-chatbot] .border-b-neutral-3{border-bottom-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .border-b-neutral-5{border-bottom-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .border-b-transparent{border-bottom-color:transparent}[data-widget=inploi-chatbot] .bg-accent-1{background-color:var(--i-color-a-1)}[data-widget=inploi-chatbot] .bg-accent-3{background-color:var(--i-color-a-3)}[data-widget=inploi-chatbot] .bg-accent-9{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .bg-bubble-weak-bg{background-color:var(--i-bubble-weak-bg)}[data-widget=inploi-chatbot] .bg-lowest{background-color:var(--i-color-lowest)}[data-widget=inploi-chatbot] .bg-neutral-1{background-color:var(--i-color-n-1)}[data-widget=inploi-chatbot] .bg-neutral-2{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .bg-neutral-3{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .bg-statusbar{background-color:var(--i-status-bar-bg)}[data-widget=inploi-chatbot] .bg-transparent{background-color:transparent}[data-widget=inploi-chatbot] .bg-none{background-image:none}[data-widget=inploi-chatbot] .p-1{padding:4px}[data-widget=inploi-chatbot] .p-1\\.5{padding:6px}[data-widget=inploi-chatbot] .p-2{padding:8px}[data-widget=inploi-chatbot] .p-2\\.5{padding:10px}[data-widget=inploi-chatbot] .p-3{padding:12px}[data-widget=inploi-chatbot] .p-4{padding:16px}[data-widget=inploi-chatbot] .px-0\\.5{padding-left:2px;padding-right:2px}[data-widget=inploi-chatbot] .px-1{padding-left:4px;padding-right:4px}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:6px;padding-right:6px}[data-widget=inploi-chatbot] .px-2{padding-left:8px;padding-right:8px}[data-widget=inploi-chatbot] .px-3{padding-left:12px;padding-right:12px}[data-widget=inploi-chatbot] .px-4{padding-left:16px;padding-right:16px}[data-widget=inploi-chatbot] .px-5{padding-left:20px;padding-right:20px}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:2px;padding-bottom:2px}[data-widget=inploi-chatbot] .py-1{padding-top:4px;padding-bottom:4px}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:6px;padding-bottom:6px}[data-widget=inploi-chatbot] .py-2{padding-top:8px;padding-bottom:8px}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:10px;padding-bottom:10px}[data-widget=inploi-chatbot] .py-3{padding-top:12px;padding-bottom:12px}[data-widget=inploi-chatbot] .pb-2{padding-bottom:8px}[data-widget=inploi-chatbot] .pb-6{padding-bottom:24px}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:6px}[data-widget=inploi-chatbot] .pl-2{padding-left:8px}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:10px}[data-widget=inploi-chatbot] .pl-3{padding-left:12px}[data-widget=inploi-chatbot] .pl-4{padding-left:16px}[data-widget=inploi-chatbot] .pr-1{padding-right:4px}[data-widget=inploi-chatbot] .pr-16{padding-right:64px}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:10px}[data-widget=inploi-chatbot] .pr-3{padding-right:12px}[data-widget=inploi-chatbot] .pr-4{padding-right:16px}[data-widget=inploi-chatbot] .pt-2{padding-top:8px}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:10px}[data-widget=inploi-chatbot] .pt-3{padding-top:12px}[data-widget=inploi-chatbot] .pt-5{padding-top:20px}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 16px)}[data-widget=inploi-chatbot] .text-center{text-align:center}[data-widget=inploi-chatbot] .text-right{text-align:right}[data-widget=inploi-chatbot] .text-justify{text-align:justify}[data-widget=inploi-chatbot] .text-\\[10px\\]{font-size:10px}[data-widget=inploi-chatbot] .text-\\[11px\\]{font-size:11px}[data-widget=inploi-chatbot] .text-base{font-size:16px;line-height:24px}[data-widget=inploi-chatbot] .text-sm{font-size:14px;line-height:20px}[data-widget=inploi-chatbot] .text-xs{font-size:12px;line-height:16px}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[data-widget=inploi-chatbot] .font-normal{font-weight:400}[data-widget=inploi-chatbot] .font-semibold{font-weight:600}[data-widget=inploi-chatbot] .uppercase{text-transform:uppercase}[data-widget=inploi-chatbot] .lowercase{text-transform:lowercase}[data-widget=inploi-chatbot] .capitalize{text-transform:capitalize}[data-widget=inploi-chatbot] .italic{font-style:italic}[data-widget=inploi-chatbot] .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}[data-widget=inploi-chatbot] .leading-3{line-height:12px}[data-widget=inploi-chatbot] .leading-snug{line-height:1.375}[data-widget=inploi-chatbot] .leading-tight{line-height:1.25}[data-widget=inploi-chatbot] .tracking-\\[-0\\.01em\\]{letter-spacing:-.01em}[data-widget=inploi-chatbot] .tracking-tight{letter-spacing:-.025em}[data-widget=inploi-chatbot] .tracking-wide{letter-spacing:.025em}[data-widget=inploi-chatbot] .tracking-widest{letter-spacing:.1em}[data-widget=inploi-chatbot] .text-accent-10{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .text-accent-11{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .text-accent-12{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .text-error-11{color:var(--i-color-e-11)}[data-widget=inploi-chatbot] .text-error-9{color:var(--i-color-e-9)}[data-widget=inploi-chatbot] .text-neutral-10{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .text-neutral-11{color:var(--i-color-n-11)}[data-widget=inploi-chatbot] .text-neutral-12{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .text-neutral-6{color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .text-system-success{color:var(--i-system-message-success)}[data-widget=inploi-chatbot] .text-system-warning{color:var(--i-system-message-warning)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .text-white\\/80{color:#fffc}[data-widget=inploi-chatbot] .underline{text-decoration-line:underline}[data-widget=inploi-chatbot] .no-underline{text-decoration-line:none}[data-widget=inploi-chatbot] .underline-offset-2{text-underline-offset:2px}[data-widget=inploi-chatbot] .underline-offset-4{text-underline-offset:4px}[data-widget=inploi-chatbot] .caret-accent-9{caret-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .opacity-0{opacity:0}[data-widget=inploi-chatbot] .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-lg{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 11px 4px 0px oklch(0% 0 0 / .01), 0px 32px 24px -12px oklch(0% 0 0 / .06);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 11px 4px 0px var(--tw-shadow-color), 0px 32px 24px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-md{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 6px 4px 0px oklch(0% 0 0 / .02), 0px 6px 4px 0px oklch(0% 0 0 / .01);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color), 0px 6px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-surface-sm{--tw-shadow: 0px 3px 3px 0px oklch(0% 0 0 / .03), 0px 4px 4px 0px oklch(0% 0 0 / .02);--tw-shadow-colored: 0px 3px 3px 0px var(--tw-shadow-color), 0px 4px 4px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .shadow-bubble-strong-shadow{--tw-shadow-color: var(--i-bubble-strong-shadow);--tw-shadow: var(--tw-shadow-colored)}[data-widget=inploi-chatbot] .outline-none{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .outline{outline-style:solid}[data-widget=inploi-chatbot] .outline-1{outline-width:1px}[data-widget=inploi-chatbot] .outline-2{outline-width:2px}[data-widget=inploi-chatbot] .outline-accent-10{outline-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .outline-accent-4{outline-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .outline-bubble-weak{outline-color:var(--i-bubble-weak-outline)}[data-widget=inploi-chatbot] .outline-divider{outline-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .outline-neutral-3{outline-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .outline-neutral-6{outline-color:var(--i-color-n-6)}[data-widget=inploi-chatbot] .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .ring-inset{--tw-ring-inset: inset}[data-widget=inploi-chatbot] .ring-accent-6{--tw-ring-color: var(--i-color-a-6)}[data-widget=inploi-chatbot] .ring-divider{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .ring-lowest{--tw-ring-color: var(--i-color-lowest)}[data-widget=inploi-chatbot] .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}[data-widget=inploi-chatbot] .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}[data-widget=inploi-chatbot] .ring-neutral-7{--tw-ring-color: var(--i-color-n-7)}[data-widget=inploi-chatbot] .ring-transparent{--tw-ring-color: transparent}[data-widget=inploi-chatbot] .ring-offset-\\[1\\.5px\\]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .ring-offset-neutral-1{--tw-ring-offset-color: var(--i-color-n-1)}[data-widget=inploi-chatbot] .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .drop-shadow-\\[0_1\\.5px_var\\(--i-color-n-1\\)\\]{--tw-drop-shadow: drop-shadow(0 1.5px var(--i-color-n-1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}[data-widget=inploi-chatbot] .backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-saturate-150{--tw-backdrop-saturate: saturate(1.5);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}[data-widget=inploi-chatbot] .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-\\[background\\,color\\,border-color\\,box-shadow\\]{transition-property:background,color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-widget=inploi-chatbot] .duration-100{transition-duration:.1s}[data-widget=inploi-chatbot] .duration-1000{transition-duration:1s}[data-widget=inploi-chatbot] .duration-300{transition-duration:.3s}[data-widget=inploi-chatbot] .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}[data-widget=inploi-chatbot] .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}[data-widget=inploi-chatbot] .will-change-\\[transform\\,opacity\\]{will-change:transform,opacity}[data-widget=inploi-chatbot] .text-wrap-balance{text-wrap:balance}[data-widget=inploi-chatbot] .fr{outline:none}[data-widget=inploi-chatbot] .fr:focus{outline:none}[data-widget=inploi-chatbot] .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .gutter-stable{scrollbar-gutter:stable}[data-widget=inploi-chatbot] .hide-scrollbars::-webkit-scrollbar{display:none}[data-widget=inploi-chatbot] .hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}[data-widget=inploi-chatbot] .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}[data-widget=inploi-chatbot] .\\[-webkit-outer-spin-button\\:none\\]{-webkit-outer-spin-button:none}[data-widget=inploi-chatbot] .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}[data-widget=inploi-chatbot] .\\[grid-template-columns\\:min-content_1fr\\]{grid-template-columns:min-content 1fr}[data-widget=inploi-chatbot] .\\[text-wrap\\:pretty\\]{text-wrap:pretty}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent *::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}[data-widget=inploi-chatbot] .selection\\:bg-transparent::-moz-selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:bg-transparent::selection{background-color:transparent}[data-widget=inploi-chatbot] .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::-moz-placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-10::placeholder{color:var(--i-color-n-10)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::-moz-placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .placeholder\\:text-neutral-8::placeholder{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .first-of-type\\:rounded-l-lg:first-of-type{border-top-left-radius:8px;border-bottom-left-radius:8px}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:8px;border-bottom-right-radius:8px}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_hsl\\(210_16\\.7\\%_97\\.6\\%\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px hsl(210 16.7% 97.6%);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .focus-within\\:bg-neutral-5:focus-within{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-within\\:outline-accent-7:focus-within{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .hover\\:z-10:hover{z-index:10}[data-widget=inploi-chatbot] .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .hover\\:border-accent-10:hover{border-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:border-neutral-5:hover{border-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-accent-10:hover{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .hover\\:bg-divider:hover{background-color:var(--i-color-divider)}[data-widget=inploi-chatbot] .hover\\:bg-interactive-bg-hover:hover{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-4:hover{background-color:var(--i-color-n-4)}[data-widget=inploi-chatbot] .hover\\:bg-neutral-5:hover{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .hover\\:bg-white\\/20:hover{background-color:#fff3}[data-widget=inploi-chatbot] .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .hover\\:underline:hover{text-decoration-line:underline}[data-widget=inploi-chatbot] .hover\\:ring-accent-8:hover{--tw-ring-color: var(--i-color-a-8)}[data-widget=inploi-chatbot] .hover\\:ring-divider:hover{--tw-ring-color: var(--i-color-divider)}[data-widget=inploi-chatbot] .focus\\:z-20:focus{z-index:20}[data-widget=inploi-chatbot] .focus\\:bg-neutral-5:focus{background-color:var(--i-color-n-5)}[data-widget=inploi-chatbot] .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}[data-widget=inploi-chatbot] .focus-visible\\:bg-neutral-3:focus-visible{background-color:var(--i-color-n-3)}[data-widget=inploi-chatbot] .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-2:focus-visible{outline-width:2px}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-7:focus-visible{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .focus-visible\\:outline-accent-8:focus-visible{outline-color:var(--i-color-a-8)}[data-widget=inploi-chatbot] .focus-visible\\:ring-4:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .active\\:border-submit-bg-active:active{border-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:bg-accent-2:active{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-active:active{background-color:var(--i-interactive-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-interactive-bg-hover:active{background-color:var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:bg-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[data-widget=inploi-chatbot] .active\\:bg-white\\/30:active{background-color:#ffffff4d}[data-widget=inploi-chatbot] .active\\:text-accent-10:active{color:var(--i-color-a-10)}[data-widget=inploi-chatbot] .active\\:text-accent-11:active{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .active\\:text-neutral-12:active{color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[data-widget=inploi-chatbot] .active\\:outline-neutral-8:active{outline-color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .active\\:ring-2:active{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .active\\:ring-accent-7:active{--tw-ring-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .active\\:ring-interactive-bg-hover:active{--tw-ring-color: var(--i-interactive-bg-hover)}[data-widget=inploi-chatbot] .active\\:ring-offset-2:active{--tw-ring-offset-width: 2px}[data-widget=inploi-chatbot] .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}[data-widget=inploi-chatbot] .disabled\\:opacity-50:disabled{opacity:.5}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:bg-accent-2{background-color:var(--i-color-a-2)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:text-accent-9{color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:checked~.peer-checked\\:outline-accent-7{outline-color:var(--i-color-a-7)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-accent-9{--tw-ring-color: var(--i-color-a-9)}[data-widget=inploi-chatbot] .peer:focus-visible~.peer-focus-visible\\:ring-offset-accent-7{--tw-ring-offset-color: var(--i-color-a-7)}[data-widget=inploi-chatbot] .aria-disabled\\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}[data-widget=inploi-chatbot] .aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:border-accent-9:hover[aria-disabled=true]{border-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:hover\\:bg-accent-9:hover[aria-disabled=true]{background-color:var(--i-color-a-9)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-1:active[aria-disabled=true]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}[data-widget=inploi-chatbot] .aria-disabled\\:active\\:ring-offset-\\[1\\.5px\\]:active[aria-disabled=true]{--tw-ring-offset-width: 1.5px}[data-widget=inploi-chatbot] .group[aria-pressed=true] .group-aria-\\[pressed\\=true\\]\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media(pointer:coarse){[data-widget=inploi-chatbot] .pointer-coarse\\:touch-hitbox\\:\\:before:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\+\\*\\>input\\:focus\\)\\]\\:text-neutral-12:has(+*>input:focus){color:var(--i-color-n-12)}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\.view-switch\\:active\\)\\]\\:scale-\\[0\\.98\\]:has(.view-switch:active){--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}[data-widget=inploi-chatbot] .\\[\\&\\:has\\(\\>\\.view-switch\\:focus-visible\\)\\]\\:ring-1:has(>.view-switch:focus-visible){--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[data-widget=inploi-chatbot] dialog::backdrop{animation:fade-in .5s cubic-bezier(.16,1,.3,1) both}[data-widget=inploi-chatbot] dialog::backdrop{background-color:var(--i-overlay-bg)}@media(prefers-reduced-motion:reduce){[data-widget=inploi-chatbot] [data-widget=inploi-chatbot] dialog::backdrop{animation:inploi-chatbot-fade .15s ease-out}}@media(prefers-reduced-motion:reduce){[data-widget=inploi-chatbot],[data-widget=inploi-chatbot] *,[data-widget=inploi-chatbot] *:before,[data-widget=inploi-chatbot] *:after,[data-widget=inploi-chatbot] dialog::backdrop{animation:none!important;transition-property:opacity,color,background-color,border-color!important;transition-duration:.15s!important;scroll-behavior:auto!important}[data-widget=inploi-chatbot] .animate-fade-in,[data-widget=inploi-chatbot] .animate-bubble-in,[data-widget=inploi-chatbot] .animate-maximise,[data-widget=inploi-chatbot] .animate-slide-in-bottom,[data-widget=inploi-chatbot] dialog::backdrop{animation:inploi-chatbot-fade .15s ease-out!important}}@keyframes inploi-chatbot-fade{0%{opacity:0}}',ki="inploi-chatbot",Ye=`[data-widget='${ki}']`,qs=()=>({getChatbotElement:()=>document.querySelector(Ye),getOrCreateChatbotElement:()=>{const t=document.querySelector(Ye);if(t)return document.body.appendChild(t),t;const e=document.createElement("div");return document.body.appendChild(e),e.dataset.widget=ki,e}}),Ys=25,$i=Y(()=>{}),ia=["wheel","touchmove","keydown"],Ks=(t,e)=>new Promise((o,a)=>{if(e!=null&&e.aborted)return a(new ht);const i=setTimeout(o,t);e==null||e.addEventListener("abort",()=>{clearTimeout(i),a(new ht)},{once:!0})}),V={onSubmitSuccessFn$:Y(()=>{}),onInteractionFn$:Y(()=>{}),isBotTyping$:Y(!1),captchaVisible$:Y(!1),themeMode$:Y("light"),isReadingHistory$:Y(!1),scrollToEnd:()=>$i.value()},Zs=()=>{const t=mt(null),e=mt(-1/0);_t(()=>{const a=t.current;if(!a)return;const i=()=>{V.isReadingHistory$.value=!1,a.scrollTo({top:a.scrollHeight,behavior:"instant"})};$i.value=i;const n=()=>e.current=performance.now(),r=()=>{a.scrollHeight-a.scrollTop-a.clientHeight<=24?V.isReadingHistory$.value=!1:performance.now()-e.current<1e3&&(V.isReadingHistory$.value=!0)};a.addEventListener("scroll",r,{passive:!0});for(const l of ia)a.addEventListener(l,n,{passive:!0});const s=new ResizeObserver(()=>{V.isReadingHistory$.peek()||i()});return s.observe(a),a.firstElementChild&&s.observe(a.firstElementChild),()=>{a.removeEventListener("scroll",r);for(const l of ia)a.removeEventListener(l,n);s.disconnect()}},[]);const o=dt(()=>({setSubmission:(i,n)=>S.setSubmission(i,n),captcha:{container:()=>{var i;return((i=t.current)==null?void 0:i.querySelector("[data-captcha-slot]"))??null},get theme(){return V.themeMode$.peek()},reveal:i=>{V.captchaVisible$.value=i,i&&requestAnimationFrame(()=>{var n,r;(r=(n=t.current)==null?void 0:n.querySelector("[data-captcha-slot]"))==null||r.focus(),V.scrollToEnd()})}},send:async({message:i,signal:n,groupId:r})=>{if(await se(i).with({author:"bot",type:"text"},async s=>{if(n!=null&&n.aborted)throw new ht;V.isBotTyping$.value=!0;const l=Math.min(Math.max(20,s.text.length),100)*Ys;try{await Ks(l,n)}finally{V.isBotTyping$.value=!1}}).otherwise(async()=>{}),n!=null&&n.aborted)throw new ht;S.addMessage(i,r)},input:(({input:i,signal:n})=>{if(n!=null&&n.aborted)throw new ht;return S.setInput(i),new Promise(r=>{const s=l=>{if(n!=null&&n.aborted)throw new ht;e.current=-1/0,S.setInput(void 0),i.key&&S.setSubmission(i.key,l),r(l)};V.onSubmitSuccessFn$.value=s})})}),[]);return{chatRef:t,chatService:o}};var Xs=["1","2","3","4","5","6","7","8","9","10","11","12"],Gs={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]}},Js=(t,e=1,o)=>a=>{const[i,n]=Gs[o][a];return"oklch("+i+"% "+n*e+" "+t+")"},xe=t=>{const e=Js(t.hue,t.chroma,t.mode);return Object.fromEntries(Xs.map(o=>[t.prefix+o,t.transform(e(o))]))},ke=t=>t,Qs=t=>{const e=Object.keys(t).flatMap(o=>{const a=t[o];return typeof a=="object"&&a!==null?Object.keys(a).map(i=>{const n=a[i];return[`${String(o)}.${i}`,n]}):[[o,a]]});return Object.fromEntries(e)},Ut=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ke=(t,...e)=>{if(!e.length)return t;const o=e.shift();if(Ut(t)&&Ut(o))for(const a in o){const i=o[a];if(Ut(i)){t[a]||Object.assign(t,{[a]:{}});const n=t[a];Ut(n)&&Ke(n,i)}else Object.assign(t,{[a]:o[a]})}return Ke(t,...e)},tl=t=>{function e(o,a){const i=[t.prefix,a.toString().replace(/\./g,"-")].join("");return o==="declaration"?`--${i}`:`var(--${i})`}return e},el=()=>({core:t=>({semantic:e=>({component:o=>({from:a=>{const{theme:i,getToken:n}=a,r=h=>n("reference",h.toString()),s=t({theme:i}),l=e({theme:i,core:r,raw:{core:s}}),d=o({theme:i,core:r,semantic:r,raw:{core:s,semantic:l}}),u=Qs(Ke(s,l,d)),c=([h,w],p)=>{const g=[p,h].filter(Boolean).join(".");return typeof w=="object"?Object.entries(w).flatMap($=>c($,g)):[[a.getToken("declaration",g),w]]};return{values:u,declarations:Object.fromEntries(Object.entries(u).flatMap(h=>c(h))),ref:h=>n("reference",h.toString())}}})})})});const[$e,Se,na]=["oklch(0% 0 0)","oklch(100% 0 0)","transparent"],ol=el().core(({theme:t})=>({color:{black:$e,white:Se,lowest:t.mode==="light"?Se:$e,highest:t.mode==="light"?$e:Se,...xe({prefix:"a-",hue:t.hue,chroma:t.chroma,mode:t.mode,transform:ke}),...xe({prefix:"n-",hue:t.hue,chroma:.05,mode:t.mode,transform:ke}),...xe({prefix:"e-",hue:20,chroma:t.chroma,mode:t.mode,transform:ke})},typography:{}})).semantic(({core:t,raw:e,theme:o})=>{const a=(i,n)=>e.core.color[i].replace(")",` / ${n})`);return{"font-family":{body:"inherit",headings:"inherit"},"font-style":{body:"normal",headings:"normal"},"font-weight-body":"normal","font-weight-headings":"normal","radius-app":"1.5rem","radius-interactive":"1.5rem",color:{divider:a("n-8",o.mode==="dark"?.4:.2)},"copy-body":t("color.n-12"),"copy-headings":t("color.n-12"),interactive:{copy:t("color.n-11"),"copy-hover":t("color.n-12"),"copy-active":t("color.n-12"),bg:na,"bg-hover":a("n-10",.2),"bg-active":a("n-10",.3)}}}).component(({raw:t,theme:e,semantic:o,core:a})=>{const i=(n,r)=>t.core.color[n].replace(")",` / ${r})`);return{app:{bg:a(e.mode==="dark"?"color.n-1":"color.n-2")},overlay:{bg:i("black",.4)},bubble:{"weak-bg":a(e.mode==="dark"?"color.n-3":"color.lowest"),"weak-outline":o("color.divider"),"strong-shadow":i("a-9",.05)},"status-bar":{bg:i("n-2",.8),"bg-button":na,"bg-button-hover":i("n-10",.4),"bg-button-active":i("n-10",.5)},"submit-button":{"bg-active":a(e.mode==="dark"?"color.a-8":"color.a-11")},"system-message":{warning:e.mode==="dark"?"#FFC107":"#8A5A00",success:e.mode==="dark"?"#4CAF50":"#2E7D32"}}}),al=tl({prefix:"i-"}),il=t=>{const e=ol.from({theme:t,getToken:al}),o=Object.entries(e.declarations).map(([a,i])=>`${a}: ${i};`);return`${Ye} {
19
- ${o.concat(o).join(`
20
- `)}
21
- }`};class ra extends bt.ApiError{}const nl=({_internal_domManager:t=qs(),theme:e,terms:o,feedback:a,jobAlerts:i})=>bt.createPlugin(({apiClient:n,rpcClient:r,logger:s,analytics:l,publishableKey:d,env:u})=>{let c=!1,h=0;Hs(u,d);const w=Ws(Ls(n));let p=0;const g=new WeakMap,$=(v,m)=>{const _=++p,y=performance.now();return m.catch(X=>{throw typeof X=="object"&&X!==null&&g.set(X,{endpoint:v,attempt:_,elapsed_ms:Math.round(performance.now()-y)}),X})},x=(v,m)=>{const _=xi(v);_===404||_===410||kt("fatal","application_unavailable",{phase:"flow",stage:m,error:qe(v),http_status:_,...m==="flow_fetch"&&typeof v=="object"&&v!==null&&g.get(v)})},C=d&&u?bt.createTalentBankClient({environment:u,publishableKey:d,logger:s}):void 0,A=v=>v===h,D=()=>{if(typeof window>"u")return;h++,q.flushStateData().catch(()=>{}),S.cancelCurrentFlow(),V.isBotTyping$.value=!1;const v=t.getChatbotElement();v&&(vt(null,v),v.remove()),c=!1,s.info("Chatbot plugin destroyed")},M=()=>{if(typeof window>"u")return;const v=h,m=[K("style",{id:"inploi-chatbot-styles"},Vs),K("style",{id:"inploi-chatbot-theme"},il(e))],_=t.getOrCreateChatbotElement();V.themeMode$.value=e.mode;const y=Y(!1);if(vt(K(Z,{},[m,K(zs,{env:u,rpcClient:r,apiClient:w,logger:s,analytics:l,talentBankClient:C,params:{theme:e,terms:o,feedback:a},feedbackReady:y})]),_),a){const X=et=>{var go,bo;if(!A(v))return;const wo=(go=t.getChatbotElement())==null?void 0:go.querySelector("dialog");wo&&rl({instance:et({rpcClient:r,apiClient:n,logger:s,analytics:l}),theme:e,terms:((bo=a.params)==null?void 0:bo.terms)??{},host:wo}).then(()=>void(y.value=!0),Si=>s.error("Error rendering feedback plugin",Si))};a.plugin instanceof Promise?a.plugin.then(({feedbackPlugin:et})=>{X(et())}).catch(et=>{s.error("Error preparing feedback plugin",et)}):X(a.plugin)}c=!0},N=async(v,m)=>{if(!A(m))return;qn({context:ao(v.jobContext,v.context||{}),schema:v.flow.context_schema,logger:s});const _=await S.prepareFlow({...v,jobAlerts:v.jobAlerts??i});A(m)&&S.commitFlow(_)};return{prepare:async()=>{if(!(typeof window>"u"))try{if(c)return;M(),s.info("Chatbot plugin prepared")}catch(v){s.error("Error preparing chatbot plugin",v)}},fetchFlowByJobId:async(v,m)=>{const _=(m==null?void 0:m.idType)==="inploi"?"internal":"external";return $("flow_by_job",r.request(Xn,{params:{id:v},searchParams:{id_type:_}})).catch(y=>{throw Ja({name:"ApiError",message:ft.string,status:410,data:ft.union({job:{status:"closed"}},{integration_response:{error:{data:{code:"job_closed"}}}})},y)?new ra(y.message,y.status,y.data):y}).then(y=>({flow:y.flow,title:y.job.title,flowKeys:[y.job.id,...(m==null?void 0:m.flowKeys)??[]],job:Zn(y,{id:v,idType:_}),employer:y.company.name,...m,jobContext:y.context,context:{user:y.user,...m==null?void 0:m.context}}))},fetchFlowById:async(v,m)=>$("flow_by_id",r.request(Gn,{params:{id:v}})).then(_=>{var y;return{flow:_.flow,title:"Chatbot",flowKeys:(m==null?void 0:m.flowKeys)??[],...m,analytics:{customProperties:{flow_id:_.flow.id,flow_version:_.flow.version,...(y=m==null?void 0:m.analytics)==null?void 0:y.customProperties}}}}),open:async v=>{if(typeof window>"u")return;const m=performance.now();try{S.cancelCurrentFlow(),S.viewState$.value="maximised",c||M()}catch(y){s.error("Error starting flow",y),kt("boot_failed",ie(y),{phase:"config",error:qe(y),elapsed_ms:Math.round(performance.now()-m)});return}kt("boot");const _=h;if(v instanceof Promise){S.current$.value={state:"loading"};const y=X=>et=>{A(_)&&(s.error("Error loading flow",et),S.current$.value={state:et instanceof ra?"closed":"error"},x(et,X))};v.then(X=>N(X,_).catch(y("create")),y("flow_fetch"))}else await N(v,_).catch(y=>{s.error("Error starting flow",y),x(y,"create")})},hasApplicationInProgress:async v=>{const m=await q.getStateData(v.flow,v.flowKeys,v.context??{});return m!==void 0&&ea({data:m,nodes:v.flow.nodes})},hasAnyApplicationInProgress:async()=>(await q.getAllStateData()).some(v=>ea({data:v,nodes:[]})),close:async()=>{typeof window>"u"||(S.cancelCurrentFlow(),s.info("Closed flow from an external source"))},destroy:D}});function rl({instance:t,terms:e,theme:o,host:a}){return t.render({key:"chatbot-header",size:"sm",theme:{accent:{chroma:o.chroma??1,hue:o.hue},positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},mode:o.mode,corners:"rounded",highlights:"stroke"},terms:e,host:a})}exports.$=ln;exports.Ae=Cn;exports.B=ba;exports.Ce=Fn;exports.ChevronDown=gi;exports.Cn=ss;exports.D=ht;exports.De=Rn;exports.F=dt;exports.Fe=Tn;exports.Ie=Pn;exports.Le=Bn;exports.LoadingIndicator=wi;exports.M=wa;exports.M$1=se;exports.Me=Nn;exports.Ne=zn;exports.Oe=Mn;exports.Pe=Ln;exports.Q=_a;exports.Re=xn;exports.Se=yn;exports.SvgIconButton=ae;exports.Te=On;exports.U=sn;exports.Ue=Un;exports.V=oo;exports.Ve=Wn;exports._=mt;exports._e=fn;exports.ae=ka;exports.chatStore=V;exports.chatbotPlugin=nl;exports.clsx=le;exports.createTFunction=ps;exports.cva=ce;exports.d=Y;exports.getFormSubmitter=Is;exports.h=ro;exports.he=pn;exports.idb=q;exports.ie=xa;exports.invariant=fo;exports.isSubmissionOfType=Cs;exports.je=Dn;exports.k=Z;exports.k$1=ii;exports.ke=_n;exports.o=f;exports.oe=ya;exports.p=re;exports.qe=Vn;exports.store=S;exports.useChatService=Zs;exports.useTranslation=Bt;exports.ve=cn;exports.xe=un;exports.y=_t;exports.ye=dn;exports.z=va;exports.z$1=ft;