@inploi/plugin-chatbot 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +2 -2
- package/dist/{chatbot-body-5aef126c.js → chatbot-body-3dfd1aa9.js} +460 -466
- package/dist/chatbot-body-ee776a4a.cjs +1 -0
- package/dist/i18n.d.ts +48 -0
- package/dist/index-8ae8589d.cjs +5 -0
- package/dist/{index-b245b94e.js → index-daa7b492.js} +63 -55
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +2 -2
- package/dist/chatbot-body-1f8351bb.cjs +0 -1
- package/dist/index-4d7a0e94.cjs +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-4d7a0e94.cjs");require("@inploi/sdk");const lt=({condition:e,context:r,submissions:n,ifBlock:s})=>{const[a,...o]=e.compareKey.split(".");if(!a)return!1;const i=Ft({context:r,key:a,path:o,submissions:n});if(!i)return!1;switch(i.type){case"address":{const u=t.get(i.value,o.join("."));switch(e.compare){case"equals":return u===e.compareValue;case"contains":return u?u.includes(e.compareValue):!1;case"notEquals":return u!==e.compareValue;case"notContains":return u?!u.includes(e.compareValue):!0}break}case"integration":{if(typeof i.value!="object"||Array.isArray(i.value))return!1;const u=t.get(i.value,o.join(".")),c={...s,data:{...s.data,compareKey:"_temp"}};switch(typeof u){case"boolean":return be(c,{submissions:{_temp:{value:u,type:"boolean"}},context:r});case"string":return be(c,{submissions:{_temp:{value:u,type:"string"}},context:r});case"number":return be(c,{submissions:{_temp:{value:u,type:"number"}},context:r});case"object":return Array.isArray(u)&&u.every(t.isString)?be(c,{submissions:{_temp:{value:u,type:"enum"}},context:r}):!1}break}case"boolean":{const u=e.compareValue==="true";switch(e.compare){case"equals":return i.value===u;case"notEquals":return i.value!==u}break}case"phone":case"string":{const u=i.type==="phone"?Ve(i.value):i.value;switch(e.compare){case"equals":return u===e.compareValue;case"contains":return u?u.includes(e.compareValue):!1;case"notEquals":return u!==e.compareValue;case"notContains":return u?!u.includes(e.compareValue):!0}break}case"number":{try{const u=Number(e.compareValue);switch(e.compare){case"equals":return i.value===u;case"notEquals":return i.value!==u;case"greaterThan":return i.value>u;case"greaterThanOrEqualTo":return i.value>=u;case"lessThan":return i.value<u;case"lessThanOrEqualTo":return i.value<=u}}catch{return console.error(`Failed to parse number in if-block ${s.id}`,i.value),!1}break}case"enum":switch(e.compare){case"equals":return i.value.length===1&&i.value[0]===e.compareValue;case"notEquals":return i.value.length===1&&i.value[0]!==e.compareValue;case"contains":return i.value.includes(e.compareValue);case"notContains":return!i.value.includes(e.compareValue)}break}},be=(e,{context:r,submissions:n})=>{const s="combinator"in e.data?e.data.conditions:[e.data];if(("combinator"in e.data?e.data.combinator:"and")==="or"){for(const o of s)if(lt({condition:o,context:r,submissions:n,ifBlock:e}))return!0;return!1}else{for(const o of s)if(!lt({condition:o,context:r,submissions:n,ifBlock:e}))return!1;return!0}},er=/{{\s*([^}]+?)\s*(?:\|\s*([^}]+?)\s*)?}}/g,Z=(e,{context:r,submissions:n})=>e.replace(er,(s,a,o="")=>{const[i,...u]=a.trim().split("."),c=Ft({key:i,path:u,submissions:n,context:r});if(!c)return o;switch(c.type){case"boolean":return c.value===!0?"true":"false";case"file":return c.value.map(h=>`${h.name} (${t.kbToReadableSize(h.sizeKb)})`).join(", ");case"enum":return c.value.join(", ");case"address":return Object.values(c.value).filter(h=>h&&h.trim().length>0).join(", ");case"number":case"string":return c.value?c.value.toString():o;case"phone":return Ve(c.value);case"integration":{if(typeof c.value!="object"||Array.isArray(c.value))break;const h=t.get(c.value,u.join("."));switch(typeof h){case"boolean":return h===!0?"true":"false";case"string":return h;case"number":return h.toString();case"object":if(Array.isArray(h)&&h.every(t.isString))return h.join(", ")}break}}return o}),Vt=({node:e,nodes:r,stopWhen:n})=>{if((n==null?void 0:n(e))===!0)return e;const s=e.nextId?r.find(a=>a.id===e.nextId):void 0;if(s)return Vt({node:s,nodes:r,stopWhen:n})},tr=({childNode:e,nodes:r})=>{const s=r.filter(a=>a.type==="if-block").find(a=>{if(!a.branchId)return!1;const o=r.find(u=>u.id===a.branchId);if(!o)return!1;const i=Vt({node:o,nodes:r,stopWhen:u=>u.id===e.id});return!(!i||i.id!==e.id)});if(s!=null&&s.nextId)return r.find(a=>a.id===s.nextId)},rr=({flow:e,analytics:r,logger:n,context:s,apiClient:a,getSubmissions:o,chatService:i,onFlowEnd:u,onInterpret:c,t:h})=>{let x=new AbortController;const y={...r.service,log:_=>r.service.log({..._,customProperties:{..._.customProperties,...r.customProperties}})},p=async(_,v)=>{const A=o();c==null||c(_,v);try{await nr({flow:e,analytics:y,logger:n,apiClient:a,context:s,node:_,submissions:A,t:h,chat:{sendMessage:async S=>i.send({groupId:_.id,message:S,signal:x.signal}),userInput:async S=>i.input({input:S,signal:x.signal}),addToSubmissions:i.addToSubmissions},next:S=>{const E=S?e.nodes.find(g=>g.id===S):tr({childNode:_,nodes:e.nodes});return E?p(E,_):u==null?void 0:u(_)},end:()=>u==null?void 0:u(_)})}catch(S){if(S instanceof t.AbortedError)return;throw S}};return{interpret:async _=>{const v=e.nodes.find(A=>A.id===_)??t.getHeadOrThrow(e.nodes);return p(v)},undo:_=>{let v=1;const A=e.nodes.find(E=>E.id===_[_.length-1]);for(let E=_.length-2;E>0;E--){const g=_[E],L=e.nodes.find(O=>O.id===g);if(!L||(v++,L.type.startsWith("question-")))break}x.abort(),x=new AbortController;const S=e.nodes.find(E=>E.id===_[_.length-v]);return t.invariant(S,"Undo failed: new start node not found"),p(S,A),{removed:v}},abort:()=>{x.abort()}}},Ve=e=>`+${e.countryCode} ${e.phoneNumber}`;async function nr(e){const r=e.node;switch(r.type){case"text":return dr({...e,node:r});case"image":return fr({...e,node:r});case"question-text":return hr({...e,node:r});case"question-enum":return gr({...e,node:r});case"question-number":return pr({...e,node:r});case"question-phone":return mr({...e,node:r});case"question-boolean":return br({...e,node:r});case"question-file":return vr({...e,node:r});case"question-address":return yr({...e,node:r});case"end-flow":return xr({...e,node:r});case"if-block":return cr({...e,node:r});case"jump":return or({...e,node:r});case"link":return ur({...e,node:r});case"integration-application-submit":return lr({...e,node:r});case"add-submission":return ir({...e,node:r});case"integration-workflow-get":throw Error("Workflow should be unreachable");case"identify":return ar({...e,node:r});case"feedback":return sr({...e,node:r});default:throw new Error(`Unknown node: ${JSON.stringify(r)}`)}}const me=(e,r)=>{var s;const n=(s=e[r])==null?void 0:s.value;if(typeof n!="string"&&typeof n!="number")throw new Error(`Submission at “${r}” is not a string or number`);return n};async function sr({next:e,node:r}){e(r.nextId)}async function ar({next:e,node:r,analytics:n,submissions:s,logger:a}){if(!s)return e(r.nextId);try{n.log({event:"IDENTIFY",properties:{identifier:me(s,r.data.key).toString(),first_name:r.data.firstName?me(s,r.data.firstName).toString():void 0,last_name:r.data.lastName?me(s,r.data.lastName).toString():void 0,email:r.data.email?me(s,r.data.email).toString():void 0,phone_number:r.data.phoneNumber?me(s,r.data.phoneNumber).toString():void 0,custom_traits:r.data.customTraits?Object.fromEntries(r.data.customTraits.map(({key:o,value:i})=>{var u;return[o,(u=s[i])==null?void 0:u.value]})):void 0}})}catch(o){a.error(o)}finally{e(r.nextId)}}async function or({next:e,node:r}){e(r.data.targetId)}async function ir({next:e,node:r,logger:n,submissions:s,context:a}){if(!s){n.error("Submissions not found");return}s[r.data.key]={type:"string",value:Z(r.data.value,{submissions:s,context:a})},e(r.nextId)}async function lr({chat:e,next:r,node:n,logger:s,apiClient:a,submissions:o,analytics:i,flow:u,t:c}){const h=async x=>{x!==!0&&await e.userInput({type:"submit",key:void 0,config:{label:n.data.submitLabel}}),await e.sendMessage({type:"loading"});const{anonymous_id:y,session_id:p}=i.getSessionInfo(),_=await a.fetch("/flow/submit",{method:"POST",body:JSON.stringify({log_submit:!1,integration_id:n.data.integrationId,anonymous_id:y,session_id:p,job:u.job,submissions:t.getFlowSubmissionsPayload(o||{})})}).catch(v=>v);n.data.key&&e.addToSubmissions(n.data.key,{type:"integration",value:_}),t.N(_).with({integration_response:t._.select(t._.union({service:t._.optional(t._.string),status:t._.number,data:t._.any},{service:t._.optional(t._.string),status:t._.number,error:{message:t._.string,data:t._.any}}))},v=>{i.log({event:"FLOW_SUBMIT",properties:{flow_id:u.id,flow_version:u.version,flow_session_id:u.data.flowSessionId,flow_build:u.build,service:v.service??"INVALID_SERVICE",response:{status:v.status,payload:"data"in v?v.data:v.error.data??null},job:u.job}})}).otherwise(()=>{}),await t.N(_).with(t._.union({ats_data:t._.select("redirect",{redirect_url:t._.string,message:t._.optional(t._.union(t._.string,t._.nullish)),button_text:t._.optional(t._.union(t._.string,t._.nullish))})},{integration_response:{data:t._.select("redirect",{redirect_url:t._.string,message:t._.optional(t._.union(t._.string,t._.nullish)),button_text:t._.optional(t._.union(t._.string,t._.nullish))})}}),async v=>{if(v.redirect!==void 0){await e.sendMessage({type:"text",author:"bot",text:v.redirect.message??c("submission_redirect_message")});try{const A=new URL(v.redirect.redirect_url);y&&!A.searchParams.has("anonymous_id")&&A.searchParams.set("anonymous_id",y),await e.sendMessage({type:"link",href:A.toString(),text:v.redirect.button_text??c("complete_submission"),onClick:()=>{if(!p){s.error("session_id not set, cannot log FLOW_REDIRECT event");return}i.log({event:"FLOW_REDIRECT",properties:{flow_build:u.build,flow_id:u.id,flow_session_id:p,flow_version:u.version,href:A.toString(),job:u.job}})}})}catch(A){s.error(`Invalid redirect URL: ${v.redirect.redirect_url}`,A),e.sendMessage({type:"system",variant:"error",text:c("redirect_url_error")})}r(n.nextId)}}).with({success:!0},async()=>{n.data.skipConfirmation!==!0&&await e.sendMessage({type:"system",variant:"success",text:c("submission_completed")}),r(n.nextId)}).with(t._.union({success:!1,ats_data:t._.select("error",{message:t._.string})},{integration_response:{error:t._.select("error",{message:t._.string})}}),async v=>{var A;s.error(v.error),await e.sendMessage({type:"system",variant:"error",text:((A=v.error)==null?void 0:A.message)||c("submission_failed")}),await h(!1)}).otherwise(async v=>{s.error(v),await e.sendMessage({type:"system",variant:"error",text:c("submission_failed")}),await h(!1)})};await h(n.data.skipConfirmation)}async function ur({chat:e,next:r,node:n,submissions:s,context:a}){await e.sendMessage({type:"link",href:Z(n.data.href,{submissions:s,context:a}),text:Z(n.data.cta,{submissions:s,context:a})}),r(n.nextId)}async function cr({submissions:e,next:r,node:n,context:s}){r(be(n,{submissions:e,context:s})?n.branchId:n.nextId)}async function dr({chat:e,next:r,node:n,submissions:s,context:a}){await e.sendMessage({author:"bot",type:"text",text:Z(n.data.text,{submissions:s,context:a})}),r(n.nextId)}async function fr({chat:e,next:r,node:n}){await e.sendMessage({author:"bot",type:"image",url:n.data.url,height:n.data.height,width:n.data.width}),r(n.nextId)}async function hr({chat:e,next:r,node:n,submissions:s,context:a,t:o}){await e.sendMessage({author:"bot",type:"text",text:Z(n.data.question,{submissions:s,context:a})});const i=n.data.format==="phone"?await e.userInput({key:n.data.key,type:"phone",config:{optional:n.data.optional,placeholder:n.data.placeholder,maxChars:n.data.maxChars,minChars:n.data.minChars,submissionFormat:"text",defaultValue:{}}}):await e.userInput({key:n.data.key,type:"text",config:{optional:n.data.optional,placeholder:n.data.placeholder,format:n.data.format,maxChars:n.data.maxChars,minChars:n.data.minChars}});i===null?await e.sendMessage({type:"system",variant:"info",text:o("skipped")}):await e.sendMessage({author:"user",type:"text",text:i.type==="phone"?Ve(i.value):i.value}),r(n.nextId)}async function pr({chat:e,next:r,node:n,submissions:s,context:a,t:o}){await e.sendMessage({author:"bot",type:"text",text:Z(n.data.question,{submissions:s,context:a})});const i=await e.userInput({key:n.data.key,type:"number",config:{max:n.data.max,min:n.data.min,optional:n.data.optional,placeholder:n.data.placeholder,decimalCases:n.data.decimalCases}});i===null?await e.sendMessage({type:"system",variant:"info",text:o("skipped")}):await e.sendMessage({author:"user",type:"text",text:i.value.toString()}),r(n.nextId)}async function mr({chat:e,next:r,node:n,submissions:s,context:a}){await e.sendMessage({author:"bot",type:"text",text:Z(n.data.question,{submissions:s,context:a})});const o=await e.userInput({key:n.data.key,type:"phone",config:{minChars:n.data.minChars,maxChars:n.data.maxChars,defaultValue:{countryCode:n.data.defaultCountryCode},placeholder:n.data.placeholder,submissionFormat:"phone",optional:n.data.optional}});o===null?await e.sendMessage({type:"system",variant:"info",text:"Skipped"}):await e.sendMessage({author:"user",type:"text",text:o.type==="phone"?Ve(o.value):o.value}),r(n.nextId)}async function gr({chat:e,next:r,node:n,submissions:s,context:a,t:o}){await e.sendMessage({author:"bot",type:"text",text:Z(n.data.question,{submissions:s,context:a})});const i=await e.userInput({key:n.data.key,type:"multiple-choice",config:n.data});i.value.length===0?await e.sendMessage({type:"system",variant:"info",text:o("skipped")}):await e.sendMessage({author:"user",type:"text",text:n.data.options.filter(u=>i.value.includes(u.value)).map(u=>u.label).join(", ")}),r(n.nextId)}async function br({chat:e,next:r,node:n,submissions:s,context:a,t:o}){await e.sendMessage({author:"bot",type:"text",text:Z(n.data.question,{submissions:s,context:a})});const i=await e.userInput({key:n.data.key,type:"boolean",config:{optional:n.data.optional,labels:{true:n.data.trueLabel,false:n.data.falseLabel}}});i===null?await e.sendMessage({type:"system",variant:"info",text:o("skipped")}):await e.sendMessage({author:"user",type:"text",text:i.value===!0?n.data.trueLabel:n.data.falseLabel}),r(n.nextId)}async function yr({chat:e,next:r,node:n,t:s}){await e.sendMessage({author:"bot",type:"text",text:n.data.question});const a=await e.userInput({type:"address",key:n.data.key,config:{optional:n.data.optional,keys:n.data.keys,placeholder:n.data.placeholder}});if(a===null)await e.sendMessage({type:"system",variant:"info",text:s("skipped")});else{const o=Object.values(a.value).filter(i=>i&&i.trim().length>0).join(", ");await e.sendMessage({author:"user",type:"text",text:o})}return r(n.nextId)}async function vr({node:e,chat:r,next:n,submissions:s,context:a,t:o}){await r.sendMessage({author:"bot",type:"text",text:Z(e.data.question,{submissions:s,context:a})});const i=await r.userInput({key:e.data.key,type:"file",config:{optional:e.data.optional,extensions:e.data.extensions,fileSizeLimitKib:e.data.maxSizeKb??10*1024,allowMultiple:e.data.multiple===!0}});if(i===null)await r.sendMessage({type:"system",variant:"info",text:o("skipped")});else for(const u of i.value)await r.sendMessage({author:"user",type:"file",fileName:u.name,fileSizeKb:u.sizeKb});n(e.nextId)}async function xr({chat:e,end:r,node:n}){await e.sendMessage({type:"system",variant:"info",text:n.data.systemMessage}),r()}const Ft=({key:e,path:r,submissions:n,context:s})=>{if(e==="$context"){if(!r)return;const a=t.get(s,r.join("."));switch(typeof a){case"string":return{type:"string",value:a};case"number":return{type:"number",value:a};case"boolean":return{type:"boolean",value:a};default:console.warn(`Unexpected type for $context.${r.join(".")}`,a);return}}return n==null?void 0:n[e]};function Ue(e,r,n){var s,a,o,i,u;r==null&&(r=100);function c(){var x=Date.now()-i;x<r&&x>=0?s=setTimeout(c,r-x):(s=null,n||(u=e.apply(o,a),o=a=null))}var h=function(){o=this,a=arguments,i=Date.now();var x=n&&!s;return s||(s=setTimeout(c,r)),x&&(u=e.apply(o,a),o=a=null),u};return h.clear=function(){s&&(clearTimeout(s),s=null)},h.flush=function(){s&&(u=e.apply(o,a),o=a=null,clearTimeout(s),s=null)},h}Ue.debounce=Ue;var wr=Ue;const ut=t.getDefaultExportFromCjs(wr);function _r(e){let{debounce:r,scroll:n,polyfill:s,offsetSize:a}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=s||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[i,u]=t.h({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=t._$1({element:null,scrollContainers:null,resizeObserver:null,lastBounds:i}),h=r?typeof r=="number"?r:r.scroll:null,x=r?typeof r=="number"?r:r.resize:null,y=t._$1(!1);t.p(()=>(y.current=!0,()=>void(y.current=!1)));const[p,_,v]=t.F(()=>{const g=()=>{if(!c.current.element)return;const{left:L,top:O,width:M,height:se,bottom:te,right:he,x:U,y:X}=c.current.element.getBoundingClientRect(),j={left:L,top:O,width:M,height:se,bottom:te,right:he,x:U,y:X};c.current.element instanceof HTMLElement&&a&&(j.height=c.current.element.offsetHeight,j.width=c.current.element.offsetWidth),Object.freeze(j),y.current&&!Er(c.current.lastBounds,j)&&u(c.current.lastBounds=j)};return[g,x?ut(g,x):g,h?ut(g,h):g]},[u,a,h,x]);function A(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(g=>g.removeEventListener("scroll",v,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function S(){c.current.element&&(c.current.resizeObserver=new o(v),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(g=>g.addEventListener("scroll",v,{capture:!0,passive:!0})))}const E=g=>{!g||g===c.current.element||(A(),c.current.element=g,c.current.scrollContainers=Lt(g),S())};return Sr(v,!!n),kr(_),t.p(()=>{A(),S()},[n,v,_]),t.p(()=>A,[]),[E,i,p]}function kr(e){t.p(()=>{const r=e;return window.addEventListener("resize",r),()=>void window.removeEventListener("resize",r)},[e])}function Sr(e,r){t.p(()=>{if(r){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,r])}function Lt(e){const r=[];if(!e||e===document.body)return r;const{overflow:n,overflowX:s,overflowY:a}=window.getComputedStyle(e);return[n,s,a].some(o=>o==="auto"||o==="scroll")&&r.push(e),[...r,...Lt(e.parentElement)]}const Cr=["x","y","top","bottom","left","right","width","height"],Er=(e,r)=>Cr.every(n=>e[n]===r[n]),ie=({class:e,...r})=>{const{t:n}=t.useTranslation();return t.o("button",{class:t.clsx("bg-accent-9 active:bg-accent-10 pointer-coarse:touch-hitbox fr flex-shrink-0 rounded-full p-2 text-white transition-all disabled:cursor-not-allowed disabled:opacity-50",e),type:"submit",...r,children:t.o("svg",{class:"block",width:"16",height:"16",viewBox:"0 0 16 16",fill:"transparent",stroke:"currentColor","stroke-linecap":"round","stroke-width":"2",children:[t.o("title",{children:n("send")}),t.o("path",{d:"M3.5 7.5L8 3L12.5 7.5"}),t.o("path",{d:"M8 4V13"})]})})},Ar=25,Ke=t.a({instant:()=>{},smooth:()=>{}}),$={onSubmitSuccessFn$:t.a(()=>{}),isBotTyping$:t.a(!1),scrollToEnd:{instant:()=>Ke.value.instant(),smooth:()=>Ke.value.smooth()}},Tr=()=>{const e=t._$1(null);t.y(()=>{Ke.value={instant:()=>{var n;return(n=e.current)==null?void 0:n.scrollTo({top:e.current.scrollHeight,behavior:"instant"})},smooth:()=>{e.current&&e.current.scrollHeight-e.current.scrollTop<=e.current.clientHeight*2&&e.current.scrollTo({top:e.current.scrollHeight,behavior:"smooth"})}}},[e]);const r=t.F(()=>({addToSubmissions:(s,a)=>t.store.setSubmission(s,a),send:async({message:s,signal:a,groupId:o})=>{if(await t.N(s).with({author:"bot",type:"text"},async i=>{if(a!=null&&a.aborted)throw new t.AbortedError;$.isBotTyping$.value=!0;const u=Math.min(Math.max(20,i.text.length),100)*Ar;await new Promise(c=>setTimeout(c,u,{signal:a})),$.isBotTyping$.value=!1}).otherwise(async()=>{}),a!=null&&a.aborted)throw new t.AbortedError;t.store.addMessage(s,o)},input:({input:s,signal:a})=>{if(a!=null&&a.aborted)throw new t.AbortedError;return t.store.setInput(s),new Promise(o=>{const i=u=>{if(a!=null&&a.aborted)throw new t.AbortedError;t.store.setInput(void 0),s.key&&t.store.setSubmission(s.key,u),o(u)};$.onSubmitSuccessFn$.value=i})}}),[]);return{chatRef:e,chatService:r}},fe=({error:e})=>!e||!e.message?null:t.o("div",{role:"alert",class:"text-error-11 flex max-w-full items-center gap-1 overflow-hidden rounded-full px-2 py-2",children:[t.o("svg",{class:"text-error-9 h-4 w-4",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.o("circle",{cx:"8",cy:"8",r:"6.3",stroke:"currentColor","stroke-width":"1.4"}),t.o("rect",{x:"7",y:"4",width:"2",height:"5",fill:"currentColor"}),t.o("rect",{x:"7",y:"10",width:"2",height:"2",fill:"currentColor"})]}),t.o("p",{class:"truncate pr-1 text-sm",children:e.message})]}),le=({class:e,...r})=>{const{t:n}=t.useTranslation();return t.o("button",{type:"button",class:t.clsx("fr text-neutral-9 flex flex-shrink-0 items-center justify-center gap-1 rounded-full py-[6px] pl-2 pr-3 text-sm underline-offset-2 transition-all",e),...r,children:[t.o("svg",{"aria-hidden":!0,class:"block",width:"16",height:"16",viewBox:"0 0 16 16",fill:"transparent",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.5",children:[t.o("title",{children:n("skip")}),t.o("path",{d:"M3.25 11.25A5 5 0 0 1 12 7"}),t.o("path",{d:"M13.25 4.5V8.25H9.5"})]}),n("skip")]})},Ge={Afghanistan:"93",Albania:"355",Algeria:"213","American Samoa":"1 684",Andorra:"376",Angola:"244",Anguilla:"1 264",Antarctica:"672","Antigua and Barbuda":"1 268",Argentina:"54",Armenia:"374",Aruba:"297",Australia:"61",Austria:"43",Azerbaijan:"994",Bahrain:"973",Bangladesh:"880",Barbados:"1 246",Belarus:"375",Belgium:"32",Belize:"501",Benin:"229",Bermuda:"1 441",Bhutan:"975",Bolivia:"591","Bosnia and Herzegovina":"387",Botswana:"267","Bouvet Island":"47",Brazil:"55","British Indian Ocean Territory":"246","British Virgin Islands":"1 284",Brunei:"673",Bulgaria:"359","Burkina Faso":"226",Burundi:"257","Cabo Verde":"238",Cambodia:"855",Cameroon:"237",Canada:"1","Caribbean Netherlands":"599","Cayman Islands":"1 345","Central African Republic":"236",Chad:"235",Chile:"56",China:"86","Christmas Island":"61","Cocos (Keeling) Islands":"61",Colombia:"57",Comoros:"269","Cook Islands":"682","Costa Rica":"506",Croatia:"385",Cuba:"53",Curaçao:"599",Cyprus:"357",Czechia:"420","Côte d'Ivoire":"225","Democratic Republic of the Congo":"243",Denmark:"45",Djibouti:"253","Dominican Republic":"1 809",Ecuador:"593",Egypt:"20","El Salvador":"503","Equatorial Guinea":"240",Eritrea:"291",Estonia:"372",Eswatini:"268",Ethiopia:"251","Falkland Islands (Islas Malvinas)":"500","Faroe Islands":"298",Fiji:"679",Finland:"358",France:"33","French Guiana":"594","French Polynesia":"689","French Southern and Antarctic Lands":"262",Gabon:"241",Georgia:"995",Germany:"49",Ghana:"233",Gibraltar:"350",Greece:"30",Greenland:"299",Grenada:"1 473",Guadeloupe:"590",Guam:"1 671",Guatemala:"502",Guernsey:"44",Guinea:"224","Guinea-Bissau":"245",Guyana:"592",Haiti:"509",Honduras:"504","Hong Kong":"852",Hungary:"36",Iceland:"354",India:"91",Indonesia:"62",Iran:"98",Iraq:"964",Ireland:"353","Isle of Man":"44",Israel:"972",Italy:"39",Jamaica:"1 876",Japan:"81",Jersey:"44",Jordan:"962",Kazakhstan:"7",Kenya:"254",Kiribati:"686",Kosovo:"383",Kuwait:"965",Kyrgyzstan:"996",Laos:"856",Latvia:"371",Lebanon:"961",Lesotho:"266",Liberia:"231",Libya:"218",Liechtenstein:"423",Lithuania:"370",Luxembourg:"352",Macao:"853",Madagascar:"261",Malawi:"265",Malaysia:"60",Maldives:"960",Mali:"223",Malta:"356","Marshall Islands":"692",Martinique:"596",Mauritania:"222",Mauritius:"230",Mayotte:"262",Mexico:"52",Micronesia:"691",Moldova:"373",Monaco:"377",Mongolia:"976",Montenegro:"382",Montserrat:"1 664",Morocco:"212",Mozambique:"258","Myanmar (Burma)":"95",Namibia:"264",Nauru:"674",Nepal:"977",Netherlands:"31","New Caledonia":"687","New Zealand":"64",Nicaragua:"505",Niger:"227",Nigeria:"234",Niue:"683","Norfolk Island":"672","North Korea":"850","North Macedonia":"389","Northern Mariana Islands":"1 670",Norway:"47",Oman:"968",Pakistan:"92",Palau:"680",Palestine:"970",Panama:"507","Papua New Guinea":"675",Paraguay:"595",Peru:"51",Philippines:"63","Pitcairn Islands":"64",Poland:"48",Portugal:"351","Puerto Rico":"1 787",Qatar:"974",Romania:"40",Russia:"7",Rwanda:"250",Réunion:"262","Saint Barthélemy":"590","Saint Helena, Ascension and Tristan da Cunha":"290","Saint Kitts and Nevis":"1 869","Saint Lucia":"1 758","Saint Martin":"590","Saint Pierre and Miquelon":"508","Saint Vincent and the Grenadines":"1 784",Samoa:"685","San Marino":"378","Saudi Arabia":"966",Senegal:"221",Serbia:"381",Seychelles:"248","Sierra Leone":"232",Singapore:"65","Sint Maarten":"1 721",Slovakia:"421",Slovenia:"386","Solomon Islands":"677",Somalia:"252","South Africa":"27","South Georgia and the South Sandwich Islands":"500","South Korea":"82","South Sudan":"211",Spain:"34","Sri Lanka":"94",Sudan:"249",Suriname:"597","Svalbard and Jan Mayen":"47",Sweden:"46",Switzerland:"41",Syria:"963","São Tomé and Príncipe":"239",Taiwan:"886",Tajikistan:"992",Tanzania:"255",Thailand:"66","The Bahamas":"1 242","The Gambia":"220","Timor-Leste":"670",Togo:"228",Tokelau:"690",Tonga:"676","Trinidad and Tobago":"1 868",Tunisia:"216",Turkmenistan:"993","Turks and Caicos Islands":"1 649",Tuvalu:"688",Türkiye:"90","U.S. Virgin Islands":"1 340",Uganda:"256",Ukraine:"380","United Arab Emirates":"971","United Kingdom":"44","United States":"1","United States Minor Outlying Islands":"1",Uruguay:"598",Uzbekistan:"998",Vanuatu:"678","Vatican City":"379",Venezuela:"58",Vietnam:"84","Wallis and Futuna":"681","Western Sahara":"212",Yemen:"967",Zambia:"260",Zimbabwe:"263","Åland Islands":"358"},ye=t.cva("outline-divider ease-expo-out placeholder:text-neutral-10 text-neutral-12 focus-visible:outline-accent-7 caret-accent-9 bg-lowest py-1 text-base outline outline-2 transition-all",{variants:{optional:{true:"pr-16 pl-3",false:"pl-3 pr-3"}},defaultVariants:{optional:!1}}),Ir="https://api.mapbox.com/search/searchbox/v1/suggest",Vr="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Fr=e=>atob(e).split("").reverse().join(""),Y=t.object({name:t.string()}),Lr=t.object({suggestions:t.array(t.object({full_address:t.optional(t.string()),place_formatted:t.optional(t.string()),name:t.optional(t.string()),mapbox_id:t.string(),context:t.partial(t.object({address:Y,street:Y,neighborhood:Y,locality:Y,district:Y,place:Y,region:Y,postcode:Y,country:Y}))}))}),Mr=({logger:e,t:r})=>t.F(()=>{var s;const n=(s=t.store.current$.peek().flow)==null?void 0:s.data.flowSessionId;return n?{enabled:!0,getPredictions:async a=>{const o=new URL(Ir);o.searchParams.set("q",a),o.searchParams.set("session_token",n),o.searchParams.set("access_token",Fr(Vr));const i=await fetch(o);if(!i.ok)return e.error("Failed to get address details",i),{ok:!1,error:r("address_error")};const u=t.safeParse(Lr,await i.json());if(u.success===!1)return e.error("Failed to parse address details",u.issues),{ok:!1,error:r("address_error")};const{suggestions:c}=u.output;return{ok:!0,data:c.map(h=>{var x,y,p,_,v,A,S,E,g;return{label:h.full_address??h.place_formatted??h.name??h.mapbox_id,id:h.mapbox_id,address:{line1:((x=h.context.address)==null?void 0:x.name)??((y=h.context.street)==null?void 0:y.name),line2:void 0,line3:((p=h.context.neighborhood)==null?void 0:p.name)??((_=h.context.locality)==null?void 0:_.name),city:((v=h.context.place)==null?void 0:v.name)??((A=h.context.district)==null?void 0:A.name),state:(S=h.context.region)==null?void 0:S.name,postcode:(E=h.context.postcode)==null?void 0:E.name,country:(g=h.context.country)==null?void 0:g.name}}})}}}:{enabled:!1}},[e,r]),ct=e=>{const{t:r}=t.useTranslation();return t.o("button",{type:"button",class:"text-neutral-10 hover:bg-neutral-4 hover:text-neutral-12 hover:border-neutral-5 flex items-center gap-1 rounded-[18px] border border-solid border-transparent px-3 py-1 pl-1.5 text-sm transition-colors",...e,children:[t.o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",stroke:"currentColor","stroke-width":"1.5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.o("path",{d:"M10 3L5 8L10 13"})}),t.o("span",{children:r("back")})]})},Nr=({input:e,onSubmitSuccess:r,logger:n})=>{const{t:s}=t.useTranslation(),[a,o]=t.h(),[i,u]=t.h([]),{enabled:c,getPredictions:h}=Mr({logger:n,t:s}),[x,y]=t.h(c?"query":"manual"),[p,_]=t.h(""),[v,A]=t.h(),S=E=>{t.invariant(c,"Query state should not be enabled"),E=E.trim(),E!==(p==null?void 0:p.trim())&&(_(E),E===""&&u([]),A(void 0),h(E).then(g=>{if(g.ok===!1){u([]),A(g.error);return}u(g.data)}))};switch(x){case"query":return t.invariant(c,"Query state should not be enabled"),t.o(Rr,{input:e,onSkip:()=>r(null),onAddressSelect:E=>{if(E===""){o(void 0),y("manual");return}const g=i.find(L=>L.id===E);g&&(o(g.address),y("details"))},onAddressSearch:E=>{S(E)},suggestions:i,query:p,error:v});case"details":return t.invariant(a!==void 0),t.o(ft,{input:e,logger:n,onSubmitSuccess:r,addressFields:a,actions:t.o(ct,{onClick:()=>{y("query")}})});case"manual":return t.o(ft,{logger:n,input:e,onSubmitSuccess:r,addressFields:{},actions:c?t.o(ct,{onClick:()=>{y("query")}}):void 0})}},Rr=({input:e,onSkip:r,suggestions:n,onAddressSelect:s,query:a,onAddressSearch:o,error:i})=>{const{t:u}=t.useTranslation(),c=t._$1(null);return t.y(()=>{c.current&&(c.current.focus(),c.current.select())},[]),t.o(t.k,{children:[t.o("form",{noValidate:!0,onSubmit:h=>{h.preventDefault();const y=new FormData(h.currentTarget).get("address");typeof y=="string"&&o(y)},class:"flex gap-1 p-2.5",children:[t.o("div",{class:"group relative flex-1",children:[t.o("input",{ref:c,name:"address",id:"chat-address",autocomplete:"address-line1 country-name postal-code",autoFocus:!0,placeholder:e.config.placeholder||u("address_search"),defaultValue:a,class:ye({optional:!!e.config.optional,className:"w-full rounded-full"})}),t.o("button",{type:"submit",class:"touch-hitbox text-neutral-12 hover:bg-neutral-3 fr absolute bottom-0 right-0 top-0 flex cursor-pointer items-center gap-1 rounded-full px-3 transition-all",children:t.o("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.o("g",{id:"inploi",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",strokeWidth:"1.5",children:[t.o("circle",{cx:"7",cy:"7",r:"4"}),t.o("path",{d:"M10 10L13 13"})]}),t.o("span",{class:"sr-only",children:u("search")})]})})]}),e.config.optional&&t.o(le,{class:"",onClick:r})]}),i?t.o(fe,{error:{message:i}}):null,t.o("ul",{children:[n.map(h=>t.o("li",{children:t.o("button",{class:"text-neutral-11 fr hover:bg-neutral-3 focus-visible:bg-neutral-3 hover:text-neutral-12 border-b-neutral-3 flex w-full items-center border border-b border-solid border-transparent px-4 py-3 text-sm transition-colors duration-100",onClick:()=>{s(h.id)},children:[t.o("span",{class:"flex-grow",children:h.label}),t.o("svg",{class:"flex-none",width:"16",height:"16",viewBox:"0 0 16 16",stroke:"currentColor","stroke-width":"1.5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.o("path",{d:"M6 3L11 8L6 13"})})]})},h.id)),t.o("li",{children:t.o("button",{class:"text-neutral-11 fr hover:bg-neutral-3 focus-visible:bg-neutral-3 hover:text-neutral-12 border-b-neutral-3 flex w-full items-center border border-b border-solid border-transparent px-4 py-3 text-sm transition-colors duration-100",onClick:()=>{s("")},children:t.o("span",{class:"flex-grow",children:u("address_manual")})})},"")]})]})},Dr={line1:"Line 1",line2:"Line 2",line3:"Line 3",city:"City",state:"State",postcode:"Postcode",country:"Country"},dt=["line1","line2","line3","city","state","postcode","country"],ft=({addressFields:e,onSubmitSuccess:r,actions:n,input:s})=>{const a=t._$1(null);t.y(()=>{if(a.current){const i=a.current.querySelector("input");i&&(i.focus(),i.select())}},[]);const o=Object.keys(Ge);return t.o("form",{class:"bg-neutral-1/90 flex flex-col justify-end gap-2 p-2",onSubmit:i=>{const u=new FormData(i.currentTarget),c=Object.fromEntries(u.entries());r({type:"address",value:c})},children:[t.o("div",{class:"bg-neutral-3 border-neutral-5 grid items-center gap-1.5 rounded-2xl border pb-2 pl-4 pr-3 pt-3 [grid-template-columns:min-content_1fr]",ref:a,children:dt.map((i,u)=>{const c=`isdk_${i}`,h=s.config.keys[i];return h?t.o(t.k,{children:[t.o("label",{for:c,class:"text-neutral-9 [&:has(+*>input:focus)]:text-neutral-11 w-24 pb-2 text-xs uppercase leading-3 tracking-widest transition-colors",children:Dr[i]}),t.o("div",{class:"flex flex-col items-stretch gap-1.5",children:[i==="country"?t.o("div",{class:"relative",children:[t.o("select",{class:"text-neutral-12 hover:bg-neutral-4 placeholder:text-neutral-8 focus:bg-neutral-5 w-full flex-1 appearance-none rounded-lg border-solid bg-transparent bg-none px-3 py-1.5 text-base transition-colors focus:outline-none",name:h,id:c,defaultValue:e[i],required:!0,children:[e.country&&!o.includes(e.country)?t.o("option",{value:e[i],children:e[i]}):t.o("option",{value:"",children:"Select a country"}),o.map(x=>t.o("option",{value:x,children:x},x))]}),t.o("svg",{class:"text-neutral-12 absolute bottom-2.5 right-2 flex items-center justify-center",width:"16",height:"16",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.o("path",{d:"M4 6.5L8 10.5L12 6.5"})})]}):t.o("input",{autoFocus:u===0?!0:void 0,class:"text-neutral-12 hover:bg-neutral-4 placeholder:text-neutral-8 focus:bg-neutral-5 flex-1 rounded-lg border-solid bg-transparent px-3 py-1.5 text-base transition-colors autofill:shadow-[inset_0_0_0_1000px_hsl(210_16.7%_97.6%)] focus:outline-none",name:h,id:c,defaultValue:e[i],required:!0}),u===dt.length-1?t.o("hr",{class:"m-0 w-full border-b border-b-transparent"}):t.o("hr",{class:"border-b-neutral-5 m-0 w-full border-b border-solid"})]})]}):null})}),t.o("div",{class:"flex w-full flex-1 ",children:[t.o("div",{class:"flex-grow",children:n}),t.o(ie,{class:"flex items-center justify-center"})]})]})},He=()=>{const e=t._$1(null);return t.p(()=>{var r;(r=e.current)==null||r.focus()},[]),e},Mt=["true","false"],Or=t.picklist(Mt),Br="answer",Nt="flex items-center gap-2 p-2.5",Rt=t.k$1(({label:e,...r},n)=>t.o("button",{class:"bg-lowest ease-expo-out ring-divider text-neutral-12 active:ring-accent-7 active:bg-accent-2 active:text-accent-11 fr block w-full overflow-hidden rounded-2xl px-2.5 py-2.5 ring-2 transition-all selection:bg-transparent",...r,ref:n,children:t.o("p",{class:"truncate text-center text-base",children:e})})),Pr=({input:e,onSubmitSuccess:r})=>{const n=He();return t.o("form",{noValidate:!0,class:"",onSubmit:s=>{s.preventDefault();const a=t.getFormSubmitter(s).value,o=t.parse(Or,a);r({type:"boolean",value:o==="true"})},children:[t.o("ul",{class:Nt,children:Mt.map((s,a)=>t.o("li",{class:"flex-1",children:t.o(Rt,{ref:a===0?n:null,type:"submit",name:Br,value:s,label:e.config.labels[s]},s)}))}),e.config.optional&&t.o("div",{class:"px-2 pb-2",children:t.o(le,{class:"w-full",type:"button",onClick:()=>r(null)})})]})},$r=e=>new Promise((r,n)=>{const s=new FileReader;s.readAsDataURL(e),s.onload=()=>s.result?r(s.result.toString()):n("No result from reader"),s.onerror=n}),jr=e=>e.reduce((r,n)=>r+n.sizeKb,0),zr=t.isSubmissionOfType("file"),ht=3,qr=({file:e,class:r,...n})=>{const s=e.name.split(".").pop(),a=e.name.replace(new RegExp(`.${s}$`),"");return t.o("div",{class:t.clsx("bg-accent-1 outline-accent-4 flex max-w-full gap-2 overflow-hidden rounded-lg px-3 py-2 text-sm outline",r),...n,children:[t.o("p",{"aria-label":"File name",class:"text-accent-12 flex flex-grow overflow-hidden",children:[t.o("span",{class:"block truncate",children:a}),t.o("span",{children:[".",s]})]}),t.o("p",{"aria-label":"File size",class:"text-accent-11",children:t.kbToReadableSize(e.sizeKb)})]})},pt=({class:e,...r})=>t.o("li",{class:t.clsx("outline-neutral-6 text-neutral-11 bg-neutral-1 block rounded-md px-1 py-0.5 text-xs outline outline-1",e),...r}),Dt=e=>{const r=e.split(".").pop();if(!r)throw new Error("No file extension found");return r?"."+r:""},Ur=({allowedExtensions:e,files:r})=>{const n=e.map(s=>s.toLowerCase());return r.every(s=>n.includes(Dt(s.name).toLowerCase()))},Kr=(e,r)=>{const n=Dt(e);return`${e.replace(new RegExp(`${n}$`),"").slice(0,r)}${n}`},Gr=({input:e,onSubmitSuccess:r})=>{var y;const n=(y=t.store.current$.value.flow)==null?void 0:y.data.submissions[e.key],[s,a]=t.h(zr(n)?n.value:[]),[o,i]=t.h(),u=s.length-ht,c=jr(s),h=He(),{t:x}=t.useTranslation();return t.o("form",{class:"flex flex-col gap-1 p-2.5",onSubmit:p=>(p.preventDefault(),i(void 0),s.length===0?i({type:"required",message:x("validation_file")}):e.config.extensions.length>0&&!Ur({allowedExtensions:e.config.extensions,files:s})?i({type:"validate",message:`${x("validation_file_ext",{ext:e.config.extensions.join(", ")})}`}):e.config.fileSizeLimitKib&&c>e.config.fileSizeLimitKib?i({type:"max",message:`File size exceeds limit of ${t.kbToReadableSize(e.config.fileSizeLimitKib)}`}):e.config.allowMultiple===!1&&s.length>1?i({type:"invalid",message:x("validation_file_max",{count:1})}):r({type:"file",value:s})),children:[t.o("div",{class:"flex items-center gap-2",children:[t.o("label",{ref:h,for:"dropzone-file",class:"border-neutral-8 bg-neutral-2 flex h-48 w-full cursor-pointer flex-col items-center justify-center overflow-hidden rounded-2xl border border-dashed p-4",children:[s.length>0?t.o(t.k,{children:[t.o("ul",{class:"flex max-w-full flex-wrap justify-center gap-1 overflow-hidden p-1",children:[s.slice(0,ht).map(p=>{const _=p.name.split(".").pop(),v=p.name.replace(new RegExp(`.${_}$`),"");return t.o(pt,{class:"flex overflow-hidden",children:[t.o("span",{class:"block truncate",children:v}),t.o("span",{children:[".",_]})]})}),u>0?t.o(pt,{children:["+",u," file",u!==1?"s":""]}):null]}),t.o("p",{class:"text-neutral-11 text-xs",children:[t.kbToReadableSize(c)," ",s.length>1?"total":""]})]}):t.o("div",{class:"flex flex-col justify-center gap-4 pb-6 pt-5",children:[t.o("header",{class:"flex flex-col items-center gap-0",children:[t.o("svg",{class:"text-neutral-11 mb-1 h-8 w-8","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16",children:t.o("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"})}),t.o("p",{class:"text-neutral-12 tracking-[-0.01em]",children:x("upload_file",{count:e.config.allowMultiple?2:1})}),e.config.fileSizeLimitKib?t.o("p",{class:"text-neutral-10 text-xs",children:["(",x("file_max_size",{size:t.kbToReadableSize(e.config.fileSizeLimitKib)}),")"]}):null]}),t.o("aside",{class:"flex flex-col items-center gap-2",children:[t.o("p",{id:"accepted-filetypes",class:"sr-only",children:x("file_extensions")}),t.o("ul",{"aria-describedby":"accepted-filetypes",class:"flex flex-wrap justify-center gap-2",children:e.config.extensions.map(p=>t.o("li",{class:"ring-lowest outline-neutral-6 text-neutral-9 bg-neutral-1 rounded-md px-1 py-0.5 text-[11px] uppercase tracking-wide outline outline-1 ring-2",children:p.replace(".","")}))})]})]}),t.o("input",{id:"dropzone-file",onInput:async p=>{t.invariant(p.target instanceof HTMLInputElement);const _=p.target.files?Array.from(p.target.files):[],v=await Promise.allSettled(_.map(async S=>{const E=await $r(S);return{name:Kr(S.name,42),data:E,sizeKb:S.size/1e3}}));if(v.some(({status:S})=>S==="rejected"))return i({type:"invalid",message:"Invalid file"});const A=v.map(S=>S.status==="fulfilled"?S.value:null).filter(Boolean);a(A)},multiple:e.config.allowMultiple,type:"file",class:"sr-only"})]}),t.o("div",{class:"flex h-full flex-col items-center gap-2",children:[t.o(ie,{disabled:s.length===0}),e.config.optional&&t.o(le,{onClick:()=>r(null)})]})]}),t.o(fe,{error:o})]})};var ve=e=>e.type==="checkbox",de=e=>e instanceof Date,z=e=>e==null;const Ot=e=>typeof e=="object";var B=e=>!z(e)&&!Array.isArray(e)&&Ot(e)&&!de(e),Hr=e=>B(e)&&e.target?ve(e.target)?e.target.checked:e.target.value:e,Wr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Jr=(e,r)=>e.has(Wr(r)),Zr=e=>{const r=e.constructor&&e.constructor.prototype;return B(r)&&r.hasOwnProperty("isPrototypeOf")},We=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ee(e){let r;const n=Array.isArray(e);if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(We&&(e instanceof Blob||e instanceof FileList))&&(n||B(e)))if(r=n?[]:{},!n&&!Zr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=ee(e[s]));else return e;return r}var xe=e=>Array.isArray(e)?e.filter(Boolean):[],R=e=>e===void 0,w=(e,r,n)=>{if(!r||!B(e))return n;const s=xe(r.split(/[,[\].]+?/)).reduce((a,o)=>z(a)?a:a[o],e);return R(s)||s===e?R(e[r])?n:e[r]:s},re=e=>typeof e=="boolean";const mt={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},H={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Q={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};t.Cn.createContext(null);var Xr=(e,r,n,s=!0)=>{const a={defaultValues:r._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return r._proxyFormState[i]!==H.all&&(r._proxyFormState[i]=!s||H.all),n&&(n[i]=!0),e[i]}});return a},G=e=>B(e)&&!Object.keys(e).length,Yr=(e,r,n,s)=>{n(e);const{name:a,...o}=e;return G(o)||Object.keys(o).length>=Object.keys(r).length||Object.keys(o).find(i=>r[i]===(!s||H.all))},Be=e=>Array.isArray(e)?e:[e];function Qr(e){const r=t.Cn.useRef(e);r.current=e,t.Cn.useEffect(()=>{const n=!e.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}var J=e=>typeof e=="string",en=(e,r,n,s,a)=>J(e)?(s&&r.watch.add(e),w(n,e,a)):Array.isArray(e)?e.map(o=>(s&&r.watch.add(o),w(n,o))):(s&&(r.watchAll=!0),n),Je=e=>/^\w*$/.test(e),Bt=e=>xe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function V(e,r,n){let s=-1;const a=Je(r)?[r]:Bt(r),o=a.length,i=o-1;for(;++s<o;){const u=a[s];let c=n;if(s!==i){const h=e[u];c=B(h)||Array.isArray(h)?h:isNaN(+a[s+1])?{}:[]}e[u]=c,e=e[u]}return e}var Pt=(e,r,n,s,a)=>r?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:a||!0}}:{},gt=e=>({isOnSubmit:!e||e===H.onSubmit,isOnBlur:e===H.onBlur,isOnChange:e===H.onChange,isOnAll:e===H.all,isOnTouch:e===H.onTouched}),bt=(e,r,n)=>!n&&(r.watchAll||r.watch.has(e)||[...r.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Se=(e,r,n,s)=>{for(const a of n||Object.keys(e)){const o=w(e,a);if(o){const{_f:i,...u}=o;if(i){if(i.refs&&i.refs[0]&&r(i.refs[0],a)&&!s)break;if(i.ref&&r(i.ref,i.name)&&!s)break}else B(u)&&Se(u,r)}}};var tn=(e,r,n)=>{const s=xe(w(e,n));return V(s,"root",r[n]),V(e,n,s),e},Ze=e=>e.type==="file",ne=e=>typeof e=="function",Ee=e=>{if(!We)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Ce=e=>J(e),Xe=e=>e.type==="radio",Ae=e=>e instanceof RegExp;const yt={value:!1,isValid:!1},vt={value:!0,isValid:!0};var $t=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!R(e[0].attributes.value)?R(e[0].value)||e[0].value===""?vt:{value:e[0].value,isValid:!0}:vt:yt}return yt};const xt={isValid:!1,value:null};var jt=e=>Array.isArray(e)?e.reduce((r,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:r,xt):xt;function wt(e,r,n="validate"){if(Ce(e)||Array.isArray(e)&&e.every(Ce)||re(e)&&!e)return{type:n,message:Ce(e)?e:"",ref:r}}var ce=e=>B(e)&&!Ae(e)?e:{value:e,message:""},_t=async(e,r,n,s,a)=>{const{ref:o,refs:i,required:u,maxLength:c,minLength:h,min:x,max:y,pattern:p,validate:_,name:v,valueAsNumber:A,mount:S,disabled:E}=e._f,g=w(r,v);if(!S||E)return{};const L=i?i[0]:o,O=I=>{s&&L.reportValidity&&(L.setCustomValidity(re(I)?"":I||""),L.reportValidity())},M={},se=Xe(o),te=ve(o),he=se||te,U=(A||Ze(o))&&R(o.value)&&R(g)||Ee(o)&&o.value===""||g===""||Array.isArray(g)&&!g.length,X=Pt.bind(null,v,n,M),j=(I,T,N,q=Q.maxLength,K=Q.minLength)=>{const W=I?T:N;M[v]={type:I?q:K,message:W,ref:o,...X(I?q:K,W)}};if(a?!Array.isArray(g)||!g.length:u&&(!he&&(U||z(g))||re(g)&&!g||te&&!$t(i).isValid||se&&!jt(i).isValid)){const{value:I,message:T}=Ce(u)?{value:!!u,message:u}:ce(u);if(I&&(M[v]={type:Q.required,message:T,ref:L,...X(Q.required,T)},!n))return O(T),M}if(!U&&(!z(x)||!z(y))){let I,T;const N=ce(y),q=ce(x);if(!z(g)&&!isNaN(g)){const K=o.valueAsNumber||g&&+g;z(N.value)||(I=K>N.value),z(q.value)||(T=K<q.value)}else{const K=o.valueAsDate||new Date(g),W=we=>new Date(new Date().toDateString()+" "+we),ae=o.type=="time",pe=o.type=="week";J(N.value)&&g&&(I=ae?W(g)>W(N.value):pe?g>N.value:K>new Date(N.value)),J(q.value)&&g&&(T=ae?W(g)<W(q.value):pe?g<q.value:K<new Date(q.value))}if((I||T)&&(j(!!I,N.message,q.message,Q.max,Q.min),!n))return O(M[v].message),M}if((c||h)&&!U&&(J(g)||a&&Array.isArray(g))){const I=ce(c),T=ce(h),N=!z(I.value)&&g.length>+I.value,q=!z(T.value)&&g.length<+T.value;if((N||q)&&(j(N,I.message,T.message),!n))return O(M[v].message),M}if(p&&!U&&J(g)){const{value:I,message:T}=ce(p);if(Ae(I)&&!g.match(I)&&(M[v]={type:Q.pattern,message:T,ref:o,...X(Q.pattern,T)},!n))return O(T),M}if(_){if(ne(_)){const I=await _(g,r),T=wt(I,L);if(T&&(M[v]={...T,...X(Q.validate,T.message)},!n))return O(T.message),M}else if(B(_)){let I={};for(const T in _){if(!G(I)&&!n)break;const N=wt(await _[T](g,r),L,T);N&&(I={...N,...X(T,N.message)},O(N.message),n&&(M[v]=I))}if(!G(I)&&(M[v]={ref:L,...I},!n))return M}}return O(!0),M};function rn(e,r){const n=r.slice(0,-1).length;let s=0;for(;s<n;)e=R(e)?s++:e[r[s++]];return e}function nn(e){for(const r in e)if(e.hasOwnProperty(r)&&!R(e[r]))return!1;return!0}function P(e,r){const n=Array.isArray(r)?r:Je(r)?[r]:Bt(r),s=n.length===1?e:rn(e,n),a=n.length-1,o=n[a];return s&&delete s[o],a!==0&&(B(s)&&G(s)||Array.isArray(s)&&nn(s))&&P(e,n.slice(0,-1)),e}function Pe(){let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}}var Te=e=>z(e)||!Ot(e);function oe(e,r){if(Te(e)||Te(r))return e===r;if(de(e)&&de(r))return e.getTime()===r.getTime();const n=Object.keys(e),s=Object.keys(r);if(n.length!==s.length)return!1;for(const a of n){const o=e[a];if(!s.includes(a))return!1;if(a!=="ref"){const i=r[a];if(de(o)&&de(i)||B(o)&&B(i)||Array.isArray(o)&&Array.isArray(i)?!oe(o,i):o!==i)return!1}}return!0}var zt=e=>e.type==="select-multiple",sn=e=>Xe(e)||ve(e),$e=e=>Ee(e)&&e.isConnected,qt=e=>{for(const r in e)if(ne(e[r]))return!0;return!1};function Ie(e,r={}){const n=Array.isArray(e);if(B(e)||n)for(const s in e)Array.isArray(e[s])||B(e[s])&&!qt(e[s])?(r[s]=Array.isArray(e[s])?[]:{},Ie(e[s],r[s])):z(e[s])||(r[s]=!0);return r}function Ut(e,r,n){const s=Array.isArray(e);if(B(e)||s)for(const a in e)Array.isArray(e[a])||B(e[a])&&!qt(e[a])?R(r)||Te(n[a])?n[a]=Array.isArray(e[a])?Ie(e[a],[]):{...Ie(e[a])}:Ut(e[a],z(r)?{}:r[a],n[a]):n[a]=!oe(e[a],r[a]);return n}var je=(e,r)=>Ut(e,r,Ie(r)),Kt=(e,{valueAsNumber:r,valueAsDate:n,setValueAs:s})=>R(e)?e:r?e===""?NaN:e&&+e:n&&J(e)?new Date(e):s?s(e):e;function ze(e){const r=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):r.disabled))return Ze(r)?r.files:Xe(r)?jt(e.refs).value:zt(r)?[...r.selectedOptions].map(({value:n})=>n):ve(r)?$t(e.refs).value:Kt(R(r.value)?e.ref.value:r.value,e)}var an=(e,r,n,s)=>{const a={};for(const o of e){const i=w(r,o);i&&V(a,o,i._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:s}},ge=e=>R(e)?e:Ae(e)?e.source:B(e)?Ae(e.value)?e.value.source:e.value:e,on=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function kt(e,r,n){const s=w(e,n);if(s||Je(n))return{error:s,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),i=w(r,o),u=w(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};a.pop()}return{name:n}}var ln=(e,r,n,s,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(r||e):(n?s.isOnBlur:a.isOnBlur)?!e:(n?s.isOnChange:a.isOnChange)?e:!0,un=(e,r)=>!xe(w(e,r)).length&&P(e,r);const cn={mode:H.onSubmit,reValidateMode:H.onChange,shouldFocusError:!0};function dn(e={},r){let n={...cn,...e},s={submitCount:0,isDirty:!1,isLoading:ne(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},a={},o=B(n.defaultValues)||B(n.values)?ee(n.defaultValues||n.values)||{}:{},i=n.shouldUnregister?{}:ee(o),u={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h,x=0;const y={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Pe(),array:Pe(),state:Pe()},_=e.resetOptions&&e.resetOptions.keepDirtyValues,v=gt(n.mode),A=gt(n.reValidateMode),S=n.criteriaMode===H.all,E=l=>d=>{clearTimeout(x),x=setTimeout(l,d)},g=async l=>{if(y.isValid||l){const d=n.resolver?G((await U()).errors):await j(a,!0);d!==s.isValid&&p.state.next({isValid:d})}},L=l=>y.isValidating&&p.state.next({isValidating:l}),O=(l,d=[],f,k,b=!0,m=!0)=>{if(k&&f){if(u.action=!0,m&&Array.isArray(w(a,l))){const C=f(w(a,l),k.argA,k.argB);b&&V(a,l,C)}if(m&&Array.isArray(w(s.errors,l))){const C=f(w(s.errors,l),k.argA,k.argB);b&&V(s.errors,l,C),un(s.errors,l)}if(y.touchedFields&&m&&Array.isArray(w(s.touchedFields,l))){const C=f(w(s.touchedFields,l),k.argA,k.argB);b&&V(s.touchedFields,l,C)}y.dirtyFields&&(s.dirtyFields=je(o,i)),p.state.next({name:l,isDirty:T(l,d),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else V(i,l,d)},M=(l,d)=>{V(s.errors,l,d),p.state.next({errors:s.errors})},se=(l,d,f,k)=>{const b=w(a,l);if(b){const m=w(i,l,R(f)?w(o,l):f);R(m)||k&&k.defaultChecked||d?V(i,l,d?m:ze(b._f)):K(l,m),u.mount&&g()}},te=(l,d,f,k,b)=>{let m=!1,C=!1;const F={name:l};if(!f||k){y.isDirty&&(C=s.isDirty,s.isDirty=F.isDirty=T(),m=C!==F.isDirty);const D=oe(w(o,l),d);C=w(s.dirtyFields,l),D?P(s.dirtyFields,l):V(s.dirtyFields,l,!0),F.dirtyFields=s.dirtyFields,m=m||y.dirtyFields&&C!==!D}if(f){const D=w(s.touchedFields,l);D||(V(s.touchedFields,l,f),F.touchedFields=s.touchedFields,m=m||y.touchedFields&&D!==f)}return m&&b&&p.state.next(F),m?F:{}},he=(l,d,f,k)=>{const b=w(s.errors,l),m=y.isValid&&re(d)&&s.isValid!==d;if(e.delayError&&f?(h=E(()=>M(l,f)),h(e.delayError)):(clearTimeout(x),h=null,f?V(s.errors,l,f):P(s.errors,l)),(f?!oe(b,f):b)||!G(k)||m){const C={...k,...m&&re(d)?{isValid:d}:{},errors:s.errors,name:l};s={...s,...C},p.state.next(C)}L(!1)},U=async l=>n.resolver(i,n.context,an(l||c.mount,a,n.criteriaMode,n.shouldUseNativeValidation)),X=async l=>{const{errors:d}=await U(l);if(l)for(const f of l){const k=w(d,f);k?V(s.errors,f,k):P(s.errors,f)}else s.errors=d;return d},j=async(l,d,f={valid:!0})=>{for(const k in l){const b=l[k];if(b){const{_f:m,...C}=b;if(m){const F=c.array.has(m.name),D=await _t(b,i,S,n.shouldUseNativeValidation&&!d,F);if(D[m.name]&&(f.valid=!1,d))break;!d&&(w(D,m.name)?F?tn(s.errors,D,m.name):V(s.errors,m.name,D[m.name]):P(s.errors,m.name))}C&&await j(C,d,f)}}return f.valid},I=()=>{for(const l of c.unMount){const d=w(a,l);d&&(d._f.refs?d._f.refs.every(f=>!$e(f)):!$e(d._f.ref))&&Ne(l)}c.unMount=new Set},T=(l,d)=>(l&&d&&V(i,l,d),!oe(Ye(),o)),N=(l,d,f)=>en(l,c,{...u.mount?i:R(d)?o:J(l)?{[l]:d}:d},f,d),q=l=>xe(w(u.mount?i:o,l,e.shouldUnregister?w(o,l,[]):[])),K=(l,d,f={})=>{const k=w(a,l);let b=d;if(k){const m=k._f;m&&(!m.disabled&&V(i,l,Kt(d,m)),b=Ee(m.ref)&&z(d)?"":d,zt(m.ref)?[...m.ref.options].forEach(C=>C.selected=b.includes(C.value)):m.refs?ve(m.ref)?m.refs.length>1?m.refs.forEach(C=>(!C.defaultChecked||!C.disabled)&&(C.checked=Array.isArray(b)?!!b.find(F=>F===C.value):b===C.value)):m.refs[0]&&(m.refs[0].checked=!!b):m.refs.forEach(C=>C.checked=C.value===b):Ze(m.ref)?m.ref.value="":(m.ref.value=b,m.ref.type||p.values.next({name:l,values:{...i}})))}(f.shouldDirty||f.shouldTouch)&&te(l,b,f.shouldTouch,f.shouldDirty,!0),f.shouldValidate&&Me(l)},W=(l,d,f)=>{for(const k in d){const b=d[k],m=`${l}.${k}`,C=w(a,m);(c.array.has(l)||!Te(b)||C&&!C._f)&&!de(b)?W(m,b,f):K(m,b,f)}},ae=(l,d,f={})=>{const k=w(a,l),b=c.array.has(l),m=ee(d);V(i,l,m),b?(p.array.next({name:l,values:{...i}}),(y.isDirty||y.dirtyFields)&&f.shouldDirty&&p.state.next({name:l,dirtyFields:je(o,i),isDirty:T(l,m)})):k&&!k._f&&!z(m)?W(l,m,f):K(l,m,f),bt(l,c)&&p.state.next({...s}),p.values.next({name:l,values:{...i}}),!u.mount&&r()},pe=async l=>{const d=l.target;let f=d.name,k=!0;const b=w(a,f),m=()=>d.type?ze(b._f):Hr(l),C=F=>{k=Number.isNaN(F)||F===w(i,f,F)};if(b){let F,D;const _e=m(),ue=l.type===mt.BLUR||l.type===mt.FOCUS_OUT,Xt=!on(b._f)&&!n.resolver&&!w(s.errors,f)&&!b._f.deps||ln(ue,w(s.touchedFields,f),s.isSubmitted,A,v),De=bt(f,c,ue);V(i,f,_e),ue?(b._f.onBlur&&b._f.onBlur(l),h&&h(0)):b._f.onChange&&b._f.onChange(l);const Oe=te(f,_e,ue,!1),Yt=!G(Oe)||De;if(!ue&&p.values.next({name:f,type:l.type,values:{...i}}),Xt)return y.isValid&&g(),Yt&&p.state.next({name:f,...De?{}:Oe});if(!ue&&De&&p.state.next({...s}),L(!0),n.resolver){const{errors:ot}=await U([f]);if(C(_e),k){const Qt=kt(s.errors,a,f),it=kt(ot,a,Qt.name||f);F=it.error,f=it.name,D=G(ot)}}else F=(await _t(b,i,S,n.shouldUseNativeValidation))[f],C(_e),k&&(F?D=!1:y.isValid&&(D=await j(a,!0)));k&&(b._f.deps&&Me(b._f.deps),he(f,D,F,Oe))}},we=(l,d)=>{if(w(s.errors,d)&&l.focus)return l.focus(),1},Me=async(l,d={})=>{let f,k;const b=Be(l);if(L(!0),n.resolver){const m=await X(R(l)?l:b);f=G(m),k=l?!b.some(C=>w(m,C)):f}else l?(k=(await Promise.all(b.map(async m=>{const C=w(a,m);return await j(C&&C._f?{[m]:C}:C)}))).every(Boolean),!(!k&&!s.isValid)&&g()):k=f=await j(a);return p.state.next({...!J(l)||y.isValid&&f!==s.isValid?{}:{name:l},...n.resolver||!l?{isValid:f}:{},errors:s.errors,isValidating:!1}),d.shouldFocus&&!k&&Se(a,we,l?b:c.mount),k},Ye=l=>{const d={...o,...u.mount?i:{}};return R(l)?d:J(l)?w(d,l):l.map(f=>w(d,f))},Qe=(l,d)=>({invalid:!!w((d||s).errors,l),isDirty:!!w((d||s).dirtyFields,l),isTouched:!!w((d||s).touchedFields,l),error:w((d||s).errors,l)}),Ht=l=>{l&&Be(l).forEach(d=>P(s.errors,d)),p.state.next({errors:l?s.errors:{}})},et=(l,d,f)=>{const k=(w(a,l,{_f:{}})._f||{}).ref;V(s.errors,l,{...d,ref:k}),p.state.next({name:l,errors:s.errors,isValid:!1}),f&&f.shouldFocus&&k&&k.focus&&k.focus()},Wt=(l,d)=>ne(l)?p.values.subscribe({next:f=>l(N(void 0,d),f)}):N(l,d,!0),Ne=(l,d={})=>{for(const f of l?Be(l):c.mount)c.mount.delete(f),c.array.delete(f),d.keepValue||(P(a,f),P(i,f)),!d.keepError&&P(s.errors,f),!d.keepDirty&&P(s.dirtyFields,f),!d.keepTouched&&P(s.touchedFields,f),!n.shouldUnregister&&!d.keepDefaultValue&&P(o,f);p.values.next({values:{...i}}),p.state.next({...s,...d.keepDirty?{isDirty:T()}:{}}),!d.keepIsValid&&g()},tt=({disabled:l,name:d,field:f,fields:k,value:b})=>{if(re(l)){const m=l?void 0:R(b)?ze(f?f._f:w(k,d)._f):b;V(i,d,m),te(d,m,!1,!1,!0)}},Re=(l,d={})=>{let f=w(a,l);const k=re(d.disabled);return V(a,l,{...f||{},_f:{...f&&f._f?f._f:{ref:{name:l}},name:l,mount:!0,...d}}),c.mount.add(l),f?tt({field:f,disabled:d.disabled,name:l}):se(l,!0,d.value),{...k?{disabled:d.disabled}:{},...n.progressive?{required:!!d.required,min:ge(d.min),max:ge(d.max),minLength:ge(d.minLength),maxLength:ge(d.maxLength),pattern:ge(d.pattern)}:{},name:l,onChange:pe,onBlur:pe,ref:b=>{if(b){Re(l,d),f=w(a,l);const m=R(b.value)&&b.querySelectorAll&&b.querySelectorAll("input,select,textarea")[0]||b,C=sn(m),F=f._f.refs||[];if(C?F.find(D=>D===m):m===f._f.ref)return;V(a,l,{_f:{...f._f,...C?{refs:[...F.filter($e),m,...Array.isArray(w(o,l))?[{}]:[]],ref:{type:m.type,name:l}}:{ref:m}}}),se(l,!1,void 0,m)}else f=w(a,l,{}),f._f&&(f._f.mount=!1),(n.shouldUnregister||d.shouldUnregister)&&!(Jr(c.array,l)&&u.action)&&c.unMount.add(l)}}},rt=()=>n.shouldFocusError&&Se(a,we,c.mount),Jt=l=>{re(l)&&(p.state.next({disabled:l}),Se(a,d=>{d.disabled=l},0,!1))},nt=(l,d)=>async f=>{f&&(f.preventDefault&&f.preventDefault(),f.persist&&f.persist());let k=ee(i);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:b,values:m}=await U();s.errors=b,k=m}else await j(a);P(s.errors,"root"),G(s.errors)?(p.state.next({errors:{}}),await l(k,f)):(d&&await d({...s.errors},f),rt(),setTimeout(rt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:G(s.errors),submitCount:s.submitCount+1,errors:s.errors})},Zt=(l,d={})=>{w(a,l)&&(R(d.defaultValue)?ae(l,w(o,l)):(ae(l,d.defaultValue),V(o,l,d.defaultValue)),d.keepTouched||P(s.touchedFields,l),d.keepDirty||(P(s.dirtyFields,l),s.isDirty=d.defaultValue?T(l,w(o,l)):T()),d.keepError||(P(s.errors,l),y.isValid&&g()),p.state.next({...s}))},st=(l,d={})=>{const f=l?ee(l):o,k=ee(f),b=l&&!G(l)?k:o;if(d.keepDefaultValues||(o=f),!d.keepValues){if(d.keepDirtyValues||_)for(const m of c.mount)w(s.dirtyFields,m)?V(b,m,w(i,m)):ae(m,w(b,m));else{if(We&&R(l))for(const m of c.mount){const C=w(a,m);if(C&&C._f){const F=Array.isArray(C._f.refs)?C._f.refs[0]:C._f.ref;if(Ee(F)){const D=F.closest("form");if(D){D.reset();break}}}}a={}}i=e.shouldUnregister?d.keepDefaultValues?ee(o):{}:ee(b),p.array.next({values:{...b}}),p.values.next({values:{...b}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!u.mount&&r(),u.mount=!y.isValid||!!d.keepIsValid,u.watch=!!e.shouldUnregister,p.state.next({submitCount:d.keepSubmitCount?s.submitCount:0,isDirty:d.keepDirty?s.isDirty:!!(d.keepDefaultValues&&!oe(l,o)),isSubmitted:d.keepIsSubmitted?s.isSubmitted:!1,dirtyFields:d.keepDirtyValues?s.dirtyFields:d.keepDefaultValues&&l?je(o,l):{},touchedFields:d.keepTouched?s.touchedFields:{},errors:d.keepErrors?s.errors:{},isSubmitSuccessful:d.keepIsSubmitSuccessful?s.isSubmitSuccessful:!1,isSubmitting:!1})},at=(l,d)=>st(ne(l)?l(i):l,d);return{control:{register:Re,unregister:Ne,getFieldState:Qe,handleSubmit:nt,setError:et,_executeSchema:U,_getWatch:N,_getDirty:T,_updateValid:g,_removeUnmounted:I,_updateFieldArray:O,_updateDisabledField:tt,_getFieldArray:q,_reset:st,_resetDefaultValues:()=>ne(n.defaultValues)&&n.defaultValues().then(l=>{at(l,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:l=>{s={...s,...l}},_disableForm:Jt,_subjects:p,_proxyFormState:y,get _fields(){return a},get _formValues(){return i},get _state(){return u},set _state(l){u=l},get _defaultValues(){return o},get _names(){return c},set _names(l){c=l},get _formState(){return s},set _formState(l){s=l},get _options(){return n},set _options(l){n={...n,...l}}},trigger:Me,register:Re,handleSubmit:nt,watch:Wt,setValue:ae,getValues:Ye,reset:at,resetField:Zt,clearErrors:Ht,unregister:Ne,setError:et,setFocus:(l,d={})=>{const f=w(a,l),k=f&&f._f;if(k){const b=k.refs?k.refs[0]:k.ref;b.focus&&(b.focus(),d.shouldSelect&&b.select())}},getFieldState:Qe}}function Fe(e={}){const r=t.Cn.useRef(),n=t.Cn.useRef(),[s,a]=t.Cn.useState({isDirty:!1,isValidating:!1,isLoading:ne(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:ne(e.defaultValues)?void 0:e.defaultValues});r.current||(r.current={...dn(e,()=>a(i=>({...i}))),formState:s});const o=r.current.control;return o._options=e,Qr({subject:o._subjects.state,next:i=>{Yr(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),t.Cn.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),t.Cn.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==s.isDirty&&o._subjects.state.next({isDirty:i})}},[o,s.isDirty]),t.Cn.useEffect(()=>{e.values&&!oe(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values):o._resetDefaultValues()},[e.values,o]),t.Cn.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),r.current.formState=Xr(s,o),r.current}var St=function(e,r,n){if(e&&"reportValidity"in e){var s=w(n,r);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},fn=function(e,r){var n=function(a){var o=r.fields[a];o&&o.ref&&"reportValidity"in o.ref?St(o.ref,a,e):o.refs&&o.refs.forEach(function(i){return St(i,a,e)})};for(var s in r.fields)n(s)},hn=function(e,r){r.shouldUseNativeValidation&&fn(e,r);var n={};for(var s in e){var a=w(r.fields,s),o=Object.assign(e[s]||{},{ref:a&&a.ref});if(mn(r.names||Object.keys(e),s)){var i=Object.assign({},pn(w(n,s)));V(i,"root",o),V(n,s,i)}else V(n,s,o)}return n},pn=function(e){return Array.isArray(e)?e.filter(Boolean):[]},mn=function(e,r){return e.some(function(n){return n.startsWith(r+".")})},gn=function(e,r){for(var n={};e.issues.length;){var s=e.issues[0];if(s.path){var a=s.path.map(function(u){return u.key}).join(".");if(n[a]||(n[a]={message:s.message,type:s.validation}),r){var o=n[a].types,i=o&&o[s.validation];n[a]=Pt(a,r,n,s.validation,i?[].concat(i,s.message):s.message)}e.issues.shift()}}return n},Le=function(e,r,n){return n===void 0&&(n={}),function(s,a,o){try{return Promise.resolve(function(i,u){try{var c=function(){function h(y){return{values:n.raw?s:y,errors:{}}}var x=Object.assign({},{abortEarly:!1,abortPipeEarly:!1},r);return n.mode==="sync"?h(t.parse(e,s,x)):Promise.resolve(t.parseAsync(e,s,x)).then(h)}()}catch(h){return u(h)}return c&&c.then?c.then(void 0,u):c}(0,function(i){if(i instanceof t.ValiError)return{values:{},errors:hn(gn(i,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw i}))}catch(i){return Promise.reject(i)}}};const Ct=27,Et=12,At=10,bn=t.isSubmissionOfType("enum"),yn=e=>{const r={min:e.minSelected??0,max:e.maxSelected??e.options.length};return Le(t.object({checked:t.transform(t.record(t.boolean()),n=>Object.entries(n).filter(([s,a])=>a).map(([s,a])=>s),[t.maxLength(r.max,`Please select at most ${r.max} option${r.max!==1?"s":""}`),t.minLength(r.min,`Please select at least ${r.min} option${r.min!==1?"s":""}`)])}))},vn=t.k$1(({option:e,...r},n)=>t.o(t.k,{children:[t.o("input",{class:"peer sr-only h-full",type:"checkbox",...r,ref:n}),t.o("label",{class:"bg-lowest hover:bg-neutral-2 active:outline-neutral-8 ease-expo-out outline-divider text-neutral-11 peer-checked:outline-accent-7 peer-checked:bg-accent-2 peer-checked:text-accent-9 peer-focus-visible:ring-accent-9 peer-focus-visible:ring-offset-accent-7 block cursor-pointer select-none rounded-2xl px-3 py-1.5 outline outline-1 ring-0 ring-transparent transition-all selection:bg-transparent peer-focus-visible:ring-4",htmlFor:r.id,children:e.label})]})),Tt=t.cva("gutter-stable flex w-full flex-1 flex-wrap gap-3 overflow-y-auto rounded-xl p-2.5 pr-4",{variants:{variant:{singleOption:"justify-center",booleanLike:Nt}}}),xn=({input:e,onSubmitSuccess:r})=>{var h,x;const n=e.key?(h=t.store.current$.value.flow)==null?void 0:h.data.submissions[e.key]:void 0,s=(e.config.minSelected===1||e.config.minSelected===void 0)&&e.config.maxSelected===1,a=s&&e.config.options.length===2,{register:o,handleSubmit:i,formState:{errors:u}}=Fe({defaultValues:{checked:s?{}:bn(n)?Object.fromEntries(n.value.map(y=>[y,!0])):{}},resolver:yn(e.config)}),c=He();return a?t.o("ul",{style:{maxHeight:6.5*Ct+5*Et+2*At},class:Tt({variant:"booleanLike"}),children:e.config.options.map((y,p)=>t.o("li",{class:"flex-1",children:t.o(Rt,{type:"submit",ref:_=>{_&&p===0&&(c.current=_)},label:y.label,value:"true",onClick:()=>r({type:"enum",value:[y.value]})})},y.value))}):t.o("form",{noValidate:!0,onSubmit:y=>i(p=>{const _=p.checked;r({type:"enum",value:_})})(y),children:[t.o("div",{class:"flex items-center gap-1",children:[t.o("ul",{style:{maxHeight:6.5*Ct+5*Et+2*At},class:Tt({variant:e.config.options.length===1?"singleOption":void 0}),children:e.config.options.map((y,p)=>{const _=`checked.${y.value}`,{ref:v,...A}=o(_);return t.o("li",{class:"relative",children:t.o(vn,{option:y,autoFocus:p===0,ref:S=>{S&&p===0&&(c.current=S),v(S)},id:_,...A,onClick:s?()=>r({type:"enum",value:[y.value]}):void 0})},y.value)})}),t.o("div",{class:"flex flex-col items-center gap-2 pr-2.5 pt-2.5",children:[s?null:t.o(ie,{}),e.config.minSelected===0&&t.o(le,{type:"button",onClick:()=>r({type:"enum",value:[]})})]})]}),t.o("div",{class:"px-1",children:t.o(fe,{error:(x=u.checked)==null?void 0:x.root})})]})},wn=t.isSubmissionOfType("number"),_n=(e,r)=>{const n=e.min??Number.MIN_SAFE_INTEGER,s=e.max??Number.MAX_SAFE_INTEGER,a=e.decimalCases??0;return Le(t.object({number:t.number(r("validation_number"),[t.minValue(n,r("validation_number_min",{min:n})),t.maxValue(s,r("validation_number_max",{max:s})),t.custom(o=>o===Number(o.toFixed(a)),r("validation_number_decimal_cases",{count:a}))])}))},kn=({input:e,onSubmitSuccess:r})=>{var y;const n=e.config.defaultValue,s=e.key?(y=t.store.current$.value.flow)==null?void 0:y.data.submissions[e.key]:void 0,{t:a}=t.useTranslation(),{register:o,handleSubmit:i,formState:{errors:u}}=Fe({defaultValues:{number:n?Number(n):wn(s)?s.value:void 0},resolver:_n(e.config,a)}),{ref:c,...h}=o("number",{required:!e.config.optional,valueAsNumber:!0}),x=t._$1();return t.y(()=>{x.current&&(x.current.focus(),x.current.select())},[]),t.o("form",{class:"flex flex-col gap-1 p-2.5",onSubmit:i(p=>{p.number!==void 0&&r({type:"number",value:p.number})}),children:[t.o("div",{class:"flex items-center gap-2",children:[t.o("div",{class:"relative min-w-0 flex-grow",children:[t.o("input",{...h,id:"chat-input",autocomplete:"off",autoCapitalize:"off",autoCorrect:"off",autoFocus:!0,ref:p=>{p&&(x.current=p),c(p)},type:"text",min:e.config.min,max:e.config.max,class:ye({optional:e.config.optional,className:"[type=number:-webkit-inner-spin-button] w-full rounded-full [-webkit-outer-spin-button:none]"}),placeholder:e.config.placeholder}),e.config.optional&&t.o(le,{class:"absolute right-0 top-0",onClick:()=>r(null)})]}),t.o(ie,{})]}),t.o(fe,{error:u.number})]})},Sn=e=>{if(e==="")return{countryCode:"",phoneNumber:""};const r=Object.entries(Ge).find(a=>e.startsWith(a[1])),n=r?r[1]:"",s=e.replace(n,"");return/^\d+$/.test(s)?{countryCode:n,phoneNumber:s}:{countryCode:"",phoneNumber:""}},Cn="44",En=t.isSubmissionOfType("string"),An=t.isSubmissionOfType("phone"),Tn=e=>{const r=t.string(e("validation_country_code"),[t.regex(/^\+?[0-9 -]+$/,e("validation_country_code"))]);return Le(t.object({countryCode:r,phoneNumber:t.transform(t.string(e("validation_phone"),[t.regex(/^\+?[0-9 -]+$/,e("validation_phone"))]),n=>n.replace(/[^0-9]/g,""),[])}))},In=({input:e,onSubmitSuccess:r})=>{var A;const n=e.key?(A=t.store.current$.value.flow)==null?void 0:A.data.submissions[e.key]:void 0,{t:s}=t.useTranslation(),[a,o]=t.h(),i=En(n)?Sn(n.value):An(n)?n.value:void 0,{register:u,handleSubmit:c,formState:{errors:h},watch:x}=Fe({defaultValues:{countryCode:(i==null?void 0:i.countryCode)??e.config.defaultValue.countryCode??Cn,phoneNumber:(i==null?void 0:i.phoneNumber)??e.config.defaultValue.phoneNumber??""},resolver:Tn(s)}),{ref:y,...p}=u("phoneNumber",{required:!e.config.optional}),_=t._$1(),v=x("countryCode");return t.y(()=>{_.current&&(_.current.focus(),_.current.select())},[]),t.o("form",{noValidate:!0,class:"flex flex-col gap-1 p-2.5",onSubmit:c(S=>{const E=S.phoneNumber.replace(/[^0-9]/g,""),g=S.countryCode.replace(/[^0-9]/g,"");if(o(void 0),E.length+g.length>(e.config.maxChars||Number.POSITIVE_INFINITY))return o(s("validation_max_chars",{count:e.config.maxChars??999}));if(E.length+g.length<(e.config.minChars||0))return o(s("validation_min_chars",{count:e.config.minChars??1}));e.config.submissionFormat==="phone"?r({type:"phone",value:{countryCode:g,phoneNumber:E}}):r({type:"string",value:v+S.phoneNumber})}),children:[t.o("div",{class:"flex items-center gap-2",children:[t.o("div",{class:"relative flex min-w-0 flex-1 flex-grow gap-2",children:[t.o("label",{class:"text-neutral-12 bg-lowest hover:bg-neutral-5 placeholder:text-neutral-8 focus-visible:outline-accent-7 focus-within:bg-neutral-5 focus-within:outline-accent-7 outline-divider relative flex h-full cursor-pointer appearance-none items-center justify-center overflow-hidden text-ellipsis whitespace-nowrap rounded-l-full border-solid px-3 py-1.5 text-center text-base outline outline-2 transition-all focus-within:outline-none",htmlFor:`isdk_phone_${e.key}`,children:[t.o("span",{children:["+",v]}),t.o("select",{...u("countryCode",{}),id:`isdk_phone_${e.key}`,class:"absolute inset-0 opacity-0",children:Object.entries(Ge).map(([S,E])=>t.o("option",{value:E,children:[S," (+",E,")"]},S))})]}),t.o("input",{...p,id:"chat-input",type:"tel",inputMode:"tel",autocomplete:"off",autoCapitalize:"off",autoCorrect:"off",autoFocus:!0,ref:S=>{S&&(_.current=S),y(S)},class:ye({optional:e.config.optional,className:"flex-1 rounded-r-full"}),placeholder:e.config.placeholder}),e.config.optional&&t.o(le,{class:"absolute right-0 top-0",onClick:()=>r(null)})]}),t.o(ie,{})]}),t.o(fe,{error:h.countryCode||h.phoneNumber||{message:a}})]})},Vn=({input:e,onSubmitSuccess:r})=>t.o("div",{class:"flex flex-col items-center py-3",children:t.o("button",{class:"bg-accent-9 hover:bg-accent-10 active:bg-submit-bg-active hover:border-accent-10 active:border-submit-bg-active border-accent-9 ring-accent-6 focus-visible:outline-accent-8 ring-offset-neutral-1 flex cursor-pointer rounded-full border border-solid px-5 py-3 pr-4 text-white outline-none ring-1 ring-offset-[1.5px] transition-all duration-300 focus-visible:outline-2 active:ring-2 active:ring-offset-2",name:e.key,onClick:()=>{r(null)},children:t.o("span",{class:"flex items-center gap-1.5",children:[t.o("span",{class:"inline-flex items-center text-sm font-medium",children:e.config.label||"Submit"}),t.o("svg",{stroke:"currentColor","stroke-width":"1.5",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.o("path",{d:"M4 8L8 4L12 8"}),t.o("path",{d:"M8 4V13"})]})]})})}),qe={empty:"Please enter some text",email:"That doesn’t look like a valid email address",phone:"That doesn’t look like a valid phone number",url:"That doesn’t look like a valid URL"},Fn={email:{type:"email",inputMode:"email",formNoValidate:!0},text:{type:"text",inputMode:"text"},url:{type:"url",inputMode:"url",formNoValidate:!0}},Ln=t.isSubmissionOfType("string"),Mn=(e,r)=>{const n={maxLength:r("validation_max_chars",{count:e.maxChars??999}),minLength:r("validation_min_chars",{count:e.minChars??1})};return Le(t.object({text:{email:t.string(qe.email,[t.email(qe.email),t.minLength(e.minChars??1,n.minLength),t.maxLength(e.maxChars??1/0,n.maxLength)]),text:t.string([t.minLength(e.minChars??1,n.minLength),t.maxLength(e.maxChars??1/0,n.maxLength)]),url:t.string([t.url(qe.url),t.minLength(e.minChars??1,n.minLength),t.maxLength(e.maxChars??1/0,n.maxLength)])}[e.format]}))},Nn=({input:e,onSubmitSuccess:r})=>{var y;const{t:n}=t.useTranslation(),s=e.key?(y=t.store.current$.value.flow)==null?void 0:y.data.submissions[e.key]:void 0,a=e.config.defaultValue,{register:o,handleSubmit:i,formState:{errors:u}}=Fe({defaultValues:{text:a||(Ln(s)?s.value:"")},resolver:Mn(e.config,n)}),{ref:c,...h}=o("text",{required:!e.config.optional}),x=t._$1();return t.y(()=>{x.current&&(x.current.focus(),x.current.select())},[]),t.o("form",{noValidate:!0,class:"flex flex-col gap-1 p-2.5",onSubmit:i(p=>{r({type:"string",value:p.text})}),children:[t.o("div",{class:"flex items-center gap-2",children:[t.o("div",{class:"relative min-w-0 flex-1",children:[t.o("input",{id:"chat-input",...h,...Fn[e.config.format],autocomplete:"off",autoCapitalize:"off",autoCorrect:"off",autoFocus:!0,ref:p=>{p&&(x.current=p),c(p)},placeholder:e.config.placeholder,class:ye({optional:!!e.config.optional,className:"w-full rounded-full"})}),e.config.optional&&t.o(le,{class:"absolute right-0 top-0",onClick:()=>r(null)})]}),t.o(ie,{})]}),t.o(fe,{error:u.text})]})},Rn={text:Nn,phone:In,"multiple-choice":xn,boolean:Pr,file:Gr,submit:Vn,address:Nr,number:kn},Dn=({logger:e})=>{var o;const r=(o=t.store.current$.value.flow)==null?void 0:o.data.currentInput,[n,s]=_r(),a=t._$1(null);return t.store.inputHeight$.value=s.height,t.p(()=>{const i=a.current;if(i)return i.addEventListener("transitionstart",$.scrollToEnd.smooth),i.addEventListener("transitioncancel",$.scrollToEnd.smooth),i.addEventListener("transitionend",$.scrollToEnd.smooth),()=>{i.removeEventListener("transitionstart",$.scrollToEnd.smooth),i.removeEventListener("transitioncancel",$.scrollToEnd.smooth),i.removeEventListener("transitionend",$.scrollToEnd.smooth)}},[]),t.o("div",{ref:a,class:"ease-expo-out absolute bottom-0 w-full overflow-hidden rounded-b-3xl backdrop-blur-xl transition-all duration-700 will-change-[height]",style:{height:s.height},children:t.o("div",{ref:n,class:"border-divider flex flex-col justify-end border-t",children:r?(()=>{const i=Rn[r.type];return t.o(i,{logger:e,onSubmitSuccess:$.onSubmitSuccessFn$.value,input:r})})():t.o("div",{class:"flex items-center gap-2 p-2.5",children:[t.o("input",{"aria-hidden":"true",id:"chat-input",class:ye({optional:!1,className:"flex-grow rounded-full"}),disabled:!0}),t.o(ie,{disabled:!0,"aria-hidden":"true",tabIndex:-1})]})})})};var On=function(e){return e instanceof RegExp},Bn=function(r){var n=/[\\^$.*+?()[\]{}|]/g,s=RegExp(n.source);return r&&s.test(r)?r.replace(n,"\\$&"):r},Gt=function(e){return typeof e=="string"},Pn=function(e){var r=[];return e.forEach(function(n){Array.isArray(n)?r=r.concat(n):r.push(n)}),r};function $n(e,r,n){var s=0,a=0;if(e==="")return e;if(!e||!Gt(e))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var o=r;On(o)||(o=new RegExp("("+Bn(o)+")","gi"));for(var i=e.split(o),u=1,c=i.length;u<c;u+=2){if(i[u]===void 0||i[u-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}a=i[u].length,s+=i[u-1].length,i[u]=n(i[u],u,s),s+=a}return i}var jn=function(r,n,s){return Array.isArray(r)||(r=[r]),Pn(r.map(function(a){return Gt(a)?$n(a,n,s):a}))};const ke=t.getDefaultExportFromCjs(jn),zn=/(\[[^\]]+\]\([^)]+\))/g,qn=/\[([^\]]+)\]\(([^)]+)\)/,Un=/(https?:\/\/[^\s]+)/g,Kn=/_(.*?)_/g,Gn=/\*\*(.*?)\*\*/g,It="text-accent-10 hover:text-accent-11 no-underline underline-offset-2 hover:underline",Hn=e=>{const r=ke(e,zn,(o,i)=>{const[,u,c]=o.match(qn)??[];return c?t.o("a",{class:It,href:c,children:u??c},c+i):t.o("span",{children:"INVALID LINK"})}),n=ke(r,Un,(o,i)=>t.o("a",{class:It,href:o,children:o},o+i)),s=ke(n,Kn,(o,i)=>t.o("em",{children:o},o+i));return ke(s,Gn,(o,i)=>t.o("strong",{children:o},o+i))},Wn=t.cva("select-text max-w-[min(100%,24rem)] [text-wrap:pretty] leading-snug flex-shrink min-w-[2rem] py-2 px-3 rounded-[18px] min-h-[36px] break-words relative",{variants:{side:{left:"bg-bubble-weak-bg text-neutral-12 shadow-surface-sm outline outline-1 outline-bubble-weak rounded-bl-md",right:"ml-auto bg-accent-9 text-white rounded-br-md shadow-surface-sm shadow-bubble-strong-shadow"},animate:{true:"animate-bubble-in",false:""}},defaultVariants:{side:"left"}}),Jn=({children:e,className:r,animate:n,side:s,...a})=>t.o("p",{style:{transformOrigin:s==="left"?"0% 50%":"100% 50%"},class:Wn({className:r,side:s,animate:n}),...a,children:e}),Zn=({message:e})=>t.o("div",{class:"bg-accent-3 flex w-full items-center justify-center overflow-hidden rounded-xl px-2 py-2",children:t.o("a",{onClick:e.onClick,class:"bg-lowest shadow-surface-sm ring-accent-6 hover:ring-accent-8 active:bg-accent-2 active:text-accent-10 text-accent-9 focus-visible:ring-accent-7/50 text-wrap-balance flex items-center gap-1.5 rounded-full py-2 pl-4 pr-2.5 text-center no-underline ring-1 transition-all focus:outline-none focus-visible:ring-4 focus-visible:ring-offset-2",target:"_blank",href:e.href,children:[e.text,t.o("svg",{class:"flex-none",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.o("path",{d:"M3.64645 11.3536C3.45118 11.1583 3.45118 10.8417 3.64645 10.6465L10.2929 4L6 4C5.72386 4 5.5 3.77614 5.5 3.5C5.5 3.22386 5.72386 3 6 3L11.5 3C11.6326 3 11.7598 3.05268 11.8536 3.14645C11.9473 3.24022 12 3.36739 12 3.5L12 9.00001C12 9.27615 11.7761 9.50001 11.5 9.50001C11.2239 9.50001 11 9.27615 11 9.00001V4.70711L4.35355 11.3536C4.15829 11.5488 3.84171 11.5488 3.64645 11.3536Z",fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd"})})]})}),Xn=({className:e,...r})=>(t.p(()=>{$.scrollToEnd.smooth()}),t.o("div",{"aria-hidden":!0,children:$.isBotTyping$.value===!0?t.o("div",{"aria-label":"Typing…",class:t.clsx("flex gap-1 p-4",e),...r,children:Array.from({length:3},(n,s)=>t.o("div",{class:"bg-accent-9 h-1.5 w-1.5 animate-bounce rounded-full",style:{animationDelay:`${-s*200}ms`}}))}):void 0})),Yn={bot:"left",user:"right"},Qn=t.cva("w-full select-none py-2 text-wrap-balance text-center text-[10px] uppercase tracking-widest drop-shadow-[0_1.5px_var(--i-color-n-1)]",{variants:{variant:{info:"text-neutral-8",warning:"text-[#FFC107]",error:"text-error-9",success:"text-[#4CAF50]"}}}),es=({lastSentMessageFooter:e})=>{var n;const r=((n=t.store.current$.value.flow)==null?void 0:n.data.messages)??[];return t.p(()=>{$.scrollToEnd.smooth()},[r.length]),t.o("ol",{"aria-label":"Chat messages",class:"mt-auto flex flex-col justify-end gap-2 p-2 pt-[calc(var(--header-height)+1rem)]",children:[r.map((s,a)=>t.o(t.k,{children:t.o("li",{class:"flex",children:t.N(s).with({type:"system"},o=>t.o("p",{class:Qn({variant:o.variant}),children:o.text})).with({type:"text",author:t._.union("bot","user")},o=>{const i=o.author==="user"&&!r.slice(a+1).some(h=>h.type==="text"&&h.author==="user"),u=a===r.length-1,c=o.author==="bot"?Hn(o.text):o.text;return t.o(Jn,{animate:u,side:Yn[o.author],children:[c,i?e:null]},a)}).with({type:"link"},o=>t.o(Zn,{message:o})).with({type:"image"},o=>t.o("img",{class:"shadow-surface-md w-full max-w-[min(100%,24rem)] rounded-2xl",src:o.url,style:{aspectRatio:o.width/o.height}})).with({type:"file"},o=>t.o(qr,{class:o.author==="bot"?void 0:"ml-auto",file:{name:o.fileName,sizeKb:o.fileSizeKb}})).with({type:"loading"},o=>{const i=r[r.length-1];return!(o===i)||$.isBotTyping$.value?null:t.o("div",{class:"flex flex-grow flex-col items-center justify-center",children:t.o(t.LoadingIndicator,{class:"text-neutral-6 h-8 w-8"})})}).exhaustive()})},a)),t.o(Xn,{},"typing")]})},ts=({logger:e,apiClient:r,analytics:n})=>{const{flow:s}=t.store.current$.value;t.invariant(s,"Flow is required to exist to show chatbot body");const a=t.store.viewState$.value,{chatRef:o,chatService:i}=Tr(),{t:u}=t.useTranslation(),[c,h]=t.h();return t.y(()=>{a==="maximised"&&$.scrollToEnd.instant()},[a]),t.y(()=>{var S,E;const{state:x,flow:y}=t.store.current$.peek();if(x!=="loaded")throw new Error(u("invalid_state"));let p=y.data.nodeHistory.at(-1);if($.scrollToEnd.instant(),t.store.setInput(void 0),y.data.isFinished)return;p===void 0?(p=t.getHeadOrThrow(s.nodes).id,t.store.setCurrentNodeId(p),n.log({event:"FLOW_START",properties:{flow_id:s.id,flow_version:s.version,flow_session_id:y.data.flowSessionId,flow_build:s.build,job:s.job},customProperties:(S=s.analytics)==null?void 0:S.customProperties})):t.store.removeMessagesSentByNodeIds([p]);const{interpret:_,abort:v,undo:A}=rr({context:s.context,analytics:{service:n,customProperties:(E=s.analytics)==null?void 0:E.customProperties},apiClient:r,logger:e,flow:s,chatService:i,t:u,getSubmissions:()=>{var g;return(g=t.store.current$.peek().flow)==null?void 0:g.data.submissions},onInterpret:(g,L)=>{var M;const O=t.store.current$.peek().flow;t.invariant(O),L&&(O.data.sequence=O.data.sequence+1,n.log({event:"FLOW_NODE",properties:{flow_id:s.id,flow_version:s.version,from_node_id:L.id,flow_build:s.build,to_node_id:g.id,sequence:O.data.sequence,flow_session_id:O.data.flowSessionId,job:s.job},customProperties:(M=s.analytics)==null?void 0:M.customProperties})),t.store.setCurrentNodeId(g.id)},onFlowEnd:async()=>{var L;t.store.markAsFinished();const g=t.store.current$.peek().flow;t.invariant(g),n.log({event:"FLOW_END",properties:{flow_id:s.id,flow_version:s.version,flow_session_id:g.data.flowSessionId,flow_build:s.build,job:s.job},customProperties:(L=s.analytics)==null?void 0:L.customProperties})}});return h(()=>A),_(p),v},[n,r,i,e,s,u]),t.o(t.k,{children:[t.o("div",{ref:o,className:"hide-scrollbars relative flex w-full max-w-full flex-grow flex-col overflow-y-scroll",style:{WebkitOverflowScrolling:"touch",paddingBottom:t.store.inputHeight$.value},children:t.o(es,{lastSentMessageFooter:s.data.isFinished||!c?null:t.o(ns,{undoFn:c})})}),t.o(Dn,{logger:e})]})},rs=e=>"key"in e.data&&e.data.key?[e.data.key]:"keys"in e.data?Object.values(e.data.keys).filter(r=>typeof r=="string"):[],ns=({undoFn:e})=>{const{t:r}=t.useTranslation();return t.o("div",{class:"absolute bottom-0 right-0 flex w-full translate-y-full justify-end",children:t.o("button",{class:"fr touch-hitbox text-neutral-9 hover:text-neutral-12 rounded-full p-1 text-right text-xs transition-all",onClick:async()=>{const{flow:n}=t.store.current$.peek();t.invariant(n);const{removed:s}=e(n.data.nodeHistory),a=n.data.nodeHistory.splice(-s);a.length!==0&&(t.store.removeMessagesSentByNodeIds(a),t.store.setInput(void 0),a.pop(),a.map(o=>n.nodes.find(i=>i.id===o)).filter(Boolean).flatMap(rs).forEach(o=>delete n.data.submissions[o]),t.store.current$.value={...t.store.current$.value})},children:r("undo")})})};exports.ChatbotBody=ts;
|
package/dist/index-4d7a0e94.cjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";var Wr=Object.defineProperty;var Gr=(t,e,a)=>e in t?Wr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var Ye=(t,e,a)=>(Gr(t,typeof e!="symbol"?e+"":e,a),a);const Yr=require("@inploi/sdk");var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ra(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xr=Array.isArray,Ie=Xr,Zr=typeof zt=="object"&&zt&&zt.Object===Object&&zt,Jr=Zr,Qr=Jr,ti=typeof self=="object"&&self&&self.Object===Object&&self,ei=Qr||ti||Function("return this")(),Te=ei,ai=Te,ri=ai.Symbol,je=ri,Xe=je,Ua=Object.prototype,ii=Ua.hasOwnProperty,oi=Ua.toString,mt=Xe?Xe.toStringTag:void 0;function ni(t){var e=ii.call(t,mt),a=t[mt];try{t[mt]=void 0;var r=!0}catch{}var o=oi.call(t);return r&&(e?t[mt]=a:delete t[mt]),o}var si=ni,ci=Object.prototype,li=ci.toString;function di(t){return li.call(t)}var ui=di,Ze=je,pi=si,hi=ui,fi="[object Null]",wi="[object Undefined]",Je=Ze?Ze.toStringTag:void 0;function gi(t){return t==null?t===void 0?wi:fi:Je&&Je in Object(t)?pi(t):hi(t)}var Va=gi;function bi(t){return t!=null&&typeof t=="object"}var vi=bi,_i=Va,mi=vi,yi="[object Symbol]";function xi(t){return typeof t=="symbol"||mi(t)&&_i(t)==yi}var ze=xi,ki=Ie,$i=ze,Si=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ci=/^\w*$/;function Ei(t,e){if(ki(t))return!1;var a=typeof t;return a=="number"||a=="symbol"||a=="boolean"||t==null||$i(t)?!0:Ci.test(t)||!Si.test(t)||e!=null&&t in Object(e)}var Pi=Ei;function Oi(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var qa=Oi,Ii=Va,Ti=qa,ji="[object AsyncFunction]",zi="[object Function]",Di="[object GeneratorFunction]",Ai="[object Proxy]";function Ni(t){if(!Ti(t))return!1;var e=Ii(t);return e==zi||e==Di||e==ji||e==Ai}var Mi=Ni,Fi=Te,Li=Fi["__core-js_shared__"],Hi=Li,ae=Hi,Qe=function(){var t=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Bi(t){return!!Qe&&Qe in t}var Ri=Bi,Ui=Function.prototype,Vi=Ui.toString;function qi(t){if(t!=null){try{return Vi.call(t)}catch{}try{return t+""}catch{}}return""}var Ki=qi,Wi=Mi,Gi=Ri,Yi=qa,Xi=Ki,Zi=/[\\^$.*+?()[\]{}|]/g,Ji=/^\[object .+?Constructor\]$/,Qi=Function.prototype,to=Object.prototype,eo=Qi.toString,ao=to.hasOwnProperty,ro=RegExp("^"+eo.call(ao).replace(Zi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function io(t){if(!Yi(t)||Gi(t))return!1;var e=Wi(t)?ro:Ji;return e.test(Xi(t))}var oo=io;function no(t,e){return t==null?void 0:t[e]}var so=no,co=oo,lo=so;function uo(t,e){var a=lo(t,e);return co(a)?a:void 0}var Ka=uo,po=Ka,ho=po(Object,"create"),Wt=ho,ta=Wt;function fo(){this.__data__=ta?ta(null):{},this.size=0}var wo=fo;function go(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var bo=go,vo=Wt,_o="__lodash_hash_undefined__",mo=Object.prototype,yo=mo.hasOwnProperty;function xo(t){var e=this.__data__;if(vo){var a=e[t];return a===_o?void 0:a}return yo.call(e,t)?e[t]:void 0}var ko=xo,$o=Wt,So=Object.prototype,Co=So.hasOwnProperty;function Eo(t){var e=this.__data__;return $o?e[t]!==void 0:Co.call(e,t)}var Po=Eo,Oo=Wt,Io="__lodash_hash_undefined__";function To(t,e){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Oo&&e===void 0?Io:e,this}var jo=To,zo=wo,Do=bo,Ao=ko,No=Po,Mo=jo;function ft(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}ft.prototype.clear=zo;ft.prototype.delete=Do;ft.prototype.get=Ao;ft.prototype.has=No;ft.prototype.set=Mo;var Fo=ft;function Lo(){this.__data__=[],this.size=0}var Ho=Lo;function Bo(t,e){return t===e||t!==t&&e!==e}var Ro=Bo,Uo=Ro;function Vo(t,e){for(var a=t.length;a--;)if(Uo(t[a][0],e))return a;return-1}var Gt=Vo,qo=Gt,Ko=Array.prototype,Wo=Ko.splice;function Go(t){var e=this.__data__,a=qo(e,t);if(a<0)return!1;var r=e.length-1;return a==r?e.pop():Wo.call(e,a,1),--this.size,!0}var Yo=Go,Xo=Gt;function Zo(t){var e=this.__data__,a=Xo(e,t);return a<0?void 0:e[a][1]}var Jo=Zo,Qo=Gt;function tn(t){return Qo(this.__data__,t)>-1}var en=tn,an=Gt;function rn(t,e){var a=this.__data__,r=an(a,t);return r<0?(++this.size,a.push([t,e])):a[r][1]=e,this}var on=rn,nn=Ho,sn=Yo,cn=Jo,ln=en,dn=on;function wt(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}wt.prototype.clear=nn;wt.prototype.delete=sn;wt.prototype.get=cn;wt.prototype.has=ln;wt.prototype.set=dn;var un=wt,pn=Ka,hn=Te,fn=pn(hn,"Map"),wn=fn,ea=Fo,gn=un,bn=wn;function vn(){this.size=0,this.__data__={hash:new ea,map:new(bn||gn),string:new ea}}var _n=vn;function mn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var yn=mn,xn=yn;function kn(t,e){var a=t.__data__;return xn(e)?a[typeof e=="string"?"string":"hash"]:a.map}var Yt=kn,$n=Yt;function Sn(t){var e=$n(this,t).delete(t);return this.size-=e?1:0,e}var Cn=Sn,En=Yt;function Pn(t){return En(this,t).get(t)}var On=Pn,In=Yt;function Tn(t){return In(this,t).has(t)}var jn=Tn,zn=Yt;function Dn(t,e){var a=zn(this,t),r=a.size;return a.set(t,e),this.size+=a.size==r?0:1,this}var An=Dn,Nn=_n,Mn=Cn,Fn=On,Ln=jn,Hn=An;function gt(t){var e=-1,a=t==null?0:t.length;for(this.clear();++e<a;){var r=t[e];this.set(r[0],r[1])}}gt.prototype.clear=Nn;gt.prototype.delete=Mn;gt.prototype.get=Fn;gt.prototype.has=Ln;gt.prototype.set=Hn;var Bn=gt,Wa=Bn,Rn="Expected a function";function De(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Rn);var a=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=a.cache;if(i.has(o))return i.get(o);var n=t.apply(this,r);return a.cache=i.set(o,n)||i,n};return a.cache=new(De.Cache||Wa),a}De.Cache=Wa;var Un=De,Vn=Un,qn=500;function Kn(t){var e=Vn(t,function(r){return a.size===qn&&a.clear(),r}),a=e.cache;return e}var Wn=Kn,Gn=Wn,Yn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xn=/\\(\\)?/g,Zn=Gn(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Yn,function(a,r,o,i){e.push(o?i.replace(Xn,"$1"):r||a)}),e}),Jn=Zn;function Qn(t,e){for(var a=-1,r=t==null?0:t.length,o=Array(r);++a<r;)o[a]=e(t[a],a,t);return o}var ts=Qn,aa=je,es=ts,as=Ie,rs=ze,is=1/0,ra=aa?aa.prototype:void 0,ia=ra?ra.toString:void 0;function Ga(t){if(typeof t=="string")return t;if(as(t))return es(t,Ga)+"";if(rs(t))return ia?ia.call(t):"";var e=t+"";return e=="0"&&1/t==-is?"-0":e}var os=Ga,ns=os;function ss(t){return t==null?"":ns(t)}var cs=ss,ls=Ie,ds=Pi,us=Jn,ps=cs;function hs(t,e){return ls(t)?t:ds(t,e)?[t]:us(ps(t))}var fs=hs,ws=ze,gs=1/0;function bs(t){if(typeof t=="string"||ws(t))return t;var e=t+"";return e=="0"&&1/t==-gs?"-0":e}var vs=bs,_s=fs,ms=vs;function ys(t,e){e=_s(e,t);for(var a=0,r=e.length;t!=null&&a<r;)t=t[ms(e[a++])];return a&&a==r?t:void 0}var xs=ys,ks=xs;function $s(t,e,a){var r=t==null?void 0:ks(t,e);return r===void 0?a:r}var Ss=$s;const Ya=Ra(Ss);var Ot,w,Xa,Za,it,oa,Ja,he,Qa,lt={},tr=[],Cs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Xt=Array.isArray;function R(t,e){for(var a in e)t[a]=e[a];return t}function er(t){var e=t.parentNode;e&&e.removeChild(t)}function A(t,e,a){var r,o,i,n={};for(i in e)i=="key"?r=e[i]:i=="ref"?o=e[i]:n[i]=e[i];if(arguments.length>2&&(n.children=arguments.length>3?Ot.call(arguments,2):a),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)n[i]===void 0&&(n[i]=t.defaultProps[i]);return $t(t,n,r,o,null)}function $t(t,e,a,r,o){var i={type:t,props:e,key:a,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Xa};return o==null&&w.vnode!=null&&w.vnode(i),i}function Es(){return{current:null}}function N(t){return t.children}function L(t,e){this.props=t,this.context=e}function Ht(t,e){if(e==null)return t.__?Ht(t.__,t.__.__k.indexOf(t)+1):null;for(var a;e<t.__k.length;e++)if((a=t.__k[e])!=null&&a.__e!=null)return a.__e;return typeof t.type=="function"?Ht(t):null}function ar(t){var e,a;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((a=t.__k[e])!=null&&a.__e!=null){t.__e=t.__c.base=a.__e;break}return ar(t)}}function fe(t){(!t.__d&&(t.__d=!0)&&it.push(t)&&!Bt.__r++||oa!==w.debounceRendering)&&((oa=w.debounceRendering)||Ja)(Bt)}function Bt(){var t,e,a,r,o,i,n,c,l;for(it.sort(he);t=it.shift();)t.__d&&(e=it.length,r=void 0,o=void 0,i=void 0,c=(n=(a=t).__v).__e,(l=a.__P)&&(r=[],o=[],(i=R({},n)).__v=n.__v+1,Ae(l,n,i,a.__n,l.ownerSVGElement!==void 0,n.__h!=null?[c]:null,r,c??Ht(n),n.__h,o),nr(r,n,o),n.__e!=c&&ar(n)),it.length>e&&it.sort(he));Bt.__r=0}function rr(t,e,a,r,o,i,n,c,l,d,u){var s,h,g,p,b,m,v,$,M,F,j=0,z=r&&r.__k||tr,tt=z.length,et=tt,O=e.length;for(a.__k=[],s=0;s<O;s++)(p=a.__k[s]=(p=e[s])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?$t(null,p,null,null,p):Xt(p)?$t(N,{children:p},null,null,null):p.__b>0?$t(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null&&(p.__=a,p.__b=a.__b+1,($=Ps(p,z,v=s+j,et))===-1?g=lt:(g=z[$]||lt,z[$]=void 0,et--),Ae(t,p,g,o,i,n,c,l,d,u),b=p.__e,(h=p.ref)&&g.ref!=h&&(g.ref&&Ne(g.ref,null,p),u.push(h,p.__c||b,p)),b!=null&&(m==null&&(m=b),F=!(M=g===lt||g.__v===null)&&$===v,M?$==-1&&j--:$!==v&&($===v+1?(j++,F=!0):$>v?et>O-v?(j+=$-v,F=!0):j--:j=$<v&&$==v-1?$-v:0),v=s+j,F=F||$==s&&!M,typeof p.type!="function"||$===v&&g.__k!==p.__k?typeof p.type=="function"||F?p.__d!==void 0?(l=p.__d,p.__d=void 0):l=b.nextSibling:l=or(t,b,l):l=ir(p,l,t),typeof a.type=="function"&&(a.__d=l)));for(a.__e=m,s=tt;s--;)z[s]!=null&&(typeof a.type=="function"&&z[s].__e!=null&&z[s].__e==a.__d&&(a.__d=z[s].__e.nextSibling),sr(z[s],z[s]))}function ir(t,e,a){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e=typeof r.type=="function"?ir(r,e,a):or(a,r.__e,e));return e}function U(t,e){return e=e||[],t==null||typeof t=="boolean"||(Xt(t)?t.some(function(a){U(a,e)}):e.push(t)),e}function or(t,e,a){return a==null||a.parentNode!==t?t.insertBefore(e,null):e==a&&e.parentNode!=null||t.insertBefore(e,a),e.nextSibling}function Ps(t,e,a,r){var o=t.key,i=t.type,n=a-1,c=a+1,l=e[a];if(l===null||l&&o==l.key&&i===l.type)return a;if(r>(l!=null?1:0))for(;n>=0||c<e.length;){if(n>=0){if((l=e[n])&&o==l.key&&i===l.type)return n;n--}if(c<e.length){if((l=e[c])&&o==l.key&&i===l.type)return c;c++}}return-1}function Os(t,e,a,r,o){var i;for(i in a)i==="children"||i==="key"||i in e||Rt(t,i,null,a[i],r);for(i in e)o&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||a[i]===e[i]||Rt(t,i,e[i],a[i],r)}function na(t,e,a){e[0]==="-"?t.setProperty(e,a??""):t[e]=a==null?"":typeof a!="number"||Cs.test(e)?a:a+"px"}function Rt(t,e,a,r,o){var i;t:if(e==="style")if(typeof a=="string")t.style.cssText=a;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)a&&e in a||na(t.style,e,"");if(a)for(e in a)r&&a[e]===r[e]||na(t.style,e,a[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=a,a?r||t.addEventListener(e,i?ca:sa,i):t.removeEventListener(e,i?ca:sa,i);else if(e!=="dangerouslySetInnerHTML"){if(o)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]=a??"";break t}catch{}typeof a=="function"||(a==null||a===!1&&e[4]!=="-"?t.removeAttribute(e):t.setAttribute(e,a))}}function sa(t){return this.l[t.type+!1](w.event?w.event(t):t)}function ca(t){return this.l[t.type+!0](w.event?w.event(t):t)}function Ae(t,e,a,r,o,i,n,c,l,d){var u,s,h,g,p,b,m,v,$,M,F,j,z,tt,et,O=e.type;if(e.constructor!==void 0)return null;a.__h!=null&&(l=a.__h,c=e.__e=a.__e,e.__h=null,i=[c]),(u=w.__b)&&u(e);try{t:if(typeof O=="function"){if(v=e.props,$=(u=O.contextType)&&r[u.__c],M=u?$?$.props.value:u.__:r,a.__c?m=(s=e.__c=a.__c).__=s.__E:("prototype"in O&&O.prototype.render?e.__c=s=new O(v,M):(e.__c=s=new L(v,M),s.constructor=O,s.render=Ts),$&&$.sub(s),s.props=v,s.state||(s.state={}),s.context=M,s.__n=r,h=s.__d=!0,s.__h=[],s._sb=[]),s.__s==null&&(s.__s=s.state),O.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=R({},s.__s)),R(s.__s,O.getDerivedStateFromProps(v,s.__s))),g=s.props,p=s.state,s.__v=e,h)O.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(O.getDerivedStateFromProps==null&&v!==g&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(v,M),!s.__e&&(s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(v,s.__s,M)===!1||e.__v===a.__v)){for(e.__v!==a.__v&&(s.props=v,s.state=s.__s,s.__d=!1),e.__e=a.__e,e.__k=a.__k,e.__k.forEach(function(jt){jt&&(jt.__=e)}),F=0;F<s._sb.length;F++)s.__h.push(s._sb[F]);s._sb=[],s.__h.length&&n.push(s);break t}s.componentWillUpdate!=null&&s.componentWillUpdate(v,s.__s,M),s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(g,p,b)})}if(s.context=M,s.props=v,s.__P=t,s.__e=!1,j=w.__r,z=0,"prototype"in O&&O.prototype.render){for(s.state=s.__s,s.__d=!1,j&&j(e),u=s.render(s.props,s.state,s.context),tt=0;tt<s._sb.length;tt++)s.__h.push(s._sb[tt]);s._sb=[]}else do s.__d=!1,j&&j(e),u=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++z<25);s.state=s.__s,s.getChildContext!=null&&(r=R(R({},r),s.getChildContext())),h||s.getSnapshotBeforeUpdate==null||(b=s.getSnapshotBeforeUpdate(g,p)),rr(t,Xt(et=u!=null&&u.type===N&&u.key==null?u.props.children:u)?et:[et],e,a,r,o,i,n,c,l,d),s.base=e.__e,e.__h=null,s.__h.length&&n.push(s),m&&(s.__E=s.__=null)}else i==null&&e.__v===a.__v?(e.__k=a.__k,e.__e=a.__e):e.__e=Is(a.__e,e,a,r,o,i,n,l,d);(u=w.diffed)&&u(e)}catch(jt){e.__v=null,(l||i!=null)&&(e.__e=c,e.__h=!!l,i[i.indexOf(c)]=null),w.__e(jt,e,a)}}function nr(t,e,a){for(var r=0;r<a.length;r++)Ne(a[r],a[++r],a[++r]);w.__c&&w.__c(e,t),t.some(function(o){try{t=o.__h,o.__h=[],t.some(function(i){i.call(o)})}catch(i){w.__e(i,o.__v)}})}function Is(t,e,a,r,o,i,n,c,l){var d,u,s,h=a.props,g=e.props,p=e.type,b=0;if(p==="svg"&&(o=!0),i!=null){for(;b<i.length;b++)if((d=i[b])&&"setAttribute"in d==!!p&&(p?d.localName===p:d.nodeType===3)){t=d,i[b]=null;break}}if(t==null){if(p===null)return document.createTextNode(g);t=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),i=null,c=!1}if(p===null)h===g||c&&t.data===g||(t.data=g);else{if(i=i&&Ot.call(t.childNodes),u=(h=a.props||lt).dangerouslySetInnerHTML,s=g.dangerouslySetInnerHTML,!c){if(i!=null)for(h={},b=0;b<t.attributes.length;b++)h[t.attributes[b].name]=t.attributes[b].value;(s||u)&&(s&&(u&&s.__html==u.__html||s.__html===t.innerHTML)||(t.innerHTML=s&&s.__html||""))}if(Os(t,g,h,o,c),s)e.__k=[];else if(rr(t,Xt(b=e.props.children)?b:[b],e,a,r,o&&p!=="foreignObject",i,n,i?i[0]:a.__k&&Ht(a,0),c,l),i!=null)for(b=i.length;b--;)i[b]!=null&&er(i[b]);c||("value"in g&&(b=g.value)!==void 0&&(b!==t.value||p==="progress"&&!b||p==="option"&&b!==h.value)&&Rt(t,"value",b,h.value,!1),"checked"in g&&(b=g.checked)!==void 0&&b!==t.checked&&Rt(t,"checked",b,h.checked,!1))}return t}function Ne(t,e,a){try{typeof t=="function"?t(e):t.current=e}catch(r){w.__e(r,a)}}function sr(t,e,a){var r,o;if(w.unmount&&w.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Ne(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){w.__e(i,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&sr(r[o],e,a||typeof t.type!="function");a||t.__e==null||er(t.__e),t.__=t.__e=t.__d=void 0}function Ts(t,e,a){return this.constructor(t,a)}function ut(t,e,a){var r,o,i,n;w.__&&w.__(t,e),o=(r=typeof a=="function")?null:a&&a.__k||e.__k,i=[],n=[],Ae(e,t=(!r&&a||e).__k=A(N,null,[t]),o||lt,lt,e.ownerSVGElement!==void 0,!r&&a?[a]:o?null:e.firstChild?Ot.call(e.childNodes):null,i,!r&&a?a:o?o.__e:e.firstChild,r,n),nr(i,t,n)}function cr(t,e){ut(t,e,cr)}function js(t,e,a){var r,o,i,n,c=R({},t.props);for(i in t.type&&t.type.defaultProps&&(n=t.type.defaultProps),e)i=="key"?r=e[i]:i=="ref"?o=e[i]:c[i]=e[i]===void 0&&n!==void 0?n[i]:e[i];return arguments.length>2&&(c.children=arguments.length>3?Ot.call(arguments,2):a),$t(t.type,c,r||t.key,o||t.ref,null)}function lr(t,e){var a={__c:e="__cC"+Qa++,__:t,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&o.some(function(c){c.__e=!0,fe(c)})},this.sub=function(n){o.push(n);var c=n.componentWillUnmount;n.componentWillUnmount=function(){o.splice(o.indexOf(n),1),c&&c.call(n)}}),r.children}};return a.Provider.__=a.Consumer.contextType=a}Ot=tr.slice,w={__e:function(t,e,a,r){for(var o,i,n;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(t)),n=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,r||{}),n=o.__d),n)return o.__E=o}catch(c){t=c}throw t}},Xa=0,Za=function(t){return t!=null&&t.constructor===void 0},L.prototype.setState=function(t,e){var a;a=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=R({},this.state),typeof t=="function"&&(t=t(R({},a),this.props)),t&&R(a,t),t!=null&&this.__v&&(e&&this._sb.push(e),fe(this))},L.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),fe(this))},L.prototype.render=N,it=[],Ja=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,he=function(t,e){return t.__v.__b-e.__v.__b},Bt.__r=0,Qa=0;var Zt=class extends Error{constructor(e){super(e[0].message);Ye(this,"issues");this.name="ValiError",this.issues=e}};function dr(t,e){return{...t,_parse(a,r){return t._parse(e(a),r)}}}function It(t){return{issues:t}}function I(t){return{output:t}}function zs(t,e){return{reason:t==null?void 0:t.reason,validation:e.validation,origin:(t==null?void 0:t.origin)||"value",message:e.message,input:e.input,path:e.path,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}}function Ds(t,e){return{reason:e,origin:t==null?void 0:t.origin,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}}function Z(t,e,a,r){if(!e||!e.length||a!=null&&a.skipPipe)return I(t);let o,i,n=t;for(const c of e){const l=c._parse(n);if(l.issues){o=o||Ds(a,r);for(const d of l.issues){const u=zs(o,d);i?i.push(u):i=[u]}if(o.abortEarly||o.abortPipeEarly)break}else n=l.output}return i?It(i):I(n)}function Y(t,e){return Array.isArray(t)?[void 0,t]:[t,e]}function ur(t){return typeof t=="function"?t():t}function J(t,e,a,r){return It([{validation:t,message:ur(e),input:a,requirement:r}])}function pr(t,e,a){if(!t||typeof t=="object"&&!Array.isArray(t)){const[i,n]=Y(e,a);return[t,i,n]}const[r,o]=Y(t,e);return[void 0,r,o]}function V(t,e,a,r,o,i){return{issues:[{reason:e,validation:a,origin:(t==null?void 0:t.origin)||"value",message:ur(r),input:o,issues:i,abortEarly:t==null?void 0:t.abortEarly,abortPipeEarly:t==null?void 0:t.abortPipeEarly,skipPipe:t==null?void 0:t.skipPipe}]}}function hr(t){return typeof t.default=="function"?t.default():t.default}function As(t){return{type:"any",async:!1,pipe:t,_parse(e,a){return Z(e,this.pipe,a,"any")}}}function fr(t,e,a){const[r="Invalid type",o]=Y(e,a);return{type:"array",async:!1,item:t,message:r,pipe:o,_parse(i,n){if(!Array.isArray(i))return V(n,"type","array",this.message,i);let c;const l=[];for(let d=0;d<i.length;d++){const u=i[d],s=this.item._parse(u,n);if(s.issues){const h={type:"array",input:i,key:d,value:u};for(const g of s.issues)g.path?g.path.unshift(h):g.path=[h],c==null||c.push(g);if(c||(c=s.issues),n!=null&&n.abortEarly)break}else l.push(s.output)}return c?It(c):Z(l,this.pipe,n,"array")}}}function wr(t,e){const[a="Invalid type",r]=Y(t,e);return{type:"boolean",async:!1,message:a,pipe:r,_parse(o,i){return typeof o!="boolean"?V(i,"type","boolean",this.message,o):Z(o,this.pipe,i,"boolean")}}}function la(t,e="Invalid type"){return{type:"literal",async:!1,literal:t,message:e,_parse(a,r){return a!==this.literal?V(r,"type","literal",this.message,a):I(a)}}}function Ns(t,e){return{type:"nullable",async:!1,wrapped:t,default:e,_parse(a,r){if(a===null){const o=hr(this);if(o===void 0)return I(a);a=o}return this.wrapped._parse(a,r)}}}function we(t,e){const[a="Invalid type",r]=Y(t,e);return{type:"number",async:!1,message:a,pipe:r,_parse(o,i){return typeof o!="number"||isNaN(o)?V(i,"type","number",this.message,o):Z(o,this.pipe,i,"number")}}}function G(t,e,a,r){const[o,i="Invalid type",n]=pr(e,a,r);let c;return{type:"object",async:!1,entries:t,rest:o,message:i,pipe:n,_parse(l,d){if(!l||typeof l!="object")return V(d,"type","object",this.message,l);c=c||Object.entries(this.entries);let u;const s={};for(const[h,g]of c){const p=l[h],b=g._parse(p,d);if(b.issues){const m={type:"object",input:l,key:h,value:p};for(const v of b.issues)v.path?v.path.unshift(m):v.path=[m],u==null||u.push(v);if(u||(u=b.issues),d!=null&&d.abortEarly)break}else(b.output!==void 0||h in l)&&(s[h]=b.output)}if(this.rest&&!(d!=null&&d.abortEarly&&u)){for(const h in l)if(!(h in this.entries)){const g=l[h],p=this.rest._parse(g,d);if(p.issues){const b={type:"object",input:l,key:h,value:g};for(const m of p.issues)m.path?m.path.unshift(b):m.path=[b],u==null||u.push(m);if(u||(u=p.issues),d!=null&&d.abortEarly)break}else s[h]=p.output}}return u?It(u):Z(s,this.pipe,d,"object")}}}function Me(t,e){return{type:"optional",async:!1,wrapped:t,default:e,_parse(a,r){if(a===void 0){const o=hr(this);if(o===void 0)return I(a);a=o}return this.wrapped._parse(a,r)}}}function Ms(t,e="Invalid type"){return{type:"picklist",async:!1,options:t,message:e,_parse(a,r){return this.options.includes(a)?I(a):V(r,"type","picklist",this.message,a)}}}function nt(t,e){const[a="Invalid type",r]=Y(t,e);return{type:"string",async:!1,message:a,pipe:r,_parse(o,i){return typeof o!="string"?V(i,"type","string",this.message,o):Z(o,this.pipe,i,"string")}}}function Fs(t,e,a,r){if(typeof e=="object"&&!Array.isArray(e)){const[n,c]=Y(a,r);return[t,e,n,c]}const[o,i]=Y(e,a);return[nt(),t,o,i]}var Ls=["__proto__","prototype","constructor"];function gr(t,e,a,r){const[o,i,n="Invalid type",c]=Fs(t,e,a,r);return{type:"record",async:!1,key:o,value:i,message:n,pipe:c,_parse(l,d){if(!l||typeof l!="object")return V(d,"type","record",this.message,l);let u;const s={};for(const[h,g]of Object.entries(l))if(!Ls.includes(h)){let p;const b=this.key._parse(h,{origin:"key",abortEarly:d==null?void 0:d.abortEarly,abortPipeEarly:d==null?void 0:d.abortPipeEarly,skipPipe:d==null?void 0:d.skipPipe});if(b.issues){p={type:"record",input:l,key:h,value:g};for(const v of b.issues)v.path=[p],u==null||u.push(v);if(u||(u=b.issues),d!=null&&d.abortEarly)break}const m=this.value._parse(g,d);if(m.issues){p=p||{type:"record",input:l,key:h,value:g};for(const v of m.issues)v.path?v.path.unshift(p):v.path=[p],u==null||u.push(v);if(u||(u=m.issues),d!=null&&d.abortEarly)break}!b.issues&&!m.issues&&(s[b.output]=m.output)}return u?It(u):Z(s,this.pipe,d,"record")}}}function Hs(t,e="Invalid type"){return{type:"union",async:!1,options:t,message:e,_parse(a,r){let o,i;for(const n of this.options){const c=n._parse(a,r);if(c.issues)if(o)for(const l of c.issues)o.push(l);else o=c.issues;else{i=[c.output];break}}return i?I(i[0]):V(r,"type","union",this.message,a,o)}}}function ge(t,e,a){const r=t._parse(e,a);if(r.issues)throw new Zt(r.issues);return r.output}async function Bs(t,e,a){const r=await t._parse(e,a);if(r.issues)throw new Zt(r.issues);return r.output}function Rs(t,e,a,r){const[o,i,n]=pr(e,a,r);return G(Object.entries(t.entries).reduce((c,[l,d])=>({...c,[l]:Me(d)}),{}),o,i,n)}function Us(t,e,a){const r=t._parse(e,a);return r.issues?{success:!1,error:new Zt(r.issues),issues:r.issues}:{success:!0,data:r.output,output:r.output}}function Vs(t,e,a){return{...t,_parse(r,o){const i=t._parse(r,o);if(i.issues)return i;const n=e(i.output);return a&&!Array.isArray(a)?a._parse(n,o):Z(n,a,o,typeof n)}}}var qs=/^[\w+-]+(?:\.[\w+-]+)*@[\da-z]+(?:[.-][\da-z]+)*\.[a-z]{2,}$/iu;function Ks(t,e="Invalid input"){return{type:"custom",async:!1,message:e,requirement:t,_parse(a){return this.requirement(a)?I(a):J(this.type,this.message,a,this.requirement)}}}function Ws(t="Invalid email"){return{type:"email",async:!1,message:t,requirement:qs,_parse(e){return this.requirement.test(e)?I(e):J(this.type,this.message,e,this.requirement)}}}function Gs(t,e="Invalid length"){return{type:"max_length",async:!1,message:e,requirement:t,_parse(a){return a.length>this.requirement?J(this.type,this.message,a,this.requirement):I(a)}}}function Ys(t,e="Invalid value"){return{type:"max_value",async:!1,message:e,requirement:t,_parse(a){return a>this.requirement?J(this.type,this.message,a,this.requirement):I(a)}}}function Xs(t,e="Invalid length"){return{type:"min_length",async:!1,message:e,requirement:t,_parse(a){return a.length<this.requirement?J(this.type,this.message,a,this.requirement):I(a)}}}function Zs(t,e="Invalid value"){return{type:"min_value",async:!1,message:e,requirement:t,_parse(a){return a<this.requirement?J(this.type,this.message,a,this.requirement):I(a)}}}function Js(t,e="Invalid regex"){return{type:"regex",async:!1,message:e,requirement:t,_parse(a){return this.requirement.test(a)?I(a):J(this.type,this.message,a,this.requirement)}}}function Qs(t="Invalid URL"){return{type:"url",async:!1,message:t,requirement(e){try{return new URL(e),!0}catch{return!1}},_parse(e){return this.requirement(e)?I(e):J(this.type,this.message,e,this.requirement)}}}function br(t){var e,a,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(a=br(t[e]))&&(r&&(r+=" "),r+=a);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Fe(){for(var t,e,a=0,r="";a<arguments.length;)(t=arguments[a++])&&(e=br(t))&&(r&&(r+=" "),r+=e);return r}const da=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,ua=Fe,vr=(t,e)=>a=>{var r;if((e==null?void 0:e.variants)==null)return ua(t,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:o,defaultVariants:i}=e,n=Object.keys(o).map(d=>{const u=a==null?void 0:a[d],s=i==null?void 0:i[d];if(u===null)return null;const h=da(u)||da(s);return o[d][h]}),c=a&&Object.entries(a).reduce((d,u)=>{let[s,h]=u;return h===void 0||(d[s]=h),d},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:s,className:h,...g}=u;return Object.entries(g).every(p=>{let[b,m]=p;return Array.isArray(m)?m.includes({...i,...c}[b]):{...i,...c}[b]===m})?[...d,s,h]:d},[]);return ua(t,n,l,a==null?void 0:a.class,a==null?void 0:a.className)};var X,y,re,pa,pt=0,_r=[],Nt=[],ha=w.__b,fa=w.__r,wa=w.diffed,ga=w.__c,ba=w.unmount;function bt(t,e){w.__h&&w.__h(y,t,pt||e),pt=0;var a=y.__H||(y.__H={__:[],__h:[]});return t>=a.__.length&&a.__.push({__V:Nt}),a.__[t]}function Le(t){return pt=1,mr(xr,t)}function mr(t,e,a){var r=bt(X++,2);if(r.t=t,!r.__c&&(r.__=[a?a(e):xr(void 0,e),function(c){var l=r.__N?r.__N[0]:r.__[0],d=r.t(l,c);l!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=y,!y.u)){var o=function(c,l,d){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(h){return h.__c});if(u.every(function(h){return!h.__N}))return!i||i.call(this,c,l,d);var s=!1;return u.forEach(function(h){if(h.__N){var g=h.__[0];h.__=h.__N,h.__N=void 0,g!==h.__[0]&&(s=!0)}}),!(!s&&r.__c.props===c)&&(!i||i.call(this,c,l,d))};y.u=!0;var i=y.shouldComponentUpdate,n=y.componentWillUpdate;y.componentWillUpdate=function(c,l,d){if(this.__e){var u=i;i=void 0,o(c,l,d),i=u}n&&n.call(this,c,l,d)},y.shouldComponentUpdate=o}return r.__N||r.__}function He(t,e){var a=bt(X++,3);!w.__s&&Be(a.__H,e)&&(a.__=t,a.i=e,y.__H.__h.push(a))}function vt(t,e){var a=bt(X++,4);!w.__s&&Be(a.__H,e)&&(a.__=t,a.i=e,y.__h.push(a))}function Jt(t){return pt=5,ct(function(){return{current:t}},[])}function tc(t,e,a){pt=6,vt(function(){return typeof t=="function"?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},a==null?a:a.concat(t))}function ct(t,e){var a=bt(X++,7);return Be(a.__H,e)?(a.__V=t(),a.i=e,a.__h=t,a.__V):a.__}function ec(t,e){return pt=8,ct(function(){return t},e)}function yr(t){var e=y.context[t.__c],a=bt(X++,9);return a.c=t,e?(a.__==null&&(a.__=!0,e.sub(y)),e.props.value):t.__}function ac(t,e){w.useDebugValue&&w.useDebugValue(e?e(t):t)}function rc(){var t=bt(X++,11);if(!t.__){for(var e=y.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var a=e.__m||(e.__m=[0,0]);t.__="P"+a[0]+"-"+a[1]++}return t.__}function ic(){for(var t;t=_r.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Mt),t.__H.__h.forEach(be),t.__H.__h=[]}catch(e){t.__H.__h=[],w.__e(e,t.__v)}}w.__b=function(t){y=null,ha&&ha(t)},w.__r=function(t){fa&&fa(t),X=0;var e=(y=t.__c).__H;e&&(re===y?(e.__h=[],y.__h=[],e.__.forEach(function(a){a.__N&&(a.__=a.__N),a.__V=Nt,a.__N=a.i=void 0})):(e.__h.forEach(Mt),e.__h.forEach(be),e.__h=[],X=0)),re=y},w.diffed=function(t){wa&&wa(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(_r.push(e)!==1&&pa===w.requestAnimationFrame||((pa=w.requestAnimationFrame)||oc)(ic)),e.__H.__.forEach(function(a){a.i&&(a.__H=a.i),a.__V!==Nt&&(a.__=a.__V),a.i=void 0,a.__V=Nt})),re=y=null},w.__c=function(t,e){e.some(function(a){try{a.__h.forEach(Mt),a.__h=a.__h.filter(function(r){return!r.__||be(r)})}catch(r){e.some(function(o){o.__h&&(o.__h=[])}),e=[],w.__e(r,a.__v)}}),ga&&ga(t,e)},w.unmount=function(t){ba&&ba(t);var e,a=t.__c;a&&a.__H&&(a.__H.__.forEach(function(r){try{Mt(r)}catch(o){e=o}}),a.__H=void 0,e&&w.__e(e,a.__v))};var va=typeof requestAnimationFrame=="function";function oc(t){var e,a=function(){clearTimeout(r),va&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(a,100);va&&(e=requestAnimationFrame(a))}function Mt(t){var e=y,a=t.__c;typeof a=="function"&&(t.__c=void 0,a()),y=e}function be(t){var e=y;t.__c=t.__(),y=e}function Be(t,e){return!t||t.length!==e.length||e.some(function(a,r){return a!==t[r]})}function xr(t,e){return typeof e=="function"?e(t):e}function kr(t,e){for(var a in e)t[a]=e[a];return t}function ve(t,e){for(var a in t)if(a!=="__source"&&!(a in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function ie(t,e){return t===e&&(t!==0||1/t==1/e)||t!=t&&e!=e}function _e(t){this.props=t}function nc(t,e){function a(o){var i=this.props.ref,n=i==o.ref;return!n&&i&&(i.call?i(null):i.current=null),e?!e(this.props,o)||!n:ve(this.props,o)}function r(o){return this.shouldComponentUpdate=a,A(t,o)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(_e.prototype=new L).isPureReactComponent=!0,_e.prototype.shouldComponentUpdate=function(t,e){return ve(this.props,t)||ve(this.state,e)};var _a=w.__b;w.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),_a&&_a(t)};var sc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function $r(t){function e(a){var r=kr({},a);return delete r.ref,t(r,a.ref||null)}return e.$$typeof=sc,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var ma=function(t,e){return t==null?null:U(U(t).map(e))},cc={map:ma,forEach:ma,count:function(t){return t?U(t).length:0},only:function(t){var e=U(t);if(e.length!==1)throw"Children.only";return e[0]},toArray:U},lc=w.__e;w.__e=function(t,e,a,r){if(t.then){for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return e.__e==null&&(e.__e=a.__e,e.__k=a.__k),o.__c(t,e)}lc(t,e,a,r)};var ya=w.unmount;function Sr(t,e,a){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=kr({},t)).__c!=null&&(t.__c.__P===a&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Sr(r,e,a)})),t}function Cr(t,e,a){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Cr(r,e,a)}),t.__c&&t.__c.__P===e&&(t.__e&&a.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=a)),t}function St(){this.__u=0,this.t=null,this.__b=null}function Er(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Pr(t){var e,a,r;function o(i){if(e||(e=t()).then(function(n){a=n.default||n},function(n){r=n}),r)throw r;if(!a)throw e;return A(a,i)}return o.displayName="Lazy",o.__f=!0,o}function xt(){this.u=null,this.o=null}w.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),ya&&ya(t)},(St.prototype=new L).__c=function(t,e){var a=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(a);var o=Er(r.__v),i=!1,n=function(){i||(i=!0,a.__R=null,o?o(c):c())};a.__R=n;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Cr(d,d.__c.__P,d.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(n,n)},St.prototype.componentWillUnmount=function(){this.t=[]},St.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var a=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Sr(this.__b,a,r.__O=r.__P)}this.__b=null}var o=e.__a&&A(N,null,t.fallback);return o&&(o.__h=null),[A(N,null,e.__a?null:t.children),o]};var xa=function(t,e,a){if(++a[1]===a[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(a=t.u;a;){for(;a.length>3;)a.pop()();if(a[1]<a[0])break;t.u=a=a[2]}};function dc(t){return this.getChildContext=function(){return t.context},t.children}function uc(t){var e=this,a=t.i;e.componentWillUnmount=function(){ut(null,e.l),e.l=null,e.i=null},e.i&&e.i!==a&&e.componentWillUnmount(),t.__v?(e.l||(e.i=a,e.l={nodeType:1,parentNode:a,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),ut(A(dc,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function pc(t,e){var a=A(uc,{__v:t,i:e});return a.containerInfo=e,a}(xt.prototype=new L).__a=function(t){var e=this,a=Er(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),xa(e,t,r)):o()};a?a(i):i()}},xt.prototype.render=function(t){this.u=null,this.o=new Map;var e=U(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var a=e.length;a--;)this.o.set(e[a],this.u=[1,0,this.u]);return t.children},xt.prototype.componentDidUpdate=xt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,a){xa(t,a,e)})};var Or=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,hc=/^(?: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]/,fc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,wc=/[A-Z0-9]/g,gc=typeof document<"u",bc=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function vc(t,e,a){return e.__k==null&&(e.textContent=""),ut(t,e),typeof a=="function"&&a(),t?t.__c:null}function _c(t,e,a){return cr(t,e),typeof a=="function"&&a(),t?t.__c:null}L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(L.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var ka=w.event;function mc(){}function yc(){return this.cancelBubble}function xc(){return this.defaultPrevented}w.event=function(t){return ka&&(t=ka(t)),t.persist=mc,t.isPropagationStopped=yc,t.isDefaultPrevented=xc,t.nativeEvent=t};var Re,kc={enumerable:!1,configurable:!0,get:function(){return this.class}},$a=w.vnode;w.vnode=function(t){typeof t.type=="string"&&function(e){var a=e.props,r=e.type,o={};for(var i in a){var n=a[i];if(!(i==="value"&&"defaultValue"in a&&n==null||gc&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in a&&a.value==null?i="value":i==="download"&&n===!0?n="":c==="ondoubleclick"?i="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||bc(a.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":fc.test(i)?i=c:r.indexOf("-")===-1&&hc.test(i)?i=i.replace(wc,"-$&").toLowerCase():n===null&&(n=void 0):c=i="oninput",c==="oninput"&&o[i=c]&&(i="oninputCapture"),o[i]=n}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=U(a.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=U(a.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),a.class&&!a.className?(o.class=a.class,Object.defineProperty(o,"className",kc)):(a.className&&!a.class||a.class&&a.className)&&(o.class=o.className=a.className),e.props=o}(t),t.$$typeof=Or,$a&&$a(t)};var Sa=w.__r;w.__r=function(t){Sa&&Sa(t),Re=t.__c};var Ca=w.diffed;w.diffed=function(t){Ca&&Ca(t);var e=t.props,a=t.__e;a!=null&&t.type==="textarea"&&"value"in e&&e.value!==a.value&&(a.value=e.value==null?"":e.value),Re=null};var $c={ReactCurrentDispatcher:{current:{readContext:function(t){return Re.__n[t.__c].props.value}}}};function Sc(t){return A.bind(null,t)}function Ir(t){return!!t&&t.$$typeof===Or}function Cc(t){return Ir(t)?js.apply(null,arguments):t}function Ec(t){return!!t.__k&&(ut(null,t),!0)}function Pc(t){return t&&(t.base||t.nodeType===1&&t)||null}var Oc=function(t,e){return t(e)},Ic=function(t,e){return t(e)},Tc=N;function Tr(t){t()}function jc(t){return t}function zc(){return[!1,Tr]}var Dc=vt;function Ac(t,e){var a=e(),r=Le({h:{__:a,v:e}}),o=r[0].h,i=r[1];return vt(function(){o.__=a,o.v=e,ie(o.__,e())||i({h:o})},[t,a,e]),He(function(){return ie(o.__,o.v())||i({h:o}),t(function(){ie(o.__,o.v())||i({h:o})})},[t]),a}var Nc={useState:Le,useId:rc,useReducer:mr,useEffect:He,useLayoutEffect:vt,useInsertionEffect:Dc,useTransition:zc,useDeferredValue:jc,useSyncExternalStore:Ac,startTransition:Tr,useRef:Jt,useImperativeHandle:tc,useMemo:ct,useCallback:ec,useContext:yr,useDebugValue:ac,version:"17.0.2",Children:cc,render:vc,hydrate:_c,unmountComponentAtNode:Ec,createPortal:pc,createElement:A,createContext:lr,createFactory:Sc,cloneElement:Cc,createRef:Es,Fragment:N,isValidElement:Ir,findDOMNode:Pc,Component:L,PureComponent:_e,memo:nc,forwardRef:$r,flushSync:Ic,unstable_batchedUpdates:Oc,StrictMode:Tc,Suspense:St,SuspenseList:xt,lazy:Pr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$c};const T=Symbol.for("@ts-pattern/matcher"),jr=Symbol.for("@ts-pattern/isVariadic"),Ut="@ts-pattern/anonymous-select-key",me=t=>!!(t&&typeof t=="object"),Ft=t=>t&&!!t[T],C=(t,e,a)=>{if(Ft(t)){const r=t[T](),{matched:o,selections:i}=r.match(e);return o&&i&&Object.keys(i).forEach(n=>a(n,i[n])),o}if(me(t)){if(!me(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let r=[],o=[],i=[];for(const n of t.keys()){const c=t[n];Ft(c)&&c[jr]?i.push(c):i.length?o.push(c):r.push(c)}if(i.length){if(i.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<r.length+o.length)return!1;const n=e.slice(0,r.length),c=o.length===0?[]:e.slice(-o.length),l=e.slice(r.length,o.length===0?1/0:-o.length);return r.every((d,u)=>C(d,n[u],a))&&o.every((d,u)=>C(d,c[u],a))&&(i.length===0||C(i[0],l,a))}return t.length===e.length&&t.every((n,c)=>C(n,e[c],a))}return Object.keys(t).every(r=>{const o=t[r];return(r in e||Ft(i=o)&&i[T]().matcherType==="optional")&&C(o,e[r],a);var i})}return Object.is(e,t)},D=t=>{var e,a,r;return me(t)?Ft(t)?(e=(a=(r=t[T]()).getSelectionKeys)==null?void 0:a.call(r))!=null?e:[]:Array.isArray(t)?Et(t,D):Et(Object.values(t),D):[]},Et=(t,e)=>t.reduce((a,r)=>a.concat(e(r)),[]);function Mc(...t){if(t.length===1){const[e]=t;return a=>C(e,a,()=>{})}if(t.length===2){const[e,a]=t;return C(e,a,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`)}function P(t){return Object.assign(t,{optional:()=>Ue(t),and:e=>x(t,e),or:e=>zr(t,e),select:e=>e===void 0?Pt(t):Pt(e,t)})}function ye(t){return Object.assign((e=>Object.assign(e,{*[Symbol.iterator](){yield Object.assign(e,{[jr]:!0})}}))(t),{optional:()=>ye(Ue(t)),select:e=>ye(e===void 0?Pt(t):Pt(e,t))})}function Ue(t){return P({[T]:()=>({match:e=>{let a={};const r=(o,i)=>{a[o]=i};return e===void 0?(D(t).forEach(o=>r(o,void 0)),{matched:!0,selections:a}):{matched:C(t,e,r),selections:a}},getSelectionKeys:()=>D(t),matcherType:"optional"})})}const Fc=(t,e)=>{for(const a of t)if(!e(a))return!1;return!0},Lc=(t,e)=>{for(const[a,r]of t.entries())if(!e(r,a))return!1;return!0};function x(...t){return P({[T]:()=>({match:e=>{let a={};const r=(o,i)=>{a[o]=i};return{matched:t.every(o=>C(o,e,r)),selections:a}},getSelectionKeys:()=>Et(t,D),matcherType:"and"})})}function zr(...t){return P({[T]:()=>({match:e=>{let a={};const r=(o,i)=>{a[o]=i};return Et(t,D).forEach(o=>r(o,void 0)),{matched:t.some(o=>C(o,e,r)),selections:a}},getSelectionKeys:()=>Et(t,D),matcherType:"or"})})}function _(t){return{[T]:()=>({match:e=>({matched:!!t(e)})})}}function Pt(...t){const e=typeof t[0]=="string"?t[0]:void 0,a=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return P({[T]:()=>({match:r=>{let o={[e??Ut]:r};return{matched:a===void 0||C(a,r,(i,n)=>{o[i]=n}),selections:o}},getSelectionKeys:()=>[e??Ut].concat(a===void 0?[]:D(a))})})}function H(t){return typeof t=="number"}function at(t){return typeof t=="string"}function q(t){return typeof t=="bigint"}const Dr=P(_(function(t){return!0})),Hc=Dr,rt=t=>Object.assign(P(t),{startsWith:e=>{return rt(x(t,(a=e,_(r=>at(r)&&r.startsWith(a)))));var a},endsWith:e=>{return rt(x(t,(a=e,_(r=>at(r)&&r.endsWith(a)))));var a},minLength:e=>rt(x(t,(a=>_(r=>at(r)&&r.length>=a))(e))),maxLength:e=>rt(x(t,(a=>_(r=>at(r)&&r.length<=a))(e))),includes:e=>{return rt(x(t,(a=e,_(r=>at(r)&&r.includes(a)))));var a},regex:e=>{return rt(x(t,(a=e,_(r=>at(r)&&!!r.match(a)))));var a}}),Bc=rt(_(at)),B=t=>Object.assign(P(t),{between:(e,a)=>B(x(t,((r,o)=>_(i=>H(i)&&r<=i&&o>=i))(e,a))),lt:e=>B(x(t,(a=>_(r=>H(r)&&r<a))(e))),gt:e=>B(x(t,(a=>_(r=>H(r)&&r>a))(e))),lte:e=>B(x(t,(a=>_(r=>H(r)&&r<=a))(e))),gte:e=>B(x(t,(a=>_(r=>H(r)&&r>=a))(e))),int:()=>B(x(t,_(e=>H(e)&&Number.isInteger(e)))),finite:()=>B(x(t,_(e=>H(e)&&Number.isFinite(e)))),positive:()=>B(x(t,_(e=>H(e)&&e>0))),negative:()=>B(x(t,_(e=>H(e)&&e<0)))}),Rc=B(_(H)),K=t=>Object.assign(P(t),{between:(e,a)=>K(x(t,((r,o)=>_(i=>q(i)&&r<=i&&o>=i))(e,a))),lt:e=>K(x(t,(a=>_(r=>q(r)&&r<a))(e))),gt:e=>K(x(t,(a=>_(r=>q(r)&&r>a))(e))),lte:e=>K(x(t,(a=>_(r=>q(r)&&r<=a))(e))),gte:e=>K(x(t,(a=>_(r=>q(r)&&r>=a))(e))),positive:()=>K(x(t,_(e=>q(e)&&e>0))),negative:()=>K(x(t,_(e=>q(e)&&e<0)))}),Uc=K(_(q)),Vc=P(_(function(t){return typeof t=="boolean"})),qc=P(_(function(t){return typeof t=="symbol"})),Kc=P(_(function(t){return t==null}));var ot={__proto__:null,matcher:T,optional:Ue,array:function(...t){return ye({[T]:()=>({match:e=>{if(!Array.isArray(e))return{matched:!1};if(t.length===0)return{matched:!0};const a=t[0];let r={};if(e.length===0)return D(a).forEach(i=>{r[i]=[]}),{matched:!0,selections:r};const o=(i,n)=>{r[i]=(r[i]||[]).concat([n])};return{matched:e.every(i=>C(a,i,o)),selections:r}},getSelectionKeys:()=>t.length===0?[]:D(t[0])})})},set:function(...t){return P({[T]:()=>({match:e=>{if(!(e instanceof Set))return{matched:!1};let a={};if(e.size===0)return{matched:!0,selections:a};if(t.length===0)return{matched:!0};const r=(i,n)=>{a[i]=(a[i]||[]).concat([n])},o=t[0];return{matched:Fc(e,i=>C(o,i,r)),selections:a}},getSelectionKeys:()=>t.length===0?[]:D(t[0])})})},map:function(...t){return P({[T]:()=>({match:e=>{if(!(e instanceof Map))return{matched:!1};let a={};if(e.size===0)return{matched:!0,selections:a};const r=(c,l)=>{a[c]=(a[c]||[]).concat([l])};if(t.length===0)return{matched:!0};var o;if(t.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o=t[0])==null?void 0:o.toString()}`);const[i,n]=t;return{matched:Lc(e,(c,l)=>{const d=C(i,l,r),u=C(n,c,r);return d&&u}),selections:a}},getSelectionKeys:()=>t.length===0?[]:[...D(t[0]),...D(t[1])]})})},intersection:x,union:zr,not:function(t){return P({[T]:()=>({match:e=>({matched:!C(t,e,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:_,select:Pt,any:Dr,_:Hc,string:Bc,number:Rc,bigint:Uc,boolean:Vc,symbol:qc,nullish:Kc,instanceOf:function(t){return P(_(function(e){return a=>a instanceof e}(t)))},shape:function(t){return P(_(Mc(t)))}};const xe={matched:!1,value:void 0};function Qt(t){return new Vt(t,xe)}class Vt{constructor(e,a){this.input=void 0,this.state=void 0,this.input=e,this.state=a}with(...e){if(this.state.matched)return this;const a=e[e.length-1],r=[e[0]];let o;e.length===3&&typeof e[1]=="function"?o=e[1]:e.length>2&&r.push(...e.slice(1,e.length-1));let i=!1,n={};const c=(d,u)=>{i=!0,n[d]=u},l=!r.some(d=>C(d,this.input,c))||o&&!o(this.input)?xe:{matched:!0,value:a(i?Ut in n?n[Ut]:n:this.input,this.input)};return new Vt(this.input,l)}when(e,a){if(this.state.matched)return this;const r=!!e(this.input);return new Vt(this.input,r?{matched:!0,value:a(this.input,this.input)}:xe)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let e;try{e=JSON.stringify(this.input)}catch{e=this.input}throw new Error(`Pattern matching error: no pattern matches value ${e}`)}run(){return this.exhaustive()}returnType(){return this}}var Wc=["other","few","many","two","one","zero"],Ea=({terms:t,overrides:e,locale:a})=>{const r=new Intl.PluralRules(a);function o(i,n){const c=(e==null?void 0:e[i])??t[i];switch(typeof c){case"string":return c.replace(/{{(\w+)}}/g,(l,d)=>{var u;return((u=n==null?void 0:n[d])==null?void 0:u.toString())??""});case"object":{if(typeof(n==null?void 0:n.count)!="number")throw new Error(`Missing count for translation key “${i.toString()}”`);let l=r.select(n.count);if(!(l in c)){const d=Wc.find(u=>u in c);if(!d)throw new Error(`Missing plural rule for translation key “${i.toString()}”`);l=d}return c[l].replace(/{{(\w+)}}/g,(d,u)=>{var s;return((s=n==null?void 0:n[u])==null?void 0:s.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${i.toString()}”.`)}}return o},Gc=0;function f(t,e,a,r,o,i){var n,c,l={};for(c in e)c=="ref"?n=e[c]:l[c]=e[c];var d={type:t,props:l,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Gc,__source:o,__self:i};if(typeof t=="function"&&(n=t.defaultProps))for(c in n)l[c]===void 0&&(l[c]=n[c]);return w.vnode&&w.vnode(d),d}var Pa=lr(null),Yc=t=>({TranslationProvider:({terms:e,children:a,locale:r})=>{const o=ct(()=>(console.log("instantiating"),Ea({locale:r,terms:t,overrides:e})),[e,r]);return f(Pa.Provider,{value:{t:o,locale:r},children:a})},useTranslation:()=>{const e=yr(Pa);if(e===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:e.t,locale:e.locale}},createTFunction:({overrides:e,locale:a})=>Ea({terms:t,overrides:e,locale:a})});const{TranslationProvider:Xc,useTranslation:Ve,createTFunction:Zc}=Yc({error_heading:"Something unexpected happened",undo:"Undo",send:"Send",skip:"Skip",skipped:"Skipped",submission_redirect_message:"Almost there! Please complete your submission here:",complete_submission:"Complete submission",submission_completed:"Submission completed!",submission_failed:"Failed to submit",maximize:"Maximise",minimize:"Minimise",close_application:"Close application",applying_for:"Applying for “{{title}}”",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",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_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_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_max:{one:"Please only upload one file",other:"Please only upload up to {{count}} files"}});function qe(t,e){if(!t)throw new Error(e)}function te(){throw new Error("Cycle detected")}var Jc=Symbol.for("preact-signals");function Ke(){if(dt>1)dt--;else{for(var t,e=!1;Ct!==void 0;){var a=Ct;for(Ct=void 0,ke++;a!==void 0;){var r=a.o;if(a.o=void 0,a.f&=-3,!(8&a.f)&&Nr(a))try{a.c()}catch(o){e||(t=o,e=!0)}a=r}}if(ke=0,dt--,e)throw t}}var k=void 0,Ct=void 0,dt=0,ke=0,qt=0;function Ar(t){if(k!==void 0){var e=t.n;if(e===void 0||e.t!==k)return e={i:0,S:t,p:k.s,n:void 0,t:k,e:void 0,x:void 0,r:e},k.s!==void 0&&(k.s.n=e),k.s=e,t.n=e,32&k.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=k.s,e.n=void 0,k.s.n=e,k.s=e),e}}function E(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}E.prototype.brand=Jc;E.prototype.h=function(){return!0};E.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)};E.prototype.U=function(t){if(this.t!==void 0){var e=t.e,a=t.x;e!==void 0&&(e.x=a,t.e=void 0),a!==void 0&&(a.e=e,t.x=void 0),t===this.t&&(this.t=a)}};E.prototype.subscribe=function(t){var e=this;return Ge(function(){var a=e.value,r=32&this.f;this.f&=-33;try{t(a)}finally{this.f|=r}})};E.prototype.valueOf=function(){return this.value};E.prototype.toString=function(){return this.value+""};E.prototype.toJSON=function(){return this.value};E.prototype.peek=function(){return this.v};Object.defineProperty(E.prototype,"value",{get:function(){var t=Ar(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(k instanceof Q&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){ke>100&&te(),this.v=t,this.i++,qt++,dt++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Ke()}}}});function ht(t){return new E(t)}function Nr(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 Mr(t){for(var e=t.s;e!==void 0;e=e.n){var a=e.S.n;if(a!==void 0&&(e.r=a),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Fr(t){for(var e=t.s,a=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):a=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=a}function Q(t){E.call(this,void 0),this.x=t,this.s=void 0,this.g=qt-1,this.f=4}(Q.prototype=new E).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&&!Nr(this))return this.f&=-2,!0;var t=k;try{Mr(this),k=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(a){this.v=a,this.f|=16,this.i++}return k=t,Fr(this),this.f&=-2,!0};Q.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)}E.prototype.S.call(this,t)};Q.prototype.U=function(t){if(this.t!==void 0&&(E.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)}};Q.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Q.prototype.peek=function(){if(this.h()||te(),16&this.f)throw this.v;return this.v};Object.defineProperty(Q.prototype,"value",{get:function(){1&this.f&&te();var t=Ar(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function Qc(t){return new Q(t)}function Lr(t){var e=t.u;if(t.u=void 0,typeof e=="function"){dt++;var a=k;k=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,We(t),r}finally{k=a,Ke()}}}function We(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Lr(t)}function tl(t){if(k!==this)throw new Error("Out-of-order effect");Fr(this),k=t,this.f&=-2,8&this.f&&We(this),Ke()}function Tt(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Tt.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()}};Tt.prototype.S=function(){1&this.f&&te(),this.f|=1,this.f&=-9,Lr(this),Mr(this),dt++;var t=k;return k=this,tl.bind(this,t)};Tt.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ct,Ct=this)};Tt.prototype.d=function(){this.f|=8,1&this.f||We(this)};function Ge(t){var e=new Tt(t);try{e.c()}catch(a){throw e.d(),a}return e.d.bind(e)}var oe;function _t(t,e){w[t]=e.bind(null,w[t]||function(){})}function Kt(t){oe&&oe(),oe=t&&t.S()}function Hr(t){var e=this,a=t.data,r=al(a);r.value=a;var o=ct(function(){for(var i=e.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return e.__$u.c=function(){var n;!Za(o.peek())&&((n=e.base)==null?void 0:n.nodeType)===3?e.base.data=o.peek():(e.__$f|=1,e.setState({}))},Qc(function(){var n=r.value.value;return n===0?0:n===!0?"":n||""})},[]);return o.value}Hr.displayName="_st";Object.defineProperties(E.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Hr},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});_t("__b",function(t,e){if(typeof e.type=="string"){var a,r=e.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof E&&(a||(e.__np=a={}),a[o]=i,r[o]=i.peek())}}t(e)});_t("__r",function(t,e){Kt();var a,r=e.__c;r&&(r.__$f&=-2,(a=r.__$u)===void 0&&(r.__$u=a=function(o){var i;return Ge(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i}())),Kt(a),t(e)});_t("__e",function(t,e,a,r){Kt(),t(e,a,r)});_t("diffed",function(t,e){Kt();var a;if(typeof e.type=="string"&&(a=e.__e)){var r=e.__np,o=e.props;if(r){var i=a.U;if(i)for(var n in i){var c=i[n];c!==void 0&&!(n in r)&&(c.d(),i[n]=void 0)}else a.U=i={};for(var l in r){var d=i[l],u=r[l];d===void 0?(d=el(a,l,u,o),i[l]=d):d.o(u,o)}}}t(e)});function el(t,e,a,r){var o=e in t&&t.ownerSVGElement===void 0,i=ht(a);return{o:function(n,c){i.value=n,r=c},d:Ge(function(){var n=i.value.value;r[e]!==n&&(r[e]=n,o?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))})}}_t("unmount",function(t,e){if(typeof e.type=="string"){var a=e.__e;if(a){var r=a.U;if(r){a.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}}else{var n=e.__c;if(n){var c=n.__$u;c&&(n.__$u=void 0,c.d())}}t(e)});_t("__h",function(t,e,a,r){(r<3||r===9)&&(e.__$f|=2),t(e,a,r)});L.prototype.shouldComponentUpdate=function(t,e){var a=this.__$u;if(!(a&&a.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in e)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in t))return!0;return!1};function al(t){return ct(function(){return ht(t)},[])}const $e=(t,e)=>e.some(a=>t instanceof a);let Oa,Ia;function rl(){return Oa||(Oa=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function il(){return Ia||(Ia=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Se=new WeakMap,ne=new WeakMap,ee=new WeakMap;function ol(t){const e=new Promise((a,r)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",n)},i=()=>{a(st(t.result)),o()},n=()=>{r(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",n)});return ee.set(e,t),e}function nl(t){if(Se.has(t))return;const e=new Promise((a,r)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",n),t.removeEventListener("abort",n)},i=()=>{a(),o()},n=()=>{r(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",n),t.addEventListener("abort",n)});Se.set(t,e)}let Ce={get(t,e,a){if(t instanceof IDBTransaction){if(e==="done")return Se.get(t);if(e==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return st(t[e])},set(t,e,a){return t[e]=a,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Br(t){Ce=t(Ce)}function sl(t){return il().includes(t)?function(...e){return t.apply(Ee(this),e),st(this.request)}:function(...e){return st(t.apply(Ee(this),e))}}function cl(t){return typeof t=="function"?sl(t):(t instanceof IDBTransaction&&nl(t),$e(t,rl())?new Proxy(t,Ce):t)}function st(t){if(t instanceof IDBRequest)return ol(t);if(ne.has(t))return ne.get(t);const e=cl(t);return e!==t&&(ne.set(t,e),ee.set(e,t)),e}const Ee=t=>ee.get(t);function ll(t,e,{blocked:a,upgrade:r,blocking:o,terminated:i}={}){const n=indexedDB.open(t,e),c=st(n);return r&&n.addEventListener("upgradeneeded",l=>{r(st(n.result),l.oldVersion,l.newVersion,st(n.transaction),l)}),a&&n.addEventListener("blocked",l=>a(l.oldVersion,l.newVersion,l)),c.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",d=>o(d.oldVersion,d.newVersion,d))}).catch(()=>{}),c}const dl=["get","getKey","getAll","getAllKeys","count"],ul=["put","add","delete","clear"],se=new Map;function Ta(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(se.get(e))return se.get(e);const a=e.replace(/FromIndex$/,""),r=e!==a,o=ul.includes(a);if(!(a in(r?IDBIndex:IDBObjectStore).prototype)||!(o||dl.includes(a)))return;const i=async function(n,...c){const l=this.transaction(n,o?"readwrite":"readonly");let d=l.store;return r&&(d=d.index(c.shift())),(await Promise.all([d[a](...c),o&&l.done]))[0]};return se.set(e,i),i}Br(t=>({...t,get:(e,a,r)=>Ta(e,a)||t.get(e,a,r),has:(e,a)=>!!Ta(e,a)||t.has(e,a)}));const pl=["continue","continuePrimaryKey","advance"],ja={},Pe=new WeakMap,Rr=new WeakMap,hl={get(t,e){if(!pl.includes(e))return t[e];let a=ja[e];return a||(a=ja[e]=function(...r){Pe.set(this,Rr.get(this)[e](...r))}),a}};async function*fl(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const a=new Proxy(e,hl);for(Rr.set(a,e),ee.set(a,Ee(e));e;)yield a,e=await(Pe.get(a)||e.continue()),Pe.delete(a)}function za(t,e){return e===Symbol.asyncIterator&&$e(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&$e(t,[IDBIndex,IDBObjectStore])}Br(t=>({...t,get(e,a,r){return za(e,a)?fl:t.get(e,a,r)},has(e,a){return za(e,a)||t.has(e,a)}}));const wl=t=>Qt(t).with(ot.number.lte(1e3),()=>`${Math.round(t)}KB`).with(ot.number.lt(1e3*10),()=>`${(t/1e3).toFixed(1)}MB`).otherwise(()=>`${Math.round(t/1e3)}MB`),gl=t=>{const e=t.find(a=>a.isHead);if(!e)throw new Error("No head node found");return e},bl=t=>Object.entries(t).reduce((a,[r,o])=>(a[r]=o.value,a),{}),vl=t=>e=>e?e.type===t:!1;class _l extends Error{constructor(){super("Aborted")}}function ml(t,e=300){let a;return(...r)=>{clearTimeout(a),a=setTimeout(()=>{t.apply(this,r)},e)}}const yl=t=>typeof t=="string",xl=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():Math.random().toString(36).slice(2),Da=()=>({messages:[],submissions:{},currentInput:null,nodeHistory:[],isFinished:!1,sequence:0,flowSessionId:xl()}),kl=t=>Qt(t).with({nativeEvent:{submitter:ot.select(ot.union(ot.instanceOf(HTMLButtonElement),ot.instanceOf(HTMLInputElement)))}},e=>e).otherwise(()=>{throw new Error("invalid submitter")}),Aa=typeof window>"u"?void 0:ll("inploi-chatbot",3,{upgrade(t){try{t.deleteObjectStore("state")}catch{}t.createObjectStore("state")}}),kt={getStateData:async(t,e)=>{var r;const a=Na({...t,flowKeys:e});return(r=await Aa)==null?void 0:r.get("state",a)},setStateData:ml(async t=>{var a;const e=Na(t);return(a=await Aa)==null?void 0:a.put("state",t.data,e)},1e3)},Lt=(t,e,a,r=0)=>{if(!e.nextId)return a(e.id,{stepsMade:r,remainingSteps:0}),{stepsMade:r,remainingSteps:0};const o=t.find(d=>d.id===e.nextId);if(o===void 0)return{stepsMade:r,remainingSteps:0};const i=e.type==="if-block"?e.branchId:void 0,n=t.find(d=>d.id===i),c=e.type.includes("question")?1:0;if(n){const d=c+Math.max(Lt(t,o,a,r+c).remainingSteps,Lt(t,n,a,r+c).remainingSteps);return a(e.id,{stepsMade:r,remainingSteps:d}),{stepsMade:r,remainingSteps:d}}const l=c+Lt(t,o,a,r+c).remainingSteps;return a(e.id,{stepsMade:r,remainingSteps:l}),{stepsMade:r,remainingSteps:l}},$l=t=>{const e={},a=t.find(r=>r.isHead);return a&&Lt(t,a,(r,o)=>{e[r]=o}),e},Na=t=>[...t.flowKeys,t.id,t.version].join("/"),W=ht({state:"idle"}),yt=t=>{const{state:e,flow:a}=W.value;if(e!=="loaded")return;qe(a,"No flow to update");const r=t(a.data);a.data=r,W.value={state:e,flow:a},kt.setStateData(a)},S={current$:W,viewState$:ht("closed"),inputHeight$:ht(53),startFlow:async({flow:t,context:e={},flowKeys:a,title:r,analytics:o,job:i})=>{const c={data:await kt.getStateData(t,a)??Da(),startedAt:new Date,nodeIdToProgress:$l(t.nodes),flowKeys:a,id:t.id,version:t.version,nodes:t.nodes,build:t.build,context:e,title:r,analytics:o,job:i};W.value={state:"loaded",flow:c},kt.setStateData(c)},cancelCurrentFlow:()=>{W.value={state:"idle"},S.viewState$.value="closed"},markAsFinished:()=>yt(t=>({...t,isFinished:!0})),setCurrentNodeId:t=>yt(e=>(e.nodeHistory.push(t),e)),restart:()=>{const{state:t,flow:e}=W.value;if(t!=="loaded")throw new Error("Flow cannot be restarted: not in valid state");const a=Da();W.value={state:t,flow:{...e,data:a,startedAt:new Date}},kt.setStateData(e)},addMessage:(t,e)=>{const a={...t,groupId:e};return yt(r=>(r.messages.push(a),r))},removeMessagesSentByNodeIds:t=>{const{state:e,flow:a}=W.value;qe(e==="loaded","Application not loaded");const r=a.data.messages.filter(o=>!o.groupId||!t.includes(o.groupId));a.data.messages=r,kt.setStateData(a)},setSubmission:(t,e)=>yt(a=>(e===null?delete a.submissions[t]:a.submissions[t]=e,a)),setInput:t=>yt(e=>({...e,currentInput:t??null}))},Sl=({message:t})=>{const{t:e}=Ve();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("error_heading")}),t&&f("p",{class:"text-neutral-9 text-sm",children:t})]})]})},Ur=t=>f("svg",{role:"img",viewBox:"0 0 24 24",...t,children:[f("title",{children:"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"})})})]}),Ma=()=>f("div",{class:"flex flex-grow flex-col items-center justify-center",children:f(Ur,{class:"text-neutral-6 h-8 w-8"})}),Cl=t=>{const a=t/100,r=1.3;return t<0?"0%":t>100?"100%":`${Math.round((1-(1-.1)*Math.pow(1-a,r))*100)}%`},Dt=({class:t,children:e,...a})=>f("button",{class:Fe("touch-hitbox text-interactive-copy hover:text-interactive-copy-hover active:text-interactive-copy-active hover:bg-interactive-bg-hover active:bg-interactive-bg-active fr relative rounded-full p-2 transition-all",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})}),El=()=>{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 a=t[e];if(a===void 0)return null;const r=100*(a.stepsMade/(a.remainingSteps+a.stepsMade));return f("div",{class:"bg-accent-3",children:f("div",{style:{width:Cl(r)},class:"bg-accent-9 ring-accent-6 relative h-[3px] rounded-full transition-all duration-1000"})})},Pl=({children:t,params:e})=>{const{t:a}=Ve(),r=S.viewState$;return f(N,{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:"flex h-[var(--header-height)] gap-2",children:[f("p",{id:"chatbot-status-bar",class:"sr-only",children:t}),f("button",{tabIndex:-1,onClick:()=>{r.value==="minimised"?r.value="maximised":r.value="minimised"},class:"view-switch h-full flex-grow overflow-hidden px-4 py-1",onTouchStart:ce,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"}):null,r.value==="minimised"?f(N,{children:[f(Dt,{class:"view-switch",onTouchStart:ce,"aria-label":a("maximize"),onClick:()=>r.value="maximised",children:f("path",{d:"M12.5 9.5L8 5L3.5 9.5"})},"minmax"),f(Dt,{"aria-label":a("close_application"),onClick:S.cancelCurrentFlow,children:f("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"close")]}):f(N,{children:[S.current$.value.state==="loaded"&&f(Dt,{"aria-label":"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(Dt,{class:"view-switch",onTouchStart:ce,"aria-label":a("minimize"),onClick:()=>r.value="minimised",children:f("path",{d:"M12.5 6.5L8 11L3.5 6.5"})},"minmax")]})]})]}),f(El,{})]})})};function ce(){}const Ol=Pr(()=>Promise.resolve().then(()=>require("./chatbot-body-1f8351bb.cjs")).then(t=>t.ChatbotBody)),Fa=vr("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full max-w-[450px] focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out",{variants:{view:{closed:"hidden",minimised:"h-[var(--header-height)] animate-slide-in-bottom",maximised:"h-[var(--content-height)] animate-maximise"}}}),La="outline-neutral-3 bg-neutral-1 relative flex h-full flex-col overflow-hidden rounded-3xl outline outline-1",Il=({open:t,...e})=>{const a=Jt(null);return vt(()=>{const r=a.current;r&&(t?r.showModal():r.close())},[t]),f("dialog",{ref:a,...e})},Tl=({logger:t,apiClient:e,analytics:a,params:r})=>{const{state:o,flow:i,error:n}=S.current$.value,c=S.viewState$.value,l=o!=="idle"&&c==="maximised",d=Jt(null),u=f(Pl,{params:r,children:i==null?void 0:i.title});return f(Xc,{terms:r.terms,locale:void 0,children:[f(Il,{open:l,onClose:()=>S.viewState$.value="minimised",children:f("div",{ref:d,"aria-modal":"true",role:"dialog","aria-labelledby":"chatbot-status-bar",class:Fa({view:"maximised"}),children:f("div",{class:La,children:[u,Qt({state:o,view:c}).with({state:"idle"},()=>null).with({state:"loading"},()=>f(Ma,{},"loading")).with({state:"loaded"},()=>f(St,{fallback:f(Ma,{},"loading"),children:f(Ol,{analytics:a,apiClient:e,logger:t})})).with({state:"error"},()=>f(Sl,{message:n})).exhaustive()]})})}),c==="minimised"?f("div",{class:Fa({view:"minimised",class:"z-100 isolate"}),children:f("div",{class:La,children:u})}):null]})},Vr=G({id:dr(nt(),String),version:we(),build:we(),nodes:fr(As()),context_schema:Me(Ns(gr(nt(),G({required:wr(),type:Hs([la("string"),la("number")])}))))}),jl=G({flow:Vr}),zl=G({company:G({name:nt()}),flow:Vr,job:G({id:dr(nt(),String),title:nt()})}),Dl=`[data-widget=inploi-chatbot]{-webkit-touch-callout:none;-moz-user-select:none;-webkit-user-select:none;user-select:none;position:relative;z-index:99999;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]{--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] *,[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: }[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: }[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}[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-2{bottom:.5rem}[data-widget=inploi-chatbot] .bottom-2\\.5{bottom:.625rem}[data-widget=inploi-chatbot] .left-0{left:0}[data-widget=inploi-chatbot] .left-2{left:.5rem}[data-widget=inploi-chatbot] .right-0{right:0}[data-widget=inploi-chatbot] .right-2{right:.5rem}[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-auto{margin-left:auto;margin-right:auto}[data-widget=inploi-chatbot] .mb-1{margin-bottom:.25rem}[data-widget=inploi-chatbot] .ml-auto{margin-left:auto}[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] .h-1{height:.25rem}[data-widget=inploi-chatbot] .h-1\\.5{height:.375rem}[data-widget=inploi-chatbot] .h-16{height:4rem}[data-widget=inploi-chatbot] .h-4{height:1rem}[data-widget=inploi-chatbot] .h-48{height:12rem}[data-widget=inploi-chatbot] .h-8{height:2rem}[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\\(8lh\\+1rem\\)\\]{max-height:calc(8lh + 1rem)}[data-widget=inploi-chatbot] .max-h-full{max-height:100%}[data-widget=inploi-chatbot] .min-h-\\[36px\\]{min-height:36px}[data-widget=inploi-chatbot] .min-h-\\[calc\\(1lh\\+1rem\\)\\]{min-height:calc(1lh + 1rem)}[data-widget=inploi-chatbot] .w-1{width:.25rem}[data-widget=inploi-chatbot] .w-1\\.5{width:.375rem}[data-widget=inploi-chatbot] .w-16{width:4rem}[data-widget=inploi-chatbot] .w-24{width:6rem}[data-widget=inploi-chatbot] .w-4{width:1rem}[data-widget=inploi-chatbot] .w-64{width:16rem}[data-widget=inploi-chatbot] .w-8{width:2rem}[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:2rem}[data-widget=inploi-chatbot] .max-w-\\[450px\\]{max-width:450px}[data-widget=inploi-chatbot] .max-w-\\[min\\(100\\%\\,24rem\\)\\]{max-width:min(100%,24rem)}[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-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] .flex-grow,[data-widget=inploi-chatbot] .grow{flex-grow:1}[data-widget=inploi-chatbot] .border-collapse{border-collapse:collapse}[data-widget=inploi-chatbot] .translate-y-full{--tw-translate-y: 100%;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 slide-in-bottom{0%{transform:translateY(-100%) scaleX(.82)}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{-moz-user-select:none;-webkit-user-select:none;user-select:none}[data-widget=inploi-chatbot] .select-text{-moz-user-select:text;-webkit-user-select:text;user-select:text}[data-widget=inploi-chatbot] .resize-y{resize:vertical}[data-widget=inploi-chatbot] .resize{resize:both}[data-widget=inploi-chatbot] .appearance-none{-moz-appearance:none;-webkit-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-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:.25rem}[data-widget=inploi-chatbot] .gap-1\\.5{gap:.375rem}[data-widget=inploi-chatbot] .gap-2{gap:.5rem}[data-widget=inploi-chatbot] .gap-2\\.5{gap:.625rem}[data-widget=inploi-chatbot] .gap-3{gap:.75rem}[data-widget=inploi-chatbot] .gap-4{gap:1rem}[data-widget=inploi-chatbot] .gap-px{gap:1px}[data-widget=inploi-chatbot] .overflow-hidden{overflow:hidden}[data-widget=inploi-chatbot] .overflow-y-auto{overflow-y:auto}[data-widget=inploi-chatbot] .overflow-y-scroll{overflow-y:scroll}[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] .break-words{overflow-wrap:break-word}[data-widget=inploi-chatbot] .rounded{border-radius:.25rem}[data-widget=inploi-chatbot] .rounded-2xl{border-radius:1rem}[data-widget=inploi-chatbot] .rounded-3xl{border-radius:1.5rem}[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:.5rem}[data-widget=inploi-chatbot] .rounded-md{border-radius:.375rem}[data-widget=inploi-chatbot] .rounded-xl{border-radius:.75rem}[data-widget=inploi-chatbot] .rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}[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-bl-md{border-bottom-left-radius:.375rem}[data-widget=inploi-chatbot] .rounded-br-md{border-bottom-right-radius:.375rem}[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:.25rem}[data-widget=inploi-chatbot] .p-1\\.5{padding:.375rem}[data-widget=inploi-chatbot] .p-10{padding:2.5rem}[data-widget=inploi-chatbot] .p-11{padding:2.75rem}[data-widget=inploi-chatbot] .p-12{padding:3rem}[data-widget=inploi-chatbot] .p-2{padding:.5rem}[data-widget=inploi-chatbot] .p-2\\.5{padding:.625rem}[data-widget=inploi-chatbot] .p-3{padding:.75rem}[data-widget=inploi-chatbot] .p-4{padding:1rem}[data-widget=inploi-chatbot] .p-5{padding:1.25rem}[data-widget=inploi-chatbot] .p-6{padding:1.5rem}[data-widget=inploi-chatbot] .p-7{padding:1.75rem}[data-widget=inploi-chatbot] .p-8{padding:2rem}[data-widget=inploi-chatbot] .p-9{padding:2.25rem}[data-widget=inploi-chatbot] .px-1{padding-left:.25rem;padding-right:.25rem}[data-widget=inploi-chatbot] .px-1\\.5{padding-left:.375rem;padding-right:.375rem}[data-widget=inploi-chatbot] .px-2{padding-left:.5rem;padding-right:.5rem}[data-widget=inploi-chatbot] .px-2\\.5{padding-left:.625rem;padding-right:.625rem}[data-widget=inploi-chatbot] .px-3{padding-left:.75rem;padding-right:.75rem}[data-widget=inploi-chatbot] .px-4{padding-left:1rem;padding-right:1rem}[data-widget=inploi-chatbot] .px-5{padding-left:1.25rem;padding-right:1.25rem}[data-widget=inploi-chatbot] .py-0{padding-top:0;padding-bottom:0}[data-widget=inploi-chatbot] .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}[data-widget=inploi-chatbot] .py-1{padding-top:.25rem;padding-bottom:.25rem}[data-widget=inploi-chatbot] .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}[data-widget=inploi-chatbot] .py-2{padding-top:.5rem;padding-bottom:.5rem}[data-widget=inploi-chatbot] .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}[data-widget=inploi-chatbot] .py-3{padding-top:.75rem;padding-bottom:.75rem}[data-widget=inploi-chatbot] .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}[data-widget=inploi-chatbot] .pb-2{padding-bottom:.5rem}[data-widget=inploi-chatbot] .pb-6{padding-bottom:1.5rem}[data-widget=inploi-chatbot] .pl-1{padding-left:.25rem}[data-widget=inploi-chatbot] .pl-1\\.5{padding-left:.375rem}[data-widget=inploi-chatbot] .pl-2{padding-left:.5rem}[data-widget=inploi-chatbot] .pl-2\\.5{padding-left:.625rem}[data-widget=inploi-chatbot] .pl-3{padding-left:.75rem}[data-widget=inploi-chatbot] .pl-4{padding-left:1rem}[data-widget=inploi-chatbot] .pr-1{padding-right:.25rem}[data-widget=inploi-chatbot] .pr-16{padding-right:4rem}[data-widget=inploi-chatbot] .pr-2{padding-right:.5rem}[data-widget=inploi-chatbot] .pr-2\\.5{padding-right:.625rem}[data-widget=inploi-chatbot] .pr-3{padding-right:.75rem}[data-widget=inploi-chatbot] .pr-4{padding-right:1rem}[data-widget=inploi-chatbot] .pt-2{padding-top:.5rem}[data-widget=inploi-chatbot] .pt-2\\.5{padding-top:.625rem}[data-widget=inploi-chatbot] .pt-3{padding-top:.75rem}[data-widget=inploi-chatbot] .pt-5{padding-top:1.25rem}[data-widget=inploi-chatbot] .pt-\\[calc\\(var\\(--header-height\\)\\+1rem\\)\\]{padding-top:calc(var(--header-height) + 1rem)}[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:1rem;line-height:1.5rem}[data-widget=inploi-chatbot] .text-sm{font-size:.875rem;line-height:1.25rem}[data-widget=inploi-chatbot] .text-xs{font-size:.75rem;line-height:1rem}[data-widget=inploi-chatbot] .font-bold{font-weight:700}[data-widget=inploi-chatbot] .font-medium{font-weight:500}[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:.75rem}[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-\\[\\#4CAF50\\]{--tw-text-opacity: 1;color:rgb(76 175 80 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .text-\\[\\#FFC107\\]{--tw-text-opacity: 1;color:rgb(255 193 7 / var(--tw-text-opacity))}[data-widget=inploi-chatbot] .text-accent-1{color:var(--i-color-a-1)}[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-interactive-copy{color:var(--i-interactive-copy)}[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-neutral-8{color:var(--i-color-n-8)}[data-widget=inploi-chatbot] .text-neutral-9{color:var(--i-color-n-9)}[data-widget=inploi-chatbot] .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}[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-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-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-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-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-blur-xl{--tw-backdrop-blur: blur(24px);-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] .duration-700{transition-duration:.7s}[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-\\[height\\]{will-change:height}[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:.5rem;border-bottom-left-radius:.5rem}[data-widget=inploi-chatbot] .last-of-type\\:rounded-r-lg:last-of-type{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}[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-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\\:text-accent-11:hover{color:var(--i-color-a-11)}[data-widget=inploi-chatbot] .hover\\:text-interactive-copy-hover:hover{color:var(--i-interactive-copy-hover)}[data-widget=inploi-chatbot] .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}[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] .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-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-submit-bg-active:active{background-color:var(--i-submit-button-bg-active)}[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-interactive-copy-active:active{color:var(--i-interactive-copy-active)}[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-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] .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-11:has(+*>input:focus){color:var(--i-color-n-11)}[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))}@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)}
|
|
2
|
-
`,qr="inploi-chatbot",Kr=`[data-widget='${qr}']`,Al=()=>({getOrCreateChatbotElement:()=>{const t=document.querySelector(Kr);if(t)return document.body.appendChild(t),t;const e=document.createElement("div");return document.body.appendChild(e),e.dataset.widget=qr,e}});var Nl=["1","2","3","4","5","6","7","8","9","10","11","12"],Ml={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]}},Fl=(t,e=1,a)=>r=>{const[o,i]=Ml[a][r];return"oklch("+o+"% "+i*e+" "+t+")"},le=t=>{const e=Fl(t.hue,t.chroma,t.mode);return Object.fromEntries(Nl.map(a=>[t.prefix+a,t.transform(e(a))]))},de=t=>t,Ll=t=>{const e=Object.keys(t).flatMap(a=>{const r=t[a];return typeof r=="object"&&r!==null?Object.keys(r).map(o=>{const i=r[o];return[`${String(a)}.${o}`,i]}):[[a,r]]});return Object.fromEntries(e)},At=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Oe=(t,...e)=>{if(!e.length)return t;const a=e.shift();if(At(t)&&At(a))for(const r in a){const o=a[r];if(At(o)){t[r]||Object.assign(t,{[r]:{}});const i=t[r];At(i)&&Oe(i,o)}else Object.assign(t,{[r]:a[r]})}return Oe(t,...e)},Hl=t=>{function e(a,r){const o=[t.prefix,r.toString().replace(/\./g,"-")].join("");return a==="declaration"?`--${o}`:`var(--${o})`}return e},Bl=()=>({core:t=>({semantic:e=>({component:a=>({from:r=>{const{theme:o,getToken:i}=r,n=h=>i("reference",h.toString()),c=t({theme:o}),l=e({theme:o,core:n,raw:{core:c}}),d=a({theme:o,core:n,semantic:n,raw:{core:c,semantic:l}}),u=Ll(Oe(c,l,d)),s=([h,g],p)=>{const b=[p,h].filter(Boolean).join(".");return typeof g=="object"?Object.entries(g).flatMap(m=>s(m,b)):[[r.getToken("declaration",b),g]]};return{values:u,declarations:Object.fromEntries(Object.entries(u).flatMap(h=>s(h))),ref:h=>i("reference",h.toString())}}})})})});const[ue,pe,Ha]=["oklch(0% 0 0)","oklch(100% 0 0)","transparent"],Rl=Bl().core(({theme:t})=>({color:{black:ue,white:pe,lowest:t.mode==="light"?pe:ue,highest:t.mode==="light"?ue:pe,...le({prefix:"a-",hue:t.hue,chroma:t.chroma,mode:t.mode,transform:de}),...le({prefix:"n-",hue:t.hue,chroma:.05,mode:t.mode,transform:de}),...le({prefix:"e-",hue:20,chroma:t.chroma,mode:t.mode,transform:de})},typography:{}})).semantic(({core:t,raw:e,theme:a})=>{const r=(o,i)=>e.core.color[o].replace(")",` / ${i})`);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:r("n-8",a.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:Ha,"bg-hover":r("n-10",.4),"bg-active":r("n-10",.5)}}}).component(({raw:t,theme:e,semantic:a,core:r})=>{const o=(i,n)=>t.core.color[i].replace(")",` / ${n})`);return{app:{bg:r(e.mode==="dark"?"color.n-1":"color.n-2")},overlay:{bg:o("black",.4)},bubble:{"weak-bg":r(e.mode==="dark"?"color.n-3":"color.lowest"),"weak-outline":a("color.divider"),"strong-shadow":o("a-9",.05)},"status-bar":{bg:o("n-2",.8),"bg-button":Ha,"bg-button-hover":o("n-10",.4),"bg-button-active":o("n-10",.5)},"submit-button":{"bg-active":r(e.mode==="dark"?"color.a-8":"color.a-11")}}}),Ul=Hl({prefix:"i-"}),Vl=t=>{const e=Rl.from({theme:t,getToken:Ul}),a=Object.entries(e.declarations).map(([r,o])=>`${r}: ${o};`);return`${Kr} {
|
|
3
|
-
${a.concat(a).join(`
|
|
4
|
-
`)}
|
|
5
|
-
}`},Ba=({context:t,schema:e,logger:a})=>{if(e)for(const r in e){const o=e[r];if(!o)continue;const i=Ya(t,r,null);if(o.required&&i===null){const n=`Configuration error in context: ${r} is required`;throw a.error(n),new Error(n)}switch(o.type){case"number":if(typeof i!="number")throw new Error(`Configuration error in context: ${r} is not a number`);break;case"string":if(typeof i!="string")throw new Error(`Configuration error in context: ${r} is not a string`);break;default:o.type}}},ql=({_internal_domManager:t=Al(),theme:e,terms:a,feedback:r})=>Yr.createPlugin(({apiClient:o,logger:i,analytics:n})=>{let c=!1;const l=Zc({locale:void 0,overrides:a??{}}),d=()=>{var h;if(typeof window>"u")return;const u=[A("style",{id:"inploi-chatbot-styles"},Dl),A("style",{id:"inploi-chatbot-theme"},Vl(e))],s=t.getOrCreateChatbotElement();if(ut(A(N,{},[u,A(Tl,{apiClient:o,logger:i,analytics:n,params:{theme:e,terms:a,feedback:r}})]),s),r){const g=r.plugin({apiClient:o,logger:i,analytics:n}),p=s.querySelector("dialog");if(!p)throw new Error("Couldn't find feedback host");g.render({key:"chatbot-header",size:"sm",theme:{accent:{chroma:e.chroma??1,hue:e.hue},positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},mode:"light",corners:"rounded",highlights:"stroke"},terms:((h=r.params)==null?void 0:h.terms)??{},host:p})}c=!0};return{prepare:async()=>{if(!(typeof window>"u"))try{if(c)return;d(),i.info("Chatbot plugin prepared")}catch(u){i.error("Error preparing chatbot plugin",u)}},fetchFlowByJobId:async(u,s)=>{const h=new URLSearchParams({id_type:(s==null?void 0:s.idType)==="inploi"?"internal":"external"});return o.fetch([`/flow/job/${u}`,h.toString()].filter(Boolean).join("?")).then(g=>{const p=ge(zl,g);return{flow:p.flow,title:l("applying_for",{title:p.job.title}),flowKeys:[p.job.id,...(s==null?void 0:s.flowKeys)??[]],job:{id:p.job.id,id_type:"external"},...s}})},fetchFlowById:async(u,s)=>o.fetch(`/flow/id/${u}`).then(h=>{var p;const g=ge(jl,h);return{flow:g.flow,title:"Chatbot",flowKeys:(s==null?void 0:s.flowKeys)??[],...s,analytics:{customProperties:{flow_id:g.flow.id,flow_version:g.flow.version,...(p=s==null?void 0:s.analytics)==null?void 0:p.customProperties}}}}),open:async u=>{if(!(typeof window>"u"))try{S.cancelCurrentFlow(),S.viewState$.value="maximised",c||d(),u instanceof Promise?(S.current$.value={state:"loading"},u.then(async s=>{Ba({context:s.context||{},schema:s.flow.context_schema,logger:i}),S.startFlow(s)}).catch(s=>{const h=s instanceof Error?s.message:l("unknown_error");S.current$.value={state:"error",error:h}})):(Ba({context:u.context||{},schema:u.flow.context_schema,logger:i}),S.startFlow(u))}catch(s){i.error("Error starting flow",s)}},close:async()=>{typeof window>"u"||(S.cancelCurrentFlow(),i.info("Closed flow from an external source"))}}});exports.AbortedError=_l;exports.Cn=Nc;exports.F=ct;exports.LoadingIndicator=Ur;exports.N=Qt;exports.ValiError=Zt;exports._=ot;exports._$1=Jt;exports.a=ht;exports.array=fr;exports.boolean=wr;exports.chatbotPlugin=ql;exports.clsx=Fe;exports.custom=Ks;exports.cva=vr;exports.email=Ws;exports.get=Ya;exports.getDefaultExportFromCjs=Ra;exports.getFlowSubmissionsPayload=bl;exports.getFormSubmitter=kl;exports.getHeadOrThrow=gl;exports.h=Le;exports.invariant=qe;exports.isString=yl;exports.isSubmissionOfType=vl;exports.k=N;exports.k$1=$r;exports.kbToReadableSize=wl;exports.maxLength=Gs;exports.maxValue=Ys;exports.minLength=Xs;exports.minValue=Zs;exports.number=we;exports.o=f;exports.object=G;exports.optional=Me;exports.p=He;exports.parse=ge;exports.parseAsync=Bs;exports.partial=Rs;exports.picklist=Ms;exports.record=gr;exports.regex=Js;exports.safeParse=Us;exports.store=S;exports.string=nt;exports.transform=Vs;exports.url=Qs;exports.useTranslation=Ve;exports.y=vt;
|