@pagelines/widget 1.0.902 → 1.0.903

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.
Files changed (2) hide show
  1. package/dist/widget.js +15 -15
  2. package/package.json +2 -2
package/dist/widget.js CHANGED
@@ -14,8 +14,8 @@ ${n.join(`
14
14
  if (${z}_ab && ctx && ctx.abortEarly) {
15
15
  payload.value = newResult;
16
16
  return payload;
17
- }`;x.write("const input = payload.value;");let E=Object.create(null),M=0;for(let z of h.allKeys)E[z]=`key_${M++}`;x.write(r?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let z of h.allKeys){if(z==="__proto__")continue;let D=E[z],X=typeof z=="symbol"?`syms[${v.indexOf(z)}]`:ir(z),ce=`${X} in input`,ie=m[z],Q=ie?._zod?.optin,ae=Q!==void 0,ne=ie?._zod?.optout==="optional";if(x.write(`const ${D} = ${A(X)};`),ae&&ne){let ve=Q==="optional"?`${D}_present`:`${D}.value !== undefined || ${D}_present`;x.write(`
18
- const ${D}_present = ${ce};
17
+ }`;x.write("const input = payload.value;");let E=Object.create(null),M=0;for(let z of h.allKeys)E[z]=`key_${M++}`;x.write(r?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let z of h.allKeys){if(z==="__proto__")continue;let D=E[z],X=typeof z=="symbol"?`syms[${v.indexOf(z)}]`:ir(z),le=`${X} in input`,ie=m[z],Q=ie?._zod?.optin,ae=Q!==void 0,ne=ie?._zod?.optout==="optional";if(x.write(`const ${D} = ${A(X)};`),ae&&ne){let ve=Q==="optional"?`${D}_present`:`${D}.value !== undefined || ${D}_present`;x.write(`
18
+ const ${D}_present = ${le};
19
19
  if (!${D}.issues.length || ${D}_present) {
20
20
  if (${D}.issues.length) {${I(D,X)}
21
21
  }
@@ -29,11 +29,11 @@ ${n.join(`
29
29
  if (${D}.issues.length) {${I(D,X)}
30
30
  }
31
31
  `),Q==="defaulted"?x.write(`newResult[${X}] = ${D}.value;`):x.write(`
32
- if (${D}.value !== undefined || ${ce}) {
32
+ if (${D}.value !== undefined || ${le}) {
33
33
  newResult[${X}] = ${D}.value;
34
34
  }
35
35
  `)):x.write(`
36
- const ${D}_present = ${ce};
36
+ const ${D}_present = ${le};
37
37
  if (${D}.issues.length) {${I(D,X)}
38
38
  }
39
39
  if (!${D}_present && !${D}.issues.length) {
@@ -57,21 +57,21 @@ ${n.join(`
57
57
  `),u=t?.debug?a.length>0?`// Constants: ${a.join(", ")}
58
58
  ${l}`:l:"",d=Function,p=`return (input) => {
59
59
  ${l}
60
- }`,f;try{f=new d(...a,p)(...s)}catch(m){throw new Re(`this schema (generated code failed to evaluate: ${m.message})`)}return t?.debug&&(f.code=u),f.definite=i.definite,f}function Se(e,t){for(let[i,r]of e.constants)if(r===t)return i;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function Ui(e,t){return e.definite=!1,Se(e,t)}function we(e){return`v${e.varCounter++}`}function KT(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return ar;let i=n;return i.issues.length===0?i.value:ar}function Yt(e,t,n,i,r=!0){let o=e.content.length,a=t.constants.size,s=t.constantCounter,l=t.varCounter;try{return kt(e,t,n,i,r)}catch(u){if(!(u instanceof Re)||!u.islandable)throw u;if(e.content.length=o,t.constants.size>a){let d=Array.from(t.constants.keys()).slice(a);for(let p of d)t.constants.delete(p)}return t.constantCounter=s,t.varCounter=l,WT(e,t,n,i)}}function WT(e,t,n,i){t.definite=!1;let r=Se(t,n),o=Se(t,KT),a=we(t);return e.write(`const ${a} = ${o}(${r}, ${i});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function JT(e,t,n,i){let r=n._zod.def.checks;if(!r||r.length===0)return i;let o=i;for(let a of r){let s=a._zod.def;if(s.when&&!GT.has(s.check))throw new Re('check with a custom "when" condition');switch(s.check){case"greater_than":qT(e,t,s,o);break;case"less_than":YT(e,t,s,o);break;case"multiple_of":XT(e,t,s,o);break;case"number_format":wx(e,s,o);break;case"min_length":{let l=Pi(s.minimum,"min_length"),u=Sh(e,t,o,`${o}.length >= ${l} && ${o}.length < ${s.minimum*2}`);e.write(`if (${u} < ${l}) return INVALID;`);break}case"max_length":{let l=Pi(s.maximum,"max_length"),u=Sh(e,t,o,`${o}.length > ${l}`);e.write(`if (${u} > ${l}) return INVALID;`);break}case"length_equals":{let l=Pi(s.length,"length_equals"),u=Sh(e,t,o,`${o}.length >= ${l} && ${o}.length <= ${s.length*2}`);e.write(`if (${u} !== ${l}) return INVALID;`);break}case"min_size":e.write(`if (${o}.size < ${Pi(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${Pi(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${Pi(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=kx(e,t,s,o);break;case"custom":o=iN(e,t,a,o);break;case"bigint_format":QT(e,s,o);break;case"mime_type":eN(e,t,s,o);break;case"property":rN(e,t,s,o);break;case"properties":tN(e,t,s,o);break;case"overwrite":{let l=we(t);nN(e,t,a,o,l),o=l;break}default:throw new Re(`check type ${s.check}`)}}return o}function Sh(e,t,n,i){let r=Se(t,Ci),o=we(t);return e.write(`const ${o} = typeof ${n} === "string" && ${i} ? ${r}(${n}) : ${n}.length;`),o}function Pi(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Re(`${t} bound of type ${typeof e}`);return`${e}`}function yx(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Re("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Re("comparison check with Invalid Date bound");return Se(e,t)}throw new Re(`comparison check bound of type ${typeof t}`)}function qT(e,t,n,i){let r=n.inclusive?"<":"<=";e.write(`if (${i} ${r} ${yx(t,n.value)}) return INVALID;`)}function YT(e,t,n,i){let r=n.inclusive?">":">=";e.write(`if (${i} ${r} ${yx(t,n.value)}) return INVALID;`)}function XT(e,t,n,i){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Re("multiple_of check with a zero divisor");e.write(`if (${i} % ${n.value}n !== 0n) return INVALID;`)}else{let r=Se(t,Ja);e.write(`if (${r}(${i}, ${Pi(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function wx(e,t,n){let i=t.format;switch(i){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Re(`number format ${i}`)}}function QT(e,t,n){let i=t.format;if(i)switch(i){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Re(`bigint format ${i}`)}}function eN(e,t,n,i){let r=n.mime;if(r&&r.length>0){let o=Se(t,new Set(r));e.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function tN(e,t,n,i){if(n.when)throw new Re('check with a custom "when" condition');e.write(`if (${i} == null) return INVALID;`);let r=n.shape;for(let o of Reflect.ownKeys(r)){let a=typeof o=="symbol"?Se(t,o):ir(o),s=we(t);e.write(`const ${s} = ${i}[${a}];`),Yt(e,t,r[o],s,!1)}}function rN(e,t,n,i){let r=`${i}[${JSON.stringify(n.property)}]`;kt(e,t,n.schema,r)}function nN(e,t,n,i,r){let o=n._zod.def.tx;if(!o)throw new Re("overwrite check without a transform function");if(ji(o))throw new Kr("z.compile: async overwrite transforms are not supported");let a=Se(t,o);e.write(`const ${r} = ${a}(${i});`)}function Ih(){throw new br}function Nh(e){this.issues.push(e)}function iN(e,t,n,i){let r=n._zod.def;if(r.fn){if(ji(r.fn))throw new Kr("z.compile: async .refine() predicates are not supported");let o=Ui(t,r.fn),a=Se(t,Ih),s=we(t);return e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),i}if(n._zod.check){if(ji(n._zod.check))throw new Kr("z.compile: async .superRefine() / check functions are not supported");let o=n._zod.check,s=Ui(t,u=>{let d={value:u,issues:[],addIssue:Nh};return o(d)instanceof Promise&&Ih(),d.issues.length===0?d.value:ar}),l=we(t);return e.write(`const ${l} = ${s}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),l}throw new Re("custom check without a predicate or check function")}function kx(e,t,n,i,r=!0){let o=n.format;if(o==="base64"){let u=Se(t,ms);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="base64url"){let u=Se(t,Uc);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="jwt"){let u=Se(t,Lc),d=Se(t,n.alg??null);return e.write(`if (!${u}(${i}, ${d})) return INVALID;`),i}if(o==="ipv6"){let u=Se(t,fs);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="cidrv6"){let u=Se(t,Pc);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="credit_card"){let u=Se(t,jc);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="iban"){let u=Se(t,Mc);return e.write(`if (!${u}(${i})) return INVALID;`),i}let a=n;if(o==="url"||o==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let u=Se(t,Oc),d=Se(t,n),p=we(t),f=we(t);if(e.write(`const ${p} = ${i}.trim();`),e.write(`const ${f} = ${u}(${p}, ${d});`),e.write(`if (typeof ${f} === "number") return INVALID;`),a.hostname!==void 0){let v=Se(t,Ac);e.write(`if (!${v}(${f}, ${d}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let v=Se(t,Dc);e.write(`if (!${v}(${f}, ${d}.protocol)) return INVALID;`)}if(!r)return null;let m=we(t),h=a.normalize?`${f}.href`:`${Se(t,ps)}(${p})`;return e.write(`const ${m} = ${h};`),m}let s=n.fn;if(s){if(ji(s))throw new Re(`async string format ${o}`);let u=Se(t,s);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(oN.has(o)&&n.pattern){let u=Se(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${i})) return INVALID;`),i}let l=n.format;switch(l){case"regex":throw new Re("regex format without a pattern");case"lowercase":e.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${i}.includes(${ir(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${i}.slice(0, ${u.length}) !== ${ir(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${i}.slice(-${u.length}) !== ${ir(u)}) return INVALID;`);break}default:throw new Re(`string format ${l}`)}return i}function kt(e,t,n,i,r=!0){let o=n._zod.def,a=o.type;if(o.coerce)throw new Re(`coercion (z.coerce.${a}())`);let s=r||!!o.checks?.length,l;switch(a){case"string":l=aN(e,t,n,i,s);break;case"number":l=sN(e,n,i);break;case"boolean":l=lN(e,i);break;case"bigint":l=cN(e,n,i);break;case"symbol":l=uN(e,i);break;case"undefined":l=dN(e,i);break;case"null":l=pN(e,i);break;case"any":case"unknown":l=i;break;case"never":e.write("return INVALID;"),l=i;break;case"void":l=fN(e,i);break;case"nan":l=mN(e,i);break;case"date":l=hN(e,i);break;case"object":l=gN(e,t,n,i,s);break;case"optional":l=vN(e,t,n,i,s);break;case"nullable":l=wN(e,t,n,i,s);break;case"array":l=kN(e,t,n,i,s);break;case"literal":l=xN(e,t,n,i);break;case"enum":l=_N(e,t,n,i);break;case"readonly":{let u=gx(e,t,n,i),d=we(t);e.write(`const ${d} = Object.freeze(${u});`),l=d;break}case"success":gx(e,t,n,i),l="true";break;case"default":case"prefault":l=$N(e,t,n,i);break;case"nonoptional":l=SN(e,t,n,i);break;case"tuple":l=IN(e,t,n,i);break;case"union":l=EN(e,t,n,i);break;case"intersection":l=CN(e,t,n,i);break;case"record":l=zN(e,t,n,i);break;case"map":l=AN(e,t,n,i);break;case"set":l=DN(e,t,n,i);break;case"file":l=PN(e,i);break;case"template_literal":l=RN(e,t,n,i);break;case"lazy":l=UN(e,t,n,i);break;case"pipe":l=jN(e,t,n,i);break;case"custom":l=MN(e,t,n,i);break;case"transform":l=FN(e,t,n,i);break;case"catch":l=VN(e,t,n,i);break;default:throw new Re(`schema type ${a}`)}return l===null?null:JT(e,t,n,l)}function aN(e,t,n,i,r=!0){e.write(`if (typeof ${i} !== "string") return INVALID;`);let o=n._zod.def;return o.format===void 0?i:kx(e,t,o,i,r)}function sN(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let i=t._zod.def;return i.check==="number_format"&&i.format&&wx(e,{format:i.format},n),n}function lN(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function cN(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let i=t._zod.def;if(i.format)switch(i.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function uN(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function dN(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function pN(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function fN(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function mN(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function hN(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function gN(e,t,n,i,r=!0){let o=n._zod.def;e.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let a=o.shape,s=Object.keys(a),l=Object.getOwnPropertySymbols(a),u=l.length?[...s,...l]:s,d=I=>typeof I=="symbol"?Se(t,I):ir(I),p=I=>typeof I=="symbol"?`[${d(I)}]`:ir(I),f=a;if(s.includes("__proto__"))throw new Re('object shape key "__proto__"');let m=new Map;for(let I of u){let E=f[I],M=d(I),z=we(t);if(e.write(`const ${z} = ${i}[${M}];`),E._zod.optin!==void 0){let D=we(t);e.write(`let ${D} = (() => {`),e.indented(X=>{let ce=Yt(X,t,E,z);X.write(`return ${ce};`)}),e.write("})();"),E._zod.optout==="optional"?(e.write(`if (${D} === INVALID) {`),e.indented(X=>{X.write(`if (${M} in ${i}) return INVALID;`),X.write(`${D} = undefined;`)}),e.write("}")):e.write(`if (${D} === INVALID) return INVALID;`),m.set(I,D)}else{yN(E)&&e.write(`if (!(${M} in ${i})) return INVALID;`);let D=Yt(e,t,E,z,r);D!==null&&m.set(I,D)}}let h=o.catchall,v="none";if(h){let I=h._zod.def.type;if(I==="never"){let E=s.map(M=>`k !== ${ir(M)}`).join(" && ")||"true";e.write(`for (const k in ${i}) {`),e.indented(M=>{M.write(`if (${E}) return INVALID;`)}),e.write("}")}else(I==="unknown"||I==="any")&&!h._zod.def.checks?.length?v="passthrough":v="schema"}let x=we(t),A=u.some(I=>hx(f[I])||Eh(f[I]));if(!r){if(v==="schema"){let I=s.length>0?Se(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{E.write('if (k === "__proto__") continue;'),I&&E.write(`if (${I}.has(k)) continue;`);let M=we(t);E.write(`const ${M} = ${i}[k];`),Yt(E,t,h,M,!1)}),e.write("}")}return null}if(A){e.write(`const ${x} = {};`);for(let I of u){let E=d(I),M=m.get(I);Eh(f[I])?e.write(`if (${E} in ${i}) ${x}[${E}] = ${M};`):hx(f[I])?e.write(`if (${M} !== undefined || ${E} in ${i}) ${x}[${E}] = ${M};`):e.write(`${x}[${E}] = ${M};`)}}else{let I=u.map(E=>`${p(E)}: ${m.get(E)}`).join(", ");e.write(`const ${x} = { ${I} };`)}if(v!=="none"){let I=s.length>0?Se(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{if(E.write('if (k === "__proto__") continue;'),I&&E.write(`if (${I}.has(k)) continue;`),v==="passthrough")E.write(`${x}[k] = ${i}[k];`);else{let M=we(t);E.write(`const ${M} = ${i}[k];`);let z=Yt(E,t,h,M);E.write(`${x}[k] = ${z};`)}}),e.write("}")}return x}function vN(e,t,n,i,r=!0){let o=n._zod.def;if(bN(n))return kt(e,t,o.innerType,i,r);if(o.innerType._zod.optin==="defaulted"){let s=we(t),l=we(t);return e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(u=>{u.write(`const ${l} = (() => {`),u.indented(d=>{let p=kt(d,t,o.innerType,i);d.write(`return ${p};`)}),u.write("})();"),u.write(`if (${l} !== INVALID) ${s} = ${l};`)}),e.write("} else {"),e.indented(u=>{let d=kt(u,t,o.innerType,i);u.write(`${s} = ${d};`)}),e.write("}"),s}let a=r?we(t):null;return a&&e.write(`let ${a};`),e.write(`if (${i} !== undefined) {`),e.indented(s=>{let l=kt(s,t,o.innerType,i,r);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function bN(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function yN(e){return e._zod.optin===void 0&&Ri(e)}function Ri(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Ri(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Ri(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Ri):!0;case"intersection":return!t.left||!t.right?!0:Ri(t.left)&&Ri(t.right);case"pipe":return t.in?Ri(t.in):!0;default:return!0}}function Eh(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function hx(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Ro(e)}function Ro(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Ro(t.innerType):!0;case"union":return t.options?t.options.some(Ro):!0;case"intersection":return!t.left||!t.right||Ro(t.left)||Ro(t.right);case"pipe":return t.out?Ro(t.out):!0;default:return!0}}function wN(e,t,n,i,r=!0){let o=n._zod.def,a=r?we(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${i} !== null) {`),e.indented(s=>{let l=kt(s,t,o.innerType,i,r);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function kN(e,t,n,i,r=!0){let o=n._zod.def;e.write(`if (!Array.isArray(${i})) return INVALID;`);let a=r?we(t):null,s=we(t),l=we(t);return a&&e.write(`const ${a} = new Array(${i}.length);`),e.write(`for (let ${s} = 0; ${s} < ${i}.length; ${s}++) {`),e.indented(u=>{u.write(`const ${l} = ${i}[${s}];`);let d=Yt(u,t,o.element,l,r);a&&d!==null&&u.write(`${a}[${s}] = ${d};`)}),e.write("}"),a}function xN(e,t,n,i){let o=n._zod.def.values;if(o.length!==1){let s=Se(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}let a=o[0];if(typeof a=="number"&&Number.isNaN(a)){let s=Se(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}if(typeof a=="string")e.write(`if (${i} !== ${ir(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${i} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${i} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${i} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${i} !== ${a}n) return INVALID;`);else throw new Re(`literal type ${typeof a}`);return i}function _N(e,t,n,i){let r=n._zod.values;if(!r)throw new Re("enum schema without enumerated values");let o=Se(t,r);return e.write(`if (!${o}.has(${i})) return INVALID;`),i}function gx(e,t,n,i){let r=n._zod.def;return kt(e,t,r.innerType,i)}function $N(e,t,n,i){let r=n._zod.def,a=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!a)return kt(e,t,r.innerType,i);let l=Se(t,a),u=we(t);return e.write(`let ${u} = ${i};`),e.write(`if (${i} === undefined) ${u} = ${l}();`),kt(e,t,r.innerType,u)}let s=we(t);if(a){let l=Se(t,a),u=Se(t,qa);e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(d=>{d.write(`${s} = ${u}(${l}());`)}),e.write("} else {"),e.indented(d=>{let p=kt(d,t,r.innerType,i);d.write(`${s} = ${p} === undefined ? ${u}(${l}()) : ${p};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${i} !== undefined) {`),e.indented(l=>{let u=kt(l,t,r.innerType,i);l.write(`${s} = ${u};`)}),e.write("}");return s}function SN(e,t,n,i){let r=n._zod.def,o=kt(e,t,r.innerType,i),a=we(t);return e.write(`const ${a} = ${o};`),e.write(`if (${a} === undefined) return INVALID;`),a}function IN(e,t,n,i){let r=n._zod.def,o=r.items,a=r.rest;e.write(`if (!Array.isArray(${i})) return INVALID;`);let s=vx(o,"optin"),l=vx(o,"optout");a?e.write(`if (${i}.length < ${s}) return INVALID;`):e.write(`if (${i}.length < ${s} || ${i}.length > ${o.length}) return INVALID;`);let u=we(t);e.write(`const ${u} = [];`);for(let d=0;d<o.length;d++){let p=o[d];if(d>=l)e.write(`if (${u}.length === ${d}) {`),e.indented(f=>{f.write(`if (${d} < ${i}.length) {`),f.indented(m=>{let h=we(t);m.write(`const ${h} = ${i}[${d}];`);let v=Yt(m,t,p,h);m.write(`${u}[${d}] = ${v};`)}),f.write("} else {"),f.indented(m=>{if(Eh(p)){m.write(`${u}.length = ${d};`);return}let h=we(t),v=we(t);m.write(`const ${h} = undefined;`),m.write(`const ${v} = (() => {`),m.indented(x=>{let A=Yt(x,t,p,h);x.write(`return ${A};`)}),m.write("})();"),m.write(`if (${v} === INVALID || ${v} === undefined) ${u}.length = ${d};`),m.write(`else ${u}[${d}] = ${v};`)}),f.write("}")}),e.write("}");else{let f=we(t);e.write(`const ${f} = ${i}[${d}];`);let m=Yt(e,t,p,f);e.write(`${u}[${d}] = ${m};`)}}if(a){let d=we(t),p=we(t);e.write(`for (let ${d} = ${o.length}; ${d} < ${i}.length; ${d}++) {`),e.indented(f=>{f.write(`const ${p} = ${i}[${d}];`);let m=Yt(f,t,a,p);f.write(`${u}[${d}] = ${m};`)}),e.write("}")}return u}function vx(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function EN(e,t,n,i){let r=n._zod.def,o=r.options;if(r.discriminator)return TN(e,t,r,i);if(r.inclusive===!1)throw new Re("exclusive unions (z.xor)");if(o.length===0)return e.write("return INVALID;"),i;if(o.length===1)return kt(e,t,o[0],i);if(o.every(l=>l._zod.def.type==="literal"&&!l._zod.def.checks?.length)){let l=new Set(o.flatMap(d=>d._zod.def.values)),u=Se(t,l);return e.write(`if (!${u}.has(${i})) return INVALID;`),i}let s=we(t);e.write(`let ${s};`);for(let l=0;l<o.length;l++){let u=o[l];l===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(d=>{let p=kt(d,t,u,i);d.write(`return ${p};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function TN(e,t,n,i){if(n.unionFallback)throw new Re("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),i;let r=we(t),o=we(t);e.write(`const ${r} = ${i}?.[${ir(n.discriminator)}];`),e.write(`let ${o};`);let a=!0,s=new Set;for(let l of n.options){let u=l._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new Re("discriminated union option without static discriminator values");for(let f of u){if(s.has(f))throw new Re(`duplicate discriminator value ${String(f)}`);s.add(f)}let d=Array.from(u,f=>NN(t,r,f)),p=a?"if":"else if";e.write(`${p} (${d.join(" || ")}) {`),e.indented(f=>{let m=kt(f,t,l,i);f.write(`${o} = ${m};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),o}function NN(e,t,n){if(typeof n=="string")return`${t} === ${ir(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let i=Se(e,n);return`${t} === ${i}`}throw new Re(`literal discriminator value ${String(n)}`)}function CN(e,t,n,i){let r=n._zod.def;t.definite=!1;let o=Yt(e,t,r.left,i),a=Yt(e,t,r.right,i),s=Se(t,Oo),l=we(t);return e.write(`const ${l} = ${s}(${o}, ${a});`),e.write(`if (!${l}.valid) return INVALID;`),`${l}.data`}function zN(e,t,n,i){let r=n._zod.def,o=Se(t,Ar);e.write(`if (!${o}(${i})) return INVALID;`);let a=we(t),s=we(t),l=we(t);e.write(`const ${a} = {};`);let u=r,d=u.partial?void 0:r.keyType._zod.values;if(d){let m=[];for(let v of d){if(!(typeof v=="string"||typeof v=="number"||typeof v=="symbol"))throw new Re(`record key value ${String(v)}`);let x=typeof v=="number"?v.toString():v;if(x==="__proto__")throw new Re('record key "__proto__"');m.push(x);let A=Se(t,v),I=kt(e,t,r.keyType,A),E=we(t);e.write(`const ${E} = ${i}[${ON(t,x)}];`);let M=Yt(e,t,r.valueType,E);e.write(`${a}[${I}] = ${M};`)}let h=Se(t,new Set(m));return e.write(`for (const ${s} in ${i}) {`),e.indented(v=>{v.write(`if (${h}.has(${s})) continue;`),u.mode==="loose"?v.write(`if (${s} !== "__proto__") ${a}[${s}] = ${i}[${s}];`):v.write("return INVALID;")}),e.write("}"),a}let p=r.keyType._zod.def;if(!(p.type==="string"&&p.format===void 0&&!p.coerce&&(p.checks?.length??0)===0)){let m=r.mode==="loose",h=iu(r.keyType);h.definite===!1&&(t.definite=!1);let v=Se(t,h),x=Se(t,zn),A=we(t);return bx(e,t,i,s,I=>{I.write(`let ${A} = ${v}(${s});`),I.write(`if (${A} === INVALID && typeof ${s} === "string" && ${x}.test(${s})) ${A} = ${v}(Number(${s}));`),m?I.write(`if (${A} === INVALID) { ${a}[${s}] = ${i}[${s}]; continue; }`):I.write(`if (${A} === INVALID) return INVALID;`),I.write(`if (${A} === "__proto__") continue;`);let E=we(t);I.write(`const ${E} = ${i}[${s}];`);let M=Yt(I,t,r.valueType,E);I.write(`${a}[${A}] = ${M};`)}),a}return bx(e,t,i,s,m=>{m.write(`const ${l} = ${i}[${s}];`);let h=Yt(m,t,r.valueType,l);m.write(`${a}[${s}] = ${h};`)},"return INVALID;"),a}function bx(e,t,n,i,r,o){let a=Se(t,Object.prototype.propertyIsEnumerable),s=we(t),l=we(t),u=we(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${l} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${l}.length; ${u}++) {`),e.indented(d=>{d.write(`const ${i} = ${l}[${u}];`),d.write(`if (${i} === "__proto__" || !${a}.call(${n}, ${i})) continue;`),r(d)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${s}.length; ${u}++) {`),e.indented(d=>{d.write(`const ${i} = ${s}[${u}];`),d.write(`if (!${a}.call(${n}, ${i})) continue;`),o?d.write(o):r(d)}),e.write("}")}function ON(e,t){return typeof t=="string"?ir(t):Se(e,t)}function AN(e,t,n,i){let r=n._zod.def;e.write(`if (!(${i} instanceof Map)) return INVALID;`);let o=we(t),a=we(t),s=we(t);return e.write(`const ${o} = new Map();`),e.write(`for (const [${a}, ${s}] of ${i}) {`),e.indented(l=>{let u=kt(l,t,r.keyType,a),d=kt(l,t,r.valueType,s);l.write(`${o}.set(${u}, ${d});`)}),e.write("}"),o}function DN(e,t,n,i){let r=n._zod.def;e.write(`if (!(${i} instanceof Set)) return INVALID;`);let o=we(t),a=we(t);return e.write(`const ${o} = new Set();`),e.write(`for (const ${a} of ${i}) {`),e.indented(s=>{let l=kt(s,t,r.valueType,a);s.write(`${o}.add(${l});`)}),e.write("}"),o}function PN(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function RN(e,t,n,i){e.write(`if (typeof ${i} !== "string") return INVALID;`);let r=n._zod.pattern;if(r){let o=Se(t,r);e.write(`${o}.lastIndex = 0;`),e.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function UN(e,t,n,i){let r=n._zod.def,o=Ui(t,r.getter),a=Se(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(l=>{l.write(`const inner = ${o}();`),l.write(`${a}.parser = function(input) {`),l.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),l.write("};")}),e.write("}");let s=we(t);return e.write(`const ${s} = ${a}.parser(${i});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function jN(e,t,n,i){let r=n._zod.def,o=kt(e,t,r.in,i);if(r.transform){if(ji(r.transform))throw new Kr("z.compile: async transforms in pipes are not supported");let a=r.transform,l=Ui(t,d=>{let p={value:d,issues:[],addIssue:Nh},f=a(d,p);return f instanceof Promise?ar:p.issues.length===0?f:ar}),u=we(t);return e.write(`const ${u} = ${l}(${o});`),e.write(`if (${u} === INVALID) return INVALID;`),kt(e,t,r.out,u)}else return kt(e,t,r.out,o)}function ji(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function MN(e,t,n,i){let r=n._zod.def;if(r.fn){if(ji(r.fn))throw new Kr("z.compile: async custom predicates are not supported");let o=Ui(t,r.fn),a=Se(t,Ih),s=we(t);e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new Re("custom schema without a predicate function");return i}function LN(e,t,n){let i=e._zod.run({value:n,issues:[]},{});if(i&&typeof i.then=="function")return ar;let r=i;return r.issues.length===0?r.value:t()}function VN(e,t,n,i){let r=n._zod.def;if(!r.catchValue[sc])throw new Re("catch with a callback (only a constant catch value compiles)",!1);let o=we(t);e.write(`let ${o} = (() => {`),e.indented(u=>{let d=Yt(u,t,r.innerType,i);u.write(`return ${d};`)}),e.write("})();");let a=Se(t,r.innerType),s=Ui(t,r.catchValue),l=Se(t,LN);return e.write(`if (${o} === INVALID) {`),e.indented(u=>{u.write(`${o} = ${l}(${a}, ${s}, ${i});`),u.write(`if (${o} === INVALID) return INVALID;`)}),e.write("}"),o}function FN(e,t,n,i){let r=n._zod.def;if(r.transform){if(ji(r.transform))throw new Kr("z.compile: async transforms are not supported");let o=r.transform,s=Ui(t,u=>{let d={value:u,issues:[],addIssue:Nh},p=o(u,d);return p instanceof Promise?ar:d.issues.length===0?p:ar}),l=we(t);return e.write(`const ${l} = ${s}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),l}return i}var ar,mx,Kr,Re,GT,oN,xx=Y(()=>{Qn();Ic();bh();Oi();Ao();de();ar=Symbol.for("zod.compile.invalid"),mx=Symbol.for("zod.compile.fallback"),Kr=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Re=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};GT=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);oN=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"])});function ou(e){return e.checks&&(e.checks=[...e.checks]),e}function Ch(e,t){return new e(ou({type:"string",...oe(t)}))}function zh(e,t){return new e(ou({type:"string",coerce:!0,...oe(t)}))}function au(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...oe(t)})}function su(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...oe(t)})}function lu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...oe(t)})}function cu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...oe(t)})}function uu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...oe(t)})}function du(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...oe(t)})}function Is(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...oe(t)})}function pu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...oe(t)})}function fu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...oe(t)})}function mu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...oe(t)})}function hu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...oe(t)})}function gu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...oe(t)})}function vu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...oe(t)})}function bu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...oe(t)})}function yu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...oe(t)})}function wu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...oe(t)})}function Oh(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...oe(t)})}function ku(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...oe(t)})}function xu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...oe(t)})}function _u(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...oe(t)})}function $u(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...oe(t)})}function Su(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...oe(t)})}function Ah(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...oe(t)})}function Dh(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...oe(t)})}function Iu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...oe(t)})}function Es(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...oe(t)})}function Ts(e,t){return new e({type:"string",format:"date",check:"string_format",...oe(t)})}function Ns(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...oe(t)})}function Cs(e,t){return new e({type:"string",format:"duration",check:"string_format",...oe(t)})}function Rh(e,t){return new e(ou({type:"number",checks:[],...oe(t)}))}function Uh(e,t){return new e(ou({type:"number",coerce:!0,checks:[],...oe(t)}))}function jh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...oe(t)})}function Mh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...oe(t)})}function Lh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...oe(t)})}function Vh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...oe(t)})}function Fh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...oe(t)})}function Bh(e,t){return new e({type:"boolean",...oe(t)})}function Zh(e,t){return new e({type:"boolean",coerce:!0,...oe(t)})}function Hh(e,t){return new e({type:"bigint",...oe(t)})}function Kh(e,t){return new e({type:"bigint",coerce:!0,...oe(t)})}function Wh(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...oe(t)})}function Gh(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...oe(t)})}function Jh(e,t){return new e({type:"symbol",...oe(t)})}function qh(e,t){return new e({type:"undefined",...oe(t)})}function Yh(e,t){return new e({type:"null",...oe(t)})}function Xh(e){return new e({type:"any"})}function Qh(e){return new e({type:"unknown"})}function eg(e,t){return new e({type:"never",...oe(t)})}function tg(e,t){return new e({type:"void",...oe(t)})}function rg(e,t){return new e({type:"date",...oe(t)})}function ng(e,t){return new e({type:"date",coerce:!0,...oe(t)})}function ig(e,t){return new e({type:"nan",...oe(t)})}function rn(e,t){return new _c({check:"less_than",...oe(t),value:e,inclusive:!1})}function _r(e,t){return new _c({check:"less_than",...oe(t),value:e,inclusive:!0})}function nn(e,t){return new $c({check:"greater_than",...oe(t),value:e,inclusive:!1})}function $r(e,t){return new $c({check:"greater_than",...oe(t),value:e,inclusive:!0})}function Eu(e){return nn(0,e)}function Tu(e){return rn(0,e)}function Nu(e){return _r(0,e)}function Cu(e){return $r(0,e)}function ti(e,t){return new Rf({check:"multiple_of",...oe(t),value:e})}function ri(e,t){return new Mf({check:"max_size",...oe(t),maximum:e})}function on(e,t){return new Lf({check:"min_size",...oe(t),minimum:e})}function Mi(e,t){return new Vf({check:"size_equals",...oe(t),size:e})}function Li(e,t){return new Ff({check:"max_length",...oe(t),maximum:e})}function On(e,t){return new Bf({check:"min_length",...oe(t),minimum:e})}function Vi(e,t){return new Zf({check:"length_equals",...oe(t),length:e})}function Uo(e,t){return new Hf({check:"string_format",format:"regex",...oe(t),pattern:e})}function jo(e){return new Kf({check:"string_format",format:"lowercase",...oe(e)})}function Mo(e){return new Wf({check:"string_format",format:"uppercase",...oe(e)})}function Lo(e,t){return new Gf({check:"string_format",format:"includes",...oe(t),includes:e})}function Vo(e,t){return new Jf({check:"string_format",format:"starts_with",...oe(t),prefix:e})}function Fo(e,t){return new qf({check:"string_format",format:"ends_with",...oe(t),suffix:e})}function zu(e,t,n){return new Yf({check:"property",property:e,schema:t,...oe(n)})}function Bo(e,t){return new Xf({check:"properties",shape:e,...oe(t)})}function Zo(e,t){return new Qf({check:"mime_type",mime:e,...oe(t)})}function Wr(e){return new em({check:"overwrite",tx:e})}function Ho(e){return Wr(t=>t.normalize(e))}function Ko(){return Wr(e=>e.trim())}function Wo(){return Wr(e=>e.toLowerCase())}function Go(){return Wr(e=>e.toUpperCase())}function Jo(){return Wr(e=>Pp(e))}function og(e,t,n){return new e({type:"array",element:t,...oe(n)})}function BN(e,t,n){return new e({type:"union",options:t,...oe(n)})}function ZN(e,t,n){return new e({type:"union",options:t,inclusive:!1,...oe(n)})}function HN(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...oe(i)})}function KN(e,t,n){return new e({type:"intersection",left:t,right:n})}function WN(e,t,n,i){let r=n instanceof Ee,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...oe(o)})}function GN(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...oe(i)})}function JN(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...oe(i)})}function qN(e,t,n){return new e({type:"set",valueType:t,...oe(n)})}function YN(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...oe(n)})}function XN(e,t,n){return new e({type:"enum",entries:t,...oe(n)})}function QN(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...oe(n)})}function ag(e,t){return new e({type:"file",...oe(t)})}function eC(e,t){return new e({type:"transform",transform:t})}function tC(e,t){return new e({type:"optional",innerType:t})}function rC(e,t){return new e({type:"nullable",innerType:t})}function nC(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():qa(n)}})}function iC(e,t,n){return new e({type:"nonoptional",innerType:t,...oe(n)})}function oC(e,t){return new e({type:"success",innerType:t})}function aC(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:Vp(n)})}function sC(e,t,n){return new e({type:"pipe",in:t,out:n})}function lC(e,t){return new e({type:"readonly",innerType:t})}function cC(e,t,n){return new e({type:"template_literal",parts:t,...oe(n)})}function uC(e,t){return new e({type:"lazy",getter:t})}function dC(e,t){return new e({type:"promise",innerType:t})}function sg(e,t,n){let i=oe(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function lg(e,t,n){return new e({type:"custom",check:"custom",fn:t,...oe(n)})}function cg(e,t){let n=_x(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(Io(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(Io(o))}},e(i.value,i)),t);return n}function _x(e,t){let n=new dt({check:"custom",...oe(t)});return n._zod.check=e,n}function ug(e){let t=new dt({check:"describe"});return t._zod.onattach=[n=>{let i=Zt.get(n)??{};Zt.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function dg(e){let t=new dt({check:"meta"});return t._zod.onattach=[n=>{let i=Zt.get(n)??{};Zt.add(n,{...i,...e})}],t._zod.check=()=>{},t}function pg(e,t){let n=oe(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(i),a=new Set(r),s=e.Codec??bs,l=e.Boolean??gs,u=e.String??Di,d=new u({type:"string",error:n.error}),p=new l({type:"boolean",error:n.error}),f=new s({type:"pipe",in:d,out:p,transform:((m,h)=>{let v=m;return n.case!=="sensitive"&&(v=v.toLowerCase()),o.has(v)?!0:a.has(v)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:h.value,inst:f,continue:!1}),{})}),reverseTransform:((m,h)=>m===!0?i[0]||"true":r[0]||"false"),error:n.error});return f._zod.bag.truthy=i,f._zod.bag.falsy=r,f._zod.bag.case=n.case??"insensitive",f}function Fi(e,t,n,i={}){let r=oe(i),o={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}var Ph,$x=Y(()=>{Sc();Ss();Ao();de();Ph={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function zs(e,...t){for(let n of t)for(let i of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,i)&&Bt(e,i,n[i]);return e}function ni(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Zt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Ot(e,t,n,i,r){let o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:i.path,message:r}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(r);return Object.assign(n,o),!0}function nt(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,m=t.processors[r.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);m(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),nt(p,t,d),t.seen.get(p).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&zs(a.schema,l),t.io==="input"&&sr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Sx(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ii(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=i.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(h=>h);if(p)return{ref:f(p)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${Sx(m)}`}}let l="#",u=`${l}/${s}/`;if(a[1]===n&&!a[1].schema.id)return{ref:l};let d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+Sx(d)}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:u}=r(a);s.def={...s.schema},u&&(s.defId=u);let d=s.schema;for(let p in d)delete d[p];d.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
60
+ }`,f;try{f=new d(...a,p)(...s)}catch(m){throw new Re(`this schema (generated code failed to evaluate: ${m.message})`)}return t?.debug&&(f.code=u),f.definite=i.definite,f}function Se(e,t){for(let[i,r]of e.constants)if(r===t)return i;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function Ui(e,t){return e.definite=!1,Se(e,t)}function we(e){return`v${e.varCounter++}`}function KT(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return ar;let i=n;return i.issues.length===0?i.value:ar}function Yt(e,t,n,i,r=!0){let o=e.content.length,a=t.constants.size,s=t.constantCounter,l=t.varCounter;try{return kt(e,t,n,i,r)}catch(u){if(!(u instanceof Re)||!u.islandable)throw u;if(e.content.length=o,t.constants.size>a){let d=Array.from(t.constants.keys()).slice(a);for(let p of d)t.constants.delete(p)}return t.constantCounter=s,t.varCounter=l,WT(e,t,n,i)}}function WT(e,t,n,i){t.definite=!1;let r=Se(t,n),o=Se(t,KT),a=we(t);return e.write(`const ${a} = ${o}(${r}, ${i});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function JT(e,t,n,i){let r=n._zod.def.checks;if(!r||r.length===0)return i;let o=i;for(let a of r){let s=a._zod.def;if(s.when&&!GT.has(s.check))throw new Re('check with a custom "when" condition');switch(s.check){case"greater_than":qT(e,t,s,o);break;case"less_than":YT(e,t,s,o);break;case"multiple_of":XT(e,t,s,o);break;case"number_format":wx(e,s,o);break;case"min_length":{let l=Pi(s.minimum,"min_length"),u=Sh(e,t,o,`${o}.length >= ${l} && ${o}.length < ${s.minimum*2}`);e.write(`if (${u} < ${l}) return INVALID;`);break}case"max_length":{let l=Pi(s.maximum,"max_length"),u=Sh(e,t,o,`${o}.length > ${l}`);e.write(`if (${u} > ${l}) return INVALID;`);break}case"length_equals":{let l=Pi(s.length,"length_equals"),u=Sh(e,t,o,`${o}.length >= ${l} && ${o}.length <= ${s.length*2}`);e.write(`if (${u} !== ${l}) return INVALID;`);break}case"min_size":e.write(`if (${o}.size < ${Pi(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${Pi(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${Pi(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=kx(e,t,s,o);break;case"custom":o=iN(e,t,a,o);break;case"bigint_format":QT(e,s,o);break;case"mime_type":eN(e,t,s,o);break;case"property":rN(e,t,s,o);break;case"properties":tN(e,t,s,o);break;case"overwrite":{let l=we(t);nN(e,t,a,o,l),o=l;break}default:throw new Re(`check type ${s.check}`)}}return o}function Sh(e,t,n,i){let r=Se(t,Ci),o=we(t);return e.write(`const ${o} = typeof ${n} === "string" && ${i} ? ${r}(${n}) : ${n}.length;`),o}function Pi(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Re(`${t} bound of type ${typeof e}`);return`${e}`}function yx(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Re("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Re("comparison check with Invalid Date bound");return Se(e,t)}throw new Re(`comparison check bound of type ${typeof t}`)}function qT(e,t,n,i){let r=n.inclusive?"<":"<=";e.write(`if (${i} ${r} ${yx(t,n.value)}) return INVALID;`)}function YT(e,t,n,i){let r=n.inclusive?">":">=";e.write(`if (${i} ${r} ${yx(t,n.value)}) return INVALID;`)}function XT(e,t,n,i){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Re("multiple_of check with a zero divisor");e.write(`if (${i} % ${n.value}n !== 0n) return INVALID;`)}else{let r=Se(t,Ja);e.write(`if (${r}(${i}, ${Pi(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function wx(e,t,n){let i=t.format;switch(i){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Re(`number format ${i}`)}}function QT(e,t,n){let i=t.format;if(i)switch(i){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Re(`bigint format ${i}`)}}function eN(e,t,n,i){let r=n.mime;if(r&&r.length>0){let o=Se(t,new Set(r));e.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function tN(e,t,n,i){if(n.when)throw new Re('check with a custom "when" condition');e.write(`if (${i} == null) return INVALID;`);let r=n.shape;for(let o of Reflect.ownKeys(r)){let a=typeof o=="symbol"?Se(t,o):ir(o),s=we(t);e.write(`const ${s} = ${i}[${a}];`),Yt(e,t,r[o],s,!1)}}function rN(e,t,n,i){let r=`${i}[${JSON.stringify(n.property)}]`;kt(e,t,n.schema,r)}function nN(e,t,n,i,r){let o=n._zod.def.tx;if(!o)throw new Re("overwrite check without a transform function");if(ji(o))throw new Kr("z.compile: async overwrite transforms are not supported");let a=Se(t,o);e.write(`const ${r} = ${a}(${i});`)}function Ih(){throw new br}function Nh(e){this.issues.push(e)}function iN(e,t,n,i){let r=n._zod.def;if(r.fn){if(ji(r.fn))throw new Kr("z.compile: async .refine() predicates are not supported");let o=Ui(t,r.fn),a=Se(t,Ih),s=we(t);return e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),i}if(n._zod.check){if(ji(n._zod.check))throw new Kr("z.compile: async .superRefine() / check functions are not supported");let o=n._zod.check,s=Ui(t,u=>{let d={value:u,issues:[],addIssue:Nh};return o(d)instanceof Promise&&Ih(),d.issues.length===0?d.value:ar}),l=we(t);return e.write(`const ${l} = ${s}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),l}throw new Re("custom check without a predicate or check function")}function kx(e,t,n,i,r=!0){let o=n.format;if(o==="base64"){let u=Se(t,ms);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="base64url"){let u=Se(t,Uc);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="jwt"){let u=Se(t,Lc),d=Se(t,n.alg??null);return e.write(`if (!${u}(${i}, ${d})) return INVALID;`),i}if(o==="ipv6"){let u=Se(t,fs);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="cidrv6"){let u=Se(t,Pc);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="credit_card"){let u=Se(t,jc);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="iban"){let u=Se(t,Mc);return e.write(`if (!${u}(${i})) return INVALID;`),i}let a=n;if(o==="url"||o==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let u=Se(t,Oc),d=Se(t,n),p=we(t),f=we(t);if(e.write(`const ${p} = ${i}.trim();`),e.write(`const ${f} = ${u}(${p}, ${d});`),e.write(`if (typeof ${f} === "number") return INVALID;`),a.hostname!==void 0){let v=Se(t,Ac);e.write(`if (!${v}(${f}, ${d}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let v=Se(t,Dc);e.write(`if (!${v}(${f}, ${d}.protocol)) return INVALID;`)}if(!r)return null;let m=we(t),h=a.normalize?`${f}.href`:`${Se(t,ps)}(${p})`;return e.write(`const ${m} = ${h};`),m}let s=n.fn;if(s){if(ji(s))throw new Re(`async string format ${o}`);let u=Se(t,s);return e.write(`if (!${u}(${i})) return INVALID;`),i}if(oN.has(o)&&n.pattern){let u=Se(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${i})) return INVALID;`),i}let l=n.format;switch(l){case"regex":throw new Re("regex format without a pattern");case"lowercase":e.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${i}.includes(${ir(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${i}.slice(0, ${u.length}) !== ${ir(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${i}.slice(-${u.length}) !== ${ir(u)}) return INVALID;`);break}default:throw new Re(`string format ${l}`)}return i}function kt(e,t,n,i,r=!0){let o=n._zod.def,a=o.type;if(o.coerce)throw new Re(`coercion (z.coerce.${a}())`);let s=r||!!o.checks?.length,l;switch(a){case"string":l=aN(e,t,n,i,s);break;case"number":l=sN(e,n,i);break;case"boolean":l=lN(e,i);break;case"bigint":l=cN(e,n,i);break;case"symbol":l=uN(e,i);break;case"undefined":l=dN(e,i);break;case"null":l=pN(e,i);break;case"any":case"unknown":l=i;break;case"never":e.write("return INVALID;"),l=i;break;case"void":l=fN(e,i);break;case"nan":l=mN(e,i);break;case"date":l=hN(e,i);break;case"object":l=gN(e,t,n,i,s);break;case"optional":l=vN(e,t,n,i,s);break;case"nullable":l=wN(e,t,n,i,s);break;case"array":l=kN(e,t,n,i,s);break;case"literal":l=xN(e,t,n,i);break;case"enum":l=_N(e,t,n,i);break;case"readonly":{let u=gx(e,t,n,i),d=we(t);e.write(`const ${d} = Object.freeze(${u});`),l=d;break}case"success":gx(e,t,n,i),l="true";break;case"default":case"prefault":l=$N(e,t,n,i);break;case"nonoptional":l=SN(e,t,n,i);break;case"tuple":l=IN(e,t,n,i);break;case"union":l=EN(e,t,n,i);break;case"intersection":l=CN(e,t,n,i);break;case"record":l=zN(e,t,n,i);break;case"map":l=AN(e,t,n,i);break;case"set":l=DN(e,t,n,i);break;case"file":l=PN(e,i);break;case"template_literal":l=RN(e,t,n,i);break;case"lazy":l=UN(e,t,n,i);break;case"pipe":l=jN(e,t,n,i);break;case"custom":l=MN(e,t,n,i);break;case"transform":l=FN(e,t,n,i);break;case"catch":l=VN(e,t,n,i);break;default:throw new Re(`schema type ${a}`)}return l===null?null:JT(e,t,n,l)}function aN(e,t,n,i,r=!0){e.write(`if (typeof ${i} !== "string") return INVALID;`);let o=n._zod.def;return o.format===void 0?i:kx(e,t,o,i,r)}function sN(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let i=t._zod.def;return i.check==="number_format"&&i.format&&wx(e,{format:i.format},n),n}function lN(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function cN(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let i=t._zod.def;if(i.format)switch(i.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function uN(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function dN(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function pN(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function fN(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function mN(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function hN(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function gN(e,t,n,i,r=!0){let o=n._zod.def;e.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let a=o.shape,s=Object.keys(a),l=Object.getOwnPropertySymbols(a),u=l.length?[...s,...l]:s,d=I=>typeof I=="symbol"?Se(t,I):ir(I),p=I=>typeof I=="symbol"?`[${d(I)}]`:ir(I),f=a;if(s.includes("__proto__"))throw new Re('object shape key "__proto__"');let m=new Map;for(let I of u){let E=f[I],M=d(I),z=we(t);if(e.write(`const ${z} = ${i}[${M}];`),E._zod.optin!==void 0){let D=we(t);e.write(`let ${D} = (() => {`),e.indented(X=>{let le=Yt(X,t,E,z);X.write(`return ${le};`)}),e.write("})();"),E._zod.optout==="optional"?(e.write(`if (${D} === INVALID) {`),e.indented(X=>{X.write(`if (${M} in ${i}) return INVALID;`),X.write(`${D} = undefined;`)}),e.write("}")):e.write(`if (${D} === INVALID) return INVALID;`),m.set(I,D)}else{yN(E)&&e.write(`if (!(${M} in ${i})) return INVALID;`);let D=Yt(e,t,E,z,r);D!==null&&m.set(I,D)}}let h=o.catchall,v="none";if(h){let I=h._zod.def.type;if(I==="never"){let E=s.map(M=>`k !== ${ir(M)}`).join(" && ")||"true";e.write(`for (const k in ${i}) {`),e.indented(M=>{M.write(`if (${E}) return INVALID;`)}),e.write("}")}else(I==="unknown"||I==="any")&&!h._zod.def.checks?.length?v="passthrough":v="schema"}let x=we(t),A=u.some(I=>hx(f[I])||Eh(f[I]));if(!r){if(v==="schema"){let I=s.length>0?Se(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{E.write('if (k === "__proto__") continue;'),I&&E.write(`if (${I}.has(k)) continue;`);let M=we(t);E.write(`const ${M} = ${i}[k];`),Yt(E,t,h,M,!1)}),e.write("}")}return null}if(A){e.write(`const ${x} = {};`);for(let I of u){let E=d(I),M=m.get(I);Eh(f[I])?e.write(`if (${E} in ${i}) ${x}[${E}] = ${M};`):hx(f[I])?e.write(`if (${M} !== undefined || ${E} in ${i}) ${x}[${E}] = ${M};`):e.write(`${x}[${E}] = ${M};`)}}else{let I=u.map(E=>`${p(E)}: ${m.get(E)}`).join(", ");e.write(`const ${x} = { ${I} };`)}if(v!=="none"){let I=s.length>0?Se(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(E=>{if(E.write('if (k === "__proto__") continue;'),I&&E.write(`if (${I}.has(k)) continue;`),v==="passthrough")E.write(`${x}[k] = ${i}[k];`);else{let M=we(t);E.write(`const ${M} = ${i}[k];`);let z=Yt(E,t,h,M);E.write(`${x}[k] = ${z};`)}}),e.write("}")}return x}function vN(e,t,n,i,r=!0){let o=n._zod.def;if(bN(n))return kt(e,t,o.innerType,i,r);if(o.innerType._zod.optin==="defaulted"){let s=we(t),l=we(t);return e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(u=>{u.write(`const ${l} = (() => {`),u.indented(d=>{let p=kt(d,t,o.innerType,i);d.write(`return ${p};`)}),u.write("})();"),u.write(`if (${l} !== INVALID) ${s} = ${l};`)}),e.write("} else {"),e.indented(u=>{let d=kt(u,t,o.innerType,i);u.write(`${s} = ${d};`)}),e.write("}"),s}let a=r?we(t):null;return a&&e.write(`let ${a};`),e.write(`if (${i} !== undefined) {`),e.indented(s=>{let l=kt(s,t,o.innerType,i,r);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function bN(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function yN(e){return e._zod.optin===void 0&&Ri(e)}function Ri(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Ri(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Ri(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Ri):!0;case"intersection":return!t.left||!t.right?!0:Ri(t.left)&&Ri(t.right);case"pipe":return t.in?Ri(t.in):!0;default:return!0}}function Eh(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function hx(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Ro(e)}function Ro(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Ro(t.innerType):!0;case"union":return t.options?t.options.some(Ro):!0;case"intersection":return!t.left||!t.right||Ro(t.left)||Ro(t.right);case"pipe":return t.out?Ro(t.out):!0;default:return!0}}function wN(e,t,n,i,r=!0){let o=n._zod.def,a=r?we(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${i} !== null) {`),e.indented(s=>{let l=kt(s,t,o.innerType,i,r);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function kN(e,t,n,i,r=!0){let o=n._zod.def;e.write(`if (!Array.isArray(${i})) return INVALID;`);let a=r?we(t):null,s=we(t),l=we(t);return a&&e.write(`const ${a} = new Array(${i}.length);`),e.write(`for (let ${s} = 0; ${s} < ${i}.length; ${s}++) {`),e.indented(u=>{u.write(`const ${l} = ${i}[${s}];`);let d=Yt(u,t,o.element,l,r);a&&d!==null&&u.write(`${a}[${s}] = ${d};`)}),e.write("}"),a}function xN(e,t,n,i){let o=n._zod.def.values;if(o.length!==1){let s=Se(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}let a=o[0];if(typeof a=="number"&&Number.isNaN(a)){let s=Se(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}if(typeof a=="string")e.write(`if (${i} !== ${ir(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${i} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${i} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${i} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${i} !== ${a}n) return INVALID;`);else throw new Re(`literal type ${typeof a}`);return i}function _N(e,t,n,i){let r=n._zod.values;if(!r)throw new Re("enum schema without enumerated values");let o=Se(t,r);return e.write(`if (!${o}.has(${i})) return INVALID;`),i}function gx(e,t,n,i){let r=n._zod.def;return kt(e,t,r.innerType,i)}function $N(e,t,n,i){let r=n._zod.def,a=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!a)return kt(e,t,r.innerType,i);let l=Se(t,a),u=we(t);return e.write(`let ${u} = ${i};`),e.write(`if (${i} === undefined) ${u} = ${l}();`),kt(e,t,r.innerType,u)}let s=we(t);if(a){let l=Se(t,a),u=Se(t,qa);e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(d=>{d.write(`${s} = ${u}(${l}());`)}),e.write("} else {"),e.indented(d=>{let p=kt(d,t,r.innerType,i);d.write(`${s} = ${p} === undefined ? ${u}(${l}()) : ${p};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${i} !== undefined) {`),e.indented(l=>{let u=kt(l,t,r.innerType,i);l.write(`${s} = ${u};`)}),e.write("}");return s}function SN(e,t,n,i){let r=n._zod.def,o=kt(e,t,r.innerType,i),a=we(t);return e.write(`const ${a} = ${o};`),e.write(`if (${a} === undefined) return INVALID;`),a}function IN(e,t,n,i){let r=n._zod.def,o=r.items,a=r.rest;e.write(`if (!Array.isArray(${i})) return INVALID;`);let s=vx(o,"optin"),l=vx(o,"optout");a?e.write(`if (${i}.length < ${s}) return INVALID;`):e.write(`if (${i}.length < ${s} || ${i}.length > ${o.length}) return INVALID;`);let u=we(t);e.write(`const ${u} = [];`);for(let d=0;d<o.length;d++){let p=o[d];if(d>=l)e.write(`if (${u}.length === ${d}) {`),e.indented(f=>{f.write(`if (${d} < ${i}.length) {`),f.indented(m=>{let h=we(t);m.write(`const ${h} = ${i}[${d}];`);let v=Yt(m,t,p,h);m.write(`${u}[${d}] = ${v};`)}),f.write("} else {"),f.indented(m=>{if(Eh(p)){m.write(`${u}.length = ${d};`);return}let h=we(t),v=we(t);m.write(`const ${h} = undefined;`),m.write(`const ${v} = (() => {`),m.indented(x=>{let A=Yt(x,t,p,h);x.write(`return ${A};`)}),m.write("})();"),m.write(`if (${v} === INVALID || ${v} === undefined) ${u}.length = ${d};`),m.write(`else ${u}[${d}] = ${v};`)}),f.write("}")}),e.write("}");else{let f=we(t);e.write(`const ${f} = ${i}[${d}];`);let m=Yt(e,t,p,f);e.write(`${u}[${d}] = ${m};`)}}if(a){let d=we(t),p=we(t);e.write(`for (let ${d} = ${o.length}; ${d} < ${i}.length; ${d}++) {`),e.indented(f=>{f.write(`const ${p} = ${i}[${d}];`);let m=Yt(f,t,a,p);f.write(`${u}[${d}] = ${m};`)}),e.write("}")}return u}function vx(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function EN(e,t,n,i){let r=n._zod.def,o=r.options;if(r.discriminator)return TN(e,t,r,i);if(r.inclusive===!1)throw new Re("exclusive unions (z.xor)");if(o.length===0)return e.write("return INVALID;"),i;if(o.length===1)return kt(e,t,o[0],i);if(o.every(l=>l._zod.def.type==="literal"&&!l._zod.def.checks?.length)){let l=new Set(o.flatMap(d=>d._zod.def.values)),u=Se(t,l);return e.write(`if (!${u}.has(${i})) return INVALID;`),i}let s=we(t);e.write(`let ${s};`);for(let l=0;l<o.length;l++){let u=o[l];l===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(d=>{let p=kt(d,t,u,i);d.write(`return ${p};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function TN(e,t,n,i){if(n.unionFallback)throw new Re("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),i;let r=we(t),o=we(t);e.write(`const ${r} = ${i}?.[${ir(n.discriminator)}];`),e.write(`let ${o};`);let a=!0,s=new Set;for(let l of n.options){let u=l._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new Re("discriminated union option without static discriminator values");for(let f of u){if(s.has(f))throw new Re(`duplicate discriminator value ${String(f)}`);s.add(f)}let d=Array.from(u,f=>NN(t,r,f)),p=a?"if":"else if";e.write(`${p} (${d.join(" || ")}) {`),e.indented(f=>{let m=kt(f,t,l,i);f.write(`${o} = ${m};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),o}function NN(e,t,n){if(typeof n=="string")return`${t} === ${ir(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let i=Se(e,n);return`${t} === ${i}`}throw new Re(`literal discriminator value ${String(n)}`)}function CN(e,t,n,i){let r=n._zod.def;t.definite=!1;let o=Yt(e,t,r.left,i),a=Yt(e,t,r.right,i),s=Se(t,Oo),l=we(t);return e.write(`const ${l} = ${s}(${o}, ${a});`),e.write(`if (!${l}.valid) return INVALID;`),`${l}.data`}function zN(e,t,n,i){let r=n._zod.def,o=Se(t,Ar);e.write(`if (!${o}(${i})) return INVALID;`);let a=we(t),s=we(t),l=we(t);e.write(`const ${a} = {};`);let u=r,d=u.partial?void 0:r.keyType._zod.values;if(d){let m=[];for(let v of d){if(!(typeof v=="string"||typeof v=="number"||typeof v=="symbol"))throw new Re(`record key value ${String(v)}`);let x=typeof v=="number"?v.toString():v;if(x==="__proto__")throw new Re('record key "__proto__"');m.push(x);let A=Se(t,v),I=kt(e,t,r.keyType,A),E=we(t);e.write(`const ${E} = ${i}[${ON(t,x)}];`);let M=Yt(e,t,r.valueType,E);e.write(`${a}[${I}] = ${M};`)}let h=Se(t,new Set(m));return e.write(`for (const ${s} in ${i}) {`),e.indented(v=>{v.write(`if (${h}.has(${s})) continue;`),u.mode==="loose"?v.write(`if (${s} !== "__proto__") ${a}[${s}] = ${i}[${s}];`):v.write("return INVALID;")}),e.write("}"),a}let p=r.keyType._zod.def;if(!(p.type==="string"&&p.format===void 0&&!p.coerce&&(p.checks?.length??0)===0)){let m=r.mode==="loose",h=iu(r.keyType);h.definite===!1&&(t.definite=!1);let v=Se(t,h),x=Se(t,zn),A=we(t);return bx(e,t,i,s,I=>{I.write(`let ${A} = ${v}(${s});`),I.write(`if (${A} === INVALID && typeof ${s} === "string" && ${x}.test(${s})) ${A} = ${v}(Number(${s}));`),m?I.write(`if (${A} === INVALID) { ${a}[${s}] = ${i}[${s}]; continue; }`):I.write(`if (${A} === INVALID) return INVALID;`),I.write(`if (${A} === "__proto__") continue;`);let E=we(t);I.write(`const ${E} = ${i}[${s}];`);let M=Yt(I,t,r.valueType,E);I.write(`${a}[${A}] = ${M};`)}),a}return bx(e,t,i,s,m=>{m.write(`const ${l} = ${i}[${s}];`);let h=Yt(m,t,r.valueType,l);m.write(`${a}[${s}] = ${h};`)},"return INVALID;"),a}function bx(e,t,n,i,r,o){let a=Se(t,Object.prototype.propertyIsEnumerable),s=we(t),l=we(t),u=we(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${l} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${l}.length; ${u}++) {`),e.indented(d=>{d.write(`const ${i} = ${l}[${u}];`),d.write(`if (${i} === "__proto__" || !${a}.call(${n}, ${i})) continue;`),r(d)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${s}.length; ${u}++) {`),e.indented(d=>{d.write(`const ${i} = ${s}[${u}];`),d.write(`if (!${a}.call(${n}, ${i})) continue;`),o?d.write(o):r(d)}),e.write("}")}function ON(e,t){return typeof t=="string"?ir(t):Se(e,t)}function AN(e,t,n,i){let r=n._zod.def;e.write(`if (!(${i} instanceof Map)) return INVALID;`);let o=we(t),a=we(t),s=we(t);return e.write(`const ${o} = new Map();`),e.write(`for (const [${a}, ${s}] of ${i}) {`),e.indented(l=>{let u=kt(l,t,r.keyType,a),d=kt(l,t,r.valueType,s);l.write(`${o}.set(${u}, ${d});`)}),e.write("}"),o}function DN(e,t,n,i){let r=n._zod.def;e.write(`if (!(${i} instanceof Set)) return INVALID;`);let o=we(t),a=we(t);return e.write(`const ${o} = new Set();`),e.write(`for (const ${a} of ${i}) {`),e.indented(s=>{let l=kt(s,t,r.valueType,a);s.write(`${o}.add(${l});`)}),e.write("}"),o}function PN(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function RN(e,t,n,i){e.write(`if (typeof ${i} !== "string") return INVALID;`);let r=n._zod.pattern;if(r){let o=Se(t,r);e.write(`${o}.lastIndex = 0;`),e.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function UN(e,t,n,i){let r=n._zod.def,o=Ui(t,r.getter),a=Se(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(l=>{l.write(`const inner = ${o}();`),l.write(`${a}.parser = function(input) {`),l.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),l.write("};")}),e.write("}");let s=we(t);return e.write(`const ${s} = ${a}.parser(${i});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function jN(e,t,n,i){let r=n._zod.def,o=kt(e,t,r.in,i);if(r.transform){if(ji(r.transform))throw new Kr("z.compile: async transforms in pipes are not supported");let a=r.transform,l=Ui(t,d=>{let p={value:d,issues:[],addIssue:Nh},f=a(d,p);return f instanceof Promise?ar:p.issues.length===0?f:ar}),u=we(t);return e.write(`const ${u} = ${l}(${o});`),e.write(`if (${u} === INVALID) return INVALID;`),kt(e,t,r.out,u)}else return kt(e,t,r.out,o)}function ji(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function MN(e,t,n,i){let r=n._zod.def;if(r.fn){if(ji(r.fn))throw new Kr("z.compile: async custom predicates are not supported");let o=Ui(t,r.fn),a=Se(t,Ih),s=we(t);e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new Re("custom schema without a predicate function");return i}function LN(e,t,n){let i=e._zod.run({value:n,issues:[]},{});if(i&&typeof i.then=="function")return ar;let r=i;return r.issues.length===0?r.value:t()}function VN(e,t,n,i){let r=n._zod.def;if(!r.catchValue[sc])throw new Re("catch with a callback (only a constant catch value compiles)",!1);let o=we(t);e.write(`let ${o} = (() => {`),e.indented(u=>{let d=Yt(u,t,r.innerType,i);u.write(`return ${d};`)}),e.write("})();");let a=Se(t,r.innerType),s=Ui(t,r.catchValue),l=Se(t,LN);return e.write(`if (${o} === INVALID) {`),e.indented(u=>{u.write(`${o} = ${l}(${a}, ${s}, ${i});`),u.write(`if (${o} === INVALID) return INVALID;`)}),e.write("}"),o}function FN(e,t,n,i){let r=n._zod.def;if(r.transform){if(ji(r.transform))throw new Kr("z.compile: async transforms are not supported");let o=r.transform,s=Ui(t,u=>{let d={value:u,issues:[],addIssue:Nh},p=o(u,d);return p instanceof Promise?ar:d.issues.length===0?p:ar}),l=we(t);return e.write(`const ${l} = ${s}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),l}return i}var ar,mx,Kr,Re,GT,oN,xx=Y(()=>{Qn();Ic();bh();Oi();Ao();de();ar=Symbol.for("zod.compile.invalid"),mx=Symbol.for("zod.compile.fallback"),Kr=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Re=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};GT=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);oN=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"])});function ou(e){return e.checks&&(e.checks=[...e.checks]),e}function Ch(e,t){return new e(ou({type:"string",...oe(t)}))}function zh(e,t){return new e(ou({type:"string",coerce:!0,...oe(t)}))}function au(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...oe(t)})}function su(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...oe(t)})}function lu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...oe(t)})}function cu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...oe(t)})}function uu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...oe(t)})}function du(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...oe(t)})}function Is(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...oe(t)})}function pu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...oe(t)})}function fu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...oe(t)})}function mu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...oe(t)})}function hu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...oe(t)})}function gu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...oe(t)})}function vu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...oe(t)})}function bu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...oe(t)})}function yu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...oe(t)})}function wu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...oe(t)})}function Oh(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...oe(t)})}function ku(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...oe(t)})}function xu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...oe(t)})}function _u(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...oe(t)})}function $u(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...oe(t)})}function Su(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...oe(t)})}function Ah(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...oe(t)})}function Dh(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...oe(t)})}function Iu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...oe(t)})}function Es(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...oe(t)})}function Ts(e,t){return new e({type:"string",format:"date",check:"string_format",...oe(t)})}function Ns(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...oe(t)})}function Cs(e,t){return new e({type:"string",format:"duration",check:"string_format",...oe(t)})}function Rh(e,t){return new e(ou({type:"number",checks:[],...oe(t)}))}function Uh(e,t){return new e(ou({type:"number",coerce:!0,checks:[],...oe(t)}))}function jh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...oe(t)})}function Mh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...oe(t)})}function Lh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...oe(t)})}function Vh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...oe(t)})}function Fh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...oe(t)})}function Bh(e,t){return new e({type:"boolean",...oe(t)})}function Zh(e,t){return new e({type:"boolean",coerce:!0,...oe(t)})}function Hh(e,t){return new e({type:"bigint",...oe(t)})}function Kh(e,t){return new e({type:"bigint",coerce:!0,...oe(t)})}function Wh(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...oe(t)})}function Gh(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...oe(t)})}function Jh(e,t){return new e({type:"symbol",...oe(t)})}function qh(e,t){return new e({type:"undefined",...oe(t)})}function Yh(e,t){return new e({type:"null",...oe(t)})}function Xh(e){return new e({type:"any"})}function Qh(e){return new e({type:"unknown"})}function eg(e,t){return new e({type:"never",...oe(t)})}function tg(e,t){return new e({type:"void",...oe(t)})}function rg(e,t){return new e({type:"date",...oe(t)})}function ng(e,t){return new e({type:"date",coerce:!0,...oe(t)})}function ig(e,t){return new e({type:"nan",...oe(t)})}function rn(e,t){return new _c({check:"less_than",...oe(t),value:e,inclusive:!1})}function _r(e,t){return new _c({check:"less_than",...oe(t),value:e,inclusive:!0})}function nn(e,t){return new $c({check:"greater_than",...oe(t),value:e,inclusive:!1})}function $r(e,t){return new $c({check:"greater_than",...oe(t),value:e,inclusive:!0})}function Eu(e){return nn(0,e)}function Tu(e){return rn(0,e)}function Nu(e){return _r(0,e)}function Cu(e){return $r(0,e)}function ti(e,t){return new Rf({check:"multiple_of",...oe(t),value:e})}function ri(e,t){return new Mf({check:"max_size",...oe(t),maximum:e})}function on(e,t){return new Lf({check:"min_size",...oe(t),minimum:e})}function Mi(e,t){return new Vf({check:"size_equals",...oe(t),size:e})}function Li(e,t){return new Ff({check:"max_length",...oe(t),maximum:e})}function On(e,t){return new Bf({check:"min_length",...oe(t),minimum:e})}function Vi(e,t){return new Zf({check:"length_equals",...oe(t),length:e})}function Uo(e,t){return new Hf({check:"string_format",format:"regex",...oe(t),pattern:e})}function jo(e){return new Kf({check:"string_format",format:"lowercase",...oe(e)})}function Mo(e){return new Wf({check:"string_format",format:"uppercase",...oe(e)})}function Lo(e,t){return new Gf({check:"string_format",format:"includes",...oe(t),includes:e})}function Vo(e,t){return new Jf({check:"string_format",format:"starts_with",...oe(t),prefix:e})}function Fo(e,t){return new qf({check:"string_format",format:"ends_with",...oe(t),suffix:e})}function zu(e,t,n){return new Yf({check:"property",property:e,schema:t,...oe(n)})}function Bo(e,t){return new Xf({check:"properties",shape:e,...oe(t)})}function Zo(e,t){return new Qf({check:"mime_type",mime:e,...oe(t)})}function Wr(e){return new em({check:"overwrite",tx:e})}function Ho(e){return Wr(t=>t.normalize(e))}function Ko(){return Wr(e=>e.trim())}function Wo(){return Wr(e=>e.toLowerCase())}function Go(){return Wr(e=>e.toUpperCase())}function Jo(){return Wr(e=>Pp(e))}function og(e,t,n){return new e({type:"array",element:t,...oe(n)})}function BN(e,t,n){return new e({type:"union",options:t,...oe(n)})}function ZN(e,t,n){return new e({type:"union",options:t,inclusive:!1,...oe(n)})}function HN(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...oe(i)})}function KN(e,t,n){return new e({type:"intersection",left:t,right:n})}function WN(e,t,n,i){let r=n instanceof Ee,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...oe(o)})}function GN(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...oe(i)})}function JN(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...oe(i)})}function qN(e,t,n){return new e({type:"set",valueType:t,...oe(n)})}function YN(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...oe(n)})}function XN(e,t,n){return new e({type:"enum",entries:t,...oe(n)})}function QN(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...oe(n)})}function ag(e,t){return new e({type:"file",...oe(t)})}function eC(e,t){return new e({type:"transform",transform:t})}function tC(e,t){return new e({type:"optional",innerType:t})}function rC(e,t){return new e({type:"nullable",innerType:t})}function nC(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():qa(n)}})}function iC(e,t,n){return new e({type:"nonoptional",innerType:t,...oe(n)})}function oC(e,t){return new e({type:"success",innerType:t})}function aC(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:Vp(n)})}function sC(e,t,n){return new e({type:"pipe",in:t,out:n})}function lC(e,t){return new e({type:"readonly",innerType:t})}function cC(e,t,n){return new e({type:"template_literal",parts:t,...oe(n)})}function uC(e,t){return new e({type:"lazy",getter:t})}function dC(e,t){return new e({type:"promise",innerType:t})}function sg(e,t,n){let i=oe(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function lg(e,t,n){return new e({type:"custom",check:"custom",fn:t,...oe(n)})}function cg(e,t){let n=_x(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(Io(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(Io(o))}},e(i.value,i)),t);return n}function _x(e,t){let n=new dt({check:"custom",...oe(t)});return n._zod.check=e,n}function ug(e){let t=new dt({check:"describe"});return t._zod.onattach=[n=>{let i=Zt.get(n)??{};Zt.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function dg(e){let t=new dt({check:"meta"});return t._zod.onattach=[n=>{let i=Zt.get(n)??{};Zt.add(n,{...i,...e})}],t._zod.check=()=>{},t}function pg(e,t){let n=oe(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(i),a=new Set(r),s=e.Codec??bs,l=e.Boolean??gs,u=e.String??Di,d=new u({type:"string",error:n.error}),p=new l({type:"boolean",error:n.error}),f=new s({type:"pipe",in:d,out:p,transform:((m,h)=>{let v=m;return n.case!=="sensitive"&&(v=v.toLowerCase()),o.has(v)?!0:a.has(v)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:h.value,inst:f,continue:!1}),{})}),reverseTransform:((m,h)=>m===!0?i[0]||"true":r[0]||"false"),error:n.error});return f._zod.bag.truthy=i,f._zod.bag.falsy=r,f._zod.bag.case=n.case??"insensitive",f}function Fi(e,t,n,i={}){let r=oe(i),o={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}var Ph,$x=Y(()=>{Sc();Ss();Ao();de();Ph={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function zs(e,...t){for(let n of t)for(let i of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,i)&&Bt(e,i,n[i]);return e}function ni(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Zt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Ot(e,t,n,i,r){let o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:i.path,message:r}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(r);return Object.assign(n,o),!0}function nt(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,m=t.processors[r.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);m(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),nt(p,t,d),t.seen.get(p).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&zs(a.schema,l),t.io==="input"&&sr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Sx(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ii(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=i.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(h=>h);if(p)return{ref:f(p)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${s}/${Sx(m)}`}}let l="#",u=`${l}/${s}/`;if(a[1]===n&&!a[1].schema.id)return{ref:l};let d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+Sx(d)}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:u}=r(a);s.def={...s.schema},u&&(s.defId=u);let d=s.schema;for(let p in d)delete d[p];d.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
61
61
 
62
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}s.count>1&&e.reused==="ref"&&o(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Tx(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let i of t){if(!i||typeof i!="object")return;Tx(i);let r=Object.keys(i);if(r.length!==1||r[0]!=="type")return;let o=i.type;for(let a of Array.isArray(o)?o:[o]){if(typeof a!="string")return;n.includes(a)||n.push(a)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function Ex(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function fg(e){let t=[];for(let o of e){if(typeof o!="object"||o.type!=="object")return null;for(let a in o)if(!Nx.has(a))return null;t.push(o)}let n={},i=new Set;for(let o of t){for(let a in o.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;let s=[];for(let u of t){let d=u.properties?.[a]??Ex(u);d!=null&&(s.some(p=>JSON.stringify(p)===JSON.stringify(d))||s.push(d))}let l=s.length===1?s[0]:fg(s)??{allOf:s};Bt(n,a,l)}for(let a of o.required??[])i.add(a)}let r={type:"object",properties:n};if(i.size&&(r.required=[...i]),t.every(o=>o.additionalProperties===!1))r.additionalProperties=!1;else{let o=[];for(let a of t){let s=Ex(a);s&&!o.some(l=>JSON.stringify(l)===JSON.stringify(s))&&o.push(s)}o.length===1?r.additionalProperties=o[0]:o.length>1&&(r.additionalProperties={allOf:o})}return r}function pC(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let r of Nx)if(r in e)return;let n=t.filter(r=>Ix.some(o=>Array.isArray(r[o]))),i=null;if(!n.length)i=fg(t);else{let r=n[0],o=Ix.find(l=>Array.isArray(r[l]));if(Object.keys(r).length!==1)return;let a=t.filter(l=>l!==r),s=r[o].map(l=>fg([...a,l]));if(s.some(l=>!l))return;i={[o]:s}}i&&(delete e.allOf,zs(e,i))}function oi(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let l=e.seen.get(s);if(l.ref===null)return;let u=l.def??l.schema,d={...u},p=l.ref;if(l.ref=null,p){i(p);let m=e.seen.get(p),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):zs(u,h),zs(u,d),s._zod.parent===p)for(let x in u)x==="$ref"||x==="allOf"||x in d||delete u[x];if(h.$ref&&m.def)for(let x in u)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(u[x])===JSON.stringify(m.def[x])&&delete u[x]}let f=s._zod.parent;if(f&&f!==p){i(f);let m=e.seen.get(f);if(m?.schema.$ref&&(u.$ref=m.schema.$ref,m.def))for(let h in u)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(u[h])===JSON.stringify(m.def[h])&&delete u[h]}e.override({zodSchema:s,jsonSchema:u,path:l.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())i(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())Tx(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let l of e.seen.values())for(let u of[l.schema,l.def]){let d=u?.allOf;if(!Array.isArray(d))continue;let p=s.get(d);p?p.push(u):s.set(d,[u])}for(let l of e.intersections)for(let u of s.get(l)??[])pC(u)}}let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}zs(r,n.defId?n.schema:n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,Bt(a,l.defId,l.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:qo(t,"input",e.processors),output:qo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function sr(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return sr(i.element,n);if(i.type==="set")return sr(i.valueType,n);if(i.type==="lazy")return sr(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return sr(i.innerType,n);if(i.type==="intersection")return sr(i.left,n)||sr(i.right,n);if(i.type==="record"||i.type==="map")return sr(i.keyType,n)||sr(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:sr(i.in,n)||sr(i.out,n);if(i.type==="object"){for(let r in i.shape)if(sr(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(sr(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(sr(r,n))return!0;return!!(i.rest&&sr(i.rest,n))}return!1}var Nx,Ix,mg,qo,Os=Y(()=>{Ss();de();Nx=new Set(["type","properties","required","additionalProperties"]),Ix=["oneOf","anyOf"];mg=(e,t={})=>n=>{let i=ni({...n,processors:t});return nt(e,i),ii(i,e),oi(i,e)},qo=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=ni({...r??{},target:o,io:t,processors:n});return nt(e,a),ii(a,e),oi(a,e)}});function At(e){let t={},n=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let o of i)fC[o._zod.def.check]?.(t,o._zod.def);let r=e._zod.bag;r.minimum!==void 0&&Yo(t,"minimum",r.minimum),r.exclusiveMinimum!==void 0&&Yo(t,"exclusiveMinimum",r.exclusiveMinimum),r.maximum!==void 0&&Xo(t,"maximum",r.maximum),r.exclusiveMaximum!==void 0&&Xo(t,"exclusiveMaximum",r.exclusiveMaximum),r.multipleOf!==void 0&&Dx(t,r.multipleOf),r.format!==void 0&&(t.format??(t.format=r.format),r.format.includes("int")&&(t.isInt=!0)),r.mime&&Rx(t,r.mime);for(let o of r.patterns??[])Px(t,o);return t}function As(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?As(t.out):t.type==="catch"?As(t.innerType):e._zod.optin}function hg(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let v=hg(e,h,n);return v===h?t:v}for(let h of["anyOf","oneOf"]){let v=t[h];if(!Array.isArray(v))continue;let x=v.map(A=>hg(e,A,n));x.some((A,I)=>A!==v[I])&&(t={...t,[h]:x})}let i=Array.isArray(t.type)?t.type:[t.type],r=!i.includes("string")&&i.some(h=>h==="number"||h==="integer"),o=t.enum??(t.const!==void 0?[t.const]:void 0);if(!r&&!o?.some(h=>typeof h=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:d,format:p,id:f,...m}=t;return m.enum?m.enum=m.enum.map(h=>typeof h=="number"?String(h):h):typeof m.const=="number"&&(m.const=String(m.const)),r&&(m.type="string",o||(m.pattern=(i.includes("number")?zn:ls).source)),m}function gC(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let n=new Map;for(let i of gg.get(e)??[]){let r=e.seen.get(i),o=(r?.def??r?.schema)?.propertyNames;if(!o||o===!0||n.has(o))continue;let a=hg(t,o,new Set);a!==o&&n.set(o,a)}if(n.size)for(let i of e.seen.values())for(let r of[i.schema,i.def]){let o=r&&n.get(r.propertyNames);o&&(r.propertyNames=o)}}function Mx(e,t,n,i,r){let o=!1,a=JSON.stringify(e,(s,l)=>typeof l!="bigint"?l:(o=!0,null));return o?(Ot(t,n,i,r,"BigInt defaults cannot be represented in JSON Schema"),Wg):JSON.parse(a)}function Pu(e,t){if("_idmap"in e){let i=e,r=ni({...t,processors:Ou}),o={};for(let l of i._idmap.entries()){let[u,d]=l;nt(d,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let l of i._idmap.entries()){let[u,d]=l;ii(r,d),Bt(a,u,oi(r,d))}if(Object.keys(o).length>0){let l=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:o}}return{schemas:a}}let n=ni({...t,processors:Ou});return nt(e,n),ii(n,e),oi(n,e)}var Yo,Xo,Cx,Dx,Px,Rx,Ux,zx,Ox,Ax,fC,mC,hC,jx,vg,bg,yg,wg,kg,xg,_g,$g,Sg,Ig,Eg,Tg,Ng,Cg,zg,Og,Ag,Dg,Pg,Rg,Ug,jg,Mg,Lg,Vg,Au,Fg,Bg,gg,Zg,Hg,Kg,Wg,Gg,Jg,qg,Yg,Xg,Qg,Du,ev,Ou,Ds=Y(()=>{Oi();Ao();Os();de();Yo=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Xo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Cx=(e,t)=>{Yo(e,"minimum",t),Xo(e,"maximum",t)},Dx=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Px=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Rx=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},Ux=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},zx=(e,t)=>Yo(e,"minimum",t.minimum),Ox=(e,t)=>Xo(e,"maximum",t.maximum),Ax=e=>(t,n)=>{Ux(t,n.format);let[i,r]=e[n.format];Yo(t,"minimum",i),Xo(t,"maximum",r)},fC={greater_than:(e,t)=>Yo(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Xo(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Dx(e,t.value),number_format:Ax(Xa),bigint_format:Ax(Qa),min_length:zx,max_length:Ox,length_equals:(e,t)=>Cx(e,t.length),min_size:zx,max_size:Ox,size_equals:(e,t)=>Cx(e,t.size),string_format:(e,t)=>{Ux(e,t.format),t.pattern&&Px(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Rx(e,t.mime)};mC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},hC=new Map([[Rc,gf],[hs,vf]]),jx=e=>hC.get(e)??e,vg=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:l,contentEncoding:u,laxFormat:d}=At(e);if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=mC[s]??s,r.format===""&&delete r.format,(s==="time"||d)&&delete r.format),u&&(r.contentEncoding=u),l&&l.size>0){let p=[...l].map(jx);p.length===1?r.pattern=p[0].source:p.length>1&&(r.allOf=[...p.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},bg=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u,isInt:d}=At(e);r.type=d?"integer":"number";let p=typeof u=="number"&&u>=(o??Number.NEGATIVE_INFINITY),f=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";if(p?m?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof o=="number"&&(r.minimum=o),f?m?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:typeof a=="number"&&(r.maximum=a),s){let h=new Set;for(let A of s)Number.isFinite(A)&&A!==0?h.add(Math.abs(A)):Ot(e,t,r,i,`A multipleOf divisor of ${A} cannot be represented in JSON Schema`);let[v,...x]=h;v!==void 0&&(r.multipleOf=v),x.length&&(r.allOf=[...r.allOf??[],...x.map(A=>({multipleOf:A}))])}},yg=(e,t,n,i)=>{n.type="boolean"},wg=(e,t,n,i)=>{Ot(e,t,n,i,"BigInt cannot be represented in JSON Schema")},kg=(e,t,n,i)=>{Ot(e,t,n,i,"Symbols cannot be represented in JSON Schema")},xg=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},_g=(e,t,n,i)=>{Ot(e,t,n,i,"Undefined cannot be represented in JSON Schema")},$g=(e,t,n,i)=>{Ot(e,t,n,i,"Void cannot be represented in JSON Schema")},Sg=(e,t,n,i)=>{n.not={}},Ig=(e,t,n,i)=>{},Eg=(e,t,n,i)=>{},Tg=(e,t,n,i)=>{Ot(e,t,n,i,"Date cannot be represented in JSON Schema")},Ng=(e,t,n,i)=>{let r=e._zod.def,o=xo(r.entries);if(o.length===0){n.not={};return}o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Cg=(e,t,n,i)=>{let r=e._zod.def;if(r.values.length===0){n.not={};return}let o=[];for(let a of r.values)if(a===void 0){if(Ot(e,t,n,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Ot(e,t,n,i,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},zg=(e,t,n,i)=>{Ot(e,t,n,i,"NaN cannot be represented in JSON Schema")},Og=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},Ag=(e,t,n,i)=>{let r=n;r.type="string",r.format="binary",r.contentEncoding="binary";let{minimum:o,maximum:a,mime:s}=At(e);o!==void 0&&(r.minLength=o),a!==void 0&&(r.maxLength=a),s&&(s.length===0?r.not={}:s.length===1?r.contentMediaType=s[0]:r.anyOf=s.map(l=>({contentMediaType:l})))},Dg=(e,t,n,i)=>{n.type="boolean"},Pg=(e,t,n,i)=>{Ot(e,t,n,i,"Custom types cannot be represented in JSON Schema")},Rg=(e,t,n,i)=>{Ot(e,t,n,i,"Function types cannot be represented in JSON Schema")},Ug=(e,t,n,i)=>{Ot(e,t,n,i,"Transforms cannot be represented in JSON Schema")},jg=(e,t,n,i)=>{Ot(e,t,n,i,"Map cannot be represented in JSON Schema")},Mg=(e,t,n,i)=>{Ot(e,t,n,i,"Set cannot be represented in JSON Schema")},Lg=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=At(e);typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=nt(o.element,t,{...i,path:[...i.path,"items"]})};Vg=(e,t,n,i)=>{let r=n,o=e._zod.def,a=o.shape;if(Object.getOwnPropertySymbols(a).length&&Ot(e,t,r,i,"Symbol keys cannot be represented in JSON Schema"))return;r.type="object",r.properties={};for(let u in a)Bt(r.properties,u,nt(a[u],t,{...i,path:[...i.path,"properties",u]}));let l=[];for(let u of Object.keys(a)){let d=o.shape[u];(t.io==="input"?As(d)===void 0:d._zod.optout===void 0)&&l.push(u)}l.length>0&&(r.required=l),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=nt(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Au=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,l)=>nt(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=a:n.anyOf=a},Fg=(e,t,n,i)=>{let r=e._zod.def,o=nt(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=nt(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=l,t.intersections.push(l)},Bg=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((v,x)=>nt(v,t,{...i,path:[...i.path,a,x]})),u=o.rest?nt(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null,d=o.items.length;for(;d>0;){let v=o.items[d-1];if(!(t.io==="input"?As(v)!==void 0:v._zod.optout==="optional"))break;d--}let p=o.items.length,f=!o.rest;t.target==="draft-2020-12"?(r.prefixItems=l,f?r.items=!1:u&&(r.items=u),d>0&&(r.minItems=d),f&&(r.maxItems=p)):t.target==="openapi-3.0"?(r.items={anyOf:l},u&&r.items.anyOf.push(u),d>0&&(r.minItems=d),f&&(r.maxItems=p)):(r.items=l,f?r.additionalItems=!1:u&&(r.additionalItems=u),d>0&&(r.minItems=d),f&&(r.maxItems=p));let{minimum:m,maximum:h}=At(e);typeof m=="number"&&(r.minItems=m),typeof h=="number"&&(r.maxItems=h)};gg=new WeakMap;Zg=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,s=At(a).patterns;if(o.mode==="loose"&&s&&s.size>0){let d=nt(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let p of s)Bt(r.patternProperties,jx(p).source,d)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){r.propertyNames=nt(o.keyType,t,{...i,path:[...i.path,"propertyNames"]});let d=gg.get(t);d||(d=[],gg.set(t,d),t.deferred.push(()=>gC(t))),d.push(e)}r.additionalProperties=nt(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let l=a._zod.values,u=t.io==="input"&&As(o.valueType)!==void 0;if(l&&!o.partial&&!u){let d=[...l].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d.map(String))}},Hg=(e,t,n,i)=>{let r=e._zod.def,o=nt(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Kg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Wg=Symbol();Gg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a=Mx(r.defaultValue,e,t,n,i);a!==Wg&&(n.default=a)},Jg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);if(o.ref=r.innerType,t.io!=="input")return;let a=Mx(r.defaultValue,e,t,n,i);a!==Wg&&(n._prefault=a)},qg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{Ot(e,t,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=a},Yg=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;nt(a,t,i);let s=t.seen.get(e);s.ref=a},Xg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},Qg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Du=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},ev=(e,t,n,i)=>{let r=e._zod.innerType;nt(r,t,i);let o=t.seen.get(e);o.ref=r},Ou={string:vg,number:bg,boolean:yg,bigint:wg,symbol:kg,null:xg,undefined:_g,void:$g,never:Sg,any:Ig,unknown:Eg,date:Tg,enum:Ng,literal:Cg,nan:zg,template_literal:Og,file:Ag,success:Dg,custom:Pg,function:Rg,transform:Ug,map:jg,set:Mg,array:Lg,object:Vg,union:Au,intersection:Fg,tuple:Bg,record:Zg,nullable:Hg,nonoptional:Kg,default:Gg,prefault:Jg,catch:qg,pipe:Yg,readonly:Xg,promise:Qg,optional:Du,lazy:ev}});var Ru,Lx=Y(()=>{Ds();Os();Ru=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=ni({processors:Ou,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return nt(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,ii(this.ctx,t);let i=oi(this.ctx,t),{"~standard":r,...o}=i;return o}}});var Vx={};var Fx=Y(()=>{});var An={};Zr(An,{$ZodAny:()=>jm,$ZodArray:()=>Bm,$ZodAsyncError:()=>br,$ZodBase64:()=>Im,$ZodBase64URL:()=>Em,$ZodBigInt:()=>Fc,$ZodBigIntFormat:()=>Dm,$ZodBoolean:()=>gs,$ZodCIDRv4:()=>$m,$ZodCIDRv6:()=>Sm,$ZodCUID:()=>pm,$ZodCUID2:()=>fm,$ZodCatch:()=>lh,$ZodCheck:()=>dt,$ZodCheckBigIntFormat:()=>jf,$ZodCheckEndsWith:()=>qf,$ZodCheckGreaterThan:()=>$c,$ZodCheckIncludes:()=>Gf,$ZodCheckLengthEquals:()=>Zf,$ZodCheckLessThan:()=>_c,$ZodCheckLowerCase:()=>Kf,$ZodCheckMaxLength:()=>Ff,$ZodCheckMaxSize:()=>Mf,$ZodCheckMimeType:()=>Qf,$ZodCheckMinLength:()=>Bf,$ZodCheckMinSize:()=>Lf,$ZodCheckMultipleOf:()=>Rf,$ZodCheckNumberFormat:()=>Uf,$ZodCheckOverwrite:()=>em,$ZodCheckProperties:()=>Xf,$ZodCheckProperty:()=>Yf,$ZodCheckRegex:()=>Hf,$ZodCheckSizeEquals:()=>Vf,$ZodCheckStartsWith:()=>Jf,$ZodCheckStringFormat:()=>zo,$ZodCheckUpperCase:()=>Wf,$ZodCodec:()=>bs,$ZodCreditCard:()=>Nm,$ZodCustom:()=>hh,$ZodCustomStringFormat:()=>Om,$ZodCyclicError:()=>Jc,$ZodDate:()=>Fm,$ZodDefault:()=>ih,$ZodDiscriminatedUnion:()=>Wm,$ZodE164:()=>Tm,$ZodEmail:()=>am,$ZodEmoji:()=>um,$ZodEncodeError:()=>ei,$ZodEnum:()=>Xm,$ZodError:()=>Wp,$ZodExactOptional:()=>rh,$ZodFile:()=>eh,$ZodFunction:()=>fh,$ZodGUID:()=>im,$ZodIBAN:()=>Cm,$ZodIPv4:()=>km,$ZodIPv6:()=>xm,$ZodISODate:()=>bm,$ZodISODateTime:()=>vm,$ZodISODuration:()=>wm,$ZodISOTime:()=>ym,$ZodIntersection:()=>Gm,$ZodJWT:()=>zm,$ZodKSUID:()=>gm,$ZodLazy:()=>ys,$ZodLiteral:()=>Qm,$ZodMAC:()=>_m,$ZodMap:()=>qm,$ZodNaN:()=>ch,$ZodNanoID:()=>dm,$ZodNever:()=>Lm,$ZodNonOptional:()=>ah,$ZodNull:()=>Um,$ZodNullable:()=>nh,$ZodNumber:()=>Vc,$ZodNumberFormat:()=>Am,$ZodObject:()=>Hy,$ZodObjectJIT:()=>Zm,$ZodOptional:()=>Zc,$ZodPipe:()=>Hc,$ZodPrefault:()=>oh,$ZodPreprocess:()=>uh,$ZodPromise:()=>mh,$ZodReadonly:()=>dh,$ZodRealError:()=>yr,$ZodRecord:()=>Jm,$ZodRegistry:()=>tu,$ZodSet:()=>Ym,$ZodString:()=>Di,$ZodStringFormat:()=>rt,$ZodSuccess:()=>sh,$ZodSymbol:()=>Pm,$ZodTemplateLiteral:()=>ph,$ZodTransform:()=>th,$ZodTuple:()=>Bc,$ZodType:()=>Ee,$ZodULID:()=>mm,$ZodURL:()=>cm,$ZodUUID:()=>om,$ZodUndefined:()=>Rm,$ZodUnion:()=>vs,$ZodUnknown:()=>Mm,$ZodVoid:()=>Vm,$ZodXID:()=>hm,$ZodXor:()=>Hm,$brand:()=>Zp,$constructor:()=>N,$input:()=>$h,$output:()=>_h,Doc:()=>Ai,INVALID:()=>ar,JSONSchema:()=>Vx,JSONSchemaGenerator:()=>Ru,NEVER:()=>Bp,TimePrecision:()=>Ph,URL_BAD_FORMAT:()=>sm,URL_UNPARSEABLE:()=>ds,ZodCompileAsyncError:()=>Kr,ZodCompileUnsupportedError:()=>Re,_any:()=>Xh,_array:()=>og,_base64:()=>_u,_base64url:()=>$u,_bigint:()=>Hh,_boolean:()=>Bh,_catch:()=>aC,_check:()=>_x,_cidrv4:()=>ku,_cidrv6:()=>xu,_coercedBigint:()=>Kh,_coercedBoolean:()=>Zh,_coercedDate:()=>ng,_coercedNumber:()=>Uh,_coercedString:()=>zh,_creditCard:()=>Ah,_cuid:()=>mu,_cuid2:()=>hu,_custom:()=>sg,_date:()=>rg,_decode:()=>pc,_decodeAsync:()=>mc,_default:()=>nC,_discriminatedUnion:()=>HN,_e164:()=>Su,_email:()=>au,_emoji:()=>pu,_encode:()=>dc,_encodeAsync:()=>fc,_endsWith:()=>Fo,_enum:()=>YN,_file:()=>ag,_float32:()=>Mh,_float64:()=>Lh,_gt:()=>nn,_gte:()=>$r,_guid:()=>su,_iban:()=>Dh,_includes:()=>Lo,_int:()=>jh,_int32:()=>Vh,_int64:()=>Wh,_intersection:()=>KN,_ipv4:()=>yu,_ipv6:()=>wu,_isoDate:()=>Ts,_isoDateTime:()=>Es,_isoDuration:()=>Cs,_isoTime:()=>Ns,_jwt:()=>Iu,_ksuid:()=>bu,_lazy:()=>uC,_length:()=>Vi,_literal:()=>QN,_lowercase:()=>jo,_lt:()=>rn,_lte:()=>_r,_mac:()=>Oh,_map:()=>JN,_max:()=>_r,_maxLength:()=>Li,_maxSize:()=>ri,_mime:()=>Zo,_min:()=>$r,_minLength:()=>On,_minSize:()=>on,_multipleOf:()=>ti,_nan:()=>ig,_nanoid:()=>fu,_nativeEnum:()=>XN,_negative:()=>Tu,_never:()=>eg,_nonnegative:()=>Cu,_nonoptional:()=>iC,_nonpositive:()=>Nu,_normalize:()=>Ho,_null:()=>Yh,_nullable:()=>rC,_number:()=>Rh,_optional:()=>tC,_overwrite:()=>Wr,_parse:()=>Eo,_parseAsync:()=>To,_pipe:()=>sC,_positive:()=>Eu,_promise:()=>dC,_properties:()=>Bo,_property:()=>zu,_readonly:()=>lC,_record:()=>GN,_refine:()=>lg,_regex:()=>Uo,_safeDecode:()=>gc,_safeDecodeAsync:()=>bc,_safeEncode:()=>hc,_safeEncodeAsync:()=>vc,_safeParse:()=>No,_safeParseAsync:()=>Co,_set:()=>qN,_size:()=>Mi,_slugify:()=>Jo,_startsWith:()=>Vo,_string:()=>Ch,_stringFormat:()=>Fi,_stringbool:()=>pg,_success:()=>oC,_superRefine:()=>cg,_symbol:()=>Jh,_templateLiteral:()=>cC,_toLowerCase:()=>Wo,_toUpperCase:()=>Go,_transform:()=>eC,_trim:()=>Ko,_tuple:()=>WN,_uint32:()=>Fh,_uint64:()=>Gh,_ulid:()=>gu,_undefined:()=>qh,_union:()=>BN,_unknown:()=>Qh,_uppercase:()=>Mo,_url:()=>Is,_uuid:()=>lu,_uuidv4:()=>cu,_uuidv6:()=>uu,_uuidv7:()=>du,_void:()=>tg,_xid:()=>vu,_xor:()=>ZN,base64Charset:()=>Rc,base64urlCharset:()=>hs,canParseURL:()=>lm,clone:()=>tt,compile:()=>Th,compileFn:()=>iu,config:()=>It,createStandardJSONSchemaMethod:()=>qo,createToJSONSchemaMethod:()=>mg,decode:()=>WE,decodeAsync:()=>JE,describe:()=>ug,encode:()=>KE,encodeAsync:()=>GE,extractDefs:()=>ii,finalize:()=>oi,flattenError:()=>ns,formatError:()=>is,getDiscriminatedOption:()=>Km,globalConfig:()=>Ut,globalRegistry:()=>Zt,handleUnrepresentable:()=>Ot,initializeContext:()=>ni,isBackEdge:()=>Yc,isRecursiveSchema:()=>qc,isValidBase64:()=>ms,isValidBase64URL:()=>Uc,isValidCIDRv6:()=>Pc,isValidCreditCard:()=>jc,isValidIBAN:()=>Mc,isValidIPv6:()=>fs,isValidJWT:()=>Lc,locales:()=>$s,memoizer:()=>xs,mergeValues:()=>Oo,meta:()=>dg,parse:()=>cc,parseAsync:()=>uc,parseURLObject:()=>Fy,prettifyError:()=>Jp,process:()=>nt,processSchema:()=>nt,regexes:()=>Pr,registry:()=>ru,safeDecode:()=>YE,safeDecodeAsync:()=>QE,safeEncode:()=>qE,safeEncodeAsync:()=>XE,safeParse:()=>VE,safeParseAsync:()=>FE,standardProps:()=>zc,stripTabAndNewline:()=>ps,toDotPath:()=>ky,toJSONSchema:()=>Pu,toZod:()=>Ga,treeifyError:()=>Gp,urlHostnameOk:()=>Ac,urlProtocolOk:()=>Dc,util:()=>B,validate:()=>os,validateAsync:()=>as,validateURL:()=>Oc,version:()=>tm,withParser:()=>nu});var Sr=Y(()=>{Qn();Yp();qp();Ao();bh();Sc();rm();de();de();Oi();xh();Ss();Ic();xx();$x();Os();Ds();Lx();Fx()});var Uu={};Zr(Uu,{endsWith:()=>Fo,gt:()=>nn,gte:()=>$r,includes:()=>Lo,length:()=>Vi,lowercase:()=>jo,lt:()=>rn,lte:()=>_r,maxLength:()=>Li,maxSize:()=>ri,mime:()=>Zo,minLength:()=>On,minSize:()=>on,multipleOf:()=>ti,negative:()=>Tu,nonnegative:()=>Cu,nonpositive:()=>Nu,normalize:()=>Ho,overwrite:()=>Wr,positive:()=>Eu,properties:()=>Bo,property:()=>zu,regex:()=>Uo,size:()=>Mi,slugify:()=>Jo,startsWith:()=>Vo,toLowerCase:()=>Wo,toUpperCase:()=>Go,trim:()=>Ko,uppercase:()=>Mo});var ju=Y(()=>{Sr()});function Mu(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=n(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}var Bx,Zx,bC,wr,tv=Y(()=>{Sr();Sr();de();Bx=new WeakSet([Object.prototype,Error.prototype]);Zx=(e,t)=>{Wp.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);Bx.has(n)||(Bx.add(n),Mu(n,"format",i=>r=>is(i,r)),Mu(n,"flatten",i=>r=>ns(i,r)),Mu(n,"addIssue",i=>r=>{i.issues.push(r),i.message=JSON.stringify(i.issues,_o,2)}),Mu(n,"addIssues",i=>r=>{i.issues.push(...r),i.message=JSON.stringify(i.issues,_o,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},bC=N("ZodError",Zx),wr=N("ZodError",Zx,void 0,{Parent:Error})});var rv,nv,iv,ov,av,sv,lv,cv,uv,dv,pv,fv,mv=Y(()=>{Sr();tv();Sr();rv=Eo(wr),nv=To(wr),iv=No(wr),ov=Co(wr),av=dc(wr),sv=pc(wr),lv=fc(wr),cv=mc(wr),uv=hc(wr),dv=gc(wr),pv=vc(wr),fv=bc(wr)});var aa={};Zr(aa,{ZodAny:()=>$v,ZodArray:()=>Tv,ZodBase64:()=>rd,ZodBase64URL:()=>nd,ZodBigInt:()=>ia,ZodBigIntFormat:()=>ad,ZodBoolean:()=>na,ZodCIDRv4:()=>ed,ZodCIDRv6:()=>td,ZodCUID:()=>Wu,ZodCUID2:()=>Gu,ZodCatch:()=>Jv,ZodCodec:()=>Zs,ZodCreditCard:()=>gv,ZodCustom:()=>Hs,ZodCustomStringFormat:()=>Ki,ZodDate:()=>js,ZodDefault:()=>Bv,ZodDiscriminatedUnion:()=>Cv,ZodE164:()=>id,ZodEmail:()=>Bu,ZodEmoji:()=>Hu,ZodEnum:()=>ea,ZodExactOptional:()=>ud,ZodFile:()=>Mv,ZodFunction:()=>ob,ZodGUID:()=>Zu,ZodIBAN:()=>vv,ZodIPv4:()=>Xu,ZodIPv6:()=>Qu,ZodISODate:()=>si,ZodISODateTime:()=>ai,ZodISODuration:()=>ci,ZodISOTime:()=>li,ZodInstanceOf:()=>lb,ZodIntersection:()=>zv,ZodJWT:()=>od,ZodKSUID:()=>Yu,ZodLazy:()=>rb,ZodLiteral:()=>jv,ZodMAC:()=>hv,ZodMap:()=>Rv,ZodNaN:()=>Yv,ZodNanoID:()=>Ku,ZodNever:()=>Iv,ZodNonOptional:()=>dd,ZodNull:()=>xv,ZodNullable:()=>Fv,ZodNumber:()=>ra,ZodNumberFormat:()=>Wi,ZodObject:()=>Ls,ZodOptional:()=>Fs,ZodPipe:()=>Bs,ZodPrefault:()=>Hv,ZodPreprocess:()=>Xv,ZodPromise:()=>ib,ZodReadonly:()=>Qv,ZodRecord:()=>Qo,ZodSet:()=>Uv,ZodString:()=>ta,ZodStringFormat:()=>at,ZodSuccess:()=>Gv,ZodSymbol:()=>wv,ZodTemplateLiteral:()=>tb,ZodTransform:()=>Lv,ZodTuple:()=>Av,ZodType:()=>ze,ZodULID:()=>Ju,ZodURL:()=>Us,ZodUUID:()=>an,ZodUndefined:()=>kv,ZodUnion:()=>Vs,ZodUnknown:()=>Sv,ZodVoid:()=>Ev,ZodXID:()=>qu,ZodXor:()=>Nv,_ZodString:()=>Fu,_default:()=>Zv,_function:()=>e1,any:()=>z_,array:()=>Ms,base64:()=>d_,base64url:()=>p_,bigint:()=>I_,boolean:()=>yv,catch:()=>qv,check:()=>t1,cidrv4:()=>c_,cidrv6:()=>u_,codec:()=>q_,creditCard:()=>m_,cuid:()=>t_,cuid2:()=>r_,currencyCode:()=>w_,custom:()=>r1,date:()=>A_,describe:()=>n1,discriminatedUnion:()=>M_,e164:()=>f_,email:()=>Hx,emoji:()=>Qx,enum:()=>ld,exactOptional:()=>Vv,file:()=>K_,float32:()=>x_,float64:()=>__,function:()=>e1,guid:()=>Kx,hash:()=>k_,hex:()=>y_,hostname:()=>b_,httpUrl:()=>Xx,iban:()=>h_,instanceof:()=>o1,int:()=>Lu,int32:()=>$_,int64:()=>E_,intersection:()=>Ov,invertCodec:()=>Y_,ipv4:()=>a_,ipv6:()=>l_,json:()=>s1,jwt:()=>g_,keyof:()=>D_,ksuid:()=>o_,lazy:()=>nb,literal:()=>H_,looseObject:()=>U_,looseRecord:()=>V_,mac:()=>s_,map:()=>F_,meta:()=>i1,nan:()=>J_,nanoid:()=>e_,nativeEnum:()=>Z_,never:()=>sd,nonoptional:()=>Wv,null:()=>_v,nullable:()=>Rs,nullish:()=>W_,number:()=>bv,object:()=>P_,optional:()=>Zi,partialRecord:()=>L_,pipe:()=>Vu,prefault:()=>Kv,preprocess:()=>l1,promise:()=>Q_,readonly:()=>eb,record:()=>Pv,refine:()=>ab,set:()=>B_,strictObject:()=>R_,string:()=>Ps,stringFormat:()=>v_,stringbool:()=>a1,success:()=>G_,superRefine:()=>sb,symbol:()=>N_,templateLiteral:()=>X_,transform:()=>cd,tuple:()=>Dv,uint32:()=>S_,uint64:()=>T_,ulid:()=>n_,undefined:()=>C_,union:()=>oa,unknown:()=>Bi,url:()=>Yx,uuid:()=>Wx,uuidv4:()=>Gx,uuidv6:()=>Jx,uuidv7:()=>qx,void:()=>O_,xid:()=>i_,xor:()=>j_});function wC(){Ut.localeError||It(Xc())}function Hi(){Ut.memoizer||It({memoizer:xs()})}function Ps(e){return Ch(ta,e)}function Hx(e){return au(Bu,e)}function Kx(e){return su(Zu,e)}function Wx(e){return lu(an,e)}function Gx(e){return cu(an,e)}function Jx(e){return uu(an,e)}function qx(e){return du(an,e)}function Yx(e){return Is(Us,e)}function Xx(e){return Is(Us,{protocol:ss,hostname:yf,...B.normalizeParams(e)})}function Qx(e){return pu(Hu,e)}function e_(e){return fu(Ku,e)}function t_(e){return mu(Wu,e)}function r_(e){return hu(Gu,e)}function n_(e){return gu(Ju,e)}function i_(e){return vu(qu,e)}function o_(e){return bu(Yu,e)}function a_(e){return yu(Xu,e)}function s_(e){return Oh(hv,e)}function l_(e){return wu(Qu,e)}function c_(e){return ku(ed,e)}function u_(e){return xu(td,e)}function d_(e){return _u(rd,e)}function p_(e){return $u(nd,e)}function f_(e){return Su(id,e)}function m_(e){return Ah(gv,e)}function h_(e){return Dh(vv,e)}function g_(e){return Iu(od,e)}function v_(e,t,n={}){return Fi(Ki,e,t,n)}function b_(e){return Fi(Ki,"hostname",bf,e)}function y_(e){return Fi(Ki,"hex",Af,e)}function w_(e){return Fi(Ki,"currency_code",kf,e)}function k_(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Pr[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Fi(Ki,i,r,t)}function bv(e){return Rh(ra,e)}function Lu(e){return jh(Wi,e)}function x_(e){return Mh(Wi,e)}function __(e){return Lh(Wi,e)}function $_(e){return Vh(Wi,e)}function S_(e){return Fh(Wi,e)}function yv(e){return Bh(na,e)}function I_(e){return Hh(ia,e)}function E_(e){return Wh(ad,e)}function T_(e){return Gh(ad,e)}function N_(e){return Jh(wv,e)}function C_(e){return qh(kv,e)}function _v(e){return Yh(xv,e)}function z_(){return Xh($v)}function Bi(){return Qh(Sv)}function sd(e){return eg(Iv,e)}function O_(e){return tg(Ev,e)}function A_(e){return rg(js,e)}function Ms(e,t){return og(Tv,e,t)}function D_(e){let t=e._zod.def.shape;return ld(Object.keys(t))}function P_(e,t){let n={type:"object",shape:e??{},...B.normalizeParams(t)};return new Ls(n)}function R_(e,t){return new Ls({type:"object",shape:e,catchall:sd(),...B.normalizeParams(t)})}function U_(e,t){return new Ls({type:"object",shape:e,catchall:Bi(),...B.normalizeParams(t)})}function oa(e,t){return new Vs({type:"union",options:e,...B.normalizeParams(t)})}function j_(e,t){return new Nv({type:"union",options:e,inclusive:!1,...B.normalizeParams(t)})}function M_(e,t,n){return new Cv({type:"union",options:t,discriminator:e,...B.normalizeParams(n)})}function Ov(e,t){return new zv({type:"intersection",left:e,right:t})}function Dv(e,t,n){let i=t instanceof Ee,r=i?n:t,o=i?t:null;return new Av({type:"tuple",items:e,rest:o,...B.normalizeParams(r)})}function Pv(e,t,n){return!t||!t._zod?new Qo({type:"record",keyType:Ps(),valueType:e,...B.normalizeParams(t)}):new Qo({type:"record",keyType:e,valueType:t,...B.normalizeParams(n)})}function L_(e,t,n){return new Qo({type:"record",keyType:e,valueType:t,...B.normalizeParams(n),partial:!0})}function V_(e,t,n){return new Qo({type:"record",keyType:e,valueType:t,mode:"loose",...B.normalizeParams(n)})}function F_(e,t,n){return new Rv({type:"map",keyType:e,valueType:t,...B.normalizeParams(n)})}function B_(e,t){return new Uv({type:"set",valueType:e,...B.normalizeParams(t)})}function ld(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ea({type:"enum",entries:n,...B.normalizeParams(t)})}function Z_(e,t){return new ea({type:"enum",entries:e,...B.normalizeParams(t)})}function H_(e,t){return new jv({type:"literal",values:Array.isArray(e)?e:[e],...B.normalizeParams(t)})}function K_(e){return ag(Mv,e)}function cd(e){return new Lv({type:"transform",transform:e})}function Zi(e){return new Fs({type:"optional",innerType:e})}function Vv(e){return new ud({type:"optional",innerType:e})}function Rs(e){return new Fv({type:"nullable",innerType:e})}function W_(e){return Zi(Rs(e))}function Zv(e,t){return new Bv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():B.shallowClone(t)}})}function Kv(e,t){return new Hv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():B.shallowClone(t)}})}function Wv(e,t){return new dd({type:"nonoptional",innerType:e,...B.normalizeParams(t)})}function G_(e){return new Gv({type:"success",innerType:e})}function qv(e,t){return new Jv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:B.constantCatch(t)})}function J_(e){return ig(Yv,e)}function Vu(e,t){return new Bs({type:"pipe",in:e,out:t})}function q_(e,t,n){return new Zs({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Y_(e){let t=e._zod.def;return new Zs({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function eb(e){return new Qv({type:"readonly",innerType:e})}function X_(e,t){return new tb({type:"template_literal",parts:e,...B.normalizeParams(t)})}function nb(e){return new rb({type:"lazy",getter:e})}function Q_(e){return new ib({type:"promise",innerType:e})}function e1(e){return new ob({type:"function",input:Array.isArray(e?.input)?Dv(e?.input):e?.input??Ms(Bi()),output:e?.output??Bi()})}function t1(e){let t=new dt({check:"custom"});return t._zod.check=e,t}function r1(e,t){return sg(Hs,e??(()=>!0),t)}function ab(e,t={}){return lg(Hs,e,t)}function sb(e,t){return cg(e,t)}function o1(e,t={}){let n=new lb({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...B.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}function s1(e){let t=nb(()=>oa([Ps(e),bv(),yv(),_v(),Ms(t),Pv(Ps(),t)]));return t}function l1(e,t){return new Xv({type:"pipe",in:cd(e),out:t})}var ze,Fu,ta,at,ai,si,li,ci,Bu,Zu,an,Us,Hu,Ku,Wu,Gu,Ju,qu,Yu,Xu,hv,Qu,ed,td,rd,nd,id,gv,vv,od,Ki,ra,Wi,na,ia,ad,wv,kv,xv,$v,Sv,Iv,Ev,js,Tv,Ls,Vs,Nv,Cv,zv,Av,Qo,Rv,Uv,ea,jv,Mv,Lv,Fs,ud,Fv,Bv,Hv,dd,Gv,Jv,Yv,Bs,Zs,Xv,Qv,tb,rb,ib,ob,Hs,n1,i1,lb,a1,ui=Y(()=>{Sr();Sr();Ds();Oi();Os();yh();ju();mv();ze=N("ZodType",(e,t)=>(wC(),Ee.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(B.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return tt(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(ab(e,t))},superRefine(e,t){return this.check(sb(e,t))},overwrite(e){return this.check(Wr(e))},optional(){return Zi(this)},exactOptional(){return Vv(this)},nullable(){return Rs(this)},nullish(){return Zi(Rs(this))},nonoptional(e){return Wv(this,e)},array(){return Ms(this)},or(e){return oa([this,e])},and(e){return Ov(this,e)},transform(e){return Vu(this,cd(e))},default(e){return Zv(this,e)},prefault(e){return Kv(this,e)},catch(e){return qv(this,e)},pipe(e){return Vu(this,e)},readonly(){return eb(this)},describe(e){let t=this.clone();return Zt.add(t,{description:e}),t},meta(...e){if(e.length===0)return Zt.get(this);let t=this.clone();return Zt.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return B.hide(this,"~standard",{...zc(this),jsonSchema:{input:qo(this,"input"),output:qo(this,"output")}})},set"~standard"(e){B.own(this,"~standard",e)},parse:function e(t,n){return rv(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await nv(this,t,n,{callee:e})},safeParse(e,t){return iv(this,e,t)},async safeParseAsync(e,t){return ov(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){B.own(this,"spa",e)},validate(e,t){return os(this,e,t)},validateAsync(e,t){return as(this,e,t)},encode:function e(t,n){return av(this,t,n,{callee:e})},decode:function e(t,n){return sv(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await lv(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await cv(this,t,n,{callee:e})},safeEncode(e,t){return uv(this,e,t)},safeDecode(e,t){return dv(this,e,t)},async safeEncodeAsync(e,t){return pv(this,e,t)},async safeDecodeAsync(e,t){return fv(this,e,t)},toJSONSchema(e){return mg(this,{})(e)},get description(){return Zt.get(this)?.description},get _def(){return this._zod.def}}),Fu=N("_ZodString",(e,t)=>{Di.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vg(e,n,i,r)},B.derived({format:e=>At(e).format??null,minLength:e=>At(e).minimum??null,maxLength:e=>At(e).maximum??null},{regex(...e){return this.check(Uo(...e))},includes(...e){return this.check(Lo(...e))},startsWith(...e){return this.check(Vo(...e))},endsWith(...e){return this.check(Fo(...e))},min(...e){return this.check(On(...e))},max(...e){return this.check(Li(...e))},length(...e){return this.check(Vi(...e))},nonempty(...e){return this.check(On(1,...e))},lowercase(e){return this.check(jo(e))},uppercase(e){return this.check(Mo(e))},trim(){return this.check(Ko())},normalize(...e){return this.check(Ho(...e))},toLowerCase(){return this.check(Wo())},toUpperCase(){return this.check(Go())},slugify(){return this.check(Jo())}})),ta=N("ZodString",(e,t)=>{Di.init(e,t),Fu.init(e,t)},{email(e){return this.check(au(Bu,e))},url(e){return this.check(Is(Us,e))},jwt(e){return this.check(Iu(od,e))},emoji(e){return this.check(pu(Hu,e))},guid(e){return this.check(su(Zu,e))},uuid(e){return this.check(lu(an,e))},uuidv4(e){return this.check(cu(an,e))},uuidv6(e){return this.check(uu(an,e))},uuidv7(e){return this.check(du(an,e))},nanoid(e){return this.check(fu(Ku,e))},cuid(e){return this.check(mu(Wu,e))},cuid2(e){return this.check(hu(Gu,e))},ulid(e){return this.check(gu(Ju,e))},base64(e){return this.check(_u(rd,e))},base64url(e){return this.check($u(nd,e))},xid(e){return this.check(vu(qu,e))},ksuid(e){return this.check(bu(Yu,e))},ipv4(e){return this.check(yu(Xu,e))},ipv6(e){return this.check(wu(Qu,e))},cidrv4(e){return this.check(ku(ed,e))},cidrv6(e){return this.check(xu(td,e))},e164(e){return this.check(Su(id,e))},datetime(e){return this.check(Es(ai,e))},date(e){return this.check(Ts(si,e))},time(e){return this.check(Ns(li,e))},duration(e){return this.check(Cs(ci,e))}});at=N("ZodStringFormat",(e,t)=>{rt.init(e,t),Fu.init(e,t)}),ai=N("ZodISODateTime",(e,t)=>{vm.init(e,t),at.init(e,t)}),si=N("ZodISODate",(e,t)=>{bm.init(e,t),at.init(e,t)}),li=N("ZodISOTime",(e,t)=>{ym.init(e,t),at.init(e,t)}),ci=N("ZodISODuration",(e,t)=>{wm.init(e,t),at.init(e,t)}),Bu=N("ZodEmail",(e,t)=>{am.init(e,t),at.init(e,t)});Zu=N("ZodGUID",(e,t)=>{im.init(e,t),at.init(e,t)});an=N("ZodUUID",(e,t)=>{om.init(e,t),at.init(e,t)});Us=N("ZodURL",(e,t)=>{cm.init(e,t),at.init(e,t)});Hu=N("ZodEmoji",(e,t)=>{um.init(e,t),at.init(e,t)});Ku=N("ZodNanoID",(e,t)=>{dm.init(e,t),at.init(e,t)});Wu=N("ZodCUID",(e,t)=>{pm.init(e,t),at.init(e,t)});Gu=N("ZodCUID2",(e,t)=>{fm.init(e,t),at.init(e,t)});Ju=N("ZodULID",(e,t)=>{mm.init(e,t),at.init(e,t)});qu=N("ZodXID",(e,t)=>{hm.init(e,t),at.init(e,t)});Yu=N("ZodKSUID",(e,t)=>{gm.init(e,t),at.init(e,t)});Xu=N("ZodIPv4",(e,t)=>{km.init(e,t),at.init(e,t)});hv=N("ZodMAC",(e,t)=>{_m.init(e,t),at.init(e,t)});Qu=N("ZodIPv6",(e,t)=>{xm.init(e,t),at.init(e,t)});ed=N("ZodCIDRv4",(e,t)=>{$m.init(e,t),at.init(e,t)});td=N("ZodCIDRv6",(e,t)=>{Sm.init(e,t),at.init(e,t)});rd=N("ZodBase64",(e,t)=>{Im.init(e,t),at.init(e,t)});nd=N("ZodBase64URL",(e,t)=>{Em.init(e,t),at.init(e,t)});id=N("ZodE164",(e,t)=>{Tm.init(e,t),at.init(e,t)});gv=N("ZodCreditCard",(e,t)=>{Nm.init(e,t),at.init(e,t)});vv=N("ZodIBAN",(e,t)=>{Cm.init(e,t),at.init(e,t)});od=N("ZodJWT",(e,t)=>{zm.init(e,t),at.init(e,t)});Ki=N("ZodCustomStringFormat",(e,t)=>{Om.init(e,t),at.init(e,t)});ra=N("ZodNumber",(e,t)=>{Vc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bg(e,n,i,r),e.isFinite=!0},B.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=At(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=At(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=At(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>At(e).format??null},{gt(e,t){return this.check(nn(e,t))},gte(e,t){return this.check($r(e,t))},min(e,t){return this.check($r(e,t))},lt(e,t){return this.check(rn(e,t))},lte(e,t){return this.check(_r(e,t))},max(e,t){return this.check(_r(e,t))},int(e){return this.check(Lu(e))},safe(e){return this.check(Lu(e))},positive(e){return this.check(nn(0,e))},nonnegative(e){return this.check($r(0,e))},negative(e){return this.check(rn(0,e))},nonpositive(e){return this.check(_r(0,e))},multipleOf(e,t){return this.check(ti(e,t))},step(e,t){return this.check(ti(e,t))},finite(){return this}}));Wi=N("ZodNumberFormat",(e,t)=>{Am.init(e,t),ra.init(e,t)});na=N("ZodBoolean",(e,t)=>{gs.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yg(e,n,i,r)});ia=N("ZodBigInt",(e,t)=>{Fc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wg(e,n,i,r)},B.derived({minValue:e=>At(e).minimum??null,maxValue:e=>At(e).maximum??null,format:e=>At(e).format??null},{gte(e,t){return this.check($r(e,t))},min(e,t){return this.check($r(e,t))},gt(e,t){return this.check(nn(e,t))},lt(e,t){return this.check(rn(e,t))},lte(e,t){return this.check(_r(e,t))},max(e,t){return this.check(_r(e,t))},positive(e){return this.check(nn(BigInt(0),e))},negative(e){return this.check(rn(BigInt(0),e))},nonpositive(e){return this.check(_r(BigInt(0),e))},nonnegative(e){return this.check($r(BigInt(0),e))},multipleOf(e,t){return this.check(ti(e,t))}}));ad=N("ZodBigIntFormat",(e,t)=>{Dm.init(e,t),ia.init(e,t)});wv=N("ZodSymbol",(e,t)=>{Pm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kg(e,n,i,r)});kv=N("ZodUndefined",(e,t)=>{Rm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_g(e,n,i,r)});xv=N("ZodNull",(e,t)=>{Um.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xg(e,n,i,r)});$v=N("ZodAny",(e,t)=>{jm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ig(e,n,i,r)});Sv=N("ZodUnknown",(e,t)=>{Mm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Eg(e,n,i,r)});Iv=N("ZodNever",(e,t)=>{Lm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sg(e,n,i,r)});Ev=N("ZodVoid",(e,t)=>{Vm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$g(e,n,i,r)});js=N("ZodDate",(e,t)=>{Fm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Tg(e,n,i,r),e.min=(n,i)=>e.check($r(n,i)),e.max=(n,i)=>e.check(_r(n,i))},B.derived({minDate:e=>{let{minimum:t}=At(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=At(e);return t?new Date(t):null}},{}));Tv=N("ZodArray",(e,t)=>{Hi(),Bm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lg(e,n,i,r),e.element=t.element},{min(e,t){return this.check(On(e,t))},nonempty(e){return this.check(On(1,e))},max(e,t){return this.check(Li(e,t))},length(e,t){return this.check(Vi(e,t))},unwrap(){return this.element}});Ls=N("ZodObject",(e,t)=>{Hi(),Zm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vg(e,n,i,r),B.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return ld(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(B.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(B.mergeDefs(this._zod.def,{catchall:Bi()}))},loose(){return this.clone(B.mergeDefs(this._zod.def,{catchall:Bi()}))},strict(){return this.clone(B.mergeDefs(this._zod.def,{catchall:sd()}))},strip(){return this.clone(B.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return B.extend(this,e)},safeExtend(e){return B.safeExtend(this,e)},merge(e){return B.merge(this,e)},pick(e){return B.pick(this,e)},omit(e){return B.omit(this,e)},partial(...e){return B.partial(Fs,this,e[0])},exactPartial(...e){return B.partial(ud,this,e[0],"exactPartial")},required(...e){return B.required(dd,this,e[0])}});Vs=N("ZodUnion",(e,t)=>{vs.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Au(e,n,i,r),e.options=t.options});Nv=N("ZodXor",(e,t)=>{Vs.init(e,t),Hm.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Au(e,n,i,r),e.options=t.options});Cv=N("ZodDiscriminatedUnion",(e,t)=>{Vs.init(e,t),Wm.init(e,t)});zv=N("ZodIntersection",(e,t)=>{Gm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Fg(e,n,i,r)});Av=N("ZodTuple",(e,t)=>{Hi(),Bc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bg(e,n,i,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Fs({type:"optional",innerType:t}))})}});Qo=N("ZodRecord",(e,t)=>{Hi(),Jm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});Rv=N("ZodMap",(e,t)=>{Hi(),qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(on(...n)),e.nonempty=n=>e.check(on(1,n)),e.max=(...n)=>e.check(ri(...n)),e.size=(...n)=>e.check(Mi(...n))});Uv=N("ZodSet",(e,t)=>{Hi(),Ym.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mg(e,n,i,r),e.min=(...n)=>e.check(on(...n)),e.nonempty=n=>e.check(on(1,n)),e.max=(...n)=>e.check(ri(...n)),e.size=(...n)=>e.check(Mi(...n))});ea=N("ZodEnum",(e,t)=>{Xm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ng(e,i,r,o),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ea({...t,checks:[],...B.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new ea({...t,checks:[],...B.normalizeParams(r),entries:o})}});jv=N("ZodLiteral",(e,t)=>{Qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Cg(e,n,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});Mv=N("ZodFile",(e,t)=>{eh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ag(e,n,i,r),e.min=(n,i)=>e.check(on(n,i)),e.max=(n,i)=>e.check(ri(n,i)),e.mime=(n,i)=>e.check(Zo(Array.isArray(n)?n:[n],i))});Lv=N("ZodTransform",(e,t)=>{Hi(),th.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ug(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ei(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(B.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=n.value),a.inst??(a.inst=e),n.issues.push(B.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});Fs=N("ZodOptional",(e,t)=>{Zc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Du(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});ud=N("ZodExactOptional",(e,t)=>{rh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Du(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Fv=N("ZodNullable",(e,t)=>{nh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Bv=N("ZodDefault",(e,t)=>{ih.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});Hv=N("ZodPrefault",(e,t)=>{oh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});dd=N("ZodNonOptional",(e,t)=>{ah.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Gv=N("ZodSuccess",(e,t)=>{sh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Jv=N("ZodCatch",(e,t)=>{lh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});Yv=N("ZodNaN",(e,t)=>{ch.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zg(e,n,i,r)});Bs=N("ZodPipe",(e,t)=>{Hc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yg(e,n,i,r),e.in=t.in,e.out=t.out});Zs=N("ZodCodec",(e,t)=>{Bs.init(e,t),bs.init(e,t)});Xv=N("ZodPreprocess",(e,t)=>{Bs.init(e,t),uh.init(e,t)}),Qv=N("ZodReadonly",(e,t)=>{dh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});tb=N("ZodTemplateLiteral",(e,t)=>{ph.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Og(e,n,i,r)});rb=N("ZodLazy",(e,t)=>{ys.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ev(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});ib=N("ZodPromise",(e,t)=>{mh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});ob=N("ZodFunction",(e,t)=>{fh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rg(e,n,i,r)});Hs=N("ZodCustom",(e,t)=>{hh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Pg(e,n,i,r)});n1=ug,i1=dg,lb=N("ZodInstanceOf",(e,t)=>{Hs.init(e,t)},{properties(e,t){return this.check(Bo(e,t))}});a1=(...e)=>pg({Codec:Zs,Boolean:na,String:ta},...e)});function xC(e){It({customError:e})}function _C(){return It().customError}var kC,cb,c1=Y(()=>{Sr();kC={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};cb||(cb={})});var Ks={};Zr(Ks,{ZodISODate:()=>si,ZodISODateTime:()=>ai,ZodISODuration:()=>ci,ZodISOTime:()=>li,date:()=>SC,datetime:()=>$C,duration:()=>EC,time:()=>IC});function $C(e){return Es(ai,e)}function SC(e){return Ts(si,e)}function IC(e){return Ns(li,e)}function EC(e){return Cs(ci,e)}var pd=Y(()=>{Sr();ui();ui()});function NC(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function u1(e,t){return e.map((n,i)=>i<t?n:n.optional())}function CC(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function zC(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1]===void 0?void 0:CC(n[1]);if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function OC(e,t){return fe.transform(i=>i).check(i=>{let r=i.value;if(typeof r!="object"||r===null||Array.isArray(r))return;let o=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&o.length<t.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&o.length>t.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let a of o){let s=t.keySchema.safeParse(a);s.success||i.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function ub(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let i=String(e);return`${n[0]}${i.length}:${i}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let o=[];for(let a of e){let s=ub(a,t);if(s===null)return null;o.push(s)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(e).sort(),r=[];for(let o of i){let a=ub(e[o],t);if(a===null)return null;r.push(`${o.length}:${o}=${a}`)}return`o${r.length}:{${r.join(",")}}`}finally{t.delete(e)}}function Ws(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Ws):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>AC.has(t)?Ws(n):!DC.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Ws))}function d1(e){return e===1?"element":"elements"}function PC(e,t){return fe.transform(i=>i).check(i=>{let r=i.value;if(Array.isArray(r)){if(t.uniqueItems===!0){let o=new Map;for(let a=0;a<r.length;a++){let s=ub(r[a],new Set);if(s===null)continue;let l=o.get(s);if(l===void 0){o.set(s,a);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${l}`,input:r,path:[a],continue:!0})}}if(t.containsSchema){let o=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let l of r)if(t.containsSchema.safeParse(l).success&&++s>=a)break;s<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${d1(o)}; found ${s}`,input:r,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${d1(t.maxContains)}`,input:r,continue:!0})}}}).pipe(e)}function p1(e,t){if(e!==!1)return e===void 0||e===!0?fe.any():lr(e,t)}function f1(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return fe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return fe.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=zC(r,t),a=lr(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return fe.null();if(r.length===0)return fe.never();if(r.length===1)return fe.literal(r[0]);if(r.every(a=>typeof a=="string"))return fe.enum(r);let o=r.map(a=>fe.literal(a));return o.length<2?o[0]:fe.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return fe.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return f1(a,t)});return r.length===0?fe.never():r.length===1?r[0]:fe.union(r)}if(!n)return fe.any();let i;switch(n){case"string":{let r=fe.string();if(e.format){let o=e.format;o==="email"?r=r.check(fe.email()):o==="uri"||o==="uri-reference"?r=r.check(fe.url()):o==="uuid"||o==="guid"?r=r.check(fe.uuid()):o==="date-time"?r=r.check(fe.iso.datetime({offset:!0})):o==="date"?r=r.check(fe.iso.date()):o==="time"?r=r.check(fe.regex(RC)):o==="duration"?r=r.check(fe.iso.duration()):o==="hostname"?r=r.check(fe.hostname()):o==="ipv4"?r=r.check(fe.ipv4()):o==="ipv6"?r=r.check(fe.ipv6()):o==="mac"?r=r.check(fe.mac()):o==="cidr"?r=r.check(fe.cidrv4()):o==="cidr-v6"?r=r.check(fe.cidrv6()):o==="base64"?r=r.check(fe.base64()):o==="base64url"?r=r.check(fe.base64url()):o==="e164"?r=r.check(fe.e164()):o==="credit_card"?r=r.check(fe.creditCard()):o==="iban"?r=r.check(fe.iban()):o==="jwt"?r=r.check(fe.jwt()):o==="emoji"?r=r.check(fe.emoji()):o==="nanoid"?r=r.check(fe.nanoid()):o==="cuid"?r=r.check(fe.cuid()):o==="cuid2"?r=r.check(fe.cuid2()):o==="ulid"?r=r.check(fe.ulid()):o==="xid"?r=r.check(fe.xid()):o==="ksuid"&&(r=r.check(fe.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?fe.number().int():fe.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=fe.boolean();break}case"null":{i=fe.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?lr(e.additionalProperties,t):void 0;for(let[p,f]of Object.entries(o)){let m=lr(f,t);Bt(r,p,a.has(p)?m:m.optional())}if(e.patternProperties){let p=e.patternProperties,f=Object.keys(p),m=[];for(let v of f){let x=lr(p[v],t),A=fe.string().regex(new RegExp(v));m.push(fe.looseRecord(A,x))}let h=[];if(Object.keys(r).length>0&&h.push(fe.object(r).passthrough()),h.push(...m),h.length===0)i=fe.object({}).passthrough();else if(h.length===1)i=h[0];else{let v=fe.intersection(h[0],h[1]);for(let x=2;x<h.length;x++)v=fe.intersection(v,h[x]);i=v}if(e.additionalProperties===!1){let v=Object.keys(r),x=f.map(I=>new RegExp(I)),A=i;i=i.check(I=>{if(!Ar(I.value))return;let E=[];for(let M of Object.keys(I.value))v.includes(M)||x.some(z=>z.test(M))||E.push(M);E.length&&I.issues.push({code:"unrecognized_keys",keys:E,input:I.value,inst:A})})}}else{let p=fe.object(r);e.additionalProperties===!1?i=p.strict():s?i=p.catchall(s):i=p.passthrough()}let l=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,d=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(l||u!==void 0||d!==void 0){let p;if(l){let f=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;p=lr(f,t)}i=OC(i,{keySchema:p,minProperties:u,maxProperties:d})}break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=typeof e.minItems=="number"?e.minItems:0,s=r.map(p=>lr(p,t)),l=u1(s,a),u=Array.isArray(o)?void 0:p1(o,t),d=fe.tuple(l);i=u?d.rest(u):d,typeof e.minItems=="number"&&(i=i.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(fe.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=typeof e.minItems=="number"?e.minItems:0,s=o.map(p=>lr(p,t)),l=u1(s,a),u=p1(e.additionalItems,t),d=fe.tuple(l);i=u?d.rest(u):d,typeof e.minItems=="number"&&(i=i.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(fe.maxLength(e.maxItems)))}else if(o!==void 0){let a=lr(o,t),s=fe.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=fe.array(fe.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=PC(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?lr(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return i}function lr(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let n=f1(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>lr(u,t)),l=fe.union(s);n=i?fe.intersection(n,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>lr(u,t)),l=fe.xor(s);n=i?fe.intersection(n,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:fe.any();else{let s=i?n:lr(e.allOf[0],t),l=i?0:1;for(let u=l;u<e.allOf.length;u++)s=fe.intersection(s,lr(e.allOf[u],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=fe.nullable(n)),e.readOnly===!0&&(n=fe.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Ws(e.propertyNames)&&(r.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(r[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Ws(e.contains)&&(r.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(r[s]=e[s])}for(let s of Object.keys(e))TC.has(s)||Bt(r,s,e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function m1(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=NC(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Zt};return lr(n,o)}var fe,TC,AC,DC,RC,h1=Y(()=>{Ss();de();ju();pd();ui();fe={...aa,...Uu,iso:Ks},TC=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);AC=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),DC=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);RC=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/});function Gs(e,t){let n=typeof t=="function"?t:(a,s)=>{let l=t[a._zod.def.type];return l?l(a,s):a},i=new Map;function r(a){let s=i.get(a);if(s===g1)return new ys({type:"lazy",getter:()=>i.get(a)});if(s!==void 0)return s;i.set(a,g1);let l=o(a),u=n(l,l!==a);return i.set(a,u),u}function o(a){let s=a._zod.def,l=s.type;switch(l){case"object":{let u=s.shape,d=Object.keys(u),p=!1,f={};for(let h of d){let v=r(u[h]);v!==u[h]&&(p=!0),f[h]=v}let m=s.catchall;return s.catchall&&(m=r(s.catchall),m!==s.catchall&&(p=!0)),p?tt(a,{...s,shape:f,catchall:m}):a}case"array":{let u=r(s.element);return u===s.element?a:tt(a,{...s,element:u})}case"tuple":{let u=s.items,d=!1,p=[];for(let m of u){let h=r(m);h!==m&&(d=!0),p.push(h)}let f=s.rest;return s.rest&&(f=r(s.rest),f!==s.rest&&(d=!0)),d?tt(a,{...s,items:p,rest:f}):a}case"record":case"map":{let u=r(s.keyType),d=r(s.valueType);return u===s.keyType&&d===s.valueType?a:tt(a,{...s,keyType:u,valueType:d})}case"set":{let u=r(s.valueType);return u===s.valueType?a:tt(a,{...s,valueType:u})}case"union":{let u=s.options,d=!1,p=[];for(let f of u){let m=r(f);m!==f&&(d=!0),p.push(m)}return d?tt(a,{...s,options:p}):a}case"intersection":{let u=r(s.left),d=r(s.right);return u===s.left&&d===s.right?a:tt(a,{...s,left:u,right:d})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=r(s.innerType);return u===s.innerType?a:tt(a,{...s,innerType:u})}case"pipe":{let u=r(s.in),d=r(s.out);return u===s.in&&d===s.out?a:tt(a,{...s,in:u,out:d})}case"function":{let u=r(s.input),d=r(s.output);return u===s.input&&d===s.output?a:tt(a,{...s,input:u,output:d})}case"lazy":{let u=s.getter,{_cachedInner:d,...p}=s;return tt(a,{...p,getter:()=>r(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return r(e)}var g1,db=Y(()=>{Ao();de();g1=Symbol("z.visit/resolving")});function v1(e){return Gs(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:oa(n.options)}})}var b1=Y(()=>{db();ui()});function UC(e,t){if(!t?.length)return e;let n=e._zod.def;return tt(e,Hr(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function y1(e){return UC(e.out,e.checks)}function jC(e){return e.in._zod.traits.has("$ZodTransform")?y1(e):e.in}function w1(e){return Gs(e,{pipe:t=>jC(t._zod.def),default:(t,n)=>n?Zi(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function k1(e){return Gs(e,{pipe:t=>y1(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var x1=Y(()=>{de();db();ui()});var pb={};Zr(pb,{bigint:()=>FC,boolean:()=>VC,date:()=>BC,number:()=>LC,string:()=>MC});function MC(e){return zh(ta,e)}function LC(e){return Uh(ra,e)}function VC(e){return Zh(na,e)}function FC(e){return Kh(ia,e)}function BC(e){return ng(js,e)}var _1=Y(()=>{Sr();ui()});var c={};Zr(c,{$brand:()=>Zp,$input:()=>$h,$output:()=>_h,INVALID:()=>ar,NEVER:()=>Bp,TimePrecision:()=>Ph,ZodAny:()=>$v,ZodArray:()=>Tv,ZodBase64:()=>rd,ZodBase64URL:()=>nd,ZodBigInt:()=>ia,ZodBigIntFormat:()=>ad,ZodBoolean:()=>na,ZodCIDRv4:()=>ed,ZodCIDRv6:()=>td,ZodCUID:()=>Wu,ZodCUID2:()=>Gu,ZodCatch:()=>Jv,ZodCodec:()=>Zs,ZodCompileAsyncError:()=>Kr,ZodCompileUnsupportedError:()=>Re,ZodCreditCard:()=>gv,ZodCustom:()=>Hs,ZodCustomStringFormat:()=>Ki,ZodDate:()=>js,ZodDefault:()=>Bv,ZodDiscriminatedUnion:()=>Cv,ZodE164:()=>id,ZodEmail:()=>Bu,ZodEmoji:()=>Hu,ZodEnum:()=>ea,ZodError:()=>bC,ZodExactOptional:()=>ud,ZodFile:()=>Mv,ZodFirstPartyTypeKind:()=>cb,ZodFunction:()=>ob,ZodGUID:()=>Zu,ZodIBAN:()=>vv,ZodIPv4:()=>Xu,ZodIPv6:()=>Qu,ZodISODate:()=>si,ZodISODateTime:()=>ai,ZodISODuration:()=>ci,ZodISOTime:()=>li,ZodInstanceOf:()=>lb,ZodIntersection:()=>zv,ZodIssueCode:()=>kC,ZodJWT:()=>od,ZodKSUID:()=>Yu,ZodLazy:()=>rb,ZodLiteral:()=>jv,ZodMAC:()=>hv,ZodMap:()=>Rv,ZodNaN:()=>Yv,ZodNanoID:()=>Ku,ZodNever:()=>Iv,ZodNonOptional:()=>dd,ZodNull:()=>xv,ZodNullable:()=>Fv,ZodNumber:()=>ra,ZodNumberFormat:()=>Wi,ZodObject:()=>Ls,ZodOptional:()=>Fs,ZodPipe:()=>Bs,ZodPrefault:()=>Hv,ZodPreprocess:()=>Xv,ZodPromise:()=>ib,ZodReadonly:()=>Qv,ZodRealError:()=>wr,ZodRecord:()=>Qo,ZodSet:()=>Uv,ZodString:()=>ta,ZodStringFormat:()=>at,ZodSuccess:()=>Gv,ZodSymbol:()=>wv,ZodTemplateLiteral:()=>tb,ZodTransform:()=>Lv,ZodTuple:()=>Av,ZodType:()=>ze,ZodULID:()=>Ju,ZodURL:()=>Us,ZodUUID:()=>an,ZodUndefined:()=>kv,ZodUnion:()=>Vs,ZodUnknown:()=>Sv,ZodVoid:()=>Ev,ZodXID:()=>qu,ZodXor:()=>Nv,_ZodString:()=>Fu,_default:()=>Zv,_function:()=>e1,any:()=>z_,array:()=>Ms,base64:()=>d_,base64url:()=>p_,bigint:()=>I_,boolean:()=>yv,catch:()=>qv,check:()=>t1,cidrv4:()=>c_,cidrv6:()=>u_,clone:()=>tt,codec:()=>q_,coerce:()=>pb,compile:()=>Th,config:()=>It,core:()=>An,creditCard:()=>m_,cuid:()=>t_,cuid2:()=>r_,currencyCode:()=>w_,custom:()=>r1,date:()=>A_,decode:()=>sv,decodeAsync:()=>cv,deepPartial:()=>v1,describe:()=>n1,discriminatedUnion:()=>M_,e164:()=>f_,email:()=>Hx,emoji:()=>Qx,encode:()=>av,encodeAsync:()=>lv,endsWith:()=>Fo,enum:()=>ld,exactOptional:()=>Vv,file:()=>K_,flattenError:()=>ns,float32:()=>x_,float64:()=>__,formatError:()=>is,fromJSONSchema:()=>m1,function:()=>e1,getDiscriminatedOption:()=>Km,getErrorMap:()=>_C,globalRegistry:()=>Zt,gt:()=>nn,gte:()=>$r,guid:()=>Kx,hash:()=>k_,hex:()=>y_,hostname:()=>b_,httpUrl:()=>Xx,iban:()=>h_,includes:()=>Lo,input:()=>w1,instanceof:()=>o1,int:()=>Lu,int32:()=>$_,int64:()=>E_,intersection:()=>Ov,invertCodec:()=>Y_,ipv4:()=>a_,ipv6:()=>l_,iso:()=>Ks,json:()=>s1,jwt:()=>g_,keyof:()=>D_,ksuid:()=>o_,lazy:()=>nb,length:()=>Vi,literal:()=>H_,locales:()=>$s,looseObject:()=>U_,looseRecord:()=>V_,lowercase:()=>jo,lt:()=>rn,lte:()=>_r,mac:()=>s_,map:()=>F_,maxLength:()=>Li,maxSize:()=>ri,memoizer:()=>xs,meta:()=>i1,mime:()=>Zo,minLength:()=>On,minSize:()=>on,multipleOf:()=>ti,nan:()=>J_,nanoid:()=>e_,nativeEnum:()=>Z_,negative:()=>Tu,never:()=>sd,nonnegative:()=>Cu,nonoptional:()=>Wv,nonpositive:()=>Nu,normalize:()=>Ho,null:()=>_v,nullable:()=>Rs,nullish:()=>W_,number:()=>bv,object:()=>P_,optional:()=>Zi,output:()=>k1,overwrite:()=>Wr,parse:()=>rv,parseAsync:()=>nv,partialRecord:()=>L_,pipe:()=>Vu,positive:()=>Eu,prefault:()=>Kv,preprocess:()=>l1,prettifyError:()=>Jp,promise:()=>Q_,properties:()=>Bo,property:()=>zu,readonly:()=>eb,record:()=>Pv,refine:()=>ab,regex:()=>Uo,regexes:()=>Pr,registry:()=>ru,safeDecode:()=>dv,safeDecodeAsync:()=>fv,safeEncode:()=>uv,safeEncodeAsync:()=>pv,safeParse:()=>iv,safeParseAsync:()=>ov,set:()=>B_,setErrorMap:()=>xC,size:()=>Mi,slugify:()=>Jo,startsWith:()=>Vo,strictObject:()=>R_,string:()=>Ps,stringFormat:()=>v_,stringbool:()=>a1,success:()=>G_,superRefine:()=>sb,symbol:()=>N_,templateLiteral:()=>X_,toJSONSchema:()=>Pu,toLowerCase:()=>Wo,toUpperCase:()=>Go,toZod:()=>Ga,transform:()=>cd,treeifyError:()=>Gp,trim:()=>Ko,tuple:()=>Dv,uint32:()=>S_,uint64:()=>T_,ulid:()=>n_,undefined:()=>C_,union:()=>oa,unknown:()=>Bi,uppercase:()=>Mo,url:()=>Yx,util:()=>B,uuid:()=>Wx,uuidv4:()=>Gx,uuidv6:()=>Jx,uuidv7:()=>qx,validate:()=>os,validateAsync:()=>as,void:()=>O_,withParser:()=>nu,xid:()=>i_,xor:()=>j_});var fb=Y(()=>{Sr();ui();ju();tv();mv();c1();Sr();Ds();h1();b1();x1();xh();pd();pd();_1()});var Pe=Y(()=>{fb();fb()});function la(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}function _e(e){if(xe(e)){let t={};for(let n=0;n<e.length;n++){let i=e[n],r=pt(i)?qC(i):_e(i);if(r)for(let o in r)t[o]=r[o]}return t}else if(pt(e)||He(e))return e}function qC(e){let t={};return e.replace(JC,"").split(WC).forEach(n=>{if(n){let i=n.split(GC);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function V(e){let t="";if(pt(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){let i=V(e[n]);i&&(t+=i+" ")}else if(He(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function ma(e){if(!e)return null;let{class:t,style:n}=e;return t&&!pt(t)&&(e.class=V(t)),n&&(e.style=_e(n)),e}function gd(e){return!!e||e===""}function XC(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=ha(e[i],t[i]);return n}function I1(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),i=new Uint8Array(n.length);for(let r of e){let o=-1;for(let a=0;a<n.length;a++)if(!i[a]&&ha(r,n[a])){o=a;break}if(o<0)return!1;i[o]=1}return!0}function ha(e,t){if(e===t)return!0;let n=$1(e),i=$1(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=kr(e),i=kr(t),n||i)return e===t;if(n=xe(e),i=xe(t),n||i)return n&&i?XC(e,t):!1;if(n=He(e),i=He(t),n||i){if(!n||!i)return!1;if(n=Dn(e),i=Dn(t),n||i||(n=sa(e),i=sa(t),n||i))return n&&i?I1(e,t):!1;let r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(let a in e){let s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!ha(e[a],t[a]))return!1}}return String(e)===String(t)}var Qe,Gi,cr,hb,ca,ua,bt,Js,ZC,Ke,xe,Dn,sa,$1,Ie,pt,kr,He,gb,E1,qs,vb,fd,md,da,hd,HC,Dt,KC,sn,Ji,Ys,Rr,pa,fa,Xs,bb,S1,di,WC,GC,JC,T1,N1,YC,C1,le,z1,mb,Qs=Y(()=>{/**
62
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}s.count>1&&e.reused==="ref"&&o(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Tx(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let i of t){if(!i||typeof i!="object")return;Tx(i);let r=Object.keys(i);if(r.length!==1||r[0]!=="type")return;let o=i.type;for(let a of Array.isArray(o)?o:[o]){if(typeof a!="string")return;n.includes(a)||n.push(a)}}delete e.anyOf,e.type=n.length===1?n[0]:n}function Ex(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function fg(e){let t=[];for(let o of e){if(typeof o!="object"||o.type!=="object")return null;for(let a in o)if(!Nx.has(a))return null;t.push(o)}let n={},i=new Set;for(let o of t){for(let a in o.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;let s=[];for(let u of t){let d=u.properties?.[a]??Ex(u);d!=null&&(s.some(p=>JSON.stringify(p)===JSON.stringify(d))||s.push(d))}let l=s.length===1?s[0]:fg(s)??{allOf:s};Bt(n,a,l)}for(let a of o.required??[])i.add(a)}let r={type:"object",properties:n};if(i.size&&(r.required=[...i]),t.every(o=>o.additionalProperties===!1))r.additionalProperties=!1;else{let o=[];for(let a of t){let s=Ex(a);s&&!o.some(l=>JSON.stringify(l)===JSON.stringify(s))&&o.push(s)}o.length===1?r.additionalProperties=o[0]:o.length>1&&(r.additionalProperties={allOf:o})}return r}function pC(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let r of Nx)if(r in e)return;let n=t.filter(r=>Ix.some(o=>Array.isArray(r[o]))),i=null;if(!n.length)i=fg(t);else{let r=n[0],o=Ix.find(l=>Array.isArray(r[l]));if(Object.keys(r).length!==1)return;let a=t.filter(l=>l!==r),s=r[o].map(l=>fg([...a,l]));if(s.some(l=>!l))return;i={[o]:s}}i&&(delete e.allOf,zs(e,i))}function oi(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let l=e.seen.get(s);if(l.ref===null)return;let u=l.def??l.schema,d={...u},p=l.ref;if(l.ref=null,p){i(p);let m=e.seen.get(p),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):zs(u,h),zs(u,d),s._zod.parent===p)for(let x in u)x==="$ref"||x==="allOf"||x in d||delete u[x];if(h.$ref&&m.def)for(let x in u)x==="$ref"||x==="allOf"||x in m.def&&JSON.stringify(u[x])===JSON.stringify(m.def[x])&&delete u[x]}let f=s._zod.parent;if(f&&f!==p){i(f);let m=e.seen.get(f);if(m?.schema.$ref&&(u.$ref=m.schema.$ref,m.def))for(let h in u)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(u[h])===JSON.stringify(m.def[h])&&delete u[h]}e.override({zodSchema:s,jsonSchema:u,path:l.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())i(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())Tx(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let l of e.seen.values())for(let u of[l.schema,l.def]){let d=u?.allOf;if(!Array.isArray(d))continue;let p=s.get(d);p?p.push(u):s.set(d,[u])}for(let l of e.intersections)for(let u of s.get(l)??[])pC(u)}}let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}zs(r,n.defId?n.schema:n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,Bt(a,l.defId,l.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:qo(t,"input",e.processors),output:qo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function sr(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return sr(i.element,n);if(i.type==="set")return sr(i.valueType,n);if(i.type==="lazy")return sr(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return sr(i.innerType,n);if(i.type==="intersection")return sr(i.left,n)||sr(i.right,n);if(i.type==="record"||i.type==="map")return sr(i.keyType,n)||sr(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:sr(i.in,n)||sr(i.out,n);if(i.type==="object"){for(let r in i.shape)if(sr(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(sr(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(sr(r,n))return!0;return!!(i.rest&&sr(i.rest,n))}return!1}var Nx,Ix,mg,qo,Os=Y(()=>{Ss();de();Nx=new Set(["type","properties","required","additionalProperties"]),Ix=["oneOf","anyOf"];mg=(e,t={})=>n=>{let i=ni({...n,processors:t});return nt(e,i),ii(i,e),oi(i,e)},qo=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=ni({...r??{},target:o,io:t,processors:n});return nt(e,a),ii(a,e),oi(a,e)}});function At(e){let t={},n=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let o of i)fC[o._zod.def.check]?.(t,o._zod.def);let r=e._zod.bag;r.minimum!==void 0&&Yo(t,"minimum",r.minimum),r.exclusiveMinimum!==void 0&&Yo(t,"exclusiveMinimum",r.exclusiveMinimum),r.maximum!==void 0&&Xo(t,"maximum",r.maximum),r.exclusiveMaximum!==void 0&&Xo(t,"exclusiveMaximum",r.exclusiveMaximum),r.multipleOf!==void 0&&Dx(t,r.multipleOf),r.format!==void 0&&(t.format??(t.format=r.format),r.format.includes("int")&&(t.isInt=!0)),r.mime&&Rx(t,r.mime);for(let o of r.patterns??[])Px(t,o);return t}function As(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?As(t.out):t.type==="catch"?As(t.innerType):e._zod.optin}function hg(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let v=hg(e,h,n);return v===h?t:v}for(let h of["anyOf","oneOf"]){let v=t[h];if(!Array.isArray(v))continue;let x=v.map(A=>hg(e,A,n));x.some((A,I)=>A!==v[I])&&(t={...t,[h]:x})}let i=Array.isArray(t.type)?t.type:[t.type],r=!i.includes("string")&&i.some(h=>h==="number"||h==="integer"),o=t.enum??(t.const!==void 0?[t.const]:void 0);if(!r&&!o?.some(h=>typeof h=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:l,exclusiveMaximum:u,multipleOf:d,format:p,id:f,...m}=t;return m.enum?m.enum=m.enum.map(h=>typeof h=="number"?String(h):h):typeof m.const=="number"&&(m.const=String(m.const)),r&&(m.type="string",o||(m.pattern=(i.includes("number")?zn:ls).source)),m}function gC(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let n=new Map;for(let i of gg.get(e)??[]){let r=e.seen.get(i),o=(r?.def??r?.schema)?.propertyNames;if(!o||o===!0||n.has(o))continue;let a=hg(t,o,new Set);a!==o&&n.set(o,a)}if(n.size)for(let i of e.seen.values())for(let r of[i.schema,i.def]){let o=r&&n.get(r.propertyNames);o&&(r.propertyNames=o)}}function Mx(e,t,n,i,r){let o=!1,a=JSON.stringify(e,(s,l)=>typeof l!="bigint"?l:(o=!0,null));return o?(Ot(t,n,i,r,"BigInt defaults cannot be represented in JSON Schema"),Wg):JSON.parse(a)}function Pu(e,t){if("_idmap"in e){let i=e,r=ni({...t,processors:Ou}),o={};for(let l of i._idmap.entries()){let[u,d]=l;nt(d,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let l of i._idmap.entries()){let[u,d]=l;ii(r,d),Bt(a,u,oi(r,d))}if(Object.keys(o).length>0){let l=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:o}}return{schemas:a}}let n=ni({...t,processors:Ou});return nt(e,n),ii(n,e),oi(n,e)}var Yo,Xo,Cx,Dx,Px,Rx,Ux,zx,Ox,Ax,fC,mC,hC,jx,vg,bg,yg,wg,kg,xg,_g,$g,Sg,Ig,Eg,Tg,Ng,Cg,zg,Og,Ag,Dg,Pg,Rg,Ug,jg,Mg,Lg,Vg,Au,Fg,Bg,gg,Zg,Hg,Kg,Wg,Gg,Jg,qg,Yg,Xg,Qg,Du,ev,Ou,Ds=Y(()=>{Oi();Ao();Os();de();Yo=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Xo=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Cx=(e,t)=>{Yo(e,"minimum",t),Xo(e,"maximum",t)},Dx=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Px=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Rx=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},Ux=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},zx=(e,t)=>Yo(e,"minimum",t.minimum),Ox=(e,t)=>Xo(e,"maximum",t.maximum),Ax=e=>(t,n)=>{Ux(t,n.format);let[i,r]=e[n.format];Yo(t,"minimum",i),Xo(t,"maximum",r)},fC={greater_than:(e,t)=>Yo(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Xo(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Dx(e,t.value),number_format:Ax(Xa),bigint_format:Ax(Qa),min_length:zx,max_length:Ox,length_equals:(e,t)=>Cx(e,t.length),min_size:zx,max_size:Ox,size_equals:(e,t)=>Cx(e,t.size),string_format:(e,t)=>{Ux(e,t.format),t.pattern&&Px(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Rx(e,t.mime)};mC={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},hC=new Map([[Rc,gf],[hs,vf]]),jx=e=>hC.get(e)??e,vg=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:l,contentEncoding:u,laxFormat:d}=At(e);if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=mC[s]??s,r.format===""&&delete r.format,(s==="time"||d)&&delete r.format),u&&(r.contentEncoding=u),l&&l.size>0){let p=[...l].map(jx);p.length===1?r.pattern=p[0].source:p.length>1&&(r.allOf=[...p.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},bg=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u,isInt:d}=At(e);r.type=d?"integer":"number";let p=typeof u=="number"&&u>=(o??Number.NEGATIVE_INFINITY),f=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";if(p?m?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof o=="number"&&(r.minimum=o),f?m?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:typeof a=="number"&&(r.maximum=a),s){let h=new Set;for(let A of s)Number.isFinite(A)&&A!==0?h.add(Math.abs(A)):Ot(e,t,r,i,`A multipleOf divisor of ${A} cannot be represented in JSON Schema`);let[v,...x]=h;v!==void 0&&(r.multipleOf=v),x.length&&(r.allOf=[...r.allOf??[],...x.map(A=>({multipleOf:A}))])}},yg=(e,t,n,i)=>{n.type="boolean"},wg=(e,t,n,i)=>{Ot(e,t,n,i,"BigInt cannot be represented in JSON Schema")},kg=(e,t,n,i)=>{Ot(e,t,n,i,"Symbols cannot be represented in JSON Schema")},xg=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},_g=(e,t,n,i)=>{Ot(e,t,n,i,"Undefined cannot be represented in JSON Schema")},$g=(e,t,n,i)=>{Ot(e,t,n,i,"Void cannot be represented in JSON Schema")},Sg=(e,t,n,i)=>{n.not={}},Ig=(e,t,n,i)=>{},Eg=(e,t,n,i)=>{},Tg=(e,t,n,i)=>{Ot(e,t,n,i,"Date cannot be represented in JSON Schema")},Ng=(e,t,n,i)=>{let r=e._zod.def,o=xo(r.entries);if(o.length===0){n.not={};return}o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Cg=(e,t,n,i)=>{let r=e._zod.def;if(r.values.length===0){n.not={};return}let o=[];for(let a of r.values)if(a===void 0){if(Ot(e,t,n,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Ot(e,t,n,i,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},zg=(e,t,n,i)=>{Ot(e,t,n,i,"NaN cannot be represented in JSON Schema")},Og=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},Ag=(e,t,n,i)=>{let r=n;r.type="string",r.format="binary",r.contentEncoding="binary";let{minimum:o,maximum:a,mime:s}=At(e);o!==void 0&&(r.minLength=o),a!==void 0&&(r.maxLength=a),s&&(s.length===0?r.not={}:s.length===1?r.contentMediaType=s[0]:r.anyOf=s.map(l=>({contentMediaType:l})))},Dg=(e,t,n,i)=>{n.type="boolean"},Pg=(e,t,n,i)=>{Ot(e,t,n,i,"Custom types cannot be represented in JSON Schema")},Rg=(e,t,n,i)=>{Ot(e,t,n,i,"Function types cannot be represented in JSON Schema")},Ug=(e,t,n,i)=>{Ot(e,t,n,i,"Transforms cannot be represented in JSON Schema")},jg=(e,t,n,i)=>{Ot(e,t,n,i,"Map cannot be represented in JSON Schema")},Mg=(e,t,n,i)=>{Ot(e,t,n,i,"Set cannot be represented in JSON Schema")},Lg=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=At(e);typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=nt(o.element,t,{...i,path:[...i.path,"items"]})};Vg=(e,t,n,i)=>{let r=n,o=e._zod.def,a=o.shape;if(Object.getOwnPropertySymbols(a).length&&Ot(e,t,r,i,"Symbol keys cannot be represented in JSON Schema"))return;r.type="object",r.properties={};for(let u in a)Bt(r.properties,u,nt(a[u],t,{...i,path:[...i.path,"properties",u]}));let l=[];for(let u of Object.keys(a)){let d=o.shape[u];(t.io==="input"?As(d)===void 0:d._zod.optout===void 0)&&l.push(u)}l.length>0&&(r.required=l),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=nt(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Au=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,l)=>nt(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=a:n.anyOf=a},Fg=(e,t,n,i)=>{let r=e._zod.def,o=nt(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=nt(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=l,t.intersections.push(l)},Bg=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((v,x)=>nt(v,t,{...i,path:[...i.path,a,x]})),u=o.rest?nt(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null,d=o.items.length;for(;d>0;){let v=o.items[d-1];if(!(t.io==="input"?As(v)!==void 0:v._zod.optout==="optional"))break;d--}let p=o.items.length,f=!o.rest;t.target==="draft-2020-12"?(r.prefixItems=l,f?r.items=!1:u&&(r.items=u),d>0&&(r.minItems=d),f&&(r.maxItems=p)):t.target==="openapi-3.0"?(r.items={anyOf:l},u&&r.items.anyOf.push(u),d>0&&(r.minItems=d),f&&(r.maxItems=p)):(r.items=l,f?r.additionalItems=!1:u&&(r.additionalItems=u),d>0&&(r.minItems=d),f&&(r.maxItems=p));let{minimum:m,maximum:h}=At(e);typeof m=="number"&&(r.minItems=m),typeof h=="number"&&(r.maxItems=h)};gg=new WeakMap;Zg=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,s=At(a).patterns;if(o.mode==="loose"&&s&&s.size>0){let d=nt(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let p of s)Bt(r.patternProperties,jx(p).source,d)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){r.propertyNames=nt(o.keyType,t,{...i,path:[...i.path,"propertyNames"]});let d=gg.get(t);d||(d=[],gg.set(t,d),t.deferred.push(()=>gC(t))),d.push(e)}r.additionalProperties=nt(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let l=a._zod.values,u=t.io==="input"&&As(o.valueType)!==void 0;if(l&&!o.partial&&!u){let d=[...l].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(r.required=d.map(String))}},Hg=(e,t,n,i)=>{let r=e._zod.def,o=nt(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},Kg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Wg=Symbol();Gg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a=Mx(r.defaultValue,e,t,n,i);a!==Wg&&(n.default=a)},Jg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);if(o.ref=r.innerType,t.io!=="input")return;let a=Mx(r.defaultValue,e,t,n,i);a!==Wg&&(n._prefault=a)},qg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{Ot(e,t,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=a},Yg=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;nt(a,t,i);let s=t.seen.get(e);s.ref=a},Xg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},Qg=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Du=(e,t,n,i)=>{let r=e._zod.def;nt(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},ev=(e,t,n,i)=>{let r=e._zod.innerType;nt(r,t,i);let o=t.seen.get(e);o.ref=r},Ou={string:vg,number:bg,boolean:yg,bigint:wg,symbol:kg,null:xg,undefined:_g,void:$g,never:Sg,any:Ig,unknown:Eg,date:Tg,enum:Ng,literal:Cg,nan:zg,template_literal:Og,file:Ag,success:Dg,custom:Pg,function:Rg,transform:Ug,map:jg,set:Mg,array:Lg,object:Vg,union:Au,intersection:Fg,tuple:Bg,record:Zg,nullable:Hg,nonoptional:Kg,default:Gg,prefault:Jg,catch:qg,pipe:Yg,readonly:Xg,promise:Qg,optional:Du,lazy:ev}});var Ru,Lx=Y(()=>{Ds();Os();Ru=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=ni({processors:Ou,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return nt(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,ii(this.ctx,t);let i=oi(this.ctx,t),{"~standard":r,...o}=i;return o}}});var Vx={};var Fx=Y(()=>{});var An={};Zr(An,{$ZodAny:()=>jm,$ZodArray:()=>Bm,$ZodAsyncError:()=>br,$ZodBase64:()=>Im,$ZodBase64URL:()=>Em,$ZodBigInt:()=>Fc,$ZodBigIntFormat:()=>Dm,$ZodBoolean:()=>gs,$ZodCIDRv4:()=>$m,$ZodCIDRv6:()=>Sm,$ZodCUID:()=>pm,$ZodCUID2:()=>fm,$ZodCatch:()=>lh,$ZodCheck:()=>dt,$ZodCheckBigIntFormat:()=>jf,$ZodCheckEndsWith:()=>qf,$ZodCheckGreaterThan:()=>$c,$ZodCheckIncludes:()=>Gf,$ZodCheckLengthEquals:()=>Zf,$ZodCheckLessThan:()=>_c,$ZodCheckLowerCase:()=>Kf,$ZodCheckMaxLength:()=>Ff,$ZodCheckMaxSize:()=>Mf,$ZodCheckMimeType:()=>Qf,$ZodCheckMinLength:()=>Bf,$ZodCheckMinSize:()=>Lf,$ZodCheckMultipleOf:()=>Rf,$ZodCheckNumberFormat:()=>Uf,$ZodCheckOverwrite:()=>em,$ZodCheckProperties:()=>Xf,$ZodCheckProperty:()=>Yf,$ZodCheckRegex:()=>Hf,$ZodCheckSizeEquals:()=>Vf,$ZodCheckStartsWith:()=>Jf,$ZodCheckStringFormat:()=>zo,$ZodCheckUpperCase:()=>Wf,$ZodCodec:()=>bs,$ZodCreditCard:()=>Nm,$ZodCustom:()=>hh,$ZodCustomStringFormat:()=>Om,$ZodCyclicError:()=>Jc,$ZodDate:()=>Fm,$ZodDefault:()=>ih,$ZodDiscriminatedUnion:()=>Wm,$ZodE164:()=>Tm,$ZodEmail:()=>am,$ZodEmoji:()=>um,$ZodEncodeError:()=>ei,$ZodEnum:()=>Xm,$ZodError:()=>Wp,$ZodExactOptional:()=>rh,$ZodFile:()=>eh,$ZodFunction:()=>fh,$ZodGUID:()=>im,$ZodIBAN:()=>Cm,$ZodIPv4:()=>km,$ZodIPv6:()=>xm,$ZodISODate:()=>bm,$ZodISODateTime:()=>vm,$ZodISODuration:()=>wm,$ZodISOTime:()=>ym,$ZodIntersection:()=>Gm,$ZodJWT:()=>zm,$ZodKSUID:()=>gm,$ZodLazy:()=>ys,$ZodLiteral:()=>Qm,$ZodMAC:()=>_m,$ZodMap:()=>qm,$ZodNaN:()=>ch,$ZodNanoID:()=>dm,$ZodNever:()=>Lm,$ZodNonOptional:()=>ah,$ZodNull:()=>Um,$ZodNullable:()=>nh,$ZodNumber:()=>Vc,$ZodNumberFormat:()=>Am,$ZodObject:()=>Hy,$ZodObjectJIT:()=>Zm,$ZodOptional:()=>Zc,$ZodPipe:()=>Hc,$ZodPrefault:()=>oh,$ZodPreprocess:()=>uh,$ZodPromise:()=>mh,$ZodReadonly:()=>dh,$ZodRealError:()=>yr,$ZodRecord:()=>Jm,$ZodRegistry:()=>tu,$ZodSet:()=>Ym,$ZodString:()=>Di,$ZodStringFormat:()=>rt,$ZodSuccess:()=>sh,$ZodSymbol:()=>Pm,$ZodTemplateLiteral:()=>ph,$ZodTransform:()=>th,$ZodTuple:()=>Bc,$ZodType:()=>Ee,$ZodULID:()=>mm,$ZodURL:()=>cm,$ZodUUID:()=>om,$ZodUndefined:()=>Rm,$ZodUnion:()=>vs,$ZodUnknown:()=>Mm,$ZodVoid:()=>Vm,$ZodXID:()=>hm,$ZodXor:()=>Hm,$brand:()=>Zp,$constructor:()=>N,$input:()=>$h,$output:()=>_h,Doc:()=>Ai,INVALID:()=>ar,JSONSchema:()=>Vx,JSONSchemaGenerator:()=>Ru,NEVER:()=>Bp,TimePrecision:()=>Ph,URL_BAD_FORMAT:()=>sm,URL_UNPARSEABLE:()=>ds,ZodCompileAsyncError:()=>Kr,ZodCompileUnsupportedError:()=>Re,_any:()=>Xh,_array:()=>og,_base64:()=>_u,_base64url:()=>$u,_bigint:()=>Hh,_boolean:()=>Bh,_catch:()=>aC,_check:()=>_x,_cidrv4:()=>ku,_cidrv6:()=>xu,_coercedBigint:()=>Kh,_coercedBoolean:()=>Zh,_coercedDate:()=>ng,_coercedNumber:()=>Uh,_coercedString:()=>zh,_creditCard:()=>Ah,_cuid:()=>mu,_cuid2:()=>hu,_custom:()=>sg,_date:()=>rg,_decode:()=>pc,_decodeAsync:()=>mc,_default:()=>nC,_discriminatedUnion:()=>HN,_e164:()=>Su,_email:()=>au,_emoji:()=>pu,_encode:()=>dc,_encodeAsync:()=>fc,_endsWith:()=>Fo,_enum:()=>YN,_file:()=>ag,_float32:()=>Mh,_float64:()=>Lh,_gt:()=>nn,_gte:()=>$r,_guid:()=>su,_iban:()=>Dh,_includes:()=>Lo,_int:()=>jh,_int32:()=>Vh,_int64:()=>Wh,_intersection:()=>KN,_ipv4:()=>yu,_ipv6:()=>wu,_isoDate:()=>Ts,_isoDateTime:()=>Es,_isoDuration:()=>Cs,_isoTime:()=>Ns,_jwt:()=>Iu,_ksuid:()=>bu,_lazy:()=>uC,_length:()=>Vi,_literal:()=>QN,_lowercase:()=>jo,_lt:()=>rn,_lte:()=>_r,_mac:()=>Oh,_map:()=>JN,_max:()=>_r,_maxLength:()=>Li,_maxSize:()=>ri,_mime:()=>Zo,_min:()=>$r,_minLength:()=>On,_minSize:()=>on,_multipleOf:()=>ti,_nan:()=>ig,_nanoid:()=>fu,_nativeEnum:()=>XN,_negative:()=>Tu,_never:()=>eg,_nonnegative:()=>Cu,_nonoptional:()=>iC,_nonpositive:()=>Nu,_normalize:()=>Ho,_null:()=>Yh,_nullable:()=>rC,_number:()=>Rh,_optional:()=>tC,_overwrite:()=>Wr,_parse:()=>Eo,_parseAsync:()=>To,_pipe:()=>sC,_positive:()=>Eu,_promise:()=>dC,_properties:()=>Bo,_property:()=>zu,_readonly:()=>lC,_record:()=>GN,_refine:()=>lg,_regex:()=>Uo,_safeDecode:()=>gc,_safeDecodeAsync:()=>bc,_safeEncode:()=>hc,_safeEncodeAsync:()=>vc,_safeParse:()=>No,_safeParseAsync:()=>Co,_set:()=>qN,_size:()=>Mi,_slugify:()=>Jo,_startsWith:()=>Vo,_string:()=>Ch,_stringFormat:()=>Fi,_stringbool:()=>pg,_success:()=>oC,_superRefine:()=>cg,_symbol:()=>Jh,_templateLiteral:()=>cC,_toLowerCase:()=>Wo,_toUpperCase:()=>Go,_transform:()=>eC,_trim:()=>Ko,_tuple:()=>WN,_uint32:()=>Fh,_uint64:()=>Gh,_ulid:()=>gu,_undefined:()=>qh,_union:()=>BN,_unknown:()=>Qh,_uppercase:()=>Mo,_url:()=>Is,_uuid:()=>lu,_uuidv4:()=>cu,_uuidv6:()=>uu,_uuidv7:()=>du,_void:()=>tg,_xid:()=>vu,_xor:()=>ZN,base64Charset:()=>Rc,base64urlCharset:()=>hs,canParseURL:()=>lm,clone:()=>tt,compile:()=>Th,compileFn:()=>iu,config:()=>It,createStandardJSONSchemaMethod:()=>qo,createToJSONSchemaMethod:()=>mg,decode:()=>WE,decodeAsync:()=>JE,describe:()=>ug,encode:()=>KE,encodeAsync:()=>GE,extractDefs:()=>ii,finalize:()=>oi,flattenError:()=>ns,formatError:()=>is,getDiscriminatedOption:()=>Km,globalConfig:()=>Ut,globalRegistry:()=>Zt,handleUnrepresentable:()=>Ot,initializeContext:()=>ni,isBackEdge:()=>Yc,isRecursiveSchema:()=>qc,isValidBase64:()=>ms,isValidBase64URL:()=>Uc,isValidCIDRv6:()=>Pc,isValidCreditCard:()=>jc,isValidIBAN:()=>Mc,isValidIPv6:()=>fs,isValidJWT:()=>Lc,locales:()=>$s,memoizer:()=>xs,mergeValues:()=>Oo,meta:()=>dg,parse:()=>cc,parseAsync:()=>uc,parseURLObject:()=>Fy,prettifyError:()=>Jp,process:()=>nt,processSchema:()=>nt,regexes:()=>Pr,registry:()=>ru,safeDecode:()=>YE,safeDecodeAsync:()=>QE,safeEncode:()=>qE,safeEncodeAsync:()=>XE,safeParse:()=>VE,safeParseAsync:()=>FE,standardProps:()=>zc,stripTabAndNewline:()=>ps,toDotPath:()=>ky,toJSONSchema:()=>Pu,toZod:()=>Ga,treeifyError:()=>Gp,urlHostnameOk:()=>Ac,urlProtocolOk:()=>Dc,util:()=>B,validate:()=>os,validateAsync:()=>as,validateURL:()=>Oc,version:()=>tm,withParser:()=>nu});var Sr=Y(()=>{Qn();Yp();qp();Ao();bh();Sc();rm();de();de();Oi();xh();Ss();Ic();xx();$x();Os();Ds();Lx();Fx()});var Uu={};Zr(Uu,{endsWith:()=>Fo,gt:()=>nn,gte:()=>$r,includes:()=>Lo,length:()=>Vi,lowercase:()=>jo,lt:()=>rn,lte:()=>_r,maxLength:()=>Li,maxSize:()=>ri,mime:()=>Zo,minLength:()=>On,minSize:()=>on,multipleOf:()=>ti,negative:()=>Tu,nonnegative:()=>Cu,nonpositive:()=>Nu,normalize:()=>Ho,overwrite:()=>Wr,positive:()=>Eu,properties:()=>Bo,property:()=>zu,regex:()=>Uo,size:()=>Mi,slugify:()=>Jo,startsWith:()=>Vo,toLowerCase:()=>Wo,toUpperCase:()=>Go,trim:()=>Ko,uppercase:()=>Mo});var ju=Y(()=>{Sr()});function Mu(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=n(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}var Bx,Zx,bC,wr,tv=Y(()=>{Sr();Sr();de();Bx=new WeakSet([Object.prototype,Error.prototype]);Zx=(e,t)=>{Wp.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);Bx.has(n)||(Bx.add(n),Mu(n,"format",i=>r=>is(i,r)),Mu(n,"flatten",i=>r=>ns(i,r)),Mu(n,"addIssue",i=>r=>{i.issues.push(r),i.message=JSON.stringify(i.issues,_o,2)}),Mu(n,"addIssues",i=>r=>{i.issues.push(...r),i.message=JSON.stringify(i.issues,_o,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},bC=N("ZodError",Zx),wr=N("ZodError",Zx,void 0,{Parent:Error})});var rv,nv,iv,ov,av,sv,lv,cv,uv,dv,pv,fv,mv=Y(()=>{Sr();tv();Sr();rv=Eo(wr),nv=To(wr),iv=No(wr),ov=Co(wr),av=dc(wr),sv=pc(wr),lv=fc(wr),cv=mc(wr),uv=hc(wr),dv=gc(wr),pv=vc(wr),fv=bc(wr)});var aa={};Zr(aa,{ZodAny:()=>$v,ZodArray:()=>Tv,ZodBase64:()=>rd,ZodBase64URL:()=>nd,ZodBigInt:()=>ia,ZodBigIntFormat:()=>ad,ZodBoolean:()=>na,ZodCIDRv4:()=>ed,ZodCIDRv6:()=>td,ZodCUID:()=>Wu,ZodCUID2:()=>Gu,ZodCatch:()=>Jv,ZodCodec:()=>Zs,ZodCreditCard:()=>gv,ZodCustom:()=>Hs,ZodCustomStringFormat:()=>Ki,ZodDate:()=>js,ZodDefault:()=>Bv,ZodDiscriminatedUnion:()=>Cv,ZodE164:()=>id,ZodEmail:()=>Bu,ZodEmoji:()=>Hu,ZodEnum:()=>ea,ZodExactOptional:()=>ud,ZodFile:()=>Mv,ZodFunction:()=>ob,ZodGUID:()=>Zu,ZodIBAN:()=>vv,ZodIPv4:()=>Xu,ZodIPv6:()=>Qu,ZodISODate:()=>si,ZodISODateTime:()=>ai,ZodISODuration:()=>ci,ZodISOTime:()=>li,ZodInstanceOf:()=>lb,ZodIntersection:()=>zv,ZodJWT:()=>od,ZodKSUID:()=>Yu,ZodLazy:()=>rb,ZodLiteral:()=>jv,ZodMAC:()=>hv,ZodMap:()=>Rv,ZodNaN:()=>Yv,ZodNanoID:()=>Ku,ZodNever:()=>Iv,ZodNonOptional:()=>dd,ZodNull:()=>xv,ZodNullable:()=>Fv,ZodNumber:()=>ra,ZodNumberFormat:()=>Wi,ZodObject:()=>Ls,ZodOptional:()=>Fs,ZodPipe:()=>Bs,ZodPrefault:()=>Hv,ZodPreprocess:()=>Xv,ZodPromise:()=>ib,ZodReadonly:()=>Qv,ZodRecord:()=>Qo,ZodSet:()=>Uv,ZodString:()=>ta,ZodStringFormat:()=>at,ZodSuccess:()=>Gv,ZodSymbol:()=>wv,ZodTemplateLiteral:()=>tb,ZodTransform:()=>Lv,ZodTuple:()=>Av,ZodType:()=>ze,ZodULID:()=>Ju,ZodURL:()=>Us,ZodUUID:()=>an,ZodUndefined:()=>kv,ZodUnion:()=>Vs,ZodUnknown:()=>Sv,ZodVoid:()=>Ev,ZodXID:()=>qu,ZodXor:()=>Nv,_ZodString:()=>Fu,_default:()=>Zv,_function:()=>e1,any:()=>z_,array:()=>Ms,base64:()=>d_,base64url:()=>p_,bigint:()=>I_,boolean:()=>yv,catch:()=>qv,check:()=>t1,cidrv4:()=>c_,cidrv6:()=>u_,codec:()=>q_,creditCard:()=>m_,cuid:()=>t_,cuid2:()=>r_,currencyCode:()=>w_,custom:()=>r1,date:()=>A_,describe:()=>n1,discriminatedUnion:()=>M_,e164:()=>f_,email:()=>Hx,emoji:()=>Qx,enum:()=>ld,exactOptional:()=>Vv,file:()=>K_,float32:()=>x_,float64:()=>__,function:()=>e1,guid:()=>Kx,hash:()=>k_,hex:()=>y_,hostname:()=>b_,httpUrl:()=>Xx,iban:()=>h_,instanceof:()=>o1,int:()=>Lu,int32:()=>$_,int64:()=>E_,intersection:()=>Ov,invertCodec:()=>Y_,ipv4:()=>a_,ipv6:()=>l_,json:()=>s1,jwt:()=>g_,keyof:()=>D_,ksuid:()=>o_,lazy:()=>nb,literal:()=>H_,looseObject:()=>U_,looseRecord:()=>V_,mac:()=>s_,map:()=>F_,meta:()=>i1,nan:()=>J_,nanoid:()=>e_,nativeEnum:()=>Z_,never:()=>sd,nonoptional:()=>Wv,null:()=>_v,nullable:()=>Rs,nullish:()=>W_,number:()=>bv,object:()=>P_,optional:()=>Zi,partialRecord:()=>L_,pipe:()=>Vu,prefault:()=>Kv,preprocess:()=>l1,promise:()=>Q_,readonly:()=>eb,record:()=>Pv,refine:()=>ab,set:()=>B_,strictObject:()=>R_,string:()=>Ps,stringFormat:()=>v_,stringbool:()=>a1,success:()=>G_,superRefine:()=>sb,symbol:()=>N_,templateLiteral:()=>X_,transform:()=>cd,tuple:()=>Dv,uint32:()=>S_,uint64:()=>T_,ulid:()=>n_,undefined:()=>C_,union:()=>oa,unknown:()=>Bi,url:()=>Yx,uuid:()=>Wx,uuidv4:()=>Gx,uuidv6:()=>Jx,uuidv7:()=>qx,void:()=>O_,xid:()=>i_,xor:()=>j_});function wC(){Ut.localeError||It(Xc())}function Hi(){Ut.memoizer||It({memoizer:xs()})}function Ps(e){return Ch(ta,e)}function Hx(e){return au(Bu,e)}function Kx(e){return su(Zu,e)}function Wx(e){return lu(an,e)}function Gx(e){return cu(an,e)}function Jx(e){return uu(an,e)}function qx(e){return du(an,e)}function Yx(e){return Is(Us,e)}function Xx(e){return Is(Us,{protocol:ss,hostname:yf,...B.normalizeParams(e)})}function Qx(e){return pu(Hu,e)}function e_(e){return fu(Ku,e)}function t_(e){return mu(Wu,e)}function r_(e){return hu(Gu,e)}function n_(e){return gu(Ju,e)}function i_(e){return vu(qu,e)}function o_(e){return bu(Yu,e)}function a_(e){return yu(Xu,e)}function s_(e){return Oh(hv,e)}function l_(e){return wu(Qu,e)}function c_(e){return ku(ed,e)}function u_(e){return xu(td,e)}function d_(e){return _u(rd,e)}function p_(e){return $u(nd,e)}function f_(e){return Su(id,e)}function m_(e){return Ah(gv,e)}function h_(e){return Dh(vv,e)}function g_(e){return Iu(od,e)}function v_(e,t,n={}){return Fi(Ki,e,t,n)}function b_(e){return Fi(Ki,"hostname",bf,e)}function y_(e){return Fi(Ki,"hex",Af,e)}function w_(e){return Fi(Ki,"currency_code",kf,e)}function k_(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Pr[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Fi(Ki,i,r,t)}function bv(e){return Rh(ra,e)}function Lu(e){return jh(Wi,e)}function x_(e){return Mh(Wi,e)}function __(e){return Lh(Wi,e)}function $_(e){return Vh(Wi,e)}function S_(e){return Fh(Wi,e)}function yv(e){return Bh(na,e)}function I_(e){return Hh(ia,e)}function E_(e){return Wh(ad,e)}function T_(e){return Gh(ad,e)}function N_(e){return Jh(wv,e)}function C_(e){return qh(kv,e)}function _v(e){return Yh(xv,e)}function z_(){return Xh($v)}function Bi(){return Qh(Sv)}function sd(e){return eg(Iv,e)}function O_(e){return tg(Ev,e)}function A_(e){return rg(js,e)}function Ms(e,t){return og(Tv,e,t)}function D_(e){let t=e._zod.def.shape;return ld(Object.keys(t))}function P_(e,t){let n={type:"object",shape:e??{},...B.normalizeParams(t)};return new Ls(n)}function R_(e,t){return new Ls({type:"object",shape:e,catchall:sd(),...B.normalizeParams(t)})}function U_(e,t){return new Ls({type:"object",shape:e,catchall:Bi(),...B.normalizeParams(t)})}function oa(e,t){return new Vs({type:"union",options:e,...B.normalizeParams(t)})}function j_(e,t){return new Nv({type:"union",options:e,inclusive:!1,...B.normalizeParams(t)})}function M_(e,t,n){return new Cv({type:"union",options:t,discriminator:e,...B.normalizeParams(n)})}function Ov(e,t){return new zv({type:"intersection",left:e,right:t})}function Dv(e,t,n){let i=t instanceof Ee,r=i?n:t,o=i?t:null;return new Av({type:"tuple",items:e,rest:o,...B.normalizeParams(r)})}function Pv(e,t,n){return!t||!t._zod?new Qo({type:"record",keyType:Ps(),valueType:e,...B.normalizeParams(t)}):new Qo({type:"record",keyType:e,valueType:t,...B.normalizeParams(n)})}function L_(e,t,n){return new Qo({type:"record",keyType:e,valueType:t,...B.normalizeParams(n),partial:!0})}function V_(e,t,n){return new Qo({type:"record",keyType:e,valueType:t,mode:"loose",...B.normalizeParams(n)})}function F_(e,t,n){return new Rv({type:"map",keyType:e,valueType:t,...B.normalizeParams(n)})}function B_(e,t){return new Uv({type:"set",valueType:e,...B.normalizeParams(t)})}function ld(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ea({type:"enum",entries:n,...B.normalizeParams(t)})}function Z_(e,t){return new ea({type:"enum",entries:e,...B.normalizeParams(t)})}function H_(e,t){return new jv({type:"literal",values:Array.isArray(e)?e:[e],...B.normalizeParams(t)})}function K_(e){return ag(Mv,e)}function cd(e){return new Lv({type:"transform",transform:e})}function Zi(e){return new Fs({type:"optional",innerType:e})}function Vv(e){return new ud({type:"optional",innerType:e})}function Rs(e){return new Fv({type:"nullable",innerType:e})}function W_(e){return Zi(Rs(e))}function Zv(e,t){return new Bv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():B.shallowClone(t)}})}function Kv(e,t){return new Hv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():B.shallowClone(t)}})}function Wv(e,t){return new dd({type:"nonoptional",innerType:e,...B.normalizeParams(t)})}function G_(e){return new Gv({type:"success",innerType:e})}function qv(e,t){return new Jv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:B.constantCatch(t)})}function J_(e){return ig(Yv,e)}function Vu(e,t){return new Bs({type:"pipe",in:e,out:t})}function q_(e,t,n){return new Zs({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Y_(e){let t=e._zod.def;return new Zs({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function eb(e){return new Qv({type:"readonly",innerType:e})}function X_(e,t){return new tb({type:"template_literal",parts:e,...B.normalizeParams(t)})}function nb(e){return new rb({type:"lazy",getter:e})}function Q_(e){return new ib({type:"promise",innerType:e})}function e1(e){return new ob({type:"function",input:Array.isArray(e?.input)?Dv(e?.input):e?.input??Ms(Bi()),output:e?.output??Bi()})}function t1(e){let t=new dt({check:"custom"});return t._zod.check=e,t}function r1(e,t){return sg(Hs,e??(()=>!0),t)}function ab(e,t={}){return lg(Hs,e,t)}function sb(e,t){return cg(e,t)}function o1(e,t={}){let n=new lb({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...B.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}function s1(e){let t=nb(()=>oa([Ps(e),bv(),yv(),_v(),Ms(t),Pv(Ps(),t)]));return t}function l1(e,t){return new Xv({type:"pipe",in:cd(e),out:t})}var ze,Fu,ta,at,ai,si,li,ci,Bu,Zu,an,Us,Hu,Ku,Wu,Gu,Ju,qu,Yu,Xu,hv,Qu,ed,td,rd,nd,id,gv,vv,od,Ki,ra,Wi,na,ia,ad,wv,kv,xv,$v,Sv,Iv,Ev,js,Tv,Ls,Vs,Nv,Cv,zv,Av,Qo,Rv,Uv,ea,jv,Mv,Lv,Fs,ud,Fv,Bv,Hv,dd,Gv,Jv,Yv,Bs,Zs,Xv,Qv,tb,rb,ib,ob,Hs,n1,i1,lb,a1,ui=Y(()=>{Sr();Sr();Ds();Oi();Os();yh();ju();mv();ze=N("ZodType",(e,t)=>(wC(),Ee.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(B.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return tt(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(ab(e,t))},superRefine(e,t){return this.check(sb(e,t))},overwrite(e){return this.check(Wr(e))},optional(){return Zi(this)},exactOptional(){return Vv(this)},nullable(){return Rs(this)},nullish(){return Zi(Rs(this))},nonoptional(e){return Wv(this,e)},array(){return Ms(this)},or(e){return oa([this,e])},and(e){return Ov(this,e)},transform(e){return Vu(this,cd(e))},default(e){return Zv(this,e)},prefault(e){return Kv(this,e)},catch(e){return qv(this,e)},pipe(e){return Vu(this,e)},readonly(){return eb(this)},describe(e){let t=this.clone();return Zt.add(t,{description:e}),t},meta(...e){if(e.length===0)return Zt.get(this);let t=this.clone();return Zt.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return B.hide(this,"~standard",{...zc(this),jsonSchema:{input:qo(this,"input"),output:qo(this,"output")}})},set"~standard"(e){B.own(this,"~standard",e)},parse:function e(t,n){return rv(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await nv(this,t,n,{callee:e})},safeParse(e,t){return iv(this,e,t)},async safeParseAsync(e,t){return ov(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){B.own(this,"spa",e)},validate(e,t){return os(this,e,t)},validateAsync(e,t){return as(this,e,t)},encode:function e(t,n){return av(this,t,n,{callee:e})},decode:function e(t,n){return sv(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await lv(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await cv(this,t,n,{callee:e})},safeEncode(e,t){return uv(this,e,t)},safeDecode(e,t){return dv(this,e,t)},async safeEncodeAsync(e,t){return pv(this,e,t)},async safeDecodeAsync(e,t){return fv(this,e,t)},toJSONSchema(e){return mg(this,{})(e)},get description(){return Zt.get(this)?.description},get _def(){return this._zod.def}}),Fu=N("_ZodString",(e,t)=>{Di.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vg(e,n,i,r)},B.derived({format:e=>At(e).format??null,minLength:e=>At(e).minimum??null,maxLength:e=>At(e).maximum??null},{regex(...e){return this.check(Uo(...e))},includes(...e){return this.check(Lo(...e))},startsWith(...e){return this.check(Vo(...e))},endsWith(...e){return this.check(Fo(...e))},min(...e){return this.check(On(...e))},max(...e){return this.check(Li(...e))},length(...e){return this.check(Vi(...e))},nonempty(...e){return this.check(On(1,...e))},lowercase(e){return this.check(jo(e))},uppercase(e){return this.check(Mo(e))},trim(){return this.check(Ko())},normalize(...e){return this.check(Ho(...e))},toLowerCase(){return this.check(Wo())},toUpperCase(){return this.check(Go())},slugify(){return this.check(Jo())}})),ta=N("ZodString",(e,t)=>{Di.init(e,t),Fu.init(e,t)},{email(e){return this.check(au(Bu,e))},url(e){return this.check(Is(Us,e))},jwt(e){return this.check(Iu(od,e))},emoji(e){return this.check(pu(Hu,e))},guid(e){return this.check(su(Zu,e))},uuid(e){return this.check(lu(an,e))},uuidv4(e){return this.check(cu(an,e))},uuidv6(e){return this.check(uu(an,e))},uuidv7(e){return this.check(du(an,e))},nanoid(e){return this.check(fu(Ku,e))},cuid(e){return this.check(mu(Wu,e))},cuid2(e){return this.check(hu(Gu,e))},ulid(e){return this.check(gu(Ju,e))},base64(e){return this.check(_u(rd,e))},base64url(e){return this.check($u(nd,e))},xid(e){return this.check(vu(qu,e))},ksuid(e){return this.check(bu(Yu,e))},ipv4(e){return this.check(yu(Xu,e))},ipv6(e){return this.check(wu(Qu,e))},cidrv4(e){return this.check(ku(ed,e))},cidrv6(e){return this.check(xu(td,e))},e164(e){return this.check(Su(id,e))},datetime(e){return this.check(Es(ai,e))},date(e){return this.check(Ts(si,e))},time(e){return this.check(Ns(li,e))},duration(e){return this.check(Cs(ci,e))}});at=N("ZodStringFormat",(e,t)=>{rt.init(e,t),Fu.init(e,t)}),ai=N("ZodISODateTime",(e,t)=>{vm.init(e,t),at.init(e,t)}),si=N("ZodISODate",(e,t)=>{bm.init(e,t),at.init(e,t)}),li=N("ZodISOTime",(e,t)=>{ym.init(e,t),at.init(e,t)}),ci=N("ZodISODuration",(e,t)=>{wm.init(e,t),at.init(e,t)}),Bu=N("ZodEmail",(e,t)=>{am.init(e,t),at.init(e,t)});Zu=N("ZodGUID",(e,t)=>{im.init(e,t),at.init(e,t)});an=N("ZodUUID",(e,t)=>{om.init(e,t),at.init(e,t)});Us=N("ZodURL",(e,t)=>{cm.init(e,t),at.init(e,t)});Hu=N("ZodEmoji",(e,t)=>{um.init(e,t),at.init(e,t)});Ku=N("ZodNanoID",(e,t)=>{dm.init(e,t),at.init(e,t)});Wu=N("ZodCUID",(e,t)=>{pm.init(e,t),at.init(e,t)});Gu=N("ZodCUID2",(e,t)=>{fm.init(e,t),at.init(e,t)});Ju=N("ZodULID",(e,t)=>{mm.init(e,t),at.init(e,t)});qu=N("ZodXID",(e,t)=>{hm.init(e,t),at.init(e,t)});Yu=N("ZodKSUID",(e,t)=>{gm.init(e,t),at.init(e,t)});Xu=N("ZodIPv4",(e,t)=>{km.init(e,t),at.init(e,t)});hv=N("ZodMAC",(e,t)=>{_m.init(e,t),at.init(e,t)});Qu=N("ZodIPv6",(e,t)=>{xm.init(e,t),at.init(e,t)});ed=N("ZodCIDRv4",(e,t)=>{$m.init(e,t),at.init(e,t)});td=N("ZodCIDRv6",(e,t)=>{Sm.init(e,t),at.init(e,t)});rd=N("ZodBase64",(e,t)=>{Im.init(e,t),at.init(e,t)});nd=N("ZodBase64URL",(e,t)=>{Em.init(e,t),at.init(e,t)});id=N("ZodE164",(e,t)=>{Tm.init(e,t),at.init(e,t)});gv=N("ZodCreditCard",(e,t)=>{Nm.init(e,t),at.init(e,t)});vv=N("ZodIBAN",(e,t)=>{Cm.init(e,t),at.init(e,t)});od=N("ZodJWT",(e,t)=>{zm.init(e,t),at.init(e,t)});Ki=N("ZodCustomStringFormat",(e,t)=>{Om.init(e,t),at.init(e,t)});ra=N("ZodNumber",(e,t)=>{Vc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bg(e,n,i,r),e.isFinite=!0},B.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=At(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=At(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=At(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>At(e).format??null},{gt(e,t){return this.check(nn(e,t))},gte(e,t){return this.check($r(e,t))},min(e,t){return this.check($r(e,t))},lt(e,t){return this.check(rn(e,t))},lte(e,t){return this.check(_r(e,t))},max(e,t){return this.check(_r(e,t))},int(e){return this.check(Lu(e))},safe(e){return this.check(Lu(e))},positive(e){return this.check(nn(0,e))},nonnegative(e){return this.check($r(0,e))},negative(e){return this.check(rn(0,e))},nonpositive(e){return this.check(_r(0,e))},multipleOf(e,t){return this.check(ti(e,t))},step(e,t){return this.check(ti(e,t))},finite(){return this}}));Wi=N("ZodNumberFormat",(e,t)=>{Am.init(e,t),ra.init(e,t)});na=N("ZodBoolean",(e,t)=>{gs.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yg(e,n,i,r)});ia=N("ZodBigInt",(e,t)=>{Fc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wg(e,n,i,r)},B.derived({minValue:e=>At(e).minimum??null,maxValue:e=>At(e).maximum??null,format:e=>At(e).format??null},{gte(e,t){return this.check($r(e,t))},min(e,t){return this.check($r(e,t))},gt(e,t){return this.check(nn(e,t))},lt(e,t){return this.check(rn(e,t))},lte(e,t){return this.check(_r(e,t))},max(e,t){return this.check(_r(e,t))},positive(e){return this.check(nn(BigInt(0),e))},negative(e){return this.check(rn(BigInt(0),e))},nonpositive(e){return this.check(_r(BigInt(0),e))},nonnegative(e){return this.check($r(BigInt(0),e))},multipleOf(e,t){return this.check(ti(e,t))}}));ad=N("ZodBigIntFormat",(e,t)=>{Dm.init(e,t),ia.init(e,t)});wv=N("ZodSymbol",(e,t)=>{Pm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kg(e,n,i,r)});kv=N("ZodUndefined",(e,t)=>{Rm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_g(e,n,i,r)});xv=N("ZodNull",(e,t)=>{Um.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xg(e,n,i,r)});$v=N("ZodAny",(e,t)=>{jm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ig(e,n,i,r)});Sv=N("ZodUnknown",(e,t)=>{Mm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Eg(e,n,i,r)});Iv=N("ZodNever",(e,t)=>{Lm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Sg(e,n,i,r)});Ev=N("ZodVoid",(e,t)=>{Vm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$g(e,n,i,r)});js=N("ZodDate",(e,t)=>{Fm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Tg(e,n,i,r),e.min=(n,i)=>e.check($r(n,i)),e.max=(n,i)=>e.check(_r(n,i))},B.derived({minDate:e=>{let{minimum:t}=At(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=At(e);return t?new Date(t):null}},{}));Tv=N("ZodArray",(e,t)=>{Hi(),Bm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lg(e,n,i,r),e.element=t.element},{min(e,t){return this.check(On(e,t))},nonempty(e){return this.check(On(1,e))},max(e,t){return this.check(Li(e,t))},length(e,t){return this.check(Vi(e,t))},unwrap(){return this.element}});Ls=N("ZodObject",(e,t)=>{Hi(),Zm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vg(e,n,i,r),B.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return ld(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(B.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(B.mergeDefs(this._zod.def,{catchall:Bi()}))},loose(){return this.clone(B.mergeDefs(this._zod.def,{catchall:Bi()}))},strict(){return this.clone(B.mergeDefs(this._zod.def,{catchall:sd()}))},strip(){return this.clone(B.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return B.extend(this,e)},safeExtend(e){return B.safeExtend(this,e)},merge(e){return B.merge(this,e)},pick(e){return B.pick(this,e)},omit(e){return B.omit(this,e)},partial(...e){return B.partial(Fs,this,e[0])},exactPartial(...e){return B.partial(ud,this,e[0],"exactPartial")},required(...e){return B.required(dd,this,e[0])}});Vs=N("ZodUnion",(e,t)=>{vs.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Au(e,n,i,r),e.options=t.options});Nv=N("ZodXor",(e,t)=>{Vs.init(e,t),Hm.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Au(e,n,i,r),e.options=t.options});Cv=N("ZodDiscriminatedUnion",(e,t)=>{Vs.init(e,t),Wm.init(e,t)});zv=N("ZodIntersection",(e,t)=>{Gm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Fg(e,n,i,r)});Av=N("ZodTuple",(e,t)=>{Hi(),Bc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bg(e,n,i,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Fs({type:"optional",innerType:t}))})}});Qo=N("ZodRecord",(e,t)=>{Hi(),Jm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Zg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});Rv=N("ZodMap",(e,t)=>{Hi(),qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>jg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(on(...n)),e.nonempty=n=>e.check(on(1,n)),e.max=(...n)=>e.check(ri(...n)),e.size=(...n)=>e.check(Mi(...n))});Uv=N("ZodSet",(e,t)=>{Hi(),Ym.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mg(e,n,i,r),e.min=(...n)=>e.check(on(...n)),e.nonempty=n=>e.check(on(1,n)),e.max=(...n)=>e.check(ri(...n)),e.size=(...n)=>e.check(Mi(...n))});ea=N("ZodEnum",(e,t)=>{Xm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Ng(e,i,r,o),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ea({...t,checks:[],...B.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new ea({...t,checks:[],...B.normalizeParams(r),entries:o})}});jv=N("ZodLiteral",(e,t)=>{Qm.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Cg(e,n,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});Mv=N("ZodFile",(e,t)=>{eh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ag(e,n,i,r),e.min=(n,i)=>e.check(on(n,i)),e.max=(n,i)=>e.check(ri(n,i)),e.mime=(n,i)=>e.check(Zo(Array.isArray(n)?n:[n],i))});Lv=N("ZodTransform",(e,t)=>{Hi(),th.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ug(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ei(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(B.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=n.value),a.inst??(a.inst=e),n.issues.push(B.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});Fs=N("ZodOptional",(e,t)=>{Zc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Du(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});ud=N("ZodExactOptional",(e,t)=>{rh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Du(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Fv=N("ZodNullable",(e,t)=>{nh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Hg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Bv=N("ZodDefault",(e,t)=>{ih.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Gg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});Hv=N("ZodPrefault",(e,t)=>{oh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});dd=N("ZodNonOptional",(e,t)=>{ah.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Gv=N("ZodSuccess",(e,t)=>{sh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Dg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Jv=N("ZodCatch",(e,t)=>{lh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});Yv=N("ZodNaN",(e,t)=>{ch.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zg(e,n,i,r)});Bs=N("ZodPipe",(e,t)=>{Hc.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yg(e,n,i,r),e.in=t.in,e.out=t.out});Zs=N("ZodCodec",(e,t)=>{Bs.init(e,t),bs.init(e,t)});Xv=N("ZodPreprocess",(e,t)=>{Bs.init(e,t),uh.init(e,t)}),Qv=N("ZodReadonly",(e,t)=>{dh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});tb=N("ZodTemplateLiteral",(e,t)=>{ph.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Og(e,n,i,r)});rb=N("ZodLazy",(e,t)=>{ys.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ev(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});ib=N("ZodPromise",(e,t)=>{mh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});ob=N("ZodFunction",(e,t)=>{fh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rg(e,n,i,r)});Hs=N("ZodCustom",(e,t)=>{hh.init(e,t),ze.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Pg(e,n,i,r)});n1=ug,i1=dg,lb=N("ZodInstanceOf",(e,t)=>{Hs.init(e,t)},{properties(e,t){return this.check(Bo(e,t))}});a1=(...e)=>pg({Codec:Zs,Boolean:na,String:ta},...e)});function xC(e){It({customError:e})}function _C(){return It().customError}var kC,cb,c1=Y(()=>{Sr();kC={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};cb||(cb={})});var Ks={};Zr(Ks,{ZodISODate:()=>si,ZodISODateTime:()=>ai,ZodISODuration:()=>ci,ZodISOTime:()=>li,date:()=>SC,datetime:()=>$C,duration:()=>EC,time:()=>IC});function $C(e){return Es(ai,e)}function SC(e){return Ts(si,e)}function IC(e){return Ns(li,e)}function EC(e){return Cs(ci,e)}var pd=Y(()=>{Sr();ui();ui()});function NC(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function u1(e,t){return e.map((n,i)=>i<t?n:n.optional())}function CC(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function zC(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1]===void 0?void 0:CC(n[1]);if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function OC(e,t){return fe.transform(i=>i).check(i=>{let r=i.value;if(typeof r!="object"||r===null||Array.isArray(r))return;let o=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&o.length<t.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&o.length>t.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let a of o){let s=t.keySchema.safeParse(a);s.success||i.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function ub(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let i=String(e);return`${n[0]}${i.length}:${i}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let o=[];for(let a of e){let s=ub(a,t);if(s===null)return null;o.push(s)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(e).sort(),r=[];for(let o of i){let a=ub(e[o],t);if(a===null)return null;r.push(`${o.length}:${o}=${a}`)}return`o${r.length}:{${r.join(",")}}`}finally{t.delete(e)}}function Ws(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Ws):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>AC.has(t)?Ws(n):!DC.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Ws))}function d1(e){return e===1?"element":"elements"}function PC(e,t){return fe.transform(i=>i).check(i=>{let r=i.value;if(Array.isArray(r)){if(t.uniqueItems===!0){let o=new Map;for(let a=0;a<r.length;a++){let s=ub(r[a],new Set);if(s===null)continue;let l=o.get(s);if(l===void 0){o.set(s,a);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${l}`,input:r,path:[a],continue:!0})}}if(t.containsSchema){let o=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let l of r)if(t.containsSchema.safeParse(l).success&&++s>=a)break;s<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${d1(o)}; found ${s}`,input:r,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${d1(t.maxContains)}`,input:r,continue:!0})}}}).pipe(e)}function p1(e,t){if(e!==!1)return e===void 0||e===!0?fe.any():lr(e,t)}function f1(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return fe.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return fe.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=zC(r,t),a=lr(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return fe.null();if(r.length===0)return fe.never();if(r.length===1)return fe.literal(r[0]);if(r.every(a=>typeof a=="string"))return fe.enum(r);let o=r.map(a=>fe.literal(a));return o.length<2?o[0]:fe.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return fe.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return f1(a,t)});return r.length===0?fe.never():r.length===1?r[0]:fe.union(r)}if(!n)return fe.any();let i;switch(n){case"string":{let r=fe.string();if(e.format){let o=e.format;o==="email"?r=r.check(fe.email()):o==="uri"||o==="uri-reference"?r=r.check(fe.url()):o==="uuid"||o==="guid"?r=r.check(fe.uuid()):o==="date-time"?r=r.check(fe.iso.datetime({offset:!0})):o==="date"?r=r.check(fe.iso.date()):o==="time"?r=r.check(fe.regex(RC)):o==="duration"?r=r.check(fe.iso.duration()):o==="hostname"?r=r.check(fe.hostname()):o==="ipv4"?r=r.check(fe.ipv4()):o==="ipv6"?r=r.check(fe.ipv6()):o==="mac"?r=r.check(fe.mac()):o==="cidr"?r=r.check(fe.cidrv4()):o==="cidr-v6"?r=r.check(fe.cidrv6()):o==="base64"?r=r.check(fe.base64()):o==="base64url"?r=r.check(fe.base64url()):o==="e164"?r=r.check(fe.e164()):o==="credit_card"?r=r.check(fe.creditCard()):o==="iban"?r=r.check(fe.iban()):o==="jwt"?r=r.check(fe.jwt()):o==="emoji"?r=r.check(fe.emoji()):o==="nanoid"?r=r.check(fe.nanoid()):o==="cuid"?r=r.check(fe.cuid()):o==="cuid2"?r=r.check(fe.cuid2()):o==="ulid"?r=r.check(fe.ulid()):o==="xid"?r=r.check(fe.xid()):o==="ksuid"&&(r=r.check(fe.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?fe.number().int():fe.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=fe.boolean();break}case"null":{i=fe.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?lr(e.additionalProperties,t):void 0;for(let[p,f]of Object.entries(o)){let m=lr(f,t);Bt(r,p,a.has(p)?m:m.optional())}if(e.patternProperties){let p=e.patternProperties,f=Object.keys(p),m=[];for(let v of f){let x=lr(p[v],t),A=fe.string().regex(new RegExp(v));m.push(fe.looseRecord(A,x))}let h=[];if(Object.keys(r).length>0&&h.push(fe.object(r).passthrough()),h.push(...m),h.length===0)i=fe.object({}).passthrough();else if(h.length===1)i=h[0];else{let v=fe.intersection(h[0],h[1]);for(let x=2;x<h.length;x++)v=fe.intersection(v,h[x]);i=v}if(e.additionalProperties===!1){let v=Object.keys(r),x=f.map(I=>new RegExp(I)),A=i;i=i.check(I=>{if(!Ar(I.value))return;let E=[];for(let M of Object.keys(I.value))v.includes(M)||x.some(z=>z.test(M))||E.push(M);E.length&&I.issues.push({code:"unrecognized_keys",keys:E,input:I.value,inst:A})})}}else{let p=fe.object(r);e.additionalProperties===!1?i=p.strict():s?i=p.catchall(s):i=p.passthrough()}let l=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,d=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(l||u!==void 0||d!==void 0){let p;if(l){let f=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;p=lr(f,t)}i=OC(i,{keySchema:p,minProperties:u,maxProperties:d})}break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=typeof e.minItems=="number"?e.minItems:0,s=r.map(p=>lr(p,t)),l=u1(s,a),u=Array.isArray(o)?void 0:p1(o,t),d=fe.tuple(l);i=u?d.rest(u):d,typeof e.minItems=="number"&&(i=i.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(fe.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=typeof e.minItems=="number"?e.minItems:0,s=o.map(p=>lr(p,t)),l=u1(s,a),u=p1(e.additionalItems,t),d=fe.tuple(l);i=u?d.rest(u):d,typeof e.minItems=="number"&&(i=i.check(fe.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(fe.maxLength(e.maxItems)))}else if(o!==void 0){let a=lr(o,t),s=fe.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=fe.array(fe.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=PC(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?lr(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return i}function lr(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let n=f1(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>lr(u,t)),l=fe.union(s);n=i?fe.intersection(n,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>lr(u,t)),l=fe.xor(s);n=i?fe.intersection(n,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:fe.any();else{let s=i?n:lr(e.allOf[0],t),l=i?0:1;for(let u=l;u<e.allOf.length;u++)s=fe.intersection(s,lr(e.allOf[u],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=fe.nullable(n)),e.readOnly===!0&&(n=fe.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Ws(e.propertyNames)&&(r.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(r[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Ws(e.contains)&&(r.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(r[s]=e[s])}for(let s of Object.keys(e))TC.has(s)||Bt(r,s,e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function m1(e,t){if(typeof e=="boolean")return e?fe.any():fe.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=NC(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Zt};return lr(n,o)}var fe,TC,AC,DC,RC,h1=Y(()=>{Ss();de();ju();pd();ui();fe={...aa,...Uu,iso:Ks},TC=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);AC=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),DC=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);RC=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/});function Gs(e,t){let n=typeof t=="function"?t:(a,s)=>{let l=t[a._zod.def.type];return l?l(a,s):a},i=new Map;function r(a){let s=i.get(a);if(s===g1)return new ys({type:"lazy",getter:()=>i.get(a)});if(s!==void 0)return s;i.set(a,g1);let l=o(a),u=n(l,l!==a);return i.set(a,u),u}function o(a){let s=a._zod.def,l=s.type;switch(l){case"object":{let u=s.shape,d=Object.keys(u),p=!1,f={};for(let h of d){let v=r(u[h]);v!==u[h]&&(p=!0),f[h]=v}let m=s.catchall;return s.catchall&&(m=r(s.catchall),m!==s.catchall&&(p=!0)),p?tt(a,{...s,shape:f,catchall:m}):a}case"array":{let u=r(s.element);return u===s.element?a:tt(a,{...s,element:u})}case"tuple":{let u=s.items,d=!1,p=[];for(let m of u){let h=r(m);h!==m&&(d=!0),p.push(h)}let f=s.rest;return s.rest&&(f=r(s.rest),f!==s.rest&&(d=!0)),d?tt(a,{...s,items:p,rest:f}):a}case"record":case"map":{let u=r(s.keyType),d=r(s.valueType);return u===s.keyType&&d===s.valueType?a:tt(a,{...s,keyType:u,valueType:d})}case"set":{let u=r(s.valueType);return u===s.valueType?a:tt(a,{...s,valueType:u})}case"union":{let u=s.options,d=!1,p=[];for(let f of u){let m=r(f);m!==f&&(d=!0),p.push(m)}return d?tt(a,{...s,options:p}):a}case"intersection":{let u=r(s.left),d=r(s.right);return u===s.left&&d===s.right?a:tt(a,{...s,left:u,right:d})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=r(s.innerType);return u===s.innerType?a:tt(a,{...s,innerType:u})}case"pipe":{let u=r(s.in),d=r(s.out);return u===s.in&&d===s.out?a:tt(a,{...s,in:u,out:d})}case"function":{let u=r(s.input),d=r(s.output);return u===s.input&&d===s.output?a:tt(a,{...s,input:u,output:d})}case"lazy":{let u=s.getter,{_cachedInner:d,...p}=s;return tt(a,{...p,getter:()=>r(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return r(e)}var g1,db=Y(()=>{Ao();de();g1=Symbol("z.visit/resolving")});function v1(e){return Gs(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:oa(n.options)}})}var b1=Y(()=>{db();ui()});function UC(e,t){if(!t?.length)return e;let n=e._zod.def;return tt(e,Hr(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function y1(e){return UC(e.out,e.checks)}function jC(e){return e.in._zod.traits.has("$ZodTransform")?y1(e):e.in}function w1(e){return Gs(e,{pipe:t=>jC(t._zod.def),default:(t,n)=>n?Zi(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function k1(e){return Gs(e,{pipe:t=>y1(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var x1=Y(()=>{de();db();ui()});var pb={};Zr(pb,{bigint:()=>FC,boolean:()=>VC,date:()=>BC,number:()=>LC,string:()=>MC});function MC(e){return zh(ta,e)}function LC(e){return Uh(ra,e)}function VC(e){return Zh(na,e)}function FC(e){return Kh(ia,e)}function BC(e){return ng(js,e)}var _1=Y(()=>{Sr();ui()});var c={};Zr(c,{$brand:()=>Zp,$input:()=>$h,$output:()=>_h,INVALID:()=>ar,NEVER:()=>Bp,TimePrecision:()=>Ph,ZodAny:()=>$v,ZodArray:()=>Tv,ZodBase64:()=>rd,ZodBase64URL:()=>nd,ZodBigInt:()=>ia,ZodBigIntFormat:()=>ad,ZodBoolean:()=>na,ZodCIDRv4:()=>ed,ZodCIDRv6:()=>td,ZodCUID:()=>Wu,ZodCUID2:()=>Gu,ZodCatch:()=>Jv,ZodCodec:()=>Zs,ZodCompileAsyncError:()=>Kr,ZodCompileUnsupportedError:()=>Re,ZodCreditCard:()=>gv,ZodCustom:()=>Hs,ZodCustomStringFormat:()=>Ki,ZodDate:()=>js,ZodDefault:()=>Bv,ZodDiscriminatedUnion:()=>Cv,ZodE164:()=>id,ZodEmail:()=>Bu,ZodEmoji:()=>Hu,ZodEnum:()=>ea,ZodError:()=>bC,ZodExactOptional:()=>ud,ZodFile:()=>Mv,ZodFirstPartyTypeKind:()=>cb,ZodFunction:()=>ob,ZodGUID:()=>Zu,ZodIBAN:()=>vv,ZodIPv4:()=>Xu,ZodIPv6:()=>Qu,ZodISODate:()=>si,ZodISODateTime:()=>ai,ZodISODuration:()=>ci,ZodISOTime:()=>li,ZodInstanceOf:()=>lb,ZodIntersection:()=>zv,ZodIssueCode:()=>kC,ZodJWT:()=>od,ZodKSUID:()=>Yu,ZodLazy:()=>rb,ZodLiteral:()=>jv,ZodMAC:()=>hv,ZodMap:()=>Rv,ZodNaN:()=>Yv,ZodNanoID:()=>Ku,ZodNever:()=>Iv,ZodNonOptional:()=>dd,ZodNull:()=>xv,ZodNullable:()=>Fv,ZodNumber:()=>ra,ZodNumberFormat:()=>Wi,ZodObject:()=>Ls,ZodOptional:()=>Fs,ZodPipe:()=>Bs,ZodPrefault:()=>Hv,ZodPreprocess:()=>Xv,ZodPromise:()=>ib,ZodReadonly:()=>Qv,ZodRealError:()=>wr,ZodRecord:()=>Qo,ZodSet:()=>Uv,ZodString:()=>ta,ZodStringFormat:()=>at,ZodSuccess:()=>Gv,ZodSymbol:()=>wv,ZodTemplateLiteral:()=>tb,ZodTransform:()=>Lv,ZodTuple:()=>Av,ZodType:()=>ze,ZodULID:()=>Ju,ZodURL:()=>Us,ZodUUID:()=>an,ZodUndefined:()=>kv,ZodUnion:()=>Vs,ZodUnknown:()=>Sv,ZodVoid:()=>Ev,ZodXID:()=>qu,ZodXor:()=>Nv,_ZodString:()=>Fu,_default:()=>Zv,_function:()=>e1,any:()=>z_,array:()=>Ms,base64:()=>d_,base64url:()=>p_,bigint:()=>I_,boolean:()=>yv,catch:()=>qv,check:()=>t1,cidrv4:()=>c_,cidrv6:()=>u_,clone:()=>tt,codec:()=>q_,coerce:()=>pb,compile:()=>Th,config:()=>It,core:()=>An,creditCard:()=>m_,cuid:()=>t_,cuid2:()=>r_,currencyCode:()=>w_,custom:()=>r1,date:()=>A_,decode:()=>sv,decodeAsync:()=>cv,deepPartial:()=>v1,describe:()=>n1,discriminatedUnion:()=>M_,e164:()=>f_,email:()=>Hx,emoji:()=>Qx,encode:()=>av,encodeAsync:()=>lv,endsWith:()=>Fo,enum:()=>ld,exactOptional:()=>Vv,file:()=>K_,flattenError:()=>ns,float32:()=>x_,float64:()=>__,formatError:()=>is,fromJSONSchema:()=>m1,function:()=>e1,getDiscriminatedOption:()=>Km,getErrorMap:()=>_C,globalRegistry:()=>Zt,gt:()=>nn,gte:()=>$r,guid:()=>Kx,hash:()=>k_,hex:()=>y_,hostname:()=>b_,httpUrl:()=>Xx,iban:()=>h_,includes:()=>Lo,input:()=>w1,instanceof:()=>o1,int:()=>Lu,int32:()=>$_,int64:()=>E_,intersection:()=>Ov,invertCodec:()=>Y_,ipv4:()=>a_,ipv6:()=>l_,iso:()=>Ks,json:()=>s1,jwt:()=>g_,keyof:()=>D_,ksuid:()=>o_,lazy:()=>nb,length:()=>Vi,literal:()=>H_,locales:()=>$s,looseObject:()=>U_,looseRecord:()=>V_,lowercase:()=>jo,lt:()=>rn,lte:()=>_r,mac:()=>s_,map:()=>F_,maxLength:()=>Li,maxSize:()=>ri,memoizer:()=>xs,meta:()=>i1,mime:()=>Zo,minLength:()=>On,minSize:()=>on,multipleOf:()=>ti,nan:()=>J_,nanoid:()=>e_,nativeEnum:()=>Z_,negative:()=>Tu,never:()=>sd,nonnegative:()=>Cu,nonoptional:()=>Wv,nonpositive:()=>Nu,normalize:()=>Ho,null:()=>_v,nullable:()=>Rs,nullish:()=>W_,number:()=>bv,object:()=>P_,optional:()=>Zi,output:()=>k1,overwrite:()=>Wr,parse:()=>rv,parseAsync:()=>nv,partialRecord:()=>L_,pipe:()=>Vu,positive:()=>Eu,prefault:()=>Kv,preprocess:()=>l1,prettifyError:()=>Jp,promise:()=>Q_,properties:()=>Bo,property:()=>zu,readonly:()=>eb,record:()=>Pv,refine:()=>ab,regex:()=>Uo,regexes:()=>Pr,registry:()=>ru,safeDecode:()=>dv,safeDecodeAsync:()=>fv,safeEncode:()=>uv,safeEncodeAsync:()=>pv,safeParse:()=>iv,safeParseAsync:()=>ov,set:()=>B_,setErrorMap:()=>xC,size:()=>Mi,slugify:()=>Jo,startsWith:()=>Vo,strictObject:()=>R_,string:()=>Ps,stringFormat:()=>v_,stringbool:()=>a1,success:()=>G_,superRefine:()=>sb,symbol:()=>N_,templateLiteral:()=>X_,toJSONSchema:()=>Pu,toLowerCase:()=>Wo,toUpperCase:()=>Go,toZod:()=>Ga,transform:()=>cd,treeifyError:()=>Gp,trim:()=>Ko,tuple:()=>Dv,uint32:()=>S_,uint64:()=>T_,ulid:()=>n_,undefined:()=>C_,union:()=>oa,unknown:()=>Bi,uppercase:()=>Mo,url:()=>Yx,util:()=>B,uuid:()=>Wx,uuidv4:()=>Gx,uuidv6:()=>Jx,uuidv7:()=>qx,validate:()=>os,validateAsync:()=>as,void:()=>O_,withParser:()=>nu,xid:()=>i_,xor:()=>j_});var fb=Y(()=>{Sr();ui();ju();tv();mv();c1();Sr();Ds();h1();b1();x1();xh();pd();pd();_1()});var Pe=Y(()=>{fb();fb()});function la(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}function _e(e){if(xe(e)){let t={};for(let n=0;n<e.length;n++){let i=e[n],r=pt(i)?qC(i):_e(i);if(r)for(let o in r)t[o]=r[o]}return t}else if(pt(e)||He(e))return e}function qC(e){let t={};return e.replace(JC,"").split(WC).forEach(n=>{if(n){let i=n.split(GC);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function V(e){let t="";if(pt(e))t=e;else if(xe(e))for(let n=0;n<e.length;n++){let i=V(e[n]);i&&(t+=i+" ")}else if(He(e))for(let n in e)e[n]&&(t+=n+" ");return t.trim()}function ma(e){if(!e)return null;let{class:t,style:n}=e;return t&&!pt(t)&&(e.class=V(t)),n&&(e.style=_e(n)),e}function gd(e){return!!e||e===""}function XC(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=ha(e[i],t[i]);return n}function I1(e,t){if(e.size!==t.size)return!1;let n=Array.from(t),i=new Uint8Array(n.length);for(let r of e){let o=-1;for(let a=0;a<n.length;a++)if(!i[a]&&ha(r,n[a])){o=a;break}if(o<0)return!1;i[o]=1}return!0}function ha(e,t){if(e===t)return!0;let n=$1(e),i=$1(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=kr(e),i=kr(t),n||i)return e===t;if(n=xe(e),i=xe(t),n||i)return n&&i?XC(e,t):!1;if(n=He(e),i=He(t),n||i){if(!n||!i)return!1;if(n=Dn(e),i=Dn(t),n||i||(n=sa(e),i=sa(t),n||i))return n&&i?I1(e,t):!1;let r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(let a in e){let s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!ha(e[a],t[a]))return!1}}return String(e)===String(t)}var Qe,Gi,cr,hb,ca,ua,bt,Js,ZC,Ke,xe,Dn,sa,$1,Ie,pt,kr,He,gb,E1,qs,vb,fd,md,da,hd,HC,Dt,KC,sn,Ji,Ys,Rr,pa,fa,Xs,bb,S1,di,WC,GC,JC,T1,N1,YC,C1,ue,z1,mb,Qs=Y(()=>{/**
63
63
  * @vue/shared v3.5.42
64
64
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
65
65
  * @license MIT
66
- **/Qe={},Gi=[],cr=()=>{},hb=()=>!1,ca=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ua=e=>e.startsWith("onUpdate:"),bt=Object.assign,Js=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},ZC=Object.prototype.hasOwnProperty,Ke=(e,t)=>ZC.call(e,t),xe=Array.isArray,Dn=e=>qs(e)==="[object Map]",sa=e=>qs(e)==="[object Set]",$1=e=>qs(e)==="[object Date]",Ie=e=>typeof e=="function",pt=e=>typeof e=="string",kr=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",gb=e=>(He(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),E1=Object.prototype.toString,qs=e=>E1.call(e),vb=e=>qs(e).slice(8,-1),fd=e=>qs(e)==="[object Object]",md=e=>pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,da=la(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hd=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},HC=/-\w/g,Dt=hd(e=>e.replace(HC,t=>t.slice(1).toUpperCase())),KC=/\B([A-Z])/g,sn=hd(e=>e.replace(KC,"-$1").toLowerCase()),Ji=hd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=hd(e=>e?`on${Ji(e)}`:""),Rr=(e,t)=>!Object.is(e,t),pa=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fa=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Xs=e=>{let t=parseFloat(e);return isNaN(t)?e:t},bb=e=>{let t=pt(e)?Number(e):NaN;return isNaN(t)?e:t},di=()=>S1||(S1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});WC=/;(?![^(]*\))/g,GC=/:([^]+)/,JC=/\/\*[^]*?\*\//g;T1="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",N1=la(T1),YC=la(T1+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");C1=e=>!!(e&&e.__v_isRef===!0),le=e=>pt(e)?e:e==null?"":xe(e)||He(e)&&(e.toString===E1||!Ie(e.toString))?C1(e)?le(e.value):JSON.stringify(e,z1,2):String(e),z1=(e,t)=>C1(t)?z1(e,t.value):Dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],o)=>(n[mb(i,o)+" =>"]=r,n),{})}:sa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>mb(n))}:kr(t)?mb(t):He(t)&&!xe(t)&&!fd(t)?String(t):t,mb=(e,t="")=>{var n;return kr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e}});function QC(e,...t){console.warn(`[Vue warn] ${e}`,...t)}function D1(){return Ht}function R1(e,t=!1){if(e.flags|=8,t){e.next=rl,rl=e;return}e.next=tl,tl=e}function Cb(){P1++}function zb(){if(--P1>0)return;if(rl){let t=rl;for(rl=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tl;){let t=tl;for(tl=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function U1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function j1(e){let t,n=e.depsTail,i=n;for(;i;){let r=i.prevDep;i.version===-1?(i===n&&(n=r),Ob(i),ez(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=t,e.depsTail=n}function xb(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(M1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function M1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===il)||(e.globalVersion=il,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xb(e))))return;e.flags|=2;let t=e.dep,n=yt,i=Gr;yt=e,Gr=!0;try{U1(e);let r=e.fn(e._value);(t.version===0||Rr(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{yt=n,Gr=i,j1(e),e.flags&=-3}}function Ob(e,t=!1){let{dep:n,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ob(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ez(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function dn(){L1.push(Gr),Gr=!1}function pn(){let e=L1.pop();Gr=e===void 0?!0:e}function O1(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=yt;yt=void 0;try{t()}finally{yt=n}}}function V1(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)V1(i)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}function Kt(e,t,n){if(Gr&&yt){let i=$b.get(e);i||$b.set(e,i=new Map);let r=i.get(n);r||(i.set(n,r=new ol),r.map=i,r.key=n),r.track()}}function cn(e,t,n,i,r,o){let a=$b.get(e);if(!a){il++;return}let s=l=>{l&&l.trigger()};if(Cb(),t==="clear")a.forEach(s);else{let l=xe(e),u=l&&md(n);if(l&&n==="length"){let d=Number(i);a.forEach((p,f)=>{(f==="length"||f===al||!kr(f)&&f>=d)&&s(p)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(al)),t){case"add":l?u&&s(a.get("length")):(s(a.get(Yi)),Dn(e)&&s(a.get(Sb)));break;case"delete":l||(s(a.get(Yi)),Dn(e)&&s(a.get(Sb)));break;case"set":Dn(e)&&s(a.get(Yi));break}}zb()}function ga(e){let t=Fe(e);return t===e?t:(Kt(t,"iterate",al),xr(e)?t:t.map(Ur))}function sl(e){return Kt(e=Fe(e),"iterate",al),e}function ln(e,t){return Jr(e)?Xi(Rn(e)?Ur(t):t):Ur(t)}function wb(e,t,n){let i=sl(e),r=i[t]();return i!==e&&!xr(e)&&(r._next=r.next,r.next=()=>{let o=r._next();return o.done||(o.value=n(o.value)),o}),r}function Pn(e,t,n,i,r,o){let a=sl(e),s=a!==e&&!xr(e),l=a[t];if(l!==rz[t]){let p=l.apply(e,o);return s?Ur(p):p}let u=n;a!==e&&(s?u=function(p,f){return n.call(this,ln(e,p),f,e)}:n.length>2&&(u=function(p,f){return n.call(this,p,f,e)}));let d=l.call(a,u,i);return s&&r?r(d):d}function A1(e,t,n,i){let r=sl(e),o=r!==e&&!xr(e),a=n,s=!1;r!==e&&(o?(s=i.length===0,a=function(u,d,p){return s&&(s=!1,u=ln(e,u)),n.call(this,u,ln(e,d),p,e)}):n.length>3&&(a=function(u,d,p){return n.call(this,u,d,p,e)}));let l=r[t](a,...i);return s?ln(e,l):l}function kb(e,t,n){let i=Fe(e);Kt(i,"iterate",al);let r=i[t](...n);return(r===-1||r===!1)&&cl(n[0])?(n[0]=Fe(n[0]),i[t](...n)):r}function el(e,t,n=[]){dn(),Cb();let i=Fe(e)[t].apply(e,n);return zb(),pn(),i}function iz(e){kr(e)||(e=String(e));let t=Fe(this);return Kt(t,"has",e),t.hasOwnProperty(e)}function lz(e,t,n){return function(...i){let r=this.__v_raw,o=Fe(r),a=Dn(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=r[e](...i),d=n?Eb:t?Xi:Ur;return!t&&Kt(o,"iterate",l?Sb:Yi),bt(Object.create(u),{next(){let{value:p,done:f}=u.next();return f?{value:p,done:f}:{value:s?[d(p[0]),d(p[1])]:d(p),done:f}}})}}function bd(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function cz(e,t){let n={get(r){let o=this.__v_raw,a=Fe(o),s=Fe(r);e||(Rr(r,s)&&Kt(a,"get",r),Kt(a,"get",s));let{has:l}=vd(a),u=t?Eb:e?Xi:Ur;if(l.call(a,r))return u(o.get(r));if(l.call(a,s))return u(o.get(s));o!==a&&o.get(r)},get size(){let r=this.__v_raw;return!e&&Kt(Fe(r),"iterate",Yi),r.size},has(r){let o=this.__v_raw,a=Fe(o),s=Fe(r);return e||(Rr(r,s)&&Kt(a,"has",r),Kt(a,"has",s)),r===s?o.has(r):o.has(r)||o.has(s)},forEach(r,o){let a=this,s=a.__v_raw,l=Fe(s),u=t?Eb:e?Xi:Ur;return!e&&Kt(l,"iterate",Yi),s.forEach((d,p)=>r.call(o,u(d),u(p),a))}};return bt(n,e?{add:bd("add"),set:bd("set"),delete:bd("delete"),clear:bd("clear")}:{add(r){let o=Fe(this),a=vd(o),s=Fe(r),l=!t&&!xr(r)&&!Jr(r)?s:r;return a.has.call(o,l)||Rr(r,l)&&a.has.call(o,r)||Rr(s,l)&&a.has.call(o,s)||(o.add(l),cn(o,"add",l,l)),this},set(r,o){!t&&!xr(o)&&!Jr(o)&&(o=Fe(o));let a=Fe(this),{has:s,get:l}=vd(a),u=s.call(a,r);u||(r=Fe(r),u=s.call(a,r));let d=l.call(a,r);return a.set(r,o),u?Rr(o,d)&&cn(a,"set",r,o,d):cn(a,"add",r,o),this},delete(r){let o=Fe(this),{has:a,get:s}=vd(o),l=a.call(o,r);l||(r=Fe(r),l=a.call(o,r));let u=s?s.call(o,r):void 0,d=o.delete(r);return l&&cn(o,"delete",r,void 0,u),d},clear(){let r=Fe(this),o=r.size!==0,a=void 0,s=r.clear();return o&&cn(r,"clear",void 0,void 0,a),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=lz(r,e,t)}),n}function Ab(e,t){let n=cz(e,t);return(i,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(Ke(n,r)&&r in i?n:i,r,o)}function mz(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ll(e){return Jr(e)?e:Db(e,!1,oz,uz,B1)}function ba(e){return Db(e,!1,sz,dz,Z1)}function xd(e){return Db(e,!0,az,pz,H1)}function Db(e,t,n,i,r){if(!He(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let o=r.get(e);if(o)return o;let a=mz(vb(e));if(a===0)return e;let s=new Proxy(e,a===2?i:n);return r.set(e,s),s}function Rn(e){return Jr(e)?Rn(e.__v_raw):!!(e&&e.__v_isReactive)}function Jr(e){return!!(e&&e.__v_isReadonly)}function xr(e){return!!(e&&e.__v_isShallow)}function cl(e){return e?!!e.__v_raw:!1}function Fe(e){let t=e&&e.__v_raw;return t?Fe(t):e}function Pb(e){return!Ke(e,"__v_skip")&&Object.isExtensible(e)&&fa(e,"__v_skip",!0),e}function jt(e){return e?e.__v_isRef===!0:!1}function q(e){return K1(e,!1)}function We(e){return K1(e,!0)}function K1(e,t){return jt(e)?e:new Tb(e,t)}function Ce(e){return jt(e)?e.value:e}function $d(e){return Rn(e)?e:new Proxy(e,hz)}function W1(e,t,n=!1){let i,r;return Ie(e)?i=e:(i=e.get,r=e.set),new Nb(i,r,n)}function G1(e,t=!1,n=qi){if(n){let i=_d.get(n);i||_d.set(n,i=[]),i.push(e)}}function J1(e,t,n=Qe){let{immediate:i,deep:r,once:o,scheduler:a,augmentJob:s,call:l}=n,u=z=>{(n.onWarn||QC)("Invalid watch source: ",z,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=z=>r?z:xr(z)||r===!1||r===0?un(z,1):un(z),p,f,m,h,v=!1,x=!1;if(jt(e)?(f=()=>e.value,v=xr(e)):Rn(e)?(f=()=>d(e),v=!0):xe(e)?(x=!0,v=e.some(z=>Rn(z)||xr(z)),f=()=>e.map(z=>{if(jt(z))return z.value;if(Rn(z))return d(z);if(Ie(z))return l?l(z,2):z()})):Ie(e)?t?f=l?()=>l(e,2):e:f=()=>{if(m){dn();try{m()}finally{pn()}}let z=qi;qi=p;try{return l?l(e,3,[h]):e(h)}finally{qi=z}}:f=cr,t&&r){let z=f,D=r===!0?1/0:r;f=()=>un(z(),D)}let A=D1(),I=()=>{p.stop(),A&&A.active&&Js(A.effects,p)};if(o&&t){let z=t;t=(...D)=>{let X=z(...D);return I(),X}}let E=x?new Array(e.length).fill(yd):yd,M=z=>{if(!(!(p.flags&1)||!p.dirty&&!z))if(t){let D=p.run();if(z||r||v||(x?D.some((X,ce)=>Rr(X,E[ce])):Rr(D,E))){m&&m();let X=qi;qi=p;try{let ce=[D,E===yd?void 0:x&&E[0]===yd?[]:E,h];E=D,l?l(t,3,ce):t(...ce)}finally{qi=X}}}else p.run()};return s&&s(M),p=new va(f),p.scheduler=a?()=>a(M,!1):M,h=z=>G1(z,!1,p),m=p.onStop=()=>{let z=_d.get(p);if(z){if(l)l(z,4);else for(let D of z)D();_d.delete(p)}},t?i?M(!0):E=p.run():a?a(M.bind(null,!0),!0):p.run(),I.pause=p.pause.bind(p),I.resume=p.resume.bind(p),I.stop=I,I}function un(e,t=1/0,n){if(t<=0||!He(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,jt(e))un(e.value,t,n);else if(xe(e))for(let i=0;i<e.length;i++)un(e[i],t,n);else if(sa(e)||Dn(e))e.forEach(i=>{un(i,t,n)});else if(fd(e)){for(let i in e)un(e[i],t,n);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&un(e[i],t,n)}return e}var Ht,nl,yt,yb,va,P1,tl,rl,Gr,L1,il,_b,ol,$b,Yi,Sb,al,tz,rz,nz,F1,wd,kd,Ib,oz,az,sz,Eb,vd,uz,dz,pz,B1,Z1,H1,fz,Ur,Xi,Tb,hz,Nb,yd,_d,qi,Rb=Y(()=>{Qs();/**
66
+ **/Qe={},Gi=[],cr=()=>{},hb=()=>!1,ca=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ua=e=>e.startsWith("onUpdate:"),bt=Object.assign,Js=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},ZC=Object.prototype.hasOwnProperty,Ke=(e,t)=>ZC.call(e,t),xe=Array.isArray,Dn=e=>qs(e)==="[object Map]",sa=e=>qs(e)==="[object Set]",$1=e=>qs(e)==="[object Date]",Ie=e=>typeof e=="function",pt=e=>typeof e=="string",kr=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",gb=e=>(He(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),E1=Object.prototype.toString,qs=e=>E1.call(e),vb=e=>qs(e).slice(8,-1),fd=e=>qs(e)==="[object Object]",md=e=>pt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,da=la(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),hd=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},HC=/-\w/g,Dt=hd(e=>e.replace(HC,t=>t.slice(1).toUpperCase())),KC=/\B([A-Z])/g,sn=hd(e=>e.replace(KC,"-$1").toLowerCase()),Ji=hd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=hd(e=>e?`on${Ji(e)}`:""),Rr=(e,t)=>!Object.is(e,t),pa=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fa=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},Xs=e=>{let t=parseFloat(e);return isNaN(t)?e:t},bb=e=>{let t=pt(e)?Number(e):NaN;return isNaN(t)?e:t},di=()=>S1||(S1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});WC=/;(?![^(]*\))/g,GC=/:([^]+)/,JC=/\/\*[^]*?\*\//g;T1="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",N1=la(T1),YC=la(T1+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");C1=e=>!!(e&&e.__v_isRef===!0),ue=e=>pt(e)?e:e==null?"":xe(e)||He(e)&&(e.toString===E1||!Ie(e.toString))?C1(e)?ue(e.value):JSON.stringify(e,z1,2):String(e),z1=(e,t)=>C1(t)?z1(e,t.value):Dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],o)=>(n[mb(i,o)+" =>"]=r,n),{})}:sa(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>mb(n))}:kr(t)?mb(t):He(t)&&!xe(t)&&!fd(t)?String(t):t,mb=(e,t="")=>{var n;return kr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e}});function QC(e,...t){console.warn(`[Vue warn] ${e}`,...t)}function D1(){return Ht}function R1(e,t=!1){if(e.flags|=8,t){e.next=rl,rl=e;return}e.next=tl,tl=e}function Cb(){P1++}function zb(){if(--P1>0)return;if(rl){let t=rl;for(rl=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;tl;){let t=tl;for(tl=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function U1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function j1(e){let t,n=e.depsTail,i=n;for(;i;){let r=i.prevDep;i.version===-1?(i===n&&(n=r),Ob(i),ez(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=t,e.depsTail=n}function xb(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(M1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function M1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===il)||(e.globalVersion=il,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xb(e))))return;e.flags|=2;let t=e.dep,n=yt,i=Gr;yt=e,Gr=!0;try{U1(e);let r=e.fn(e._value);(t.version===0||Rr(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{yt=n,Gr=i,j1(e),e.flags&=-3}}function Ob(e,t=!1){let{dep:n,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Ob(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ez(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function dn(){L1.push(Gr),Gr=!1}function pn(){let e=L1.pop();Gr=e===void 0?!0:e}function O1(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=yt;yt=void 0;try{t()}finally{yt=n}}}function V1(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)V1(i)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}function Kt(e,t,n){if(Gr&&yt){let i=$b.get(e);i||$b.set(e,i=new Map);let r=i.get(n);r||(i.set(n,r=new ol),r.map=i,r.key=n),r.track()}}function cn(e,t,n,i,r,o){let a=$b.get(e);if(!a){il++;return}let s=l=>{l&&l.trigger()};if(Cb(),t==="clear")a.forEach(s);else{let l=xe(e),u=l&&md(n);if(l&&n==="length"){let d=Number(i);a.forEach((p,f)=>{(f==="length"||f===al||!kr(f)&&f>=d)&&s(p)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(al)),t){case"add":l?u&&s(a.get("length")):(s(a.get(Yi)),Dn(e)&&s(a.get(Sb)));break;case"delete":l||(s(a.get(Yi)),Dn(e)&&s(a.get(Sb)));break;case"set":Dn(e)&&s(a.get(Yi));break}}zb()}function ga(e){let t=Fe(e);return t===e?t:(Kt(t,"iterate",al),xr(e)?t:t.map(Ur))}function sl(e){return Kt(e=Fe(e),"iterate",al),e}function ln(e,t){return Jr(e)?Xi(Rn(e)?Ur(t):t):Ur(t)}function wb(e,t,n){let i=sl(e),r=i[t]();return i!==e&&!xr(e)&&(r._next=r.next,r.next=()=>{let o=r._next();return o.done||(o.value=n(o.value)),o}),r}function Pn(e,t,n,i,r,o){let a=sl(e),s=a!==e&&!xr(e),l=a[t];if(l!==rz[t]){let p=l.apply(e,o);return s?Ur(p):p}let u=n;a!==e&&(s?u=function(p,f){return n.call(this,ln(e,p),f,e)}:n.length>2&&(u=function(p,f){return n.call(this,p,f,e)}));let d=l.call(a,u,i);return s&&r?r(d):d}function A1(e,t,n,i){let r=sl(e),o=r!==e&&!xr(e),a=n,s=!1;r!==e&&(o?(s=i.length===0,a=function(u,d,p){return s&&(s=!1,u=ln(e,u)),n.call(this,u,ln(e,d),p,e)}):n.length>3&&(a=function(u,d,p){return n.call(this,u,d,p,e)}));let l=r[t](a,...i);return s?ln(e,l):l}function kb(e,t,n){let i=Fe(e);Kt(i,"iterate",al);let r=i[t](...n);return(r===-1||r===!1)&&cl(n[0])?(n[0]=Fe(n[0]),i[t](...n)):r}function el(e,t,n=[]){dn(),Cb();let i=Fe(e)[t].apply(e,n);return zb(),pn(),i}function iz(e){kr(e)||(e=String(e));let t=Fe(this);return Kt(t,"has",e),t.hasOwnProperty(e)}function lz(e,t,n){return function(...i){let r=this.__v_raw,o=Fe(r),a=Dn(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=r[e](...i),d=n?Eb:t?Xi:Ur;return!t&&Kt(o,"iterate",l?Sb:Yi),bt(Object.create(u),{next(){let{value:p,done:f}=u.next();return f?{value:p,done:f}:{value:s?[d(p[0]),d(p[1])]:d(p),done:f}}})}}function bd(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function cz(e,t){let n={get(r){let o=this.__v_raw,a=Fe(o),s=Fe(r);e||(Rr(r,s)&&Kt(a,"get",r),Kt(a,"get",s));let{has:l}=vd(a),u=t?Eb:e?Xi:Ur;if(l.call(a,r))return u(o.get(r));if(l.call(a,s))return u(o.get(s));o!==a&&o.get(r)},get size(){let r=this.__v_raw;return!e&&Kt(Fe(r),"iterate",Yi),r.size},has(r){let o=this.__v_raw,a=Fe(o),s=Fe(r);return e||(Rr(r,s)&&Kt(a,"has",r),Kt(a,"has",s)),r===s?o.has(r):o.has(r)||o.has(s)},forEach(r,o){let a=this,s=a.__v_raw,l=Fe(s),u=t?Eb:e?Xi:Ur;return!e&&Kt(l,"iterate",Yi),s.forEach((d,p)=>r.call(o,u(d),u(p),a))}};return bt(n,e?{add:bd("add"),set:bd("set"),delete:bd("delete"),clear:bd("clear")}:{add(r){let o=Fe(this),a=vd(o),s=Fe(r),l=!t&&!xr(r)&&!Jr(r)?s:r;return a.has.call(o,l)||Rr(r,l)&&a.has.call(o,r)||Rr(s,l)&&a.has.call(o,s)||(o.add(l),cn(o,"add",l,l)),this},set(r,o){!t&&!xr(o)&&!Jr(o)&&(o=Fe(o));let a=Fe(this),{has:s,get:l}=vd(a),u=s.call(a,r);u||(r=Fe(r),u=s.call(a,r));let d=l.call(a,r);return a.set(r,o),u?Rr(o,d)&&cn(a,"set",r,o,d):cn(a,"add",r,o),this},delete(r){let o=Fe(this),{has:a,get:s}=vd(o),l=a.call(o,r);l||(r=Fe(r),l=a.call(o,r));let u=s?s.call(o,r):void 0,d=o.delete(r);return l&&cn(o,"delete",r,void 0,u),d},clear(){let r=Fe(this),o=r.size!==0,a=void 0,s=r.clear();return o&&cn(r,"clear",void 0,void 0,a),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=lz(r,e,t)}),n}function Ab(e,t){let n=cz(e,t);return(i,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(Ke(n,r)&&r in i?n:i,r,o)}function mz(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ll(e){return Jr(e)?e:Db(e,!1,oz,uz,B1)}function ba(e){return Db(e,!1,sz,dz,Z1)}function xd(e){return Db(e,!0,az,pz,H1)}function Db(e,t,n,i,r){if(!He(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let o=r.get(e);if(o)return o;let a=mz(vb(e));if(a===0)return e;let s=new Proxy(e,a===2?i:n);return r.set(e,s),s}function Rn(e){return Jr(e)?Rn(e.__v_raw):!!(e&&e.__v_isReactive)}function Jr(e){return!!(e&&e.__v_isReadonly)}function xr(e){return!!(e&&e.__v_isShallow)}function cl(e){return e?!!e.__v_raw:!1}function Fe(e){let t=e&&e.__v_raw;return t?Fe(t):e}function Pb(e){return!Ke(e,"__v_skip")&&Object.isExtensible(e)&&fa(e,"__v_skip",!0),e}function jt(e){return e?e.__v_isRef===!0:!1}function q(e){return K1(e,!1)}function We(e){return K1(e,!0)}function K1(e,t){return jt(e)?e:new Tb(e,t)}function Ce(e){return jt(e)?e.value:e}function $d(e){return Rn(e)?e:new Proxy(e,hz)}function W1(e,t,n=!1){let i,r;return Ie(e)?i=e:(i=e.get,r=e.set),new Nb(i,r,n)}function G1(e,t=!1,n=qi){if(n){let i=_d.get(n);i||_d.set(n,i=[]),i.push(e)}}function J1(e,t,n=Qe){let{immediate:i,deep:r,once:o,scheduler:a,augmentJob:s,call:l}=n,u=z=>{(n.onWarn||QC)("Invalid watch source: ",z,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=z=>r?z:xr(z)||r===!1||r===0?un(z,1):un(z),p,f,m,h,v=!1,x=!1;if(jt(e)?(f=()=>e.value,v=xr(e)):Rn(e)?(f=()=>d(e),v=!0):xe(e)?(x=!0,v=e.some(z=>Rn(z)||xr(z)),f=()=>e.map(z=>{if(jt(z))return z.value;if(Rn(z))return d(z);if(Ie(z))return l?l(z,2):z()})):Ie(e)?t?f=l?()=>l(e,2):e:f=()=>{if(m){dn();try{m()}finally{pn()}}let z=qi;qi=p;try{return l?l(e,3,[h]):e(h)}finally{qi=z}}:f=cr,t&&r){let z=f,D=r===!0?1/0:r;f=()=>un(z(),D)}let A=D1(),I=()=>{p.stop(),A&&A.active&&Js(A.effects,p)};if(o&&t){let z=t;t=(...D)=>{let X=z(...D);return I(),X}}let E=x?new Array(e.length).fill(yd):yd,M=z=>{if(!(!(p.flags&1)||!p.dirty&&!z))if(t){let D=p.run();if(z||r||v||(x?D.some((X,le)=>Rr(X,E[le])):Rr(D,E))){m&&m();let X=qi;qi=p;try{let le=[D,E===yd?void 0:x&&E[0]===yd?[]:E,h];E=D,l?l(t,3,le):t(...le)}finally{qi=X}}}else p.run()};return s&&s(M),p=new va(f),p.scheduler=a?()=>a(M,!1):M,h=z=>G1(z,!1,p),m=p.onStop=()=>{let z=_d.get(p);if(z){if(l)l(z,4);else for(let D of z)D();_d.delete(p)}},t?i?M(!0):E=p.run():a?a(M.bind(null,!0),!0):p.run(),I.pause=p.pause.bind(p),I.resume=p.resume.bind(p),I.stop=I,I}function un(e,t=1/0,n){if(t<=0||!He(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,jt(e))un(e.value,t,n);else if(xe(e))for(let i=0;i<e.length;i++)un(e[i],t,n);else if(sa(e)||Dn(e))e.forEach(i=>{un(i,t,n)});else if(fd(e)){for(let i in e)un(e[i],t,n);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&un(e[i],t,n)}return e}var Ht,nl,yt,yb,va,P1,tl,rl,Gr,L1,il,_b,ol,$b,Yi,Sb,al,tz,rz,nz,F1,wd,kd,Ib,oz,az,sz,Eb,vd,uz,dz,pz,B1,Z1,H1,fz,Ur,Xi,Tb,hz,Nb,yd,_d,qi,Rb=Y(()=>{Qs();/**
67
67
  * @vue/reactivity v3.5.42
68
68
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
69
69
  * @license MIT
70
- **/nl=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ht&&(Ht.active?(this.parent=Ht,this.index=(Ht.scopes||(Ht.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){let i=this.scopes.slice();for(t=0,n=i.length;t<n;t++)i[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}let i=this.effects.slice();for(t=0,n=i.length;t<n;t++)i[t].resume()}}run(t){if(this._active){let n=Ht;try{return Ht=this,t()}finally{Ht=n}}}on(){++this._on===1&&(this.prevScope=Ht,Ht=this)}off(){if(this._on>0&&--this._on===0){if(Ht===this)Ht=this.prevScope;else{let t=Ht;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){let r=this.scopes.slice();for(n=0,i=r.length;n<i;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){let r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}};yb=new WeakSet,va=class{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ht&&(Ht.active?Ht.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,yb.has(this)&&(yb.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||R1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,O1(this),U1(this);let t=yt,n=Gr;yt=this,Gr=!0;try{return this.fn()}finally{j1(this),yt=t,Gr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ob(t);this.deps=this.depsTail=void 0,O1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?yb.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xb(this)&&this.run()}get dirty(){return xb(this)}},P1=0;Gr=!0,L1=[];il=0,_b=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},ol=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!yt||!Gr||yt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==yt)n=this.activeLink=new _b(yt,this),yt.deps?(n.prevDep=yt.depsTail,yt.depsTail.nextDep=n,yt.depsTail=n):yt.deps=yt.depsTail=n,V1(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=yt.depsTail,n.nextDep=void 0,yt.depsTail.nextDep=n,yt.depsTail=n,yt.deps===n&&(yt.deps=i)}return n}trigger(t){this.version++,il++,this.notify(t)}notify(t){Cb();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{zb()}}};$b=new WeakMap,Yi=Symbol(""),Sb=Symbol(""),al=Symbol("");tz={__proto__:null,[Symbol.iterator](){return wb(this,Symbol.iterator,e=>ln(this,e))},concat(...e){return ga(this).concat(...e.map(t=>xe(t)?ga(t):t))},entries(){return wb(this,"entries",e=>(e[1]=ln(this,e[1]),e))},every(e,t){return Pn(this,"every",e,t,void 0,arguments)},filter(e,t){return Pn(this,"filter",e,t,n=>n.map(i=>ln(this,i)),arguments)},find(e,t){return Pn(this,"find",e,t,n=>ln(this,n),arguments)},findIndex(e,t){return Pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pn(this,"findLast",e,t,n=>ln(this,n),arguments)},findLastIndex(e,t){return Pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return kb(this,"includes",e)},indexOf(...e){return kb(this,"indexOf",e)},join(e){return ga(this).join(e)},lastIndexOf(...e){return kb(this,"lastIndexOf",e)},map(e,t){return Pn(this,"map",e,t,void 0,arguments)},pop(){return el(this,"pop")},push(...e){return el(this,"push",e)},reduce(e,...t){return A1(this,"reduce",e,t)},reduceRight(e,...t){return A1(this,"reduceRight",e,t)},shift(){return el(this,"shift")},some(e,t){return Pn(this,"some",e,t,void 0,arguments)},splice(...e){return el(this,"splice",e)},toReversed(){return ga(this).toReversed()},toSorted(e){return ga(this).toSorted(e)},toSpliced(...e){return ga(this).toSpliced(...e)},unshift(...e){return el(this,"unshift",e)},values(){return wb(this,"values",e=>ln(this,e))}};rz=Array.prototype;nz=la("__proto__,__v_isRef,__isVue"),F1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kr));wd=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;let r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(r?o?fz:H1:o?Z1:B1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let a=xe(t);if(!r){let l;if(a&&(l=tz[n]))return l;if(n==="hasOwnProperty")return iz}let s=Reflect.get(t,n,jt(t)?t:i);if((kr(n)?F1.has(n):nz(n))||(r||Kt(t,"get",n),o))return s;if(jt(s)){let l=a&&md(n)?s:s.value;return r&&He(l)?xd(l):l}return He(s)?r?xd(s):ll(s):s}},kd=class extends wd{constructor(t=!1){super(!1,t)}set(t,n,i,r){let o=t[n],a=xe(t)&&md(n);if(!this._isShallow){let u=Jr(o);if(!xr(i)&&!Jr(i)&&(o=Fe(o),i=Fe(i)),!a&&jt(o)&&!jt(i))return u||(o.value=i),!0}let s=a?Number(n)<t.length:Ke(t,n),l=Reflect.set(t,n,i,jt(t)?t:r);return t===Fe(r)&&l&&(s?Rr(i,o)&&cn(t,"set",n,i,o):cn(t,"add",n,i)),l}deleteProperty(t,n){let i=Ke(t,n),r=t[n],o=Reflect.deleteProperty(t,n);return o&&i&&cn(t,"delete",n,void 0,r),o}has(t,n){let i=Reflect.has(t,n);return(!kr(n)||!F1.has(n))&&Kt(t,"has",n),i}ownKeys(t){return Kt(t,"iterate",xe(t)?"length":Yi),Reflect.ownKeys(t)}},Ib=class extends wd{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}},oz=new kd,az=new Ib,sz=new kd(!0),Eb=e=>e,vd=e=>Reflect.getPrototypeOf(e);uz={get:Ab(!1,!1)},dz={get:Ab(!1,!0)},pz={get:Ab(!0,!1)},B1=new WeakMap,Z1=new WeakMap,H1=new WeakMap,fz=new WeakMap;Ur=e=>He(e)?ll(e):e,Xi=e=>He(e)?xd(e):e;Tb=class{constructor(t,n){this.dep=new ol,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Fe(t),this._value=n?t:Ur(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){let n=this._rawValue,i=this.__v_isShallow||xr(t)||Jr(t);t=i?t:Fe(t),Rr(t,n)&&(this._rawValue=t,this._value=i?t:Ur(t),this.dep.trigger())}};hz={get:(e,t,n)=>t==="__v_raw"?e:Ce(Reflect.get(e,t,n)),set:(e,t,n,i)=>{let r=e[t];return jt(r)&&!jt(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};Nb=class{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ol(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=il-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&yt!==this)return R1(this,!0),!0}get value(){let t=this.dep.track();return M1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};yd={},_d=new WeakMap});function kl(e,t,n,i){try{return i?e(...i):e()}catch(r){Rd(r,t,n)}}function Er(e,t,n,i){if(Ie(e)){let r=kl(e,t,n,i);return r&&gb(r)&&r.catch(o=>{Rd(o,t,n)}),r}if(xe(e)){let r=[];for(let o=0;o<e.length;o++)r.push(Er(e[o],t,n,i));return r}}function Rd(e,t,n,i=!0){let r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Qe;if(t){let s=t.parent,l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){let d=s.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,u)===!1)return}s=s.parent}if(o){dn(),kl(o,null,10,[e,l,u]),pn();return}}bz(e,n,r,i,a)}function bz(e,t,n,i=!0,r=!1){if(r)throw e;console.error(e)}function no(e){let t=Td||m$;return e?t.then(this?e.bind(this):e):t}function yz(e){let t=mn+1,n=pr.length;for(;t<n;){let i=t+n>>>1,r=pr[i],o=gl(r);o<e||o===e&&r.flags&2?t=i+1:n=i}return t}function Gb(e){if(!(e.flags&1)){let t=gl(e),n=pr[pr.length-1];!n||!(e.flags&2)&&t>=gl(n)?pr.push(e):pr.splice(yz(t),0,e),e.flags|=1,h$()}}function h$(){Td||(Td=m$.then(b$))}function g$(e){if(!xe(e))fi&&e.id===-1?fi.splice(ya+1,0,e):e.flags&1||(wa.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)wa.push(e[t]);h$()}function q1(e,t,n=mn+1){for(;n<pr.length;n++){let i=pr[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;pr.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function v$(e){if(wa.length){let t=[...new Set(wa)].sort((n,i)=>gl(n)-gl(i));if(wa.length=0,fi){for(let n=0;n<t.length;n++)fi.push(t[n]);return}for(fi=t,ya=0;ya<fi.length;ya++){let n=fi[ya];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}fi=null,ya=0}}function b$(e){let t=cr;try{for(mn=0;mn<pr.length;mn++){let n=pr[mn];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),kl(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;mn<pr.length;mn++){let n=pr[mn];n&&(n.flags&=-2)}mn=-1,pr.length=0,v$(e),Td=null,(pr.length||wa.length)&&b$(e)}}function Ud(e,...t){gn?gn.emit(e,...t):Vb||dl.push({event:e,args:t})}function y$(e,t){var n,i;gn=e,gn?(gn.enabled=!0,dl.forEach(({event:r,args:o})=>gn.emit(r,...o)),dl=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{y$(o,t)}),setTimeout(()=>{gn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vb=!0,dl=[])},3e3)):(Vb=!0,dl=[])}function kz(e,t){Ud("app:init",e,t,{Fragment:ge,Text:xl,Comment:Wt,Static:_a})}function xz(e){Ud("app:unmount",e)}function Jb(e){return t=>{Ud(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Iz(e,t,n){Ud("component:emit",e.appContext.app,e,t,n)}function Nd(e){let t=Gt;return Gt=e,k$=e&&e.type.__scopeId||null,t}function _t(e,t=Gt,n){if(!t||e._n)return e;let i=(...r)=>{i._d&&Ad(-1);let o=Nd(t),a=jn.length,s;try{s=e(...r)}finally{for(let l=jn.length;l>a;l--)o0();Nd(o),i._d&&Ad(1)}return __VUE_PROD_DEVTOOLS__&&w$(t),s};return i._n=!0,i._c=!0,i._d=!0,i}function jd(e,t){if(Gt===null)return e;let n=Zd(Gt),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,a,s,l=Qe]=t[r];o&&(Ie(o)&&(o={mounted:o,updated:o}),o.deep&&un(a),i.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function Qi(e,t,n,i){let r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){let s=r[a];o&&(s.oldValue=o[a].value);let l=s.dir[i];l&&(dn(),Er(l,n,8,[e.el,s,e,t]),pn())}}function Ez(e,t){if(Xt){let n=Xt.provides,i=Xt.parent&&Xt.parent.provides;i===n&&(n=Xt.provides=Object.create(i)),n[e]=t}}function Id(e,t,n=!1){let i=_l();if(i||xa){let r=xa?xa._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Ie(t)?t.call(i&&i.proxy):t}}function ft(e,t,n){return x$(e,t,n)}function x$(e,t,n=Qe){let{immediate:i,deep:r,flush:o,once:a}=n,s=bt({},n),l=t&&i||!t&&o!=="post",u;if(wl){if(o==="sync"){let m=Nz();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){let m=()=>{};return m.stop=cr,m.resume=cr,m.pause=cr,m}}let d=Xt;s.call=(m,h,v)=>Er(m,d,h,v);let p=!1;o==="post"?s.scheduler=m=>{dr(m,d&&d.suspense)}:o!=="sync"&&(p=!0,s.scheduler=(m,h)=>{h?m():Gb(m)}),s.augmentJob=m=>{t&&(m.flags|=4),p&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};let f=J1(e,t,s);return wl&&(u?u.push(f):l&&f()),f}function Cz(e,t,n){let i=this.proxy,r=pt(e)?e.includes(".")?_$(i,e):()=>i[e]:e.bind(i,i),o;Ie(t)?o=t:(o=t.handler,n=t);let a=$l(this),s=x$(r,o.bind(i),n);return a(),s}function _$(e,t){let n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function Sd(e,t,n,{o:{insert:i},m:r},o=2){o===0&&i(e.targetAnchor,t,n);let{el:a,anchor:s,shapeFlag:l,children:u,props:d}=e,p=o===2;if(p&&i(a,t,n),!pi.has(e)&&(!p||to(d))&&l&16)for(let f=0;f<u.length;f++)r(u[f],t,n,2);p&&i(s,t,n)}function Az(e,t,n,i,r,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:d}},p){function f(x,A){let I=A;for(;I;){if(I&&I.nodeType===8){if(I.data==="teleport start anchor")t.targetStart=I;else if(I.data==="teleport anchor"){t.targetAnchor=I,x._lpa=t.targetAnchor&&a(t.targetAnchor);break}}I=a(I)}}function m(x,A){A.anchor=p(a(x),A,s(x),n,i,r,o)}let h=t.target=Fb(t.props,l),v=to(t.props);if(h){let x=h._lpa||h.firstChild;t.shapeFlag&16&&(v?(m(e,t),f(h,x),t.targetAnchor||Bb(h,t,d,u,s(e)===h?e:null)):(t.anchor=a(e),f(h,x),t.targetAnchor||Bb(h,t,d,u),p(x&&a(x),t,h,n,i,r,o))),pl(t,v)}else v&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}function pl(e,t){let n=e.ctx;if(n&&n.ut){let i,r;for(t?(i=e.el,r=e.anchor):(i=e.targetStart,r=e.targetAnchor);i&&i!==r;)i.nodeType===1&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function Bb(e,t,n,i,r=null){let o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[$$]=a,e&&(i(o,e,r),i(a,e,r)),a}function qb(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pt(()=>{e.isMounted=!0}),Sa(()=>{e.isUnmounting=!0}),e}function E$(e){let t=e[0];if(e.length>1){let n=!1;for(let i of e)if(i.type!==Wt){t=i,n=!0;break}}return t}function N$(e,t){let{leavingVNodes:n}=e,i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function $a(e,t,n,i,r){let{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:x,onAppear:A,onAfterAppear:I,onAppearCancelled:E}=t,M=String(e.key),z=N$(n,e),D=(ie,Q)=>{ie&&Er(ie,i,9,Q)},X=(ie,Q)=>{let ae=Q[1];D(ie,Q),xe(ie)?ie.every(ne=>ne.length<=1)&&ae():ie.length<=1&&ae()},ce={mode:a,persisted:s,beforeEnter(ie){let Q=l;if(!n.isMounted)if(o)Q=x||l;else return;ie[Mr]&&ie[Mr](!0);let ae=z[M];ae&&ro(e,ae)&&ae.el[Mr]&&ae.el[Mr](),D(Q,[ie])},enter(ie){if(!wz&&z[M]===e)return;let Q=u,ae=d,ne=p;if(!n.isMounted)if(o)Q=A||u,ae=I||d,ne=E||p;else return;let ve=!1;ie[ul]=mt=>{ve||(ve=!0,mt?D(ne,[ie]):D(ae,[ie]),ce.delayedLeave&&ce.delayedLeave(),ie[ul]=void 0)};let Le=ie[ul].bind(null,!1);Q?X(Q,[ie,Le]):Le()},leave(ie,Q){let ae=String(e.key);if(ie[ul]&&ie[ul](!0),n.isUnmounting)return Q();D(f,[ie]);let ne=!1;ie[Mr]=Le=>{ne||(ne=!0,Q(),Le?D(v,[ie]):D(h,[ie]),ie[Mr]=void 0,z[ae]===e&&delete z[ae])};let ve=ie[Mr].bind(null,!1);z[ae]=e,m?X(m,[ie,ve]):ve()},clone(ie){let Q=$a(ie,t,n,i,r);return r&&r(Q),Q}};return ce}function Ub(e){if(Vd(e))return e=hi(e),e.children=null,e}function Cd(e){if(!Vd(e))return Md(e.type)&&e.children?E$(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ie(n.default))return n.default()}}function mi(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;mi(Md(n.type)&&Cd(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ld(e,t=!1,n){let i=[],r=0;for(let o=0;o<e.length;o++){let a=e[o],s=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===ge?(a.patchFlag&128&&r++,i=i.concat(Ld(a.children,t,s))):(t||a.type!==Wt)&&i.push(s!=null?hi(a,{key:s}):a)}if(r>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function Ue(e,t){return Ie(e)?bt({name:e.name},t,{setup:e}):e}function C$(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xb(e){let t=_l(),n=We(null);if(t){let r=t.refs===Qe?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Q1(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}function ml(e,t,n,i,r=!1){if(xe(e)){e.forEach((v,x)=>ml(v,t&&(xe(t)?t[x]:t),n,i,r));return}if(ka(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ml(e,t,n,i.component.subTree);return}let o=i.shapeFlag&4?Zd(i.component):i.el,a=r?null:o,{i:s,r:l}=e,u=t&&t.r,d=s.refs===Qe?s.refs={}:s.refs,p=s.setupState,f=Fe(p),m=p===Qe?hb:v=>Q1(d,v)?!1:Ke(f,v),h=(v,x)=>!(x&&Q1(d,x));if(u!=null&&u!==l){if(e$(t),pt(u))d[u]=null,m(u)&&(p[u]=null);else if(jt(u)){let v=t;h(u,v.k)&&(u.value=null),v.k&&(d[v.k]=null)}}if(Ie(l))kl(l,s,12,[a,d]);else{let v=pt(l),x=jt(l);if(v||x){let A=()=>{if(e.f){let I=v?m(l)?p[l]:d[l]:h(l)||!e.k?l.value:d[e.k];if(r)xe(I)&&Js(I,o);else if(xe(I))I.includes(o)||I.push(o);else if(v)d[l]=[o],m(l)&&(p[l]=d[l]);else{let E=[o];h(l,e.k)&&(l.value=E),e.k&&(d[e.k]=E)}}else v?(d[l]=a,m(l)&&(p[l]=a)):x&&(h(l,e.k)&&(l.value=a),e.k&&(d[e.k]=a))};if(a){let I=()=>{A(),zd.delete(e)};I.id=-1,zd.set(e,I),dr(I,n)}else e$(e),A()}}}function e$(e){let t=zd.get(e);t&&(t.flags|=8,zd.delete(e))}function Pz(e,t){z$(e,"a",t)}function Rz(e,t){z$(e,"da",t)}function z$(e,t,n=Xt){let i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Fd(t,i,n),n){let r=n.parent;for(;r&&r.parent;)Vd(r.parent.vnode)&&Uz(i,t,n,r),r=r.parent}}function Uz(e,t,n,i){let r=Fd(t,e,i,!0);qr(()=>{Js(i[t],r)},n)}function Fd(e,t,n=Xt,i=!1){if(n){let r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{dn();let s=$l(n),l=Er(t,n,e,a);return s(),pn(),l});return i?r.unshift(o):r.push(o),o}}function Fz(e,t=Xt){Fd("ec",e,t)}function P$(e){return pt(e)?Bz(A$,e,!1)||e:e||D$}function Bz(e,t,n=!0,i=!1){let r=Gt||Xt;if(r){let o=r.type;if(e===A$){let s=$O(o,!1);if(s&&(s===t||s===Dt(t)||s===Ji(Dt(t))))return o}let a=t$(r[e]||o[e],t)||t$(r.appContext[e],t);return!a&&i?o:a}}function t$(e,t){return e&&(e[t]||e[Dt(t)]||e[Ji(Dt(t))])}function st(e,t,n,i){let r,o=n&&n[i],a=xe(e);if(a||pt(e)){let s=a&&Rn(e),l=!1,u=!1;s&&(l=!xr(e),u=Jr(e),e=sl(e)),r=new Array(e.length);for(let d=0,p=e.length;d<p;d++)r[d]=t(l?u?Xi(Ur(e[d])):Ur(e[d]):e[d],d,void 0,o&&o[d])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,o&&o[s])}else if(He(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{let s=Object.keys(e);r=new Array(s.length);for(let l=0,u=s.length;l<u;l++){let d=s[l];r[l]=t(e[d],d,l,o&&o[l])}}else r=[];return n&&(n[i]=r),r}function e0(e,t){for(let n=0;n<t.length;n++){let i=t[n];if(xe(i))for(let r=0;r<i.length;r++)e[i[r].name]=i[r].fn;else i&&(e[i.name]=i.key?(...r)=>{let o=i.fn(...r);return o&&(o.key=i.key),o}:i.fn)}return e}function fr(e,t,n,i,r,o){if(n==null&&(n={}),Gt.ce||Gt.parent&&ka(Gt.parent)&&Gt.parent.ce){let u=o!=null&&n.key==null?bt({},n,{key:o}):n,d=Object.keys(u).length>0;return t!=="default"&&(u.name=t),w(),Ge(ge,null,[ye("slot",u,i&&i())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);let s=jn.length;w();let l;try{let u=a&&R$(a(n)),d=n.key||o||u&&u.key;l=Ge(ge,{key:(d&&!kr(d)?d:`_${t}`)+(!u&&i?"_fb":"")},u||(i?i():[]),u&&e._===1?64:-2)}catch(u){for(let d=jn.length;d>s;d--)o0();throw u}finally{a&&a._c&&(a._d=!0)}return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function R$(e){return e.some(t=>bl(t)?!(t.type===Wt||t.type===ge&&!R$(t.children)):!0)?e:null}function r$(e){return xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Hz(e){let t=t0(e),n=e.proxy,i=e.ctx;Hb=!1,t.beforeCreate&&n$(t.beforeCreate,e,"bc");let{data:r,computed:o,methods:a,watch:s,provide:l,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:m,updated:h,activated:v,deactivated:x,beforeDestroy:A,beforeUnmount:I,destroyed:E,unmounted:M,render:z,renderTracked:D,renderTriggered:X,errorCaptured:ce,serverPrefetch:ie,expose:Q,inheritAttrs:ae,components:ne,directives:ve,filters:Le}=t;if(u&&Kz(u,i,null),a)for(let je in a){let Me=a[je];Ie(Me)&&(i[je]=Me.bind(n))}if(r){let je=r.call(n,n);He(je)&&(e.data=ll(je))}if(Hb=!0,o)for(let je in o){let Me=o[je],Rt=Ie(Me)?Me.bind(n,n):Ie(Me.get)?Me.get.bind(n,n):cr,Je=!Ie(Me)&&Ie(Me.set)?Me.set.bind(n):cr,Cr=P({get:Rt,set:Je});Object.defineProperty(i,je,{enumerable:!0,configurable:!0,get:()=>Cr.value,set:wt=>Cr.value=wt})}if(s)for(let je in s)U$(s[je],i,n,je);if(l){let je=Ie(l)?l.call(n):l;Reflect.ownKeys(je).forEach(Me=>{Ez(Me,je[Me])})}d&&n$(d,e,"c");function ht(je,Me){xe(Me)?Me.forEach(Rt=>je(Rt.bind(n))):Me&&je(Me.bind(n))}if(ht(jz,p),ht(Pt,f),ht(O$,m),ht(Qb,h),ht(Pz,v),ht(Rz,x),ht(Fz,ce),ht(Vz,D),ht(Lz,X),ht(Sa,I),ht(qr,M),ht(Mz,ie),xe(Q))if(Q.length){let je=e.exposed||(e.exposed={});Q.forEach(Me=>{Object.defineProperty(je,Me,{get:()=>n[Me],set:Rt=>n[Me]=Rt,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===cr&&(e.render=z),ae!=null&&(e.inheritAttrs=ae),ne&&(e.components=ne),ve&&(e.directives=ve),ie&&C$(e)}function Kz(e,t,n=cr){xe(e)&&(e=Kb(e));for(let i in e){let r=e[i],o;He(r)?"default"in r?o=Id(r.from||i,r.default,!0):o=Id(r.from||i):o=Id(r),jt(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[i]=o}}function n$(e,t,n){Er(xe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function U$(e,t,n,i){let r=i.includes(".")?_$(n,i):()=>n[i];if(pt(e)){let o=t[e];Ie(o)&&ft(r,o)}else if(Ie(e))ft(r,e.bind(n));else if(He(e))if(xe(e))e.forEach(o=>U$(o,t,n,i));else{let o=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(o)&&ft(r,o,e)}}function t0(e){let t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t),l;return s?l=s:!r.length&&!n&&!i?l=t:(l={},r.length&&r.forEach(u=>Od(l,u,a,!0)),Od(l,t,a)),He(t)&&o.set(t,l),l}function Od(e,t,n,i=!1){let{mixins:r,extends:o}=t;o&&Od(e,o,n,!0),r&&r.forEach(a=>Od(e,a,n,!0));for(let a in t)if(!(i&&a==="expose")){let s=Wz[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}function i$(e,t){return t?e?function(){return bt(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function Gz(e,t){return fl(Kb(e),Kb(t))}function Kb(e){if(xe(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ur(e,t){return e?[...new Set([].concat(e,t))]:t}function fl(e,t){return e?bt(Object.create(null),e,t):t}function o$(e,t){return e?xe(e)&&xe(t)?[...new Set([...e,...t])]:bt(Object.create(null),r$(e),r$(t??{})):t}function Jz(e,t){if(!e)return t;if(!t)return e;let n=bt(Object.create(null),e);for(let i in t)n[i]=ur(e[i],t[i]);return n}function j$(){return{app:null,config:{isNativeTag:hb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}function Yz(e,t){return function(i,r=null){Ie(i)||(i=bt({},i)),r!=null&&!He(r)&&(r=null);let o=j$(),a=new WeakSet,s=[],l=!1,u=o.app={_uid:qz++,_component:i,_props:r,_container:null,_context:o,_instance:null,version:f$,get config(){return o.config},set config(d){},use(d,...p){return a.has(d)||(d&&Ie(d.install)?(a.add(d),d.install(u,...p)):Ie(d)&&(a.add(d),d(u,...p))),u},mixin(d){return __VUE_OPTIONS_API__&&(o.mixins.includes(d)||o.mixins.push(d)),u},component(d,p){return p?(o.components[d]=p,u):o.components[d]},directive(d,p){return p?(o.directives[d]=p,u):o.directives[d]},mount(d,p,f){if(!l){let m=u._ceVNode||ye(i,r);return m.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),p&&t?t(m,d):e(m,d,f),l=!0,u._container=d,d.__vue_app__=u,__VUE_PROD_DEVTOOLS__&&(u._instance=m.component,kz(u,f$)),Zd(m.component)}},onUnmount(d){s.push(d)},unmount(){l&&(Er(s,u._instance,16),e(null,u._container),__VUE_PROD_DEVTOOLS__&&(u._instance=null,xz(u)),delete u._container.__vue_app__)},provide(d,p){return o.provides[d]=p,u},runWithContext(d){let p=xa;xa=u;try{return d()}finally{xa=p}}};return u}}function Qz(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||Qe,r=n,o=t.startsWith("update:"),a=o&&Xz(i,t.slice(7));a&&(a.trim&&(r=n.map(d=>pt(d)?d.trim():d)),a.number&&(r=r.map(Xs))),__VUE_PROD_DEVTOOLS__&&Iz(e,t,r);let s,l=i[s=Ys(t)]||i[s=Ys(Dt(t))];!l&&o&&(l=i[s=Ys(sn(t))]),l&&Er(l,e,6,r);let u=i[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Er(u,e,6,r)}}function M$(e,t,n=!1){let i=__VUE_OPTIONS_API__&&n?eO:t.emitsCache,r=i.get(e);if(r!==void 0)return r;let o=e.emits,a={},s=!1;if(__VUE_OPTIONS_API__&&!Ie(e)){let l=u=>{let d=M$(u,t,!0);d&&(s=!0,bt(a,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(He(e)&&i.set(e,null),null):(xe(o)?o.forEach(l=>a[l]=null):bt(a,o),He(e)&&i.set(e,a),a)}function Bd(e,t){return!e||!ca(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ke(e,t[0].toLowerCase()+t.slice(1))||Ke(e,sn(t))||Ke(e,t))}function Mb(e){let{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:d,props:p,data:f,setupState:m,ctx:h,inheritAttrs:v}=e,x=Nd(e),A,I;try{if(n.shapeFlag&4){let z=r||i,D=z;A=hn(u.call(D,z,d,p,m,f,h)),I=s}else{let z=t;A=hn(z.length>1?z(p,{attrs:s,slots:a,emit:l}):z(p,null)),I=t.props?s:tO(s)}}catch(z){jn.length=0,Rd(z,e,1),A=ye(Wt)}let E=A,M;if(I&&v!==!1){let z=Object.keys(I),{shapeFlag:D}=E;z.length&&D&7&&(o&&z.some(ua)&&(I=rO(I,o)),E=hi(E,I,!1,!0))}if(n.dirs&&(E=hi(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition){let z=Md(E.type)&&Cd(E)||E;mi(z,n.transition)}return A=E,Nd(x),A}function nO(e,t,n){let{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?a$(i,a,u):!!a;if(l&8){let d=t.dynamicProps;for(let p=0;p<d.length;p++){let f=d[p];if(L$(a,i,f)&&!Bd(u,f))return!0}}}else return(r||s)&&(!s||!s.$stable)?!0:i===a?!1:i?a?a$(i,a,u):!0:!!a;return!1}function a$(e,t,n){let i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){let o=i[r];if(L$(t,e,o)&&!Bd(n,o))return!0}return!1}function L$(e,t,n){let i=e[n],r=t[n];return n==="style"&&He(i)&&He(r)?!ha(i,r):i!==r}function iO({vnode:e,parent:t,suspense:n},i){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=i,e=r),r===e)(e=t.vnode).el=i,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=i)}function oO(e,t,n,i=!1){let r={},o=F$();e.propsDefaults=Object.create(null),Z$(e,t,r,o);for(let a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=i?r:ba(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function aO(e,t,n,i){let{props:r,attrs:o,vnode:{patchFlag:a}}=e,s=Fe(r),[l]=e.propsOptions,u=!1;if((i||a>0)&&!(a&16)){if(a&8){let d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let f=d[p];if(Bd(e.emitsOptions,f))continue;let m=t[f];if(l)if(Ke(o,f))m!==o[f]&&(o[f]=m,u=!0);else{let h=Dt(f);r[h]=Wb(l,s,h,m,e,!1)}else m!==o[f]&&(o[f]=m,u=!0)}}}else{Z$(e,t,r,o)&&(u=!0);let d;for(let p in s)(!t||!Ke(t,p)&&((d=sn(p))===p||!Ke(t,d)))&&(l?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Wb(l,s,p,void 0,e,!0)):delete r[p]);if(o!==s)for(let p in o)(!t||!Ke(t,p))&&(delete o[p],u=!0)}u&&cn(e.attrs,"set","")}function Z$(e,t,n,i){let[r,o]=e.propsOptions,a=!1,s;if(t)for(let l in t){if(da(l))continue;let u=t[l],d;r&&Ke(r,d=Dt(l))?!o||!o.includes(d)?n[d]=u:(s||(s={}))[d]=u:Bd(e.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,a=!0)}if(o){let l=Fe(n),u=s||Qe;for(let d=0;d<o.length;d++){let p=o[d];n[p]=Wb(r,l,p,u[p],e,!Ke(u,p))}}return a}function Wb(e,t,n,i,r,o){let a=e[n];if(a!=null){let s=Ke(a,"default");if(s&&i===void 0){let l=a.default;if(a.type!==Function&&!a.skipFactory&&Ie(l)){let{propsDefaults:u}=r;if(n in u)i=u[n];else{let d=$l(r);i=u[n]=l.call(null,t),d()}}else i=l;r.ce&&r.ce._setProp(n,i)}a[0]&&(o&&!s?i=!1:a[1]&&(i===""||i===sn(n))&&(i=!0))}return i}function H$(e,t,n=!1){let i=__VUE_OPTIONS_API__&&n?sO:t.propsCache,r=i.get(e);if(r)return r;let o=e.props,a={},s=[],l=!1;if(__VUE_OPTIONS_API__&&!Ie(e)){let d=p=>{l=!0;let[f,m]=H$(p,t,!0);bt(a,f),m&&s.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return He(e)&&i.set(e,Gi),Gi;if(xe(o))for(let d=0;d<o.length;d++){let p=Dt(o[d]);s$(p)&&(a[p]=Qe)}else if(o)for(let d in o){let p=Dt(d);if(s$(p)){let f=o[d],m=a[p]=xe(f)||Ie(f)?{type:f}:bt({},f),h=m.type,v=!1,x=!0;if(xe(h))for(let A=0;A<h.length;++A){let I=h[A],E=Ie(I)&&I.name;if(E==="Boolean"){v=!0;break}else E==="String"&&(x=!1)}else v=Ie(h)&&h.name==="Boolean";m[0]=v,m[1]=x,(v||Ke(m,"default"))&&s.push(p)}}let u=[a,s];return He(e)&&i.set(e,u),u}function s$(e){return e[0]!=="$"&&!da(e)}function dO(){let e=[];typeof __VUE_OPTIONS_API__!="boolean"&&(di().__VUE_OPTIONS_API__=!0),typeof __VUE_PROD_DEVTOOLS__!="boolean"&&(di().__VUE_PROD_DEVTOOLS__=!1),typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(di().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}function J$(e){return pO(e)}function pO(e,t){dO();let n=di();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&y$(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);let{insert:i,remove:r,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:m=cr,insertStaticContent:h}=e,v=(b,S,L,J=null,$=null,T=null,y=void 0,R=null,O=!!S.dynamicChildren)=>{if(b===S)return;b&&!ro(b,S)&&(J=Ft(b),xt(b,$,T,!0),b=null),S.patchFlag===-2&&(O=!1,S.dynamicChildren=null);let{type:U,ref:se,shapeFlag:te}=S;switch(U){case xl:x(b,S,L,J);break;case Wt:A(b,S,L,J);break;case _a:b==null&&I(S,L,J,y);break;case ge:ve(b,S,L,J,$,T,y,R,O);break;default:te&1?D(b,S,L,J,$,T,y,R,O):te&6?Le(b,S,L,J,$,T,y,R,O):(te&64||te&128)&&U.process(b,S,L,J,$,T,y,R,O,tr)}se!=null&&$?ml(se,b&&b.ref,T,S||b,!S):se==null&&b&&b.ref!=null&&ml(b.ref,null,T,b,!0)},x=(b,S,L,J)=>{if(b==null)i(S.el=s(S.children),L,J);else{let $=S.el=b.el;S.children!==b.children&&u($,S.children)}},A=(b,S,L,J)=>{b==null?i(S.el=l(S.children||""),L,J):S.el=b.el},I=(b,S,L,J)=>{[b.el,b.anchor]=h(b.children,S,L,J,b.el,b.anchor)},E=(b,S,L,J)=>{if(S.children!==b.children){let $=f(b.anchor);z(b),[S.el,S.anchor]=h(S.children,L,$,J)}else S.el=b.el,S.anchor=b.anchor},M=({el:b,anchor:S},L,J)=>{let $;for(;b&&b!==S;)$=f(b),i(b,L,J),b=$;i(S,L,J)},z=({el:b,anchor:S})=>{let L;for(;b&&b!==S;)L=f(b),r(b),b=L;r(S)},D=(b,S,L,J,$,T,y,R,O)=>{if(S.type==="svg"?y="svg":S.type==="math"&&(y="mathml"),b==null)X(S,L,J,$,T,y,R,O);else{let U=b.el&&b.el._isVueCE?b.el:null;try{U&&U._beginPatch(),Q(b,S,$,T,y,R,O)}finally{U&&U._endPatch()}}},X=(b,S,L,J,$,T,y,R)=>{let O,U,{props:se,shapeFlag:te,transition:pe,dirs:he}=b;if(O=b.el=a(b.type,T,se&&se.is,se),te&8?d(O,b.children):te&16&&ie(b.children,O,null,J,$,Lb(b,T),y,R),he&&Qi(b,null,J,"created"),ce(O,b,b.scopeId,y,J),se){for(let Te in se)Te!=="value"&&!da(Te)&&o(O,Te,null,se[Te],T,J);"value"in se&&o(O,"value",null,se.value,T),(U=se.onVnodeBeforeMount)&&fn(U,J,b)}__VUE_PROD_DEVTOOLS__&&(fa(O,"__vnode",b,!0),fa(O,"__vueParentComponent",J,!0)),he&&Qi(b,null,J,"beforeMount");let $e=fO($,pe);$e&&pe.beforeEnter(O),i(O,S,L),((U=se&&se.onVnodeMounted)||$e||he)&&dr(()=>{let Ne;U&&fn(U,J,b),$e&&pe.enter(O),he&&Qi(b,null,J,"mounted")},$)},ce=(b,S,L,J,$)=>{if(L&&m(b,L),J)for(let T=0;T<J.length;T++)m(b,J[T]);if($){let T=$.subTree;if(S===T||X$(T.type)&&(T.ssContent===S||T.ssFallback===S)){let y=$.vnode;ce(b,y,y.scopeId,y.slotScopeIds,$.parent)}}},ie=(b,S,L,J,$,T,y,R,O=0)=>{for(let U=O;U<b.length;U++){let se=b[U]=R?Un(b[U]):hn(b[U]);v(null,se,S,L,J,$,T,y,R)}},Q=(b,S,L,J,$,T,y)=>{let R=S.el=b.el;__VUE_PROD_DEVTOOLS__&&(R.__vnode=S);let{patchFlag:O,dynamicChildren:U,dirs:se}=S;O|=b.patchFlag&16;let te=b.props||Qe,pe=S.props||Qe,he;if(L&&eo(L,!1),(he=pe.onVnodeBeforeUpdate)&&fn(he,L,S,b),se&&Qi(S,b,L,"beforeUpdate"),L&&eo(L,!0),U&&(!b.dynamicChildren||b.dynamicChildren.length!==U.length)&&(O=0,y=!1,U=null),(te.innerHTML&&pe.innerHTML==null||te.textContent&&pe.textContent==null)&&d(R,""),U?ae(b.dynamicChildren,U,R,L,J,Lb(S,$),T):y||Rt(b,S,R,null,L,J,Lb(S,$),T,!1),O>0){if(O&16)ne(R,te,pe,L,$);else if(O&2&&te.class!==pe.class&&o(R,"class",null,pe.class,$),O&4&&o(R,"style",te.style,pe.style,$),O&8){let $e=S.dynamicProps;for(let Te=0;Te<$e.length;Te++){let Ne=$e[Te],qe=te[Ne],Xe=pe[Ne];(Xe!==qe||Ne==="value")&&o(R,Ne,qe,Xe,$,L)}}O&1&&b.children!==S.children&&d(R,S.children)}else!y&&U==null&&ne(R,te,pe,L,$);((he=pe.onVnodeUpdated)||se)&&dr(()=>{he&&fn(he,L,S,b),se&&Qi(S,b,L,"updated")},J)},ae=(b,S,L,J,$,T,y)=>{for(let R=0;R<S.length;R++){let O=b[R],U=S[R],se=O.el&&(O.type===ge||!ro(O,U)||O.shapeFlag&198)?p(O.el):L;v(O,U,se,null,J,$,T,y,!0)}},ne=(b,S,L,J,$)=>{if(S!==L){if(S!==Qe)for(let T in S)!da(T)&&!(T in L)&&o(b,T,S[T],null,$,J);for(let T in L){if(da(T))continue;let y=L[T],R=S[T];y!==R&&T!=="value"&&o(b,T,R,y,$,J)}"value"in L&&o(b,"value",S.value,L.value,$)}},ve=(b,S,L,J,$,T,y,R,O)=>{let U=S.el=b?b.el:s(""),se=S.anchor=b?b.anchor:s(""),{patchFlag:te,dynamicChildren:pe,slotScopeIds:he}=S;he&&(R=R?R.concat(he):he),b==null?(i(U,L,J),i(se,L,J),ie(S.children||[],L,se,$,T,y,R,O)):te>0&&te&64&&pe&&b.dynamicChildren&&b.dynamicChildren.length===pe.length?(ae(b.dynamicChildren,pe,L,$,T,y,R),(S.key!=null||$&&S===$.subTree)&&i0(b,S,!0)):Rt(b,S,L,se,$,T,y,R,O)},Le=(b,S,L,J,$,T,y,R,O)=>{S.slotScopeIds=R,b==null?S.shapeFlag&512?$.ctx.activate(S,L,J,y,O):mt(S,L,J,$,T,y,O):ht(b,S,O)},mt=(b,S,L,J,$,T,y)=>{let R=b.component=yO(b,J,$);if(Vd(b)&&(R.ctx.renderer=tr),wO(R,!1,y),R.asyncDep){if($&&$.registerDep(R,je,y),!b.el){let O=R.subTree=ye(Wt);A(null,O,S,L),b.placeholder=O.el}}else je(R,b,S,L,$,T,y)},ht=(b,S,L)=>{let J=S.component=b.component;if(nO(b,S,L))if(J.asyncDep&&!J.asyncResolved){Me(J,S,L);return}else J.next=S,J.update();else S.el=b.el,J.vnode=S},je=(b,S,L,J,$,T,y)=>{let R=()=>{if(b.isMounted){let{next:te,bu:pe,u:he,parent:$e,vnode:Te}=b;{let St=q$(b);if(St){te&&(te.el=Te.el,Me(b,te,y)),St.asyncDep.then(()=>{dr(()=>{b.isUnmounted||U()},$)});return}}let Ne=te,qe;eo(b,!1),te?(te.el=Te.el,Me(b,te,y)):te=Te,pe&&pa(pe),(qe=te.props&&te.props.onVnodeBeforeUpdate)&&fn(qe,$e,te,Te),eo(b,!0);let Xe=Mb(b),zt=b.subTree;b.subTree=Xe,v(zt,Xe,p(zt.el),Ft(zt),b,$,T),te.el=Xe.el,Ne===null&&iO(b,Xe.el),he&&dr(he,$),(qe=te.props&&te.props.onVnodeUpdated)&&dr(()=>fn(qe,$e,te,Te),$),__VUE_PROD_DEVTOOLS__&&w$(b)}else{let te,{el:pe,props:he}=S,{bm:$e,m:Te,parent:Ne,root:qe,type:Xe}=b,zt=ka(S);if(eo(b,!1),$e&&pa($e),!zt&&(te=he&&he.onVnodeBeforeMount)&&fn(te,Ne,S),eo(b,!0),pe&&zr){let St=()=>{b.subTree=Mb(b),zr(pe,b.subTree,b,$,null)};zt&&Xe.__asyncHydrate?Xe.__asyncHydrate(pe,b,St):St()}else{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Xe,b.parent?b.parent.type:void 0);let St=b.subTree=Mb(b);v(null,St,L,J,b,$,T),S.el=St.el}if(Te&&dr(Te,$),!zt&&(te=he&&he.onVnodeMounted)){let St=S;dr(()=>fn(te,Ne,St),$)}(S.shapeFlag&256||Ne&&ka(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&b.a&&dr(b.a,$),b.isMounted=!0,__VUE_PROD_DEVTOOLS__&&_z(b),S=L=J=null}};b.scope.on();let O=b.effect=new va(R);b.scope.off();let U=b.update=O.run.bind(O),se=b.job=O.runIfDirty.bind(O);se.i=b,se.id=b.uid,O.scheduler=()=>Gb(se),eo(b,!0),U()},Me=(b,S,L)=>{S.component=b;let J=b.vnode.props;b.vnode=S,b.next=null,aO(b,S.props,J,L),uO(b,S.children,L),dn(),q1(b),pn()},Rt=(b,S,L,J,$,T,y,R,O=!1)=>{let U=b&&b.children,se=b?b.shapeFlag:0,te=S.children,{patchFlag:pe,shapeFlag:he}=S;if(pe>0){if(pe&128){Cr(U,te,L,J,$,T,y,R,O);return}else if(pe&256){Je(U,te,L,J,$,T,y,R,O);return}}he&8?(se&16&&Nt(U,$,T),te!==U&&d(L,te)):se&16?he&16?Cr(U,te,L,J,$,T,y,R,O):Nt(U,$,T,!0):(se&8&&d(L,""),he&16&&ie(te,L,J,$,T,y,R,O))},Je=(b,S,L,J,$,T,y,R,O)=>{b=b||Gi,S=S||Gi;let U=b.length,se=S.length,te=Math.min(U,se),pe;for(pe=0;pe<te;pe++){let he=S[pe]=O?Un(S[pe]):hn(S[pe]);v(b[pe],he,L,null,$,T,y,R,O)}U>se?Nt(b,$,T,!0,!1,te):ie(S,L,J,$,T,y,R,O,te)},Cr=(b,S,L,J,$,T,y,R,O)=>{let U=0,se=S.length,te=b.length-1,pe=se-1;for(;U<=te&&U<=pe;){let he=b[U],$e=S[U]=O?Un(S[U]):hn(S[U]);if(ro(he,$e))v(he,$e,L,null,$,T,y,R,O);else break;U++}for(;U<=te&&U<=pe;){let he=b[te],$e=S[pe]=O?Un(S[pe]):hn(S[pe]);if(ro(he,$e))v(he,$e,L,null,$,T,y,R,O);else break;te--,pe--}if(U>te){if(U<=pe){let he=pe+1,$e=he<se?S[he].el:J;for(;U<=pe;)v(null,S[U]=O?Un(S[U]):hn(S[U]),L,$e,$,T,y,R,O),U++}}else if(U>pe)for(;U<=te;)xt(b[U],$,T,!0),U++;else{let he=U,$e=U,Te=new Map;for(U=$e;U<=pe;U++){let ct=S[U]=O?Un(S[U]):hn(S[U]);ct.key!=null&&Te.set(ct.key,U)}let Ne,qe=0,Xe=pe-$e+1,zt=!1,St=0,rr=new Array(Xe);for(U=0;U<Xe;U++)rr[U]=0;for(U=he;U<=te;U++){let ct=b[U];if(qe>=Xe){xt(ct,$,T,!0);continue}let it;if(ct.key!=null)it=Te.get(ct.key);else for(Ne=$e;Ne<=pe;Ne++)if(rr[Ne-$e]===0&&ro(ct,S[Ne])){it=Ne;break}it===void 0?xt(ct,$,T,!0):(rr[it-$e]=U+1,it>=St?St=it:zt=!0,v(ct,S[it],L,null,$,T,y,R,O),qe++)}let be=zt?mO(rr):Gi;for(Ne=be.length-1,U=Xe-1;U>=0;U--){let ct=$e+U,it=S[ct],$n=S[ct+1],Sn=ct+1<se?$n.el||Y$($n):J;rr[U]===0?v(null,it,L,Sn,$,T,y,R,O):zt&&(Ne<0||U!==be[Ne]?wt(it,L,Sn,2):Ne--)}}},wt=(b,S,L,J,$=null)=>{let{el:T,type:y,transition:R,children:O,shapeFlag:U}=b;if(U&6){wt(b.component.subTree,S,L,J);return}if(U&128){b.suspense.move(S,L,J);return}if(U&64){y.move(b,S,L,tr);return}if(y===ge){i(T,S,L);for(let te=0;te<O.length;te++)wt(O[te],S,L,J);i(b.anchor,S,L);return}if(y===_a){M(b,S,L);return}if(J!==2&&U&1&&R)if(J===0)R.persisted&&!T[Mr]?i(T,S,L):(R.beforeEnter(T),i(T,S,L),dr(()=>R.enter(T),$));else{let{leave:te,delayLeave:pe,afterLeave:he}=R,$e=()=>{b.ctx.isUnmounted?r(T):i(T,S,L)},Te=()=>{let Ne=T._isLeaving||!!T[Mr];T._isLeaving&&T[Mr](!0),R.persisted&&!Ne?$e():te(T,()=>{$e(),he&&he()})};pe?pe(T,$e,Te):Te()}else i(T,S,L)},xt=(b,S,L,J=!1,$=!1)=>{let{type:T,props:y,ref:R,children:O,dynamicChildren:U,shapeFlag:se,patchFlag:te,dirs:pe,cacheIndex:he,memo:$e}=b;if(te===-2&&($=!1),R!=null&&(dn(),ml(R,null,L,b,!0),pn()),he!=null&&(S.renderCache[he]=void 0),se&256){S.ctx.deactivate(b);return}let Te=se&1&&pe,Ne=!ka(b),qe;if(Ne&&(qe=y&&y.onVnodeBeforeUnmount)&&fn(qe,S,b),se&6)Wn(b.component,L,J);else{if(se&128){b.suspense.unmount(L,J);return}Te&&Qi(b,null,S,"beforeUnmount"),se&64?b.type.remove(b,S,L,tr,J):U&&!U.hasOnce&&(T!==ge||te>0&&te&64)?Nt(U,S,L,!1,!0):(T===ge&&te&384||!$&&se&16)&&Nt(O,S,L),J&&Fr(b)}let Xe=$e!=null&&he==null;(Ne&&(qe=y&&y.onVnodeUnmounted)||Te||Xe)&&dr(()=>{qe&&fn(qe,S,b),Te&&Qi(b,null,S,"unmounted"),Xe&&(b.el=null)},L)},Fr=b=>{let{type:S,el:L,anchor:J,transition:$}=b;if(S===ge){Tt(L,J);return}if(S===_a){z(b);return}let T=()=>{r(L),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){let{leave:y,delayLeave:R}=$,O=()=>y(L,T);R?R(b.el,T,O):O()}else T()},Tt=(b,S)=>{let L;for(;b!==S;)L=f(b),r(b),b=L;r(S)},Wn=(b,S,L)=>{let{bum:J,scope:$,job:T,subTree:y,um:R,m:O,a:U}=b;l$(O),l$(U),J&&pa(J),$.stop(),T&&(T.flags|=8,xt(y,b,S,L)),R&&dr(R,S),dr(()=>{b.isUnmounted=!0},S),__VUE_PROD_DEVTOOLS__&&Sz(b)},Nt=(b,S,L,J=!1,$=!1,T=0)=>{for(let y=T;y<b.length;y++)xt(b[y],S,L,J,$)},Ft=b=>{if(b.shapeFlag&6)return Ft(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();let S=f(b.anchor||b.el),L=S&&S[$$];return L?f(L):S},er=!1,Ye=(b,S,L)=>{let J;b==null?S._vnode&&(xt(S._vnode,null,null,!0),J=S._vnode.component):v(S._vnode||null,b,S,null,null,null,L),S._vnode=b,er||(er=!0,q1(J),v$(),er=!1)},tr={p:v,um:xt,m:wt,r:Fr,mt,mc:ie,pc:Rt,pbc:ae,n:Ft,o:e},Ve,zr;return t&&([Ve,zr]=t(tr)),{render:Ye,hydrate:Ve,createApp:Yz(Ye,Ve)}}function Lb({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function eo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function i0(e,t,n=!1){let i=e.children,r=t.children;if(xe(i)&&xe(r))for(let o=0;o<i.length;o++){let a=i[o],s=r[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=r[o]=Un(r[o]),s.el=a.el),!n&&s.patchFlag!==-2&&i0(a,s)),s.type===xl&&(s.patchFlag===-1&&(s=r[o]=Un(s)),s.el=a.el),s.type===Wt&&!s.el&&(s.el=a.el)}}function mO(e){let t=e.slice(),n=[0],i,r,o,a,s,l=e.length;for(i=0;i<l;i++){let u=e[i];if(u!==0){if(r=n[n.length-1],e[r]<u){t[i]=r,n.push(i);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<u?o=s+1:a=s;u<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function q$(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:q$(t)}function l$(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Y$(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Y$(t.subTree):null}function hO(e,t){t&&t.pendingBranch?xe(e)?t.effects.push(...e):t.effects.push(e):g$(e)}function w(e=!1){jn.push(Ir=e?null:[])}function o0(){jn.pop(),Ir=jn[jn.length-1]||null}function Ad(e,t=!1){vl+=e,e<0&&Ir&&t&&(Ir.hasOnce=!0)}function Q$(e){return e.dynamicChildren=vl>0?Ir||Gi:null,o0(),vl>0&&Ir&&Ir.push(e),e}function _(e,t,n,i,r,o){return Q$(k(e,t,n,i,r,o,!0))}function Ge(e,t,n,i,r){return Q$(ye(e,t,n,i,r,!0))}function bl(e){return e?e.__v_isVNode===!0:!1}function ro(e,t){return e.type===t.type&&e.key===t.key}function k(e,t=null,n=null,i=0,r=null,o=e===ge?0:1,a=!1,s=!1){let l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eS(t),ref:t&&Ed(t),scopeId:k$,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Gt};return s?(Dd(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=pt(n)?8:16),vl>0&&!a&&Ir&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ir.push(l),l}function gO(e,t=null,n=null,i=0,r=null,o=!1){if((!e||e===D$)&&(e=Wt),bl(e)){let s=hi(e,t,!0);return n&&Dd(s,n),vl>0&&!o&&Ir&&(s.shapeFlag&6?Ir[Ir.indexOf(e)]=s:Ir.push(s)),s.patchFlag=-2,s}if(SO(e)&&(e=e.__vccOpts),t){t=Ia(t);let{class:s,style:l}=t;s&&!pt(s)&&(t.class=V(s)),He(l)&&(cl(l)&&!xe(l)&&(l=bt({},l)),t.style=_e(l))}let a=pt(e)?1:X$(e)?128:Md(e)?64:He(e)?4:Ie(e)?2:0;return k(e,t,n,i,r,a,o,!0)}function Ia(e){return e?cl(e)||B$(e)?bt({},e):e:null}function hi(e,t,n=!1,i=!1){let{props:r,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?a0(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&eS(u),ref:t&&t.ref?n&&o?xe(o)?o.concat(Ed(t)):[o,Ed(t)]:Ed(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hi(e.ssContent),ssFallback:e.ssFallback&&hi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&mi(d,l.clone(d)),d}function $t(e=" ",t=0){return ye(xl,null,e,t)}function tS(e,t){let n=ye(_a,null,e);return n.staticCount=t,n}function ee(e="",t=!1){return t?(w(),Ge(Wt,null,e)):ye(Wt,null,e)}function hn(e){return e==null||typeof e=="boolean"?ye(Wt):xe(e)?ye(ge,null,e.slice()):bl(e)?Un(e):ye(xl,null,String(e))}function Un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hi(e)}function Dd(e,t){let n=0,{shapeFlag:i}=e;if(t==null)t=null;else if(xe(t))n=16;else if(typeof t=="object")if(i&65){let r=t.default;r&&(r._c&&(r._d=!1),Dd(e,r()),r._c&&(r._d=!0));return}else{n=32;let r=t._;!r&&!B$(t)?t._ctx=Gt:r===3&&Gt&&(Gt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ie(t)){if(i&65){Dd(e,{default:t});return}t={default:t,_ctx:Gt},n=32}else t=String(t),i&64?(n=16,t=[$t(t)]):n=8;e.children=t,e.shapeFlag|=n}function a0(...e){let t={};for(let n=0;n<e.length;n++){let i=e[n];for(let r in i)if(r==="class")t.class!==i.class&&(t.class=V([t.class,i.class]));else if(r==="style")t.style=_e([t.style,i.style]);else if(ca(r)){let o=t[r],a=i[r];a&&o!==a&&!(xe(o)&&o.includes(a))?t[r]=o?[].concat(o,a):a:a==null&&o==null&&!ua(r)&&(t[r]=a)}else r!==""&&(t[r]=i[r])}return t}function fn(e,t,n,i=null){Er(e,t,7,[n,i])}function yO(e,t,n){let i=e.type,r=(t?t.appContext:e.appContext)||vO,o={uid:bO++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new nl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:H$(i,r),emitsOptions:M$(i,r),emit:null,emitted:null,propsDefaults:Qe,inheritAttrs:i.inheritAttrs,ctx:Qe,data:Qe,props:Qe,attrs:Qe,slots:Qe,refs:Qe,setupState:Qe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Qz.bind(null,o),e.ce&&e.ce(o),o}function rS(e){return e.vnode.shapeFlag&4}function wO(e,t=!1,n=!1){t&&yl(t);let{props:i,children:r}=e.vnode,o=rS(e);oO(e,i,o,t),cO(e,r,n||t);let a=o?kO(e,t):void 0;return t&&yl(!1),a}function kO(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zz);let{setup:i}=n;if(i){dn();let r=e.setupContext=i.length>1?_O(e):null,o=$l(e),a=kl(i,e,0,[e.props,r]),s=gb(a);if(pn(),o(),(s||e.sp)&&!ka(e)&&C$(e),s){if(a.then(c$,c$),t)return a.then(l=>{yl(!0);try{u$(e,l,t)}finally{yl(!1)}}).catch(l=>{Rd(l,e,0)});e.asyncDep=a}else u$(e,a,t)}else nS(e,t)}function u$(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=$d(t)),nS(e,n)}function nS(e,t,n){let i=e.type;if(!e.render){if(!t&&d$&&!i.render){let r=i.template||__VUE_OPTIONS_API__&&t0(e).template;if(r){let{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=i,u=bt(bt({isCustomElement:o,delimiters:s},a),l);i.render=d$(r,u)}}e.render=i.render||cr,p$&&p$(e)}if(__VUE_OPTIONS_API__){let r=$l(e);dn();try{Hz(e)}finally{pn(),r()}}}function _O(e){let t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xO),slots:e.slots,emit:e.emit,expose:t}}function Zd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy($d(Pb(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hl)return hl[n](e)},has(t,n){return n in t||n in hl}})):e.proxy}function $O(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function SO(e){return Ie(e)&&"__vccOpts"in e}function iS(e,t,n){try{Ad(-1);let i=arguments.length;return i===2?He(t)&&!xe(t)?bl(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&bl(n)&&(n=[n]),ye(e,t,n))}finally{Ad(1)}}var pr,mn,wa,fi,ya,m$,Td,gl,wz,gn,dl,Vb,_z,w$,$z,Sz,Gt,k$,Tz,Nz,pi,$$,Md,to,zz,Y1,X1,Fb,Oz,S$,Mr,ul,jr,Yb,I$,Dz,T$,zd,rF,nF,ka,Vd,Mn,jz,Pt,O$,Qb,Sa,qr,Mz,Lz,Vz,A$,D$,Zb,hl,jb,Zz,Hb,Wz,qz,xa,Xz,eO,tO,rO,V$,F$,B$,sO,r0,n0,lO,K$,W$,G$,cO,uO,dr,X$,ge,xl,Wt,_a,jn,Ir,vl,eS,Ed,ye,vO,bO,Xt,_l,Pd,yl,$l,c$,wl,d$,p$,xO,P,f$,s0=Y(()=>{Rb();Rb();Qs();Qs();/**
70
+ **/nl=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ht&&(Ht.active?(this.parent=Ht,this.index=(Ht.scopes||(Ht.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){let i=this.scopes.slice();for(t=0,n=i.length;t<n;t++)i[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}let i=this.effects.slice();for(t=0,n=i.length;t<n;t++)i[t].resume()}}run(t){if(this._active){let n=Ht;try{return Ht=this,t()}finally{Ht=n}}}on(){++this._on===1&&(this.prevScope=Ht,Ht=this)}off(){if(this._on>0&&--this._on===0){if(Ht===this)Ht=this.prevScope;else{let t=Ht;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){let r=this.scopes.slice();for(n=0,i=r.length;n<i;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){let r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}};yb=new WeakSet,va=class{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ht&&(Ht.active?Ht.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,yb.has(this)&&(yb.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||R1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,O1(this),U1(this);let t=yt,n=Gr;yt=this,Gr=!0;try{return this.fn()}finally{j1(this),yt=t,Gr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ob(t);this.deps=this.depsTail=void 0,O1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?yb.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xb(this)&&this.run()}get dirty(){return xb(this)}},P1=0;Gr=!0,L1=[];il=0,_b=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},ol=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!yt||!Gr||yt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==yt)n=this.activeLink=new _b(yt,this),yt.deps?(n.prevDep=yt.depsTail,yt.depsTail.nextDep=n,yt.depsTail=n):yt.deps=yt.depsTail=n,V1(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=yt.depsTail,n.nextDep=void 0,yt.depsTail.nextDep=n,yt.depsTail=n,yt.deps===n&&(yt.deps=i)}return n}trigger(t){this.version++,il++,this.notify(t)}notify(t){Cb();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{zb()}}};$b=new WeakMap,Yi=Symbol(""),Sb=Symbol(""),al=Symbol("");tz={__proto__:null,[Symbol.iterator](){return wb(this,Symbol.iterator,e=>ln(this,e))},concat(...e){return ga(this).concat(...e.map(t=>xe(t)?ga(t):t))},entries(){return wb(this,"entries",e=>(e[1]=ln(this,e[1]),e))},every(e,t){return Pn(this,"every",e,t,void 0,arguments)},filter(e,t){return Pn(this,"filter",e,t,n=>n.map(i=>ln(this,i)),arguments)},find(e,t){return Pn(this,"find",e,t,n=>ln(this,n),arguments)},findIndex(e,t){return Pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pn(this,"findLast",e,t,n=>ln(this,n),arguments)},findLastIndex(e,t){return Pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return kb(this,"includes",e)},indexOf(...e){return kb(this,"indexOf",e)},join(e){return ga(this).join(e)},lastIndexOf(...e){return kb(this,"lastIndexOf",e)},map(e,t){return Pn(this,"map",e,t,void 0,arguments)},pop(){return el(this,"pop")},push(...e){return el(this,"push",e)},reduce(e,...t){return A1(this,"reduce",e,t)},reduceRight(e,...t){return A1(this,"reduceRight",e,t)},shift(){return el(this,"shift")},some(e,t){return Pn(this,"some",e,t,void 0,arguments)},splice(...e){return el(this,"splice",e)},toReversed(){return ga(this).toReversed()},toSorted(e){return ga(this).toSorted(e)},toSpliced(...e){return ga(this).toSpliced(...e)},unshift(...e){return el(this,"unshift",e)},values(){return wb(this,"values",e=>ln(this,e))}};rz=Array.prototype;nz=la("__proto__,__v_isRef,__isVue"),F1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(kr));wd=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){if(n==="__v_skip")return t.__v_skip;let r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(r?o?fz:H1:o?Z1:B1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let a=xe(t);if(!r){let l;if(a&&(l=tz[n]))return l;if(n==="hasOwnProperty")return iz}let s=Reflect.get(t,n,jt(t)?t:i);if((kr(n)?F1.has(n):nz(n))||(r||Kt(t,"get",n),o))return s;if(jt(s)){let l=a&&md(n)?s:s.value;return r&&He(l)?xd(l):l}return He(s)?r?xd(s):ll(s):s}},kd=class extends wd{constructor(t=!1){super(!1,t)}set(t,n,i,r){let o=t[n],a=xe(t)&&md(n);if(!this._isShallow){let u=Jr(o);if(!xr(i)&&!Jr(i)&&(o=Fe(o),i=Fe(i)),!a&&jt(o)&&!jt(i))return u||(o.value=i),!0}let s=a?Number(n)<t.length:Ke(t,n),l=Reflect.set(t,n,i,jt(t)?t:r);return t===Fe(r)&&l&&(s?Rr(i,o)&&cn(t,"set",n,i,o):cn(t,"add",n,i)),l}deleteProperty(t,n){let i=Ke(t,n),r=t[n],o=Reflect.deleteProperty(t,n);return o&&i&&cn(t,"delete",n,void 0,r),o}has(t,n){let i=Reflect.has(t,n);return(!kr(n)||!F1.has(n))&&Kt(t,"has",n),i}ownKeys(t){return Kt(t,"iterate",xe(t)?"length":Yi),Reflect.ownKeys(t)}},Ib=class extends wd{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}},oz=new kd,az=new Ib,sz=new kd(!0),Eb=e=>e,vd=e=>Reflect.getPrototypeOf(e);uz={get:Ab(!1,!1)},dz={get:Ab(!1,!0)},pz={get:Ab(!0,!1)},B1=new WeakMap,Z1=new WeakMap,H1=new WeakMap,fz=new WeakMap;Ur=e=>He(e)?ll(e):e,Xi=e=>He(e)?xd(e):e;Tb=class{constructor(t,n){this.dep=new ol,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Fe(t),this._value=n?t:Ur(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){let n=this._rawValue,i=this.__v_isShallow||xr(t)||Jr(t);t=i?t:Fe(t),Rr(t,n)&&(this._rawValue=t,this._value=i?t:Ur(t),this.dep.trigger())}};hz={get:(e,t,n)=>t==="__v_raw"?e:Ce(Reflect.get(e,t,n)),set:(e,t,n,i)=>{let r=e[t];return jt(r)&&!jt(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};Nb=class{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ol(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=il-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&yt!==this)return R1(this,!0),!0}get value(){let t=this.dep.track();return M1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};yd={},_d=new WeakMap});function kl(e,t,n,i){try{return i?e(...i):e()}catch(r){Rd(r,t,n)}}function Er(e,t,n,i){if(Ie(e)){let r=kl(e,t,n,i);return r&&gb(r)&&r.catch(o=>{Rd(o,t,n)}),r}if(xe(e)){let r=[];for(let o=0;o<e.length;o++)r.push(Er(e[o],t,n,i));return r}}function Rd(e,t,n,i=!0){let r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Qe;if(t){let s=t.parent,l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){let d=s.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](e,l,u)===!1)return}s=s.parent}if(o){dn(),kl(o,null,10,[e,l,u]),pn();return}}bz(e,n,r,i,a)}function bz(e,t,n,i=!0,r=!1){if(r)throw e;console.error(e)}function no(e){let t=Td||m$;return e?t.then(this?e.bind(this):e):t}function yz(e){let t=mn+1,n=pr.length;for(;t<n;){let i=t+n>>>1,r=pr[i],o=gl(r);o<e||o===e&&r.flags&2?t=i+1:n=i}return t}function Gb(e){if(!(e.flags&1)){let t=gl(e),n=pr[pr.length-1];!n||!(e.flags&2)&&t>=gl(n)?pr.push(e):pr.splice(yz(t),0,e),e.flags|=1,h$()}}function h$(){Td||(Td=m$.then(b$))}function g$(e){if(!xe(e))fi&&e.id===-1?fi.splice(ya+1,0,e):e.flags&1||(wa.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)wa.push(e[t]);h$()}function q1(e,t,n=mn+1){for(;n<pr.length;n++){let i=pr[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;pr.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function v$(e){if(wa.length){let t=[...new Set(wa)].sort((n,i)=>gl(n)-gl(i));if(wa.length=0,fi){for(let n=0;n<t.length;n++)fi.push(t[n]);return}for(fi=t,ya=0;ya<fi.length;ya++){let n=fi[ya];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}fi=null,ya=0}}function b$(e){let t=cr;try{for(mn=0;mn<pr.length;mn++){let n=pr[mn];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),kl(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;mn<pr.length;mn++){let n=pr[mn];n&&(n.flags&=-2)}mn=-1,pr.length=0,v$(e),Td=null,(pr.length||wa.length)&&b$(e)}}function Ud(e,...t){gn?gn.emit(e,...t):Vb||dl.push({event:e,args:t})}function y$(e,t){var n,i;gn=e,gn?(gn.enabled=!0,dl.forEach(({event:r,args:o})=>gn.emit(r,...o)),dl=[]):typeof window<"u"&&window.HTMLElement&&!((i=(n=window.navigator)==null?void 0:n.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{y$(o,t)}),setTimeout(()=>{gn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Vb=!0,dl=[])},3e3)):(Vb=!0,dl=[])}function kz(e,t){Ud("app:init",e,t,{Fragment:ge,Text:xl,Comment:Wt,Static:_a})}function xz(e){Ud("app:unmount",e)}function Jb(e){return t=>{Ud(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Iz(e,t,n){Ud("component:emit",e.appContext.app,e,t,n)}function Nd(e){let t=Gt;return Gt=e,k$=e&&e.type.__scopeId||null,t}function _t(e,t=Gt,n){if(!t||e._n)return e;let i=(...r)=>{i._d&&Ad(-1);let o=Nd(t),a=jn.length,s;try{s=e(...r)}finally{for(let l=jn.length;l>a;l--)o0();Nd(o),i._d&&Ad(1)}return __VUE_PROD_DEVTOOLS__&&w$(t),s};return i._n=!0,i._c=!0,i._d=!0,i}function jd(e,t){if(Gt===null)return e;let n=Zd(Gt),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,a,s,l=Qe]=t[r];o&&(Ie(o)&&(o={mounted:o,updated:o}),o.deep&&un(a),i.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function Qi(e,t,n,i){let r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){let s=r[a];o&&(s.oldValue=o[a].value);let l=s.dir[i];l&&(dn(),Er(l,n,8,[e.el,s,e,t]),pn())}}function Ez(e,t){if(Xt){let n=Xt.provides,i=Xt.parent&&Xt.parent.provides;i===n&&(n=Xt.provides=Object.create(i)),n[e]=t}}function Id(e,t,n=!1){let i=_l();if(i||xa){let r=xa?xa._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Ie(t)?t.call(i&&i.proxy):t}}function ft(e,t,n){return x$(e,t,n)}function x$(e,t,n=Qe){let{immediate:i,deep:r,flush:o,once:a}=n,s=bt({},n),l=t&&i||!t&&o!=="post",u;if(wl){if(o==="sync"){let m=Nz();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){let m=()=>{};return m.stop=cr,m.resume=cr,m.pause=cr,m}}let d=Xt;s.call=(m,h,v)=>Er(m,d,h,v);let p=!1;o==="post"?s.scheduler=m=>{dr(m,d&&d.suspense)}:o!=="sync"&&(p=!0,s.scheduler=(m,h)=>{h?m():Gb(m)}),s.augmentJob=m=>{t&&(m.flags|=4),p&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};let f=J1(e,t,s);return wl&&(u?u.push(f):l&&f()),f}function Cz(e,t,n){let i=this.proxy,r=pt(e)?e.includes(".")?_$(i,e):()=>i[e]:e.bind(i,i),o;Ie(t)?o=t:(o=t.handler,n=t);let a=$l(this),s=x$(r,o.bind(i),n);return a(),s}function _$(e,t){let n=t.split(".");return()=>{let i=e;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function Sd(e,t,n,{o:{insert:i},m:r},o=2){o===0&&i(e.targetAnchor,t,n);let{el:a,anchor:s,shapeFlag:l,children:u,props:d}=e,p=o===2;if(p&&i(a,t,n),!pi.has(e)&&(!p||to(d))&&l&16)for(let f=0;f<u.length;f++)r(u[f],t,n,2);p&&i(s,t,n)}function Az(e,t,n,i,r,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:d}},p){function f(x,A){let I=A;for(;I;){if(I&&I.nodeType===8){if(I.data==="teleport start anchor")t.targetStart=I;else if(I.data==="teleport anchor"){t.targetAnchor=I,x._lpa=t.targetAnchor&&a(t.targetAnchor);break}}I=a(I)}}function m(x,A){A.anchor=p(a(x),A,s(x),n,i,r,o)}let h=t.target=Fb(t.props,l),v=to(t.props);if(h){let x=h._lpa||h.firstChild;t.shapeFlag&16&&(v?(m(e,t),f(h,x),t.targetAnchor||Bb(h,t,d,u,s(e)===h?e:null)):(t.anchor=a(e),f(h,x),t.targetAnchor||Bb(h,t,d,u),p(x&&a(x),t,h,n,i,r,o))),pl(t,v)}else v&&t.shapeFlag&16&&(m(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}function pl(e,t){let n=e.ctx;if(n&&n.ut){let i,r;for(t?(i=e.el,r=e.anchor):(i=e.targetStart,r=e.targetAnchor);i&&i!==r;)i.nodeType===1&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function Bb(e,t,n,i,r=null){let o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[$$]=a,e&&(i(o,e,r),i(a,e,r)),a}function qb(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pt(()=>{e.isMounted=!0}),Sa(()=>{e.isUnmounting=!0}),e}function E$(e){let t=e[0];if(e.length>1){let n=!1;for(let i of e)if(i.type!==Wt){t=i,n=!0;break}}return t}function N$(e,t){let{leavingVNodes:n}=e,i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function $a(e,t,n,i,r){let{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:f,onLeave:m,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:x,onAppear:A,onAfterAppear:I,onAppearCancelled:E}=t,M=String(e.key),z=N$(n,e),D=(ie,Q)=>{ie&&Er(ie,i,9,Q)},X=(ie,Q)=>{let ae=Q[1];D(ie,Q),xe(ie)?ie.every(ne=>ne.length<=1)&&ae():ie.length<=1&&ae()},le={mode:a,persisted:s,beforeEnter(ie){let Q=l;if(!n.isMounted)if(o)Q=x||l;else return;ie[Mr]&&ie[Mr](!0);let ae=z[M];ae&&ro(e,ae)&&ae.el[Mr]&&ae.el[Mr](),D(Q,[ie])},enter(ie){if(!wz&&z[M]===e)return;let Q=u,ae=d,ne=p;if(!n.isMounted)if(o)Q=A||u,ae=I||d,ne=E||p;else return;let ve=!1;ie[ul]=mt=>{ve||(ve=!0,mt?D(ne,[ie]):D(ae,[ie]),le.delayedLeave&&le.delayedLeave(),ie[ul]=void 0)};let Le=ie[ul].bind(null,!1);Q?X(Q,[ie,Le]):Le()},leave(ie,Q){let ae=String(e.key);if(ie[ul]&&ie[ul](!0),n.isUnmounting)return Q();D(f,[ie]);let ne=!1;ie[Mr]=Le=>{ne||(ne=!0,Q(),Le?D(v,[ie]):D(h,[ie]),ie[Mr]=void 0,z[ae]===e&&delete z[ae])};let ve=ie[Mr].bind(null,!1);z[ae]=e,m?X(m,[ie,ve]):ve()},clone(ie){let Q=$a(ie,t,n,i,r);return r&&r(Q),Q}};return le}function Ub(e){if(Vd(e))return e=hi(e),e.children=null,e}function Cd(e){if(!Vd(e))return Md(e.type)&&e.children?E$(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ie(n.default))return n.default()}}function mi(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;mi(Md(n.type)&&Cd(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ld(e,t=!1,n){let i=[],r=0;for(let o=0;o<e.length;o++){let a=e[o],s=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===ge?(a.patchFlag&128&&r++,i=i.concat(Ld(a.children,t,s))):(t||a.type!==Wt)&&i.push(s!=null?hi(a,{key:s}):a)}if(r>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function Ue(e,t){return Ie(e)?bt({name:e.name},t,{setup:e}):e}function C$(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xb(e){let t=_l(),n=We(null);if(t){let r=t.refs===Qe?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Q1(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}function ml(e,t,n,i,r=!1){if(xe(e)){e.forEach((v,x)=>ml(v,t&&(xe(t)?t[x]:t),n,i,r));return}if(ka(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&ml(e,t,n,i.component.subTree);return}let o=i.shapeFlag&4?Zd(i.component):i.el,a=r?null:o,{i:s,r:l}=e,u=t&&t.r,d=s.refs===Qe?s.refs={}:s.refs,p=s.setupState,f=Fe(p),m=p===Qe?hb:v=>Q1(d,v)?!1:Ke(f,v),h=(v,x)=>!(x&&Q1(d,x));if(u!=null&&u!==l){if(e$(t),pt(u))d[u]=null,m(u)&&(p[u]=null);else if(jt(u)){let v=t;h(u,v.k)&&(u.value=null),v.k&&(d[v.k]=null)}}if(Ie(l))kl(l,s,12,[a,d]);else{let v=pt(l),x=jt(l);if(v||x){let A=()=>{if(e.f){let I=v?m(l)?p[l]:d[l]:h(l)||!e.k?l.value:d[e.k];if(r)xe(I)&&Js(I,o);else if(xe(I))I.includes(o)||I.push(o);else if(v)d[l]=[o],m(l)&&(p[l]=d[l]);else{let E=[o];h(l,e.k)&&(l.value=E),e.k&&(d[e.k]=E)}}else v?(d[l]=a,m(l)&&(p[l]=a)):x&&(h(l,e.k)&&(l.value=a),e.k&&(d[e.k]=a))};if(a){let I=()=>{A(),zd.delete(e)};I.id=-1,zd.set(e,I),dr(I,n)}else e$(e),A()}}}function e$(e){let t=zd.get(e);t&&(t.flags|=8,zd.delete(e))}function Pz(e,t){z$(e,"a",t)}function Rz(e,t){z$(e,"da",t)}function z$(e,t,n=Xt){let i=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Fd(t,i,n),n){let r=n.parent;for(;r&&r.parent;)Vd(r.parent.vnode)&&Uz(i,t,n,r),r=r.parent}}function Uz(e,t,n,i){let r=Fd(t,e,i,!0);qr(()=>{Js(i[t],r)},n)}function Fd(e,t,n=Xt,i=!1){if(n){let r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{dn();let s=$l(n),l=Er(t,n,e,a);return s(),pn(),l});return i?r.unshift(o):r.push(o),o}}function Fz(e,t=Xt){Fd("ec",e,t)}function P$(e){return pt(e)?Bz(A$,e,!1)||e:e||D$}function Bz(e,t,n=!0,i=!1){let r=Gt||Xt;if(r){let o=r.type;if(e===A$){let s=$O(o,!1);if(s&&(s===t||s===Dt(t)||s===Ji(Dt(t))))return o}let a=t$(r[e]||o[e],t)||t$(r.appContext[e],t);return!a&&i?o:a}}function t$(e,t){return e&&(e[t]||e[Dt(t)]||e[Ji(Dt(t))])}function st(e,t,n,i){let r,o=n&&n[i],a=xe(e);if(a||pt(e)){let s=a&&Rn(e),l=!1,u=!1;s&&(l=!xr(e),u=Jr(e),e=sl(e)),r=new Array(e.length);for(let d=0,p=e.length;d<p;d++)r[d]=t(l?u?Xi(Ur(e[d])):Ur(e[d]):e[d],d,void 0,o&&o[d])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,o&&o[s])}else if(He(e))if(e[Symbol.iterator])r=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{let s=Object.keys(e);r=new Array(s.length);for(let l=0,u=s.length;l<u;l++){let d=s[l];r[l]=t(e[d],d,l,o&&o[l])}}else r=[];return n&&(n[i]=r),r}function e0(e,t){for(let n=0;n<t.length;n++){let i=t[n];if(xe(i))for(let r=0;r<i.length;r++)e[i[r].name]=i[r].fn;else i&&(e[i.name]=i.key?(...r)=>{let o=i.fn(...r);return o&&(o.key=i.key),o}:i.fn)}return e}function fr(e,t,n,i,r,o){if(n==null&&(n={}),Gt.ce||Gt.parent&&ka(Gt.parent)&&Gt.parent.ce){let u=o!=null&&n.key==null?bt({},n,{key:o}):n,d=Object.keys(u).length>0;return t!=="default"&&(u.name=t),w(),Ge(ge,null,[ye("slot",u,i&&i())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1);let s=jn.length;w();let l;try{let u=a&&R$(a(n)),d=n.key||o||u&&u.key;l=Ge(ge,{key:(d&&!kr(d)?d:`_${t}`)+(!u&&i?"_fb":"")},u||(i?i():[]),u&&e._===1?64:-2)}catch(u){for(let d=jn.length;d>s;d--)o0();throw u}finally{a&&a._c&&(a._d=!0)}return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function R$(e){return e.some(t=>bl(t)?!(t.type===Wt||t.type===ge&&!R$(t.children)):!0)?e:null}function r$(e){return xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Hz(e){let t=t0(e),n=e.proxy,i=e.ctx;Hb=!1,t.beforeCreate&&n$(t.beforeCreate,e,"bc");let{data:r,computed:o,methods:a,watch:s,provide:l,inject:u,created:d,beforeMount:p,mounted:f,beforeUpdate:m,updated:h,activated:v,deactivated:x,beforeDestroy:A,beforeUnmount:I,destroyed:E,unmounted:M,render:z,renderTracked:D,renderTriggered:X,errorCaptured:le,serverPrefetch:ie,expose:Q,inheritAttrs:ae,components:ne,directives:ve,filters:Le}=t;if(u&&Kz(u,i,null),a)for(let je in a){let Me=a[je];Ie(Me)&&(i[je]=Me.bind(n))}if(r){let je=r.call(n,n);He(je)&&(e.data=ll(je))}if(Hb=!0,o)for(let je in o){let Me=o[je],Rt=Ie(Me)?Me.bind(n,n):Ie(Me.get)?Me.get.bind(n,n):cr,Je=!Ie(Me)&&Ie(Me.set)?Me.set.bind(n):cr,Cr=P({get:Rt,set:Je});Object.defineProperty(i,je,{enumerable:!0,configurable:!0,get:()=>Cr.value,set:wt=>Cr.value=wt})}if(s)for(let je in s)U$(s[je],i,n,je);if(l){let je=Ie(l)?l.call(n):l;Reflect.ownKeys(je).forEach(Me=>{Ez(Me,je[Me])})}d&&n$(d,e,"c");function ht(je,Me){xe(Me)?Me.forEach(Rt=>je(Rt.bind(n))):Me&&je(Me.bind(n))}if(ht(jz,p),ht(Pt,f),ht(O$,m),ht(Qb,h),ht(Pz,v),ht(Rz,x),ht(Fz,le),ht(Vz,D),ht(Lz,X),ht(Sa,I),ht(qr,M),ht(Mz,ie),xe(Q))if(Q.length){let je=e.exposed||(e.exposed={});Q.forEach(Me=>{Object.defineProperty(je,Me,{get:()=>n[Me],set:Rt=>n[Me]=Rt,enumerable:!0})})}else e.exposed||(e.exposed={});z&&e.render===cr&&(e.render=z),ae!=null&&(e.inheritAttrs=ae),ne&&(e.components=ne),ve&&(e.directives=ve),ie&&C$(e)}function Kz(e,t,n=cr){xe(e)&&(e=Kb(e));for(let i in e){let r=e[i],o;He(r)?"default"in r?o=Id(r.from||i,r.default,!0):o=Id(r.from||i):o=Id(r),jt(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[i]=o}}function n$(e,t,n){Er(xe(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function U$(e,t,n,i){let r=i.includes(".")?_$(n,i):()=>n[i];if(pt(e)){let o=t[e];Ie(o)&&ft(r,o)}else if(Ie(e))ft(r,e.bind(n));else if(He(e))if(xe(e))e.forEach(o=>U$(o,t,n,i));else{let o=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(o)&&ft(r,o,e)}}function t0(e){let t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t),l;return s?l=s:!r.length&&!n&&!i?l=t:(l={},r.length&&r.forEach(u=>Od(l,u,a,!0)),Od(l,t,a)),He(t)&&o.set(t,l),l}function Od(e,t,n,i=!1){let{mixins:r,extends:o}=t;o&&Od(e,o,n,!0),r&&r.forEach(a=>Od(e,a,n,!0));for(let a in t)if(!(i&&a==="expose")){let s=Wz[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}function i$(e,t){return t?e?function(){return bt(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function Gz(e,t){return fl(Kb(e),Kb(t))}function Kb(e){if(xe(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ur(e,t){return e?[...new Set([].concat(e,t))]:t}function fl(e,t){return e?bt(Object.create(null),e,t):t}function o$(e,t){return e?xe(e)&&xe(t)?[...new Set([...e,...t])]:bt(Object.create(null),r$(e),r$(t??{})):t}function Jz(e,t){if(!e)return t;if(!t)return e;let n=bt(Object.create(null),e);for(let i in t)n[i]=ur(e[i],t[i]);return n}function j$(){return{app:null,config:{isNativeTag:hb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}function Yz(e,t){return function(i,r=null){Ie(i)||(i=bt({},i)),r!=null&&!He(r)&&(r=null);let o=j$(),a=new WeakSet,s=[],l=!1,u=o.app={_uid:qz++,_component:i,_props:r,_container:null,_context:o,_instance:null,version:f$,get config(){return o.config},set config(d){},use(d,...p){return a.has(d)||(d&&Ie(d.install)?(a.add(d),d.install(u,...p)):Ie(d)&&(a.add(d),d(u,...p))),u},mixin(d){return __VUE_OPTIONS_API__&&(o.mixins.includes(d)||o.mixins.push(d)),u},component(d,p){return p?(o.components[d]=p,u):o.components[d]},directive(d,p){return p?(o.directives[d]=p,u):o.directives[d]},mount(d,p,f){if(!l){let m=u._ceVNode||ye(i,r);return m.appContext=o,f===!0?f="svg":f===!1&&(f=void 0),p&&t?t(m,d):e(m,d,f),l=!0,u._container=d,d.__vue_app__=u,__VUE_PROD_DEVTOOLS__&&(u._instance=m.component,kz(u,f$)),Zd(m.component)}},onUnmount(d){s.push(d)},unmount(){l&&(Er(s,u._instance,16),e(null,u._container),__VUE_PROD_DEVTOOLS__&&(u._instance=null,xz(u)),delete u._container.__vue_app__)},provide(d,p){return o.provides[d]=p,u},runWithContext(d){let p=xa;xa=u;try{return d()}finally{xa=p}}};return u}}function Qz(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||Qe,r=n,o=t.startsWith("update:"),a=o&&Xz(i,t.slice(7));a&&(a.trim&&(r=n.map(d=>pt(d)?d.trim():d)),a.number&&(r=r.map(Xs))),__VUE_PROD_DEVTOOLS__&&Iz(e,t,r);let s,l=i[s=Ys(t)]||i[s=Ys(Dt(t))];!l&&o&&(l=i[s=Ys(sn(t))]),l&&Er(l,e,6,r);let u=i[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Er(u,e,6,r)}}function M$(e,t,n=!1){let i=__VUE_OPTIONS_API__&&n?eO:t.emitsCache,r=i.get(e);if(r!==void 0)return r;let o=e.emits,a={},s=!1;if(__VUE_OPTIONS_API__&&!Ie(e)){let l=u=>{let d=M$(u,t,!0);d&&(s=!0,bt(a,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(He(e)&&i.set(e,null),null):(xe(o)?o.forEach(l=>a[l]=null):bt(a,o),He(e)&&i.set(e,a),a)}function Bd(e,t){return!e||!ca(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ke(e,t[0].toLowerCase()+t.slice(1))||Ke(e,sn(t))||Ke(e,t))}function Mb(e){let{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:d,props:p,data:f,setupState:m,ctx:h,inheritAttrs:v}=e,x=Nd(e),A,I;try{if(n.shapeFlag&4){let z=r||i,D=z;A=hn(u.call(D,z,d,p,m,f,h)),I=s}else{let z=t;A=hn(z.length>1?z(p,{attrs:s,slots:a,emit:l}):z(p,null)),I=t.props?s:tO(s)}}catch(z){jn.length=0,Rd(z,e,1),A=ye(Wt)}let E=A,M;if(I&&v!==!1){let z=Object.keys(I),{shapeFlag:D}=E;z.length&&D&7&&(o&&z.some(ua)&&(I=rO(I,o)),E=hi(E,I,!1,!0))}if(n.dirs&&(E=hi(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition){let z=Md(E.type)&&Cd(E)||E;mi(z,n.transition)}return A=E,Nd(x),A}function nO(e,t,n){let{props:i,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?a$(i,a,u):!!a;if(l&8){let d=t.dynamicProps;for(let p=0;p<d.length;p++){let f=d[p];if(L$(a,i,f)&&!Bd(u,f))return!0}}}else return(r||s)&&(!s||!s.$stable)?!0:i===a?!1:i?a?a$(i,a,u):!0:!!a;return!1}function a$(e,t,n){let i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){let o=i[r];if(L$(t,e,o)&&!Bd(n,o))return!0}return!1}function L$(e,t,n){let i=e[n],r=t[n];return n==="style"&&He(i)&&He(r)?!ha(i,r):i!==r}function iO({vnode:e,parent:t,suspense:n},i){for(;t;){let r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=i,e=r),r===e)(e=t.vnode).el=i,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=i)}function oO(e,t,n,i=!1){let r={},o=F$();e.propsDefaults=Object.create(null),Z$(e,t,r,o);for(let a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=i?r:ba(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function aO(e,t,n,i){let{props:r,attrs:o,vnode:{patchFlag:a}}=e,s=Fe(r),[l]=e.propsOptions,u=!1;if((i||a>0)&&!(a&16)){if(a&8){let d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let f=d[p];if(Bd(e.emitsOptions,f))continue;let m=t[f];if(l)if(Ke(o,f))m!==o[f]&&(o[f]=m,u=!0);else{let h=Dt(f);r[h]=Wb(l,s,h,m,e,!1)}else m!==o[f]&&(o[f]=m,u=!0)}}}else{Z$(e,t,r,o)&&(u=!0);let d;for(let p in s)(!t||!Ke(t,p)&&((d=sn(p))===p||!Ke(t,d)))&&(l?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Wb(l,s,p,void 0,e,!0)):delete r[p]);if(o!==s)for(let p in o)(!t||!Ke(t,p))&&(delete o[p],u=!0)}u&&cn(e.attrs,"set","")}function Z$(e,t,n,i){let[r,o]=e.propsOptions,a=!1,s;if(t)for(let l in t){if(da(l))continue;let u=t[l],d;r&&Ke(r,d=Dt(l))?!o||!o.includes(d)?n[d]=u:(s||(s={}))[d]=u:Bd(e.emitsOptions,l)||(!(l in i)||u!==i[l])&&(i[l]=u,a=!0)}if(o){let l=Fe(n),u=s||Qe;for(let d=0;d<o.length;d++){let p=o[d];n[p]=Wb(r,l,p,u[p],e,!Ke(u,p))}}return a}function Wb(e,t,n,i,r,o){let a=e[n];if(a!=null){let s=Ke(a,"default");if(s&&i===void 0){let l=a.default;if(a.type!==Function&&!a.skipFactory&&Ie(l)){let{propsDefaults:u}=r;if(n in u)i=u[n];else{let d=$l(r);i=u[n]=l.call(null,t),d()}}else i=l;r.ce&&r.ce._setProp(n,i)}a[0]&&(o&&!s?i=!1:a[1]&&(i===""||i===sn(n))&&(i=!0))}return i}function H$(e,t,n=!1){let i=__VUE_OPTIONS_API__&&n?sO:t.propsCache,r=i.get(e);if(r)return r;let o=e.props,a={},s=[],l=!1;if(__VUE_OPTIONS_API__&&!Ie(e)){let d=p=>{l=!0;let[f,m]=H$(p,t,!0);bt(a,f),m&&s.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return He(e)&&i.set(e,Gi),Gi;if(xe(o))for(let d=0;d<o.length;d++){let p=Dt(o[d]);s$(p)&&(a[p]=Qe)}else if(o)for(let d in o){let p=Dt(d);if(s$(p)){let f=o[d],m=a[p]=xe(f)||Ie(f)?{type:f}:bt({},f),h=m.type,v=!1,x=!0;if(xe(h))for(let A=0;A<h.length;++A){let I=h[A],E=Ie(I)&&I.name;if(E==="Boolean"){v=!0;break}else E==="String"&&(x=!1)}else v=Ie(h)&&h.name==="Boolean";m[0]=v,m[1]=x,(v||Ke(m,"default"))&&s.push(p)}}let u=[a,s];return He(e)&&i.set(e,u),u}function s$(e){return e[0]!=="$"&&!da(e)}function dO(){let e=[];typeof __VUE_OPTIONS_API__!="boolean"&&(di().__VUE_OPTIONS_API__=!0),typeof __VUE_PROD_DEVTOOLS__!="boolean"&&(di().__VUE_PROD_DEVTOOLS__=!1),typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(di().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}function J$(e){return pO(e)}function pO(e,t){dO();let n=di();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&y$(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);let{insert:i,remove:r,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:d,parentNode:p,nextSibling:f,setScopeId:m=cr,insertStaticContent:h}=e,v=(b,S,L,J=null,$=null,T=null,y=void 0,R=null,O=!!S.dynamicChildren)=>{if(b===S)return;b&&!ro(b,S)&&(J=Ft(b),xt(b,$,T,!0),b=null),S.patchFlag===-2&&(O=!1,S.dynamicChildren=null);let{type:U,ref:se,shapeFlag:te}=S;switch(U){case xl:x(b,S,L,J);break;case Wt:A(b,S,L,J);break;case _a:b==null&&I(S,L,J,y);break;case ge:ve(b,S,L,J,$,T,y,R,O);break;default:te&1?D(b,S,L,J,$,T,y,R,O):te&6?Le(b,S,L,J,$,T,y,R,O):(te&64||te&128)&&U.process(b,S,L,J,$,T,y,R,O,tr)}se!=null&&$?ml(se,b&&b.ref,T,S||b,!S):se==null&&b&&b.ref!=null&&ml(b.ref,null,T,b,!0)},x=(b,S,L,J)=>{if(b==null)i(S.el=s(S.children),L,J);else{let $=S.el=b.el;S.children!==b.children&&u($,S.children)}},A=(b,S,L,J)=>{b==null?i(S.el=l(S.children||""),L,J):S.el=b.el},I=(b,S,L,J)=>{[b.el,b.anchor]=h(b.children,S,L,J,b.el,b.anchor)},E=(b,S,L,J)=>{if(S.children!==b.children){let $=f(b.anchor);z(b),[S.el,S.anchor]=h(S.children,L,$,J)}else S.el=b.el,S.anchor=b.anchor},M=({el:b,anchor:S},L,J)=>{let $;for(;b&&b!==S;)$=f(b),i(b,L,J),b=$;i(S,L,J)},z=({el:b,anchor:S})=>{let L;for(;b&&b!==S;)L=f(b),r(b),b=L;r(S)},D=(b,S,L,J,$,T,y,R,O)=>{if(S.type==="svg"?y="svg":S.type==="math"&&(y="mathml"),b==null)X(S,L,J,$,T,y,R,O);else{let U=b.el&&b.el._isVueCE?b.el:null;try{U&&U._beginPatch(),Q(b,S,$,T,y,R,O)}finally{U&&U._endPatch()}}},X=(b,S,L,J,$,T,y,R)=>{let O,U,{props:se,shapeFlag:te,transition:pe,dirs:he}=b;if(O=b.el=a(b.type,T,se&&se.is,se),te&8?d(O,b.children):te&16&&ie(b.children,O,null,J,$,Lb(b,T),y,R),he&&Qi(b,null,J,"created"),le(O,b,b.scopeId,y,J),se){for(let Te in se)Te!=="value"&&!da(Te)&&o(O,Te,null,se[Te],T,J);"value"in se&&o(O,"value",null,se.value,T),(U=se.onVnodeBeforeMount)&&fn(U,J,b)}__VUE_PROD_DEVTOOLS__&&(fa(O,"__vnode",b,!0),fa(O,"__vueParentComponent",J,!0)),he&&Qi(b,null,J,"beforeMount");let $e=fO($,pe);$e&&pe.beforeEnter(O),i(O,S,L),((U=se&&se.onVnodeMounted)||$e||he)&&dr(()=>{let Ne;U&&fn(U,J,b),$e&&pe.enter(O),he&&Qi(b,null,J,"mounted")},$)},le=(b,S,L,J,$)=>{if(L&&m(b,L),J)for(let T=0;T<J.length;T++)m(b,J[T]);if($){let T=$.subTree;if(S===T||X$(T.type)&&(T.ssContent===S||T.ssFallback===S)){let y=$.vnode;le(b,y,y.scopeId,y.slotScopeIds,$.parent)}}},ie=(b,S,L,J,$,T,y,R,O=0)=>{for(let U=O;U<b.length;U++){let se=b[U]=R?Un(b[U]):hn(b[U]);v(null,se,S,L,J,$,T,y,R)}},Q=(b,S,L,J,$,T,y)=>{let R=S.el=b.el;__VUE_PROD_DEVTOOLS__&&(R.__vnode=S);let{patchFlag:O,dynamicChildren:U,dirs:se}=S;O|=b.patchFlag&16;let te=b.props||Qe,pe=S.props||Qe,he;if(L&&eo(L,!1),(he=pe.onVnodeBeforeUpdate)&&fn(he,L,S,b),se&&Qi(S,b,L,"beforeUpdate"),L&&eo(L,!0),U&&(!b.dynamicChildren||b.dynamicChildren.length!==U.length)&&(O=0,y=!1,U=null),(te.innerHTML&&pe.innerHTML==null||te.textContent&&pe.textContent==null)&&d(R,""),U?ae(b.dynamicChildren,U,R,L,J,Lb(S,$),T):y||Rt(b,S,R,null,L,J,Lb(S,$),T,!1),O>0){if(O&16)ne(R,te,pe,L,$);else if(O&2&&te.class!==pe.class&&o(R,"class",null,pe.class,$),O&4&&o(R,"style",te.style,pe.style,$),O&8){let $e=S.dynamicProps;for(let Te=0;Te<$e.length;Te++){let Ne=$e[Te],qe=te[Ne],Xe=pe[Ne];(Xe!==qe||Ne==="value")&&o(R,Ne,qe,Xe,$,L)}}O&1&&b.children!==S.children&&d(R,S.children)}else!y&&U==null&&ne(R,te,pe,L,$);((he=pe.onVnodeUpdated)||se)&&dr(()=>{he&&fn(he,L,S,b),se&&Qi(S,b,L,"updated")},J)},ae=(b,S,L,J,$,T,y)=>{for(let R=0;R<S.length;R++){let O=b[R],U=S[R],se=O.el&&(O.type===ge||!ro(O,U)||O.shapeFlag&198)?p(O.el):L;v(O,U,se,null,J,$,T,y,!0)}},ne=(b,S,L,J,$)=>{if(S!==L){if(S!==Qe)for(let T in S)!da(T)&&!(T in L)&&o(b,T,S[T],null,$,J);for(let T in L){if(da(T))continue;let y=L[T],R=S[T];y!==R&&T!=="value"&&o(b,T,R,y,$,J)}"value"in L&&o(b,"value",S.value,L.value,$)}},ve=(b,S,L,J,$,T,y,R,O)=>{let U=S.el=b?b.el:s(""),se=S.anchor=b?b.anchor:s(""),{patchFlag:te,dynamicChildren:pe,slotScopeIds:he}=S;he&&(R=R?R.concat(he):he),b==null?(i(U,L,J),i(se,L,J),ie(S.children||[],L,se,$,T,y,R,O)):te>0&&te&64&&pe&&b.dynamicChildren&&b.dynamicChildren.length===pe.length?(ae(b.dynamicChildren,pe,L,$,T,y,R),(S.key!=null||$&&S===$.subTree)&&i0(b,S,!0)):Rt(b,S,L,se,$,T,y,R,O)},Le=(b,S,L,J,$,T,y,R,O)=>{S.slotScopeIds=R,b==null?S.shapeFlag&512?$.ctx.activate(S,L,J,y,O):mt(S,L,J,$,T,y,O):ht(b,S,O)},mt=(b,S,L,J,$,T,y)=>{let R=b.component=yO(b,J,$);if(Vd(b)&&(R.ctx.renderer=tr),wO(R,!1,y),R.asyncDep){if($&&$.registerDep(R,je,y),!b.el){let O=R.subTree=ye(Wt);A(null,O,S,L),b.placeholder=O.el}}else je(R,b,S,L,$,T,y)},ht=(b,S,L)=>{let J=S.component=b.component;if(nO(b,S,L))if(J.asyncDep&&!J.asyncResolved){Me(J,S,L);return}else J.next=S,J.update();else S.el=b.el,J.vnode=S},je=(b,S,L,J,$,T,y)=>{let R=()=>{if(b.isMounted){let{next:te,bu:pe,u:he,parent:$e,vnode:Te}=b;{let St=q$(b);if(St){te&&(te.el=Te.el,Me(b,te,y)),St.asyncDep.then(()=>{dr(()=>{b.isUnmounted||U()},$)});return}}let Ne=te,qe;eo(b,!1),te?(te.el=Te.el,Me(b,te,y)):te=Te,pe&&pa(pe),(qe=te.props&&te.props.onVnodeBeforeUpdate)&&fn(qe,$e,te,Te),eo(b,!0);let Xe=Mb(b),zt=b.subTree;b.subTree=Xe,v(zt,Xe,p(zt.el),Ft(zt),b,$,T),te.el=Xe.el,Ne===null&&iO(b,Xe.el),he&&dr(he,$),(qe=te.props&&te.props.onVnodeUpdated)&&dr(()=>fn(qe,$e,te,Te),$),__VUE_PROD_DEVTOOLS__&&w$(b)}else{let te,{el:pe,props:he}=S,{bm:$e,m:Te,parent:Ne,root:qe,type:Xe}=b,zt=ka(S);if(eo(b,!1),$e&&pa($e),!zt&&(te=he&&he.onVnodeBeforeMount)&&fn(te,Ne,S),eo(b,!0),pe&&zr){let St=()=>{b.subTree=Mb(b),zr(pe,b.subTree,b,$,null)};zt&&Xe.__asyncHydrate?Xe.__asyncHydrate(pe,b,St):St()}else{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Xe,b.parent?b.parent.type:void 0);let St=b.subTree=Mb(b);v(null,St,L,J,b,$,T),S.el=St.el}if(Te&&dr(Te,$),!zt&&(te=he&&he.onVnodeMounted)){let St=S;dr(()=>fn(te,Ne,St),$)}(S.shapeFlag&256||Ne&&ka(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&b.a&&dr(b.a,$),b.isMounted=!0,__VUE_PROD_DEVTOOLS__&&_z(b),S=L=J=null}};b.scope.on();let O=b.effect=new va(R);b.scope.off();let U=b.update=O.run.bind(O),se=b.job=O.runIfDirty.bind(O);se.i=b,se.id=b.uid,O.scheduler=()=>Gb(se),eo(b,!0),U()},Me=(b,S,L)=>{S.component=b;let J=b.vnode.props;b.vnode=S,b.next=null,aO(b,S.props,J,L),uO(b,S.children,L),dn(),q1(b),pn()},Rt=(b,S,L,J,$,T,y,R,O=!1)=>{let U=b&&b.children,se=b?b.shapeFlag:0,te=S.children,{patchFlag:pe,shapeFlag:he}=S;if(pe>0){if(pe&128){Cr(U,te,L,J,$,T,y,R,O);return}else if(pe&256){Je(U,te,L,J,$,T,y,R,O);return}}he&8?(se&16&&Nt(U,$,T),te!==U&&d(L,te)):se&16?he&16?Cr(U,te,L,J,$,T,y,R,O):Nt(U,$,T,!0):(se&8&&d(L,""),he&16&&ie(te,L,J,$,T,y,R,O))},Je=(b,S,L,J,$,T,y,R,O)=>{b=b||Gi,S=S||Gi;let U=b.length,se=S.length,te=Math.min(U,se),pe;for(pe=0;pe<te;pe++){let he=S[pe]=O?Un(S[pe]):hn(S[pe]);v(b[pe],he,L,null,$,T,y,R,O)}U>se?Nt(b,$,T,!0,!1,te):ie(S,L,J,$,T,y,R,O,te)},Cr=(b,S,L,J,$,T,y,R,O)=>{let U=0,se=S.length,te=b.length-1,pe=se-1;for(;U<=te&&U<=pe;){let he=b[U],$e=S[U]=O?Un(S[U]):hn(S[U]);if(ro(he,$e))v(he,$e,L,null,$,T,y,R,O);else break;U++}for(;U<=te&&U<=pe;){let he=b[te],$e=S[pe]=O?Un(S[pe]):hn(S[pe]);if(ro(he,$e))v(he,$e,L,null,$,T,y,R,O);else break;te--,pe--}if(U>te){if(U<=pe){let he=pe+1,$e=he<se?S[he].el:J;for(;U<=pe;)v(null,S[U]=O?Un(S[U]):hn(S[U]),L,$e,$,T,y,R,O),U++}}else if(U>pe)for(;U<=te;)xt(b[U],$,T,!0),U++;else{let he=U,$e=U,Te=new Map;for(U=$e;U<=pe;U++){let ct=S[U]=O?Un(S[U]):hn(S[U]);ct.key!=null&&Te.set(ct.key,U)}let Ne,qe=0,Xe=pe-$e+1,zt=!1,St=0,rr=new Array(Xe);for(U=0;U<Xe;U++)rr[U]=0;for(U=he;U<=te;U++){let ct=b[U];if(qe>=Xe){xt(ct,$,T,!0);continue}let it;if(ct.key!=null)it=Te.get(ct.key);else for(Ne=$e;Ne<=pe;Ne++)if(rr[Ne-$e]===0&&ro(ct,S[Ne])){it=Ne;break}it===void 0?xt(ct,$,T,!0):(rr[it-$e]=U+1,it>=St?St=it:zt=!0,v(ct,S[it],L,null,$,T,y,R,O),qe++)}let be=zt?mO(rr):Gi;for(Ne=be.length-1,U=Xe-1;U>=0;U--){let ct=$e+U,it=S[ct],$n=S[ct+1],Sn=ct+1<se?$n.el||Y$($n):J;rr[U]===0?v(null,it,L,Sn,$,T,y,R,O):zt&&(Ne<0||U!==be[Ne]?wt(it,L,Sn,2):Ne--)}}},wt=(b,S,L,J,$=null)=>{let{el:T,type:y,transition:R,children:O,shapeFlag:U}=b;if(U&6){wt(b.component.subTree,S,L,J);return}if(U&128){b.suspense.move(S,L,J);return}if(U&64){y.move(b,S,L,tr);return}if(y===ge){i(T,S,L);for(let te=0;te<O.length;te++)wt(O[te],S,L,J);i(b.anchor,S,L);return}if(y===_a){M(b,S,L);return}if(J!==2&&U&1&&R)if(J===0)R.persisted&&!T[Mr]?i(T,S,L):(R.beforeEnter(T),i(T,S,L),dr(()=>R.enter(T),$));else{let{leave:te,delayLeave:pe,afterLeave:he}=R,$e=()=>{b.ctx.isUnmounted?r(T):i(T,S,L)},Te=()=>{let Ne=T._isLeaving||!!T[Mr];T._isLeaving&&T[Mr](!0),R.persisted&&!Ne?$e():te(T,()=>{$e(),he&&he()})};pe?pe(T,$e,Te):Te()}else i(T,S,L)},xt=(b,S,L,J=!1,$=!1)=>{let{type:T,props:y,ref:R,children:O,dynamicChildren:U,shapeFlag:se,patchFlag:te,dirs:pe,cacheIndex:he,memo:$e}=b;if(te===-2&&($=!1),R!=null&&(dn(),ml(R,null,L,b,!0),pn()),he!=null&&(S.renderCache[he]=void 0),se&256){S.ctx.deactivate(b);return}let Te=se&1&&pe,Ne=!ka(b),qe;if(Ne&&(qe=y&&y.onVnodeBeforeUnmount)&&fn(qe,S,b),se&6)Wn(b.component,L,J);else{if(se&128){b.suspense.unmount(L,J);return}Te&&Qi(b,null,S,"beforeUnmount"),se&64?b.type.remove(b,S,L,tr,J):U&&!U.hasOnce&&(T!==ge||te>0&&te&64)?Nt(U,S,L,!1,!0):(T===ge&&te&384||!$&&se&16)&&Nt(O,S,L),J&&Fr(b)}let Xe=$e!=null&&he==null;(Ne&&(qe=y&&y.onVnodeUnmounted)||Te||Xe)&&dr(()=>{qe&&fn(qe,S,b),Te&&Qi(b,null,S,"unmounted"),Xe&&(b.el=null)},L)},Fr=b=>{let{type:S,el:L,anchor:J,transition:$}=b;if(S===ge){Tt(L,J);return}if(S===_a){z(b);return}let T=()=>{r(L),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(b.shapeFlag&1&&$&&!$.persisted){let{leave:y,delayLeave:R}=$,O=()=>y(L,T);R?R(b.el,T,O):O()}else T()},Tt=(b,S)=>{let L;for(;b!==S;)L=f(b),r(b),b=L;r(S)},Wn=(b,S,L)=>{let{bum:J,scope:$,job:T,subTree:y,um:R,m:O,a:U}=b;l$(O),l$(U),J&&pa(J),$.stop(),T&&(T.flags|=8,xt(y,b,S,L)),R&&dr(R,S),dr(()=>{b.isUnmounted=!0},S),__VUE_PROD_DEVTOOLS__&&Sz(b)},Nt=(b,S,L,J=!1,$=!1,T=0)=>{for(let y=T;y<b.length;y++)xt(b[y],S,L,J,$)},Ft=b=>{if(b.shapeFlag&6)return Ft(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();let S=f(b.anchor||b.el),L=S&&S[$$];return L?f(L):S},er=!1,Ye=(b,S,L)=>{let J;b==null?S._vnode&&(xt(S._vnode,null,null,!0),J=S._vnode.component):v(S._vnode||null,b,S,null,null,null,L),S._vnode=b,er||(er=!0,q1(J),v$(),er=!1)},tr={p:v,um:xt,m:wt,r:Fr,mt,mc:ie,pc:Rt,pbc:ae,n:Ft,o:e},Ve,zr;return t&&([Ve,zr]=t(tr)),{render:Ye,hydrate:Ve,createApp:Yz(Ye,Ve)}}function Lb({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function eo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function i0(e,t,n=!1){let i=e.children,r=t.children;if(xe(i)&&xe(r))for(let o=0;o<i.length;o++){let a=i[o],s=r[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=r[o]=Un(r[o]),s.el=a.el),!n&&s.patchFlag!==-2&&i0(a,s)),s.type===xl&&(s.patchFlag===-1&&(s=r[o]=Un(s)),s.el=a.el),s.type===Wt&&!s.el&&(s.el=a.el)}}function mO(e){let t=e.slice(),n=[0],i,r,o,a,s,l=e.length;for(i=0;i<l;i++){let u=e[i];if(u!==0){if(r=n[n.length-1],e[r]<u){t[i]=r,n.push(i);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<u?o=s+1:a=s;u<e[n[o]]&&(o>0&&(t[i]=n[o-1]),n[o]=i)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function q$(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:q$(t)}function l$(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Y$(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Y$(t.subTree):null}function hO(e,t){t&&t.pendingBranch?xe(e)?t.effects.push(...e):t.effects.push(e):g$(e)}function w(e=!1){jn.push(Ir=e?null:[])}function o0(){jn.pop(),Ir=jn[jn.length-1]||null}function Ad(e,t=!1){vl+=e,e<0&&Ir&&t&&(Ir.hasOnce=!0)}function Q$(e){return e.dynamicChildren=vl>0?Ir||Gi:null,o0(),vl>0&&Ir&&Ir.push(e),e}function _(e,t,n,i,r,o){return Q$(k(e,t,n,i,r,o,!0))}function Ge(e,t,n,i,r){return Q$(ye(e,t,n,i,r,!0))}function bl(e){return e?e.__v_isVNode===!0:!1}function ro(e,t){return e.type===t.type&&e.key===t.key}function k(e,t=null,n=null,i=0,r=null,o=e===ge?0:1,a=!1,s=!1){let l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&eS(t),ref:t&&Ed(t),scopeId:k$,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Gt};return s?(Dd(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=pt(n)?8:16),vl>0&&!a&&Ir&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ir.push(l),l}function gO(e,t=null,n=null,i=0,r=null,o=!1){if((!e||e===D$)&&(e=Wt),bl(e)){let s=hi(e,t,!0);return n&&Dd(s,n),vl>0&&!o&&Ir&&(s.shapeFlag&6?Ir[Ir.indexOf(e)]=s:Ir.push(s)),s.patchFlag=-2,s}if(SO(e)&&(e=e.__vccOpts),t){t=Ia(t);let{class:s,style:l}=t;s&&!pt(s)&&(t.class=V(s)),He(l)&&(cl(l)&&!xe(l)&&(l=bt({},l)),t.style=_e(l))}let a=pt(e)?1:X$(e)?128:Md(e)?64:He(e)?4:Ie(e)?2:0;return k(e,t,n,i,r,a,o,!0)}function Ia(e){return e?cl(e)||B$(e)?bt({},e):e:null}function hi(e,t,n=!1,i=!1){let{props:r,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?a0(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&eS(u),ref:t&&t.ref?n&&o?xe(o)?o.concat(Ed(t)):[o,Ed(t)]:Ed(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hi(e.ssContent),ssFallback:e.ssFallback&&hi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&mi(d,l.clone(d)),d}function $t(e=" ",t=0){return ye(xl,null,e,t)}function tS(e,t){let n=ye(_a,null,e);return n.staticCount=t,n}function ee(e="",t=!1){return t?(w(),Ge(Wt,null,e)):ye(Wt,null,e)}function hn(e){return e==null||typeof e=="boolean"?ye(Wt):xe(e)?ye(ge,null,e.slice()):bl(e)?Un(e):ye(xl,null,String(e))}function Un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hi(e)}function Dd(e,t){let n=0,{shapeFlag:i}=e;if(t==null)t=null;else if(xe(t))n=16;else if(typeof t=="object")if(i&65){let r=t.default;r&&(r._c&&(r._d=!1),Dd(e,r()),r._c&&(r._d=!0));return}else{n=32;let r=t._;!r&&!B$(t)?t._ctx=Gt:r===3&&Gt&&(Gt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ie(t)){if(i&65){Dd(e,{default:t});return}t={default:t,_ctx:Gt},n=32}else t=String(t),i&64?(n=16,t=[$t(t)]):n=8;e.children=t,e.shapeFlag|=n}function a0(...e){let t={};for(let n=0;n<e.length;n++){let i=e[n];for(let r in i)if(r==="class")t.class!==i.class&&(t.class=V([t.class,i.class]));else if(r==="style")t.style=_e([t.style,i.style]);else if(ca(r)){let o=t[r],a=i[r];a&&o!==a&&!(xe(o)&&o.includes(a))?t[r]=o?[].concat(o,a):a:a==null&&o==null&&!ua(r)&&(t[r]=a)}else r!==""&&(t[r]=i[r])}return t}function fn(e,t,n,i=null){Er(e,t,7,[n,i])}function yO(e,t,n){let i=e.type,r=(t?t.appContext:e.appContext)||vO,o={uid:bO++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new nl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:H$(i,r),emitsOptions:M$(i,r),emit:null,emitted:null,propsDefaults:Qe,inheritAttrs:i.inheritAttrs,ctx:Qe,data:Qe,props:Qe,attrs:Qe,slots:Qe,refs:Qe,setupState:Qe,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Qz.bind(null,o),e.ce&&e.ce(o),o}function rS(e){return e.vnode.shapeFlag&4}function wO(e,t=!1,n=!1){t&&yl(t);let{props:i,children:r}=e.vnode,o=rS(e);oO(e,i,o,t),cO(e,r,n||t);let a=o?kO(e,t):void 0;return t&&yl(!1),a}function kO(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zz);let{setup:i}=n;if(i){dn();let r=e.setupContext=i.length>1?_O(e):null,o=$l(e),a=kl(i,e,0,[e.props,r]),s=gb(a);if(pn(),o(),(s||e.sp)&&!ka(e)&&C$(e),s){if(a.then(c$,c$),t)return a.then(l=>{yl(!0);try{u$(e,l,t)}finally{yl(!1)}}).catch(l=>{Rd(l,e,0)});e.asyncDep=a}else u$(e,a,t)}else nS(e,t)}function u$(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:He(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=$d(t)),nS(e,n)}function nS(e,t,n){let i=e.type;if(!e.render){if(!t&&d$&&!i.render){let r=i.template||__VUE_OPTIONS_API__&&t0(e).template;if(r){let{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=i,u=bt(bt({isCustomElement:o,delimiters:s},a),l);i.render=d$(r,u)}}e.render=i.render||cr,p$&&p$(e)}if(__VUE_OPTIONS_API__){let r=$l(e);dn();try{Hz(e)}finally{pn(),r()}}}function _O(e){let t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xO),slots:e.slots,emit:e.emit,expose:t}}function Zd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy($d(Pb(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hl)return hl[n](e)},has(t,n){return n in t||n in hl}})):e.proxy}function $O(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function SO(e){return Ie(e)&&"__vccOpts"in e}function iS(e,t,n){try{Ad(-1);let i=arguments.length;return i===2?He(t)&&!xe(t)?bl(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&bl(n)&&(n=[n]),ye(e,t,n))}finally{Ad(1)}}var pr,mn,wa,fi,ya,m$,Td,gl,wz,gn,dl,Vb,_z,w$,$z,Sz,Gt,k$,Tz,Nz,pi,$$,Md,to,zz,Y1,X1,Fb,Oz,S$,Mr,ul,jr,Yb,I$,Dz,T$,zd,rF,nF,ka,Vd,Mn,jz,Pt,O$,Qb,Sa,qr,Mz,Lz,Vz,A$,D$,Zb,hl,jb,Zz,Hb,Wz,qz,xa,Xz,eO,tO,rO,V$,F$,B$,sO,r0,n0,lO,K$,W$,G$,cO,uO,dr,X$,ge,xl,Wt,_a,jn,Ir,vl,eS,Ed,ye,vO,bO,Xt,_l,Pd,yl,$l,c$,wl,d$,p$,xO,P,f$,s0=Y(()=>{Rb();Rb();Qs();Qs();/**
71
71
  * @vue/runtime-core v3.5.42
72
72
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
73
73
  * @license MIT
74
- **/pr=[],mn=-1,wa=[],fi=null,ya=0,m$=Promise.resolve(),Td=null;gl=e=>e.id==null?e.flags&2?-1:1/0:e.id;wz=!1,dl=[],Vb=!1;_z=Jb("component:added"),w$=Jb("component:updated"),$z=Jb("component:removed"),Sz=e=>{gn&&typeof gn.cleanupBuffer=="function"&&!gn.cleanupBuffer(e)&&$z(e)};Gt=null,k$=null;Tz=Symbol.for("v-scx"),Nz=()=>{{let e=Id(Tz);return e}};pi=new WeakMap,$$=Symbol("_vte"),Md=e=>e.__isTeleport,to=e=>e&&(e.disabled||e.disabled===""),zz=e=>e&&(e.defer||e.defer===""),Y1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,X1=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Fb=(e,t)=>{let n=e&&e.to;return pt(n)?t?t(n):null:n},Oz={name:"Teleport",__isTeleport:!0,process(e,t,n,i,r,o,a,s,l,u){let{mc:d,pc:p,pbc:f,o:{insert:m,querySelector:h,createText:v,createComment:x,parentNode:A}}=u,I=to(t.props),{dynamicChildren:E}=t,M=(X,ce,ie)=>{X.shapeFlag&16&&d(X.children,ce,ie,r,o,a,s,l)},z=(X=t)=>{let ce=to(X.props),ie=X.target=Fb(X.props,h),Q=Bb(ie,X,v,m);ie&&(a!=="svg"&&Y1(ie)?a="svg":a!=="mathml"&&X1(ie)&&(a="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(ie),ce||(M(X,ie,Q),pl(X,!1)))},D=X=>{let ce=()=>{if(pi.get(X)===ce){if(pi.delete(X),to(X.props)){let ie=A(X.el)||n;M(X,ie,X.anchor),pl(X,!0)}z(X)}};pi.set(X,ce),dr(ce,o)};if(e==null){let X=t.el=v(""),ce=t.anchor=v("");if(m(X,n,i),m(ce,n,i),zz(t.props)||o&&o.pendingBranch){D(t);return}I&&(M(t,n,ce),pl(t,!0)),z()}else{t.el=e.el;let X=t.anchor=e.anchor,ce=pi.get(e);if(ce){ce.flags|=8,pi.delete(e),D(t);return}t.targetStart=e.targetStart;let ie=t.target=e.target,Q=t.targetAnchor=e.targetAnchor,ae=to(e.props),ne=ae?n:ie,ve=ae?X:Q;if(a==="svg"||Y1(ie)?a="svg":(a==="mathml"||X1(ie))&&(a="mathml"),E?(f(e.dynamicChildren,E,ne,r,o,a,s),i0(e,t,!0)):l||p(e,t,ne,ve,r,o,a,s,!1),I)ae?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sd(t,n,X,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let Le=Fb(t.props,h);Le&&(t.target=Le,Sd(t,Le,null,u,0))}else ae&&Sd(t,ie,Q,u,1);pl(t,I)}},remove(e,t,n,{um:i,o:{remove:r}},o){let{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:d,target:p,props:f}=e,m=to(f),h=o||!m,v=pi.get(e);if(v&&(v.flags|=8,pi.delete(e)),p&&(r(u),r(d)),o&&r(l),!v&&(m||p)&&a&16)for(let x=0;x<s.length;x++){let A=s[x];i(A,t,n,h,!!A.dynamicChildren)}},move:Sd,hydrate:Az};S$=Oz;Mr=Symbol("_leaveCb"),ul=Symbol("_enterCb");jr=[Function,Array],Yb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jr,onEnter:jr,onAfterEnter:jr,onEnterCancelled:jr,onBeforeLeave:jr,onLeave:jr,onAfterLeave:jr,onLeaveCancelled:jr,onBeforeAppear:jr,onAppear:jr,onAfterAppear:jr,onAppearCancelled:jr},I$=e=>{let t=e.subTree;return t.component?I$(t.component):t},Dz={name:"BaseTransition",props:Yb,setup(e,{slots:t}){let n=_l(),i=qb();return()=>{let r=t.default&&Ld(t.default(),!0),o=r&&r.length?E$(r):n.subTree?ee():void 0;if(!o)return;let a=Fe(e),{mode:s}=a;if(i.isLeaving)return Ub(o);let l=Cd(o);if(!l)return Ub(o);let u=$a(l,a,i,n,p=>u=p);l.type!==Wt&&mi(l,u);let d=n.subTree&&Cd(n.subTree);if(d&&d.type!==Wt&&!ro(d,l)&&I$(n).type!==Wt){let p=$a(d,a,i,n);if(mi(d,p),s==="out-in"&&l.type!==Wt)return i.isLeaving=!0,p.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,d=void 0},Ub(o);s==="in-out"&&l.type!==Wt?p.delayLeave=(f,m,h)=>{let v=N$(i,d);v[String(d.key)]=d,f[Mr]=()=>{m(),f[Mr]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{h(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};T$=Dz;zd=new WeakMap;rF=di().requestIdleCallback||(e=>setTimeout(e,1)),nF=di().cancelIdleCallback||(e=>clearTimeout(e)),ka=e=>!!e.type.__asyncLoader,Vd=e=>e.type.__isKeepAlive;Mn=e=>(t,n=Xt)=>{(!wl||e==="sp")&&Fd(e,(...i)=>t(...i),n)},jz=Mn("bm"),Pt=Mn("m"),O$=Mn("bu"),Qb=Mn("u"),Sa=Mn("bum"),qr=Mn("um"),Mz=Mn("sp"),Lz=Mn("rtg"),Vz=Mn("rtc");A$="components",D$=Symbol.for("v-ndc");Zb=e=>e?rS(e)?Zd(e):Zb(e.parent):null,hl=bt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zb(e.parent),$root:e=>Zb(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?t0(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Gb(e.update)}),$nextTick:e=>e.n||(e.n=no.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Cz.bind(e):cr}),jb=(e,t)=>e!==Qe&&!e.__isScriptSetup&&Ke(e,t),Zz={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:n,setupState:i,data:r,props:o,accessCache:a,type:s,appContext:l}=e;if(t[0]!=="$"){let f=a[t];if(f!==void 0)switch(f){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(jb(i,t))return a[t]=1,i[t];if(__VUE_OPTIONS_API__&&r!==Qe&&Ke(r,t))return a[t]=2,r[t];if(Ke(o,t))return a[t]=3,o[t];if(n!==Qe&&Ke(n,t))return a[t]=4,n[t];(!__VUE_OPTIONS_API__||Hb)&&(a[t]=0)}}let u=hl[t],d,p;if(u)return t==="$attrs"&&Kt(e.attrs,"get",""),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==Qe&&Ke(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,Ke(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:r,ctx:o}=e;return jb(r,t)?(r[t]=n,!0):__VUE_OPTIONS_API__&&i!==Qe&&Ke(i,t)?(i[t]=n,!0):Ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,props:o,type:a}},s){let l;return!!(n[s]||__VUE_OPTIONS_API__&&e!==Qe&&s[0]!=="$"&&Ke(e,s)||jb(t,s)||Ke(o,s)||Ke(i,s)||Ke(hl,s)||Ke(r.config.globalProperties,s)||(l=a.__cssModules)&&l[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ke(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};Hb=!0;Wz={data:i$,props:o$,emits:o$,methods:fl,computed:fl,beforeCreate:ur,created:ur,beforeMount:ur,mounted:ur,beforeUpdate:ur,updated:ur,beforeDestroy:ur,beforeUnmount:ur,destroyed:ur,unmounted:ur,activated:ur,deactivated:ur,errorCaptured:ur,serverPrefetch:ur,components:fl,directives:fl,watch:Jz,provide:i$,inject:Gz};qz=0;xa=null,Xz=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Dt(t)}Modifiers`]||e[`${sn(t)}Modifiers`];eO=new WeakMap;tO=e=>{let t;for(let n in e)(n==="class"||n==="style"||ca(n))&&((t||(t={}))[n]=e[n]);return t},rO=(e,t)=>{let n={};for(let i in e)(!ua(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};V$={},F$=()=>Object.create(V$),B$=e=>Object.getPrototypeOf(e)===V$;sO=new WeakMap;r0=e=>e==="_"||e==="_ctx"||e==="$stable",n0=e=>xe(e)?e.map(hn):[hn(e)],lO=(e,t,n)=>{if(t._n)return t;let i=_t((...r)=>n0(t(...r)),n);return i._c=!1,i},K$=(e,t,n)=>{let i=e._ctx;for(let r in e){if(r0(r))continue;let o=e[r];if(Ie(o))t[r]=lO(r,o,i);else if(o!=null){let a=n0(o);t[r]=()=>a}}},W$=(e,t)=>{let n=n0(t);e.slots.default=()=>n},G$=(e,t,n)=>{for(let i in t)(n||!r0(i))&&(e[i]=t[i])},cO=(e,t,n)=>{let i=e.slots=F$();if(e.vnode.shapeFlag&32){let r=t._;r?(G$(i,t,n),n&&fa(i,"_",r,!0)):K$(t,i)}else t&&W$(e,t)},uO=(e,t,n)=>{let{vnode:i,slots:r}=e,o=!0,a=Qe;if(i.shapeFlag&32){let s=t._;s?n&&s===1?o=!1:G$(r,t,n):(o=!t.$stable,K$(t,r)),a=t}else t&&(W$(e,t),a={default:1});if(o)for(let s in r)!r0(s)&&a[s]==null&&delete r[s]};dr=hO;X$=e=>e.__isSuspense;ge=Symbol.for("v-fgt"),xl=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),_a=Symbol.for("v-stc"),jn=[],Ir=null;vl=1;eS=({key:e})=>e??null,Ed=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pt(e)||jt(e)||Ie(e)?{i:Gt,r:e,k:t,f:!!n}:e:null);ye=gO;vO=j$(),bO=0;Xt=null,_l=()=>Xt||Gt;{let e=di(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};Pd=t("__VUE_INSTANCE_SETTERS__",n=>Xt=n),yl=t("__VUE_SSR_SETTERS__",n=>wl=n)}$l=e=>{let t=Xt;return Pd(e),e.scope.on(),()=>{e.scope.off(),Pd(t)}},c$=()=>{Xt&&Xt.scope.off(),Pd(null)};wl=!1;xO={get(e,t){return Kt(e,"get",""),e[t]}};P=(e,t)=>W1(e,t,wl);f$="3.5.42"});function IS(e){let t={};for(let ne in e)ne in $S||(t[ne]=e[ne]);if(e.css===!1)return t;let{name:n="v",type:i,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:d=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=CO(r),v=h&&h[0],x=h&&h[1],{onBeforeEnter:A,onEnter:I,onEnterCancelled:E,onLeave:M,onLeaveCancelled:z,onBeforeAppear:D=A,onAppear:X=I,onAppearCancelled:ce=E}=t,ie=(ne,ve,Le,mt)=>{ne._enterCancelled=mt,vi(ne,ve?d:s),vi(ne,ve?u:a),Le&&Le()},Q=(ne,ve)=>{ne._isLeaving=!1,vi(ne,p),vi(ne,m),vi(ne,f),ve&&ve()},ae=ne=>(ve,Le)=>{let mt=ne?X:I,ht=()=>ie(ve,ne,Le);io(mt,[ve,ht]),lS(()=>{vi(ve,ne?l:o),vn(ve,ne?d:s),sS(mt)||cS(ve,i,v,ht)})};return bt(t,{onBeforeEnter(ne){io(A,[ne]),vn(ne,o),vn(ne,a)},onBeforeAppear(ne){io(D,[ne]),vn(ne,l),vn(ne,u)},onEnter:ae(!1),onAppear:ae(!0),onLeave(ne,ve){ne._isLeaving=!0;let Le=()=>Q(ne,ve);vn(ne,p),ne._enterCancelled?(vn(ne,f),f0(ne)):(f0(ne),vn(ne,f)),lS(()=>{ne._isLeaving&&(vi(ne,p),vn(ne,m),sS(M)||cS(ne,i,x,Le))}),io(M,[ne,Le])},onEnterCancelled(ne){ie(ne,!1,void 0,!0),io(E,[ne])},onAppearCancelled(ne){ie(ne,!0,void 0,!0),io(ce,[ne])},onLeaveCancelled(ne){Q(ne),io(z,[ne])}})}function CO(e){if(e==null)return null;if(He(e))return[l0(e.enter),l0(e.leave)];{let t=l0(e);return[t,t]}}function l0(e){return bb(e)}function vn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ta]||(e[Ta]=new Set)).add(t)}function vi(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));let n=e[Ta];n&&(n.delete(t),n.size||(e[Ta]=void 0))}function lS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}function cS(e,t,n,i){let r=e._endId=++zO,o=()=>{r===e._endId&&i()};if(n!=null)return setTimeout(o,n);let{type:a,timeout:s,propCount:l}=ES(e,t);if(!a)return i();let u=a+"end",d=0,p=()=>{e.removeEventListener(u,f),o()},f=m=>{m.target===e&&++d>=l&&p()};setTimeout(()=>{d<l&&p()},s+1),e.addEventListener(u,f)}function ES(e,t){let n=window.getComputedStyle(e),i=h=>(n[h]||"").split(", "),r=i(`${gi}Delay`),o=i(`${gi}Duration`),a=uS(r,o),s=i(`${Sl}Delay`),l=i(`${Sl}Duration`),u=uS(s,l),d=null,p=0,f=0;t===gi?a>0&&(d=gi,p=a,f=o.length):t===Sl?u>0&&(d=Sl,p=u,f=l.length):(p=Math.max(a,u),d=p>0?a>u?gi:Sl:null,f=d?d===gi?o.length:l.length:0);let m=d===gi&&/\b(?:transform|all)(?:,|$)/.test(i(`${gi}Property`).toString());return{type:d,timeout:p,propCount:f,hasTransform:m}}function uS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>dS(n)+dS(e[i])))}function dS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function f0(e){return(e?e.ownerDocument:document).body.offsetHeight}function OO(e,t,n){let i=e[Ta];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function PO(e,t,n){let i=e.style,r=pt(n),o=!1;if(n&&!r){if(t)if(pt(t))for(let a of t.split(";")){let s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&Il(i,s,"")}else for(let a in t)n[a]==null&&Il(i,a,"");for(let a in n){a==="display"&&(o=!0);let s=n[a];s!=null?UO(e,a,!pt(t)&&t?t[a]:void 0,s)||Il(i,a,s):Il(i,a,"")}}else if(r){if(t!==n){let a=i[AO];a&&(n+=";"+a),i.cssText=n,o=DO.test(n)}}else t&&e.removeAttribute("style");pS in e&&(e[pS]=o?i.display:"",e[TS]&&(i.display="none"))}function Il(e,t,n){if(xe(n))n.forEach(i=>Il(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))Hd.test(n)?e.setProperty(t,n.replace(Hd,""),"important"):e.setProperty(t,n);else{let i=RO(e,t);Hd.test(n)?e.setProperty(sn(i),n.replace(Hd,""),"important"):e[i]=n}}function RO(e,t){let n=c0[t];if(n)return n;let i=Dt(t);if(i!=="filter"&&i in e)return c0[t]=i;i=Ji(i);for(let r=0;r<fS.length;r++){let o=fS[r]+i;if(o in e)return c0[t]=o}return t}function UO(e,t,n,i){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&pt(i)&&n===i}function hS(e,t,n,i,r,o=N1(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(mS,t.slice(6,t.length)):e.setAttributeNS(mS,t,n):n==null||o&&!gd(n)?e.removeAttribute(t):e.setAttribute(t,o?"":kr(n)?String(n):n)}function gS(e,t,n,i,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?_S(n):n);return}let o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){let s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){let s=typeof e[t];s==="boolean"?n=gd(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(r||t)}function Ea(e,t,n,i){e.addEventListener(t,n,i)}function jO(e,t,n,i){e.removeEventListener(t,n,i)}function MO(e,t,n,i,r=null){let o=e[vS]||(e[vS]={}),a=o[t];if(i&&a)a.value=i;else{let[s,l]=FO(t);if(i){let u=o[t]=HO(i,r);Ea(e,s,u,l)}else a&&(jO(e,s,a,l),o[t]=void 0)}}function FO(e){let t,n;for(;(n=e.match(LO))&&!VO.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):sn(e.slice(2)),t]}function HO(e,t){let n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;let r=n.value;if(xe(r)){let o=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{o.call(i),i._stopped=!0};let a=r.slice(),s=[i];for(let l=0;l<a.length&&!i._stopped;l++){let u=a[l];u&&Er(u,t,5,s)}}else Er(r,t,5,[i])};return n.value=e,n.attached=ZO(),n}function WO(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&bS(t)&&Ie(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return bS(t)&&pt(n)?!1:t in e}function GO(e,t){let n=e._def.props;if(!n)return!1;let i=Dt(t);return Array.isArray(n)?n.some(r=>Dt(r)===i):Object.keys(n).some(r=>Dt(r)===i)}function YO(e){let t=e.el;t[Gd]&&t[Gd](),t[yS]&&t[yS]()}function XO(e){CS.set(e,zS(e.el))}function QO(e){let t=NS.get(e),n=CS.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){let o=e.el,a=o.style,s=o.getBoundingClientRect(),l=1,u=1;return o.offsetWidth&&(l=s.width/o.offsetWidth),o.offsetHeight&&(u=s.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),a.transform=a.webkitTransform=`translate(${i/l}px,${r/u}px)`,a.transitionDuration="0s",e}}function zS(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function eA(e,t,n){let i=e.cloneNode(),r=e[Ta];r&&r.forEach(s=>{s.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";let o=t.nodeType===1?t:t.parentNode;o.appendChild(i);let{hasTransform:a}=ES(i);return o.removeChild(i),a}function tA(e){e.target.composing=!0}function kS(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}function d0(e,t,n){return t&&(e=e.trim()),n&&(e=Xs(e)),e}function aA(){return xS||(xS=J$(oA))}function sA(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lA(e){return pt(e)?document.querySelector(e):e}var p0,oS,_S,IO,EO,Ln,aS,TO,gi,Sl,Ta,$S,SS,NO,bi,io,sS,zO,pS,TS,AO,DO,Hd,fS,c0,mS,vS,LO,VO,u0,BO,ZO,bS,KO,NS,CS,Gd,yS,JO,qO,m0,wS,Kd,Wd,Jd,rA,nA,Et,iA,Vn,oA,xS,El,OS=Y(()=>{s0();s0();Qs();/**
74
+ **/pr=[],mn=-1,wa=[],fi=null,ya=0,m$=Promise.resolve(),Td=null;gl=e=>e.id==null?e.flags&2?-1:1/0:e.id;wz=!1,dl=[],Vb=!1;_z=Jb("component:added"),w$=Jb("component:updated"),$z=Jb("component:removed"),Sz=e=>{gn&&typeof gn.cleanupBuffer=="function"&&!gn.cleanupBuffer(e)&&$z(e)};Gt=null,k$=null;Tz=Symbol.for("v-scx"),Nz=()=>{{let e=Id(Tz);return e}};pi=new WeakMap,$$=Symbol("_vte"),Md=e=>e.__isTeleport,to=e=>e&&(e.disabled||e.disabled===""),zz=e=>e&&(e.defer||e.defer===""),Y1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,X1=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Fb=(e,t)=>{let n=e&&e.to;return pt(n)?t?t(n):null:n},Oz={name:"Teleport",__isTeleport:!0,process(e,t,n,i,r,o,a,s,l,u){let{mc:d,pc:p,pbc:f,o:{insert:m,querySelector:h,createText:v,createComment:x,parentNode:A}}=u,I=to(t.props),{dynamicChildren:E}=t,M=(X,le,ie)=>{X.shapeFlag&16&&d(X.children,le,ie,r,o,a,s,l)},z=(X=t)=>{let le=to(X.props),ie=X.target=Fb(X.props,h),Q=Bb(ie,X,v,m);ie&&(a!=="svg"&&Y1(ie)?a="svg":a!=="mathml"&&X1(ie)&&(a="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(ie),le||(M(X,ie,Q),pl(X,!1)))},D=X=>{let le=()=>{if(pi.get(X)===le){if(pi.delete(X),to(X.props)){let ie=A(X.el)||n;M(X,ie,X.anchor),pl(X,!0)}z(X)}};pi.set(X,le),dr(le,o)};if(e==null){let X=t.el=v(""),le=t.anchor=v("");if(m(X,n,i),m(le,n,i),zz(t.props)||o&&o.pendingBranch){D(t);return}I&&(M(t,n,le),pl(t,!0)),z()}else{t.el=e.el;let X=t.anchor=e.anchor,le=pi.get(e);if(le){le.flags|=8,pi.delete(e),D(t);return}t.targetStart=e.targetStart;let ie=t.target=e.target,Q=t.targetAnchor=e.targetAnchor,ae=to(e.props),ne=ae?n:ie,ve=ae?X:Q;if(a==="svg"||Y1(ie)?a="svg":(a==="mathml"||X1(ie))&&(a="mathml"),E?(f(e.dynamicChildren,E,ne,r,o,a,s),i0(e,t,!0)):l||p(e,t,ne,ve,r,o,a,s,!1),I)ae?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sd(t,n,X,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let Le=Fb(t.props,h);Le&&(t.target=Le,Sd(t,Le,null,u,0))}else ae&&Sd(t,ie,Q,u,1);pl(t,I)}},remove(e,t,n,{um:i,o:{remove:r}},o){let{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:d,target:p,props:f}=e,m=to(f),h=o||!m,v=pi.get(e);if(v&&(v.flags|=8,pi.delete(e)),p&&(r(u),r(d)),o&&r(l),!v&&(m||p)&&a&16)for(let x=0;x<s.length;x++){let A=s[x];i(A,t,n,h,!!A.dynamicChildren)}},move:Sd,hydrate:Az};S$=Oz;Mr=Symbol("_leaveCb"),ul=Symbol("_enterCb");jr=[Function,Array],Yb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jr,onEnter:jr,onAfterEnter:jr,onEnterCancelled:jr,onBeforeLeave:jr,onLeave:jr,onAfterLeave:jr,onLeaveCancelled:jr,onBeforeAppear:jr,onAppear:jr,onAfterAppear:jr,onAppearCancelled:jr},I$=e=>{let t=e.subTree;return t.component?I$(t.component):t},Dz={name:"BaseTransition",props:Yb,setup(e,{slots:t}){let n=_l(),i=qb();return()=>{let r=t.default&&Ld(t.default(),!0),o=r&&r.length?E$(r):n.subTree?ee():void 0;if(!o)return;let a=Fe(e),{mode:s}=a;if(i.isLeaving)return Ub(o);let l=Cd(o);if(!l)return Ub(o);let u=$a(l,a,i,n,p=>u=p);l.type!==Wt&&mi(l,u);let d=n.subTree&&Cd(n.subTree);if(d&&d.type!==Wt&&!ro(d,l)&&I$(n).type!==Wt){let p=$a(d,a,i,n);if(mi(d,p),s==="out-in"&&l.type!==Wt)return i.isLeaving=!0,p.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,d=void 0},Ub(o);s==="in-out"&&l.type!==Wt?p.delayLeave=(f,m,h)=>{let v=N$(i,d);v[String(d.key)]=d,f[Mr]=()=>{m(),f[Mr]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{h(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};T$=Dz;zd=new WeakMap;rF=di().requestIdleCallback||(e=>setTimeout(e,1)),nF=di().cancelIdleCallback||(e=>clearTimeout(e)),ka=e=>!!e.type.__asyncLoader,Vd=e=>e.type.__isKeepAlive;Mn=e=>(t,n=Xt)=>{(!wl||e==="sp")&&Fd(e,(...i)=>t(...i),n)},jz=Mn("bm"),Pt=Mn("m"),O$=Mn("bu"),Qb=Mn("u"),Sa=Mn("bum"),qr=Mn("um"),Mz=Mn("sp"),Lz=Mn("rtg"),Vz=Mn("rtc");A$="components",D$=Symbol.for("v-ndc");Zb=e=>e?rS(e)?Zd(e):Zb(e.parent):null,hl=bt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zb(e.parent),$root:e=>Zb(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?t0(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Gb(e.update)}),$nextTick:e=>e.n||(e.n=no.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Cz.bind(e):cr}),jb=(e,t)=>e!==Qe&&!e.__isScriptSetup&&Ke(e,t),Zz={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:n,setupState:i,data:r,props:o,accessCache:a,type:s,appContext:l}=e;if(t[0]!=="$"){let f=a[t];if(f!==void 0)switch(f){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(jb(i,t))return a[t]=1,i[t];if(__VUE_OPTIONS_API__&&r!==Qe&&Ke(r,t))return a[t]=2,r[t];if(Ke(o,t))return a[t]=3,o[t];if(n!==Qe&&Ke(n,t))return a[t]=4,n[t];(!__VUE_OPTIONS_API__||Hb)&&(a[t]=0)}}let u=hl[t],d,p;if(u)return t==="$attrs"&&Kt(e.attrs,"get",""),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==Qe&&Ke(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,Ke(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:r,ctx:o}=e;return jb(r,t)?(r[t]=n,!0):__VUE_OPTIONS_API__&&i!==Qe&&Ke(i,t)?(i[t]=n,!0):Ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,props:o,type:a}},s){let l;return!!(n[s]||__VUE_OPTIONS_API__&&e!==Qe&&s[0]!=="$"&&Ke(e,s)||jb(t,s)||Ke(o,s)||Ke(i,s)||Ke(hl,s)||Ke(r.config.globalProperties,s)||(l=a.__cssModules)&&l[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ke(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};Hb=!0;Wz={data:i$,props:o$,emits:o$,methods:fl,computed:fl,beforeCreate:ur,created:ur,beforeMount:ur,mounted:ur,beforeUpdate:ur,updated:ur,beforeDestroy:ur,beforeUnmount:ur,destroyed:ur,unmounted:ur,activated:ur,deactivated:ur,errorCaptured:ur,serverPrefetch:ur,components:fl,directives:fl,watch:Jz,provide:i$,inject:Gz};qz=0;xa=null,Xz=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Dt(t)}Modifiers`]||e[`${sn(t)}Modifiers`];eO=new WeakMap;tO=e=>{let t;for(let n in e)(n==="class"||n==="style"||ca(n))&&((t||(t={}))[n]=e[n]);return t},rO=(e,t)=>{let n={};for(let i in e)(!ua(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};V$={},F$=()=>Object.create(V$),B$=e=>Object.getPrototypeOf(e)===V$;sO=new WeakMap;r0=e=>e==="_"||e==="_ctx"||e==="$stable",n0=e=>xe(e)?e.map(hn):[hn(e)],lO=(e,t,n)=>{if(t._n)return t;let i=_t((...r)=>n0(t(...r)),n);return i._c=!1,i},K$=(e,t,n)=>{let i=e._ctx;for(let r in e){if(r0(r))continue;let o=e[r];if(Ie(o))t[r]=lO(r,o,i);else if(o!=null){let a=n0(o);t[r]=()=>a}}},W$=(e,t)=>{let n=n0(t);e.slots.default=()=>n},G$=(e,t,n)=>{for(let i in t)(n||!r0(i))&&(e[i]=t[i])},cO=(e,t,n)=>{let i=e.slots=F$();if(e.vnode.shapeFlag&32){let r=t._;r?(G$(i,t,n),n&&fa(i,"_",r,!0)):K$(t,i)}else t&&W$(e,t)},uO=(e,t,n)=>{let{vnode:i,slots:r}=e,o=!0,a=Qe;if(i.shapeFlag&32){let s=t._;s?n&&s===1?o=!1:G$(r,t,n):(o=!t.$stable,K$(t,r)),a=t}else t&&(W$(e,t),a={default:1});if(o)for(let s in r)!r0(s)&&a[s]==null&&delete r[s]};dr=hO;X$=e=>e.__isSuspense;ge=Symbol.for("v-fgt"),xl=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),_a=Symbol.for("v-stc"),jn=[],Ir=null;vl=1;eS=({key:e})=>e??null,Ed=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pt(e)||jt(e)||Ie(e)?{i:Gt,r:e,k:t,f:!!n}:e:null);ye=gO;vO=j$(),bO=0;Xt=null,_l=()=>Xt||Gt;{let e=di(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};Pd=t("__VUE_INSTANCE_SETTERS__",n=>Xt=n),yl=t("__VUE_SSR_SETTERS__",n=>wl=n)}$l=e=>{let t=Xt;return Pd(e),e.scope.on(),()=>{e.scope.off(),Pd(t)}},c$=()=>{Xt&&Xt.scope.off(),Pd(null)};wl=!1;xO={get(e,t){return Kt(e,"get",""),e[t]}};P=(e,t)=>W1(e,t,wl);f$="3.5.42"});function IS(e){let t={};for(let ne in e)ne in $S||(t[ne]=e[ne]);if(e.css===!1)return t;let{name:n="v",type:i,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:d=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=CO(r),v=h&&h[0],x=h&&h[1],{onBeforeEnter:A,onEnter:I,onEnterCancelled:E,onLeave:M,onLeaveCancelled:z,onBeforeAppear:D=A,onAppear:X=I,onAppearCancelled:le=E}=t,ie=(ne,ve,Le,mt)=>{ne._enterCancelled=mt,vi(ne,ve?d:s),vi(ne,ve?u:a),Le&&Le()},Q=(ne,ve)=>{ne._isLeaving=!1,vi(ne,p),vi(ne,m),vi(ne,f),ve&&ve()},ae=ne=>(ve,Le)=>{let mt=ne?X:I,ht=()=>ie(ve,ne,Le);io(mt,[ve,ht]),lS(()=>{vi(ve,ne?l:o),vn(ve,ne?d:s),sS(mt)||cS(ve,i,v,ht)})};return bt(t,{onBeforeEnter(ne){io(A,[ne]),vn(ne,o),vn(ne,a)},onBeforeAppear(ne){io(D,[ne]),vn(ne,l),vn(ne,u)},onEnter:ae(!1),onAppear:ae(!0),onLeave(ne,ve){ne._isLeaving=!0;let Le=()=>Q(ne,ve);vn(ne,p),ne._enterCancelled?(vn(ne,f),f0(ne)):(f0(ne),vn(ne,f)),lS(()=>{ne._isLeaving&&(vi(ne,p),vn(ne,m),sS(M)||cS(ne,i,x,Le))}),io(M,[ne,Le])},onEnterCancelled(ne){ie(ne,!1,void 0,!0),io(E,[ne])},onAppearCancelled(ne){ie(ne,!0,void 0,!0),io(le,[ne])},onLeaveCancelled(ne){Q(ne),io(z,[ne])}})}function CO(e){if(e==null)return null;if(He(e))return[l0(e.enter),l0(e.leave)];{let t=l0(e);return[t,t]}}function l0(e){return bb(e)}function vn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ta]||(e[Ta]=new Set)).add(t)}function vi(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));let n=e[Ta];n&&(n.delete(t),n.size||(e[Ta]=void 0))}function lS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}function cS(e,t,n,i){let r=e._endId=++zO,o=()=>{r===e._endId&&i()};if(n!=null)return setTimeout(o,n);let{type:a,timeout:s,propCount:l}=ES(e,t);if(!a)return i();let u=a+"end",d=0,p=()=>{e.removeEventListener(u,f),o()},f=m=>{m.target===e&&++d>=l&&p()};setTimeout(()=>{d<l&&p()},s+1),e.addEventListener(u,f)}function ES(e,t){let n=window.getComputedStyle(e),i=h=>(n[h]||"").split(", "),r=i(`${gi}Delay`),o=i(`${gi}Duration`),a=uS(r,o),s=i(`${Sl}Delay`),l=i(`${Sl}Duration`),u=uS(s,l),d=null,p=0,f=0;t===gi?a>0&&(d=gi,p=a,f=o.length):t===Sl?u>0&&(d=Sl,p=u,f=l.length):(p=Math.max(a,u),d=p>0?a>u?gi:Sl:null,f=d?d===gi?o.length:l.length:0);let m=d===gi&&/\b(?:transform|all)(?:,|$)/.test(i(`${gi}Property`).toString());return{type:d,timeout:p,propCount:f,hasTransform:m}}function uS(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,i)=>dS(n)+dS(e[i])))}function dS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function f0(e){return(e?e.ownerDocument:document).body.offsetHeight}function OO(e,t,n){let i=e[Ta];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function PO(e,t,n){let i=e.style,r=pt(n),o=!1;if(n&&!r){if(t)if(pt(t))for(let a of t.split(";")){let s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&Il(i,s,"")}else for(let a in t)n[a]==null&&Il(i,a,"");for(let a in n){a==="display"&&(o=!0);let s=n[a];s!=null?UO(e,a,!pt(t)&&t?t[a]:void 0,s)||Il(i,a,s):Il(i,a,"")}}else if(r){if(t!==n){let a=i[AO];a&&(n+=";"+a),i.cssText=n,o=DO.test(n)}}else t&&e.removeAttribute("style");pS in e&&(e[pS]=o?i.display:"",e[TS]&&(i.display="none"))}function Il(e,t,n){if(xe(n))n.forEach(i=>Il(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))Hd.test(n)?e.setProperty(t,n.replace(Hd,""),"important"):e.setProperty(t,n);else{let i=RO(e,t);Hd.test(n)?e.setProperty(sn(i),n.replace(Hd,""),"important"):e[i]=n}}function RO(e,t){let n=c0[t];if(n)return n;let i=Dt(t);if(i!=="filter"&&i in e)return c0[t]=i;i=Ji(i);for(let r=0;r<fS.length;r++){let o=fS[r]+i;if(o in e)return c0[t]=o}return t}function UO(e,t,n,i){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&pt(i)&&n===i}function hS(e,t,n,i,r,o=N1(t)){i&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(mS,t.slice(6,t.length)):e.setAttributeNS(mS,t,n):n==null||o&&!gd(n)?e.removeAttribute(t):e.setAttribute(t,o?"":kr(n)?String(n):n)}function gS(e,t,n,i,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?_S(n):n);return}let o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){let s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){let s=typeof e[t];s==="boolean"?n=gd(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(r||t)}function Ea(e,t,n,i){e.addEventListener(t,n,i)}function jO(e,t,n,i){e.removeEventListener(t,n,i)}function MO(e,t,n,i,r=null){let o=e[vS]||(e[vS]={}),a=o[t];if(i&&a)a.value=i;else{let[s,l]=FO(t);if(i){let u=o[t]=HO(i,r);Ea(e,s,u,l)}else a&&(jO(e,s,a,l),o[t]=void 0)}}function FO(e){let t,n;for(;(n=e.match(LO))&&!VO.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):sn(e.slice(2)),t]}function HO(e,t){let n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;let r=n.value;if(xe(r)){let o=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{o.call(i),i._stopped=!0};let a=r.slice(),s=[i];for(let l=0;l<a.length&&!i._stopped;l++){let u=a[l];u&&Er(u,t,5,s)}}else Er(r,t,5,[i])};return n.value=e,n.attached=ZO(),n}function WO(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&bS(t)&&Ie(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return bS(t)&&pt(n)?!1:t in e}function GO(e,t){let n=e._def.props;if(!n)return!1;let i=Dt(t);return Array.isArray(n)?n.some(r=>Dt(r)===i):Object.keys(n).some(r=>Dt(r)===i)}function YO(e){let t=e.el;t[Gd]&&t[Gd](),t[yS]&&t[yS]()}function XO(e){CS.set(e,zS(e.el))}function QO(e){let t=NS.get(e),n=CS.get(e),i=t.left-n.left,r=t.top-n.top;if(i||r){let o=e.el,a=o.style,s=o.getBoundingClientRect(),l=1,u=1;return o.offsetWidth&&(l=s.width/o.offsetWidth),o.offsetHeight&&(u=s.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(u)||u===0)&&(u=1),Math.abs(l-1)<.01&&(l=1),Math.abs(u-1)<.01&&(u=1),a.transform=a.webkitTransform=`translate(${i/l}px,${r/u}px)`,a.transitionDuration="0s",e}}function zS(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function eA(e,t,n){let i=e.cloneNode(),r=e[Ta];r&&r.forEach(s=>{s.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";let o=t.nodeType===1?t:t.parentNode;o.appendChild(i);let{hasTransform:a}=ES(i);return o.removeChild(i),a}function tA(e){e.target.composing=!0}function kS(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}function d0(e,t,n){return t&&(e=e.trim()),n&&(e=Xs(e)),e}function aA(){return xS||(xS=J$(oA))}function sA(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lA(e){return pt(e)?document.querySelector(e):e}var p0,oS,_S,IO,EO,Ln,aS,TO,gi,Sl,Ta,$S,SS,NO,bi,io,sS,zO,pS,TS,AO,DO,Hd,fS,c0,mS,vS,LO,VO,u0,BO,ZO,bS,KO,NS,CS,Gd,yS,JO,qO,m0,wS,Kd,Wd,Jd,rA,nA,Et,iA,Vn,oA,xS,El,OS=Y(()=>{s0();s0();Qs();/**
75
75
  * @vue/runtime-dom v3.5.42
76
76
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
77
77
  * @license MIT
@@ -92,12 +92,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
92
92
  `);return{version:1,visualType:"chart",chartType:n,meta:{title:u,...d?{description:d}:{},...p?{footer:p}:{}},xKey:r,...o?{xAxisLabel:o}:{},series:a,data:s,fallbackMarkdown:f}}function zI(e){let t;try{t=JSON.parse(e)}catch(i){let r=e.match(/"fallbackMarkdown"\s*:\s*"((?:[^"\\]|\\.)*)"/),o;if(r)try{o=JSON.parse(`"${r[1]}"`)}catch{}return{ok:!1,reason:"invalid_json",message:i instanceof Error?i.message:"Invalid JSON",fallbackMarkdown:o}}let n=MS.safeParse(t);if(!n.success){let i=rD(t)??nD(t);if(i){let r=MS.safeParse(i);if(r.success)return{ok:!0,spec:r.data}}return{ok:!1,reason:"invalid_spec",message:n.error.issues.map(r=>r.message).join("; "),fallbackMarkdown:Q6(t)}}return{ok:!0,spec:n.data}}var cA,uA,Nl,Ca,Fn,Yd,Na,dA,qd,AS,BS,fA,HS,KS,wn,xF,_F,$F,SF,IF,so,PS,gA,lo,vA,yA,wA,kA,xA,y0,_A,JS,$A,SA,IA,EA,TA,NA,Mt,CA,zA,OA,AA,DA,PA,CF,qS,YS,XS,h0,OF,RA,QS,UA,RS,jA,MA,LA,eI,UF,tI,VA,FA,BA,rI,Cl,ZA,HA,nI,KA,WA,jF,qA,MF,oI,YA,w0,XA,VF,FF,BF,ZF,HF,aI,QA,e6,t6,US,i6,o6,sI,jS,lI,l6,GF,c6,cI,u6,Bn,dI,d6,pI,fI,mI,hI,p6,QF,f6,m6,k0,eB,vI,tB,rB,nB,h6,g6,iB,oB,sB,v6,lB,cB,b6,uB,dB,y6,pB,yI,w6,g0,gB,wI,k6,wB,kI,x6,xI,kB,xB,_6,_B,$B,$6,S6,Tl,x0,SB,IB,_I,tp,EB,TB,I6,E6,T6,N6,C6,NB,z6,CB,zB,OB,AB,O6,A6,D6,M6,L6,V6,v0,Zn,za,F6,EI,B6,Z6,TI,H6,$0,W6,G6,J6,q6,Y6,X6,MS,OI,AI,jB,MB,LB,VB,FB,BB,Lr,iD,oD,aD,LS,sD,lD,HB,cD,WB,GB,uD,JB,qB,YB,XB,QB,e7,t7,dD,pD,fD,mD,hD,i7,o7,a7,l7,u7,gD,vD,bD,yD,p7,wD,kD,xD,_D,$D,m7,SD,g7,b7,b0,ID,ED,DI,TD,ND,PI,w7,k7,x7,_7,S7,VS,RI,FS,S0,Ol=Y(()=>{"use strict";Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();Pe();bn();bn();cA=Object.defineProperty,uA=(e,t)=>{for(var n in t)cA(e,n,{get:t[n],enumerable:!0})},Nl={appName:"pagelines-app",tagline:"Bots for Work",zeroState:{title:"Create your first bot",action:"Get started"},defaultWorkspaceName:"My Workspace",port:3222,primaryRegion:"lax",demoBotHandle:"pagelines-demo",liveCanary:{email:"smoke-canary@pagelines.com",botHandle:"seneca"},gtmId:"GTM-WRN7DPK7",ga4MeasurementId:"G-WT51X9S6SK",urls:{app:"https://www.pagelines.com",dev:"https://dev-api.pagelines.com",appStore:"https://apps.apple.com/us/app/pagelines/id6764094785"}},Ca=globalThis.process,Fn=typeof window<"u",Yd=typeof Ca<"u"&&!Fn,Na=Fn?typeof window<"u"&&window.location&&!window.location.hostname.includes("localhost"):Yd&&typeof Ca<"u"&&Ca.env?.NODE_ENV==="production",dA=!Na,qd={error:{priority:50,color:"#FF0000",nodeColor:"\x1B[31m"},warn:{priority:40,color:"#FFA500",nodeColor:"\x1B[33m"},info:{priority:30,color:"#00ABFF",nodeColor:"\x1B[36m"},debug:{priority:20,color:"#00BD0C",nodeColor:"\x1B[32m"},trace:{priority:10,color:"#5233FF",nodeColor:"\x1B[35m"}},AS=["password","token","secret","apikey","authorization","cookie"];BS=new Set(["CONNECT_TIMEOUT","ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENOTFOUND","EHOSTUNREACH","EPIPE"]),fA=new Set([...BS,"CONNECTION_CLOSED","53300"]);HS=class Xd{constructor(t={},n){this.enabledInBrowser=!1,this.context=n,this.settings={enabled:t.enabled??!0,minLevel:t.minLevel??this.getDefaultLevel(),timestamps:t.timestamps??!0},Fn&&this.initBrowserLogging()}getDefaultLevel(){if(Yd&&typeof Ca<"u"&&Ca.env?.LOG_LEVEL)return Ca.env.LOG_LEVEL;if(Fn&&typeof localStorage<"u"&&typeof localStorage.getItem=="function"){let t=localStorage.getItem("PAGELINES_LOG_LEVEL");if(t)return t}return"info"}initBrowserLogging(){if(!Fn)return;let n=typeof localStorage?.getItem=="function"&&localStorage.getItem("PAGELINES_LOG")==="true",i=window.location?.hostname||"";this.enabledInBrowser=dA||n||i==="localhost"||i.includes("127.0.0.1"),Na&&!n&&!Xd.hasShownHelp&&(console.log("%cPageLines Logger (disabled in production)","color: #888; font-size: 12px"),console.log('%cTo enable: localStorage.setItem("PAGELINES_LOG", "true")',"color: #888; font-size: 11px"),Xd.hasShownHelp=!0)}shouldLog(t){if(!this.settings.enabled||Fn&&!this.enabledInBrowser)return!1;let n=qd[t].priority,i=qd[this.settings.minLevel].priority;return n>=i}formatTimestamp(){return new Date().toLocaleTimeString("en-GB",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}formatISOTimestamp(){return new Date().toISOString()}redactSensitive(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return t.map(i=>this.redactSensitive(i));let n={};for(let[i,r]of Object.entries(t))pA(i)?n[i]="[REDACTED]":typeof r=="object"&&r!==null?n[i]=this.redactSensitive(r):n[i]=r;return n}formatData(t,n=5,i=0){if(i>=n)return"[Max Depth]";if(t==null)return t;if(t instanceof Error){let r=ZS(t);if(r){let a={name:t.name,code:r.code},s=mA(r);s&&(a.endpoint=s);let l=DS(t.stack)??DS(t.cause?.stack);return l&&(a.at=l),this.redactSensitive(a)}let o={name:t.name,message:t.message,stack:Na?t.stack?.split(`
93
93
  `).slice(0,3).join(`
94
94
  `):t.stack};for(let[a,s]of Object.entries(t))o[a]=this.formatData(s,n,i+1);return"cause"in t&&(o.cause=this.formatData(t.cause,n,i+1)),this.redactSensitive(o)}if(t instanceof Date)return t.toISOString();if(typeof t!="object")return t;if(Array.isArray(t))return t.length>20&&Na?`Array(${t.length}) [${t.slice(0,3).map(r=>this.formatData(r,n,i+1)).join(", ")}, ...]`:t.map(r=>this.formatData(r,n,i+1));try{let r={},o=Object.entries(t),a=Na?50:200;for(let[s,l]of o.slice(0,a))r[s]=this.formatData(l,n,i+1);return o.length>a&&(r["..."]=`${o.length-a} more properties`),this.redactSensitive(r)}catch{return"[Unserializable]"}}logToBrowser(t){if(!Fn||!this.shouldLog(t.level))return;let{level:n,description:i,context:r,data:o,error:a}=t,s=qd[n],u=`[${r||this.context||"www"}] ${n.toUpperCase()}:`,d=`color: ${s.color}; font-weight: bold;`;o!==void 0?console[n](`%c${u}`,d,i,this.formatData(o)):console[n](`%c${u}`,d,i),a&&(a instanceof Error?console.error(a):console.error("Error details:",a))}logToNode(t){if(!Yd||!this.shouldLog(t.level))return;let{level:n,description:i,context:r,data:o,error:a}=t,s=r||this.context||"www";if(Na){let l={timestamp:this.formatISOTimestamp(),level:n.toUpperCase(),context:s,msg:i,message:i};o!==void 0&&(l.data=this.formatData(o)),a!==void 0&&(l.error=this.formatData(a));let u=JSON.stringify(l);n==="trace"?console.log(u):console[n](u)}else{let l=qd[n],u=this.formatTimestamp(),d="\x1B[0m",p="\x1B[2m",f=l.nodeColor||"",m=`${p}${u}${d} ${f}${n.toUpperCase()} (${s}):${d} ${i}`;console[n](m),o!==void 0&&console.log(JSON.stringify(this.formatData(o),null,2)),a&&(a instanceof Error?(console.error(`\x1B[31mError:${d}`,a.message),a.stack&&console.error(`\x1B[90m${a.stack}${d}`)):console.error("Error:",a))}}log(t){Fn?this.logToBrowser(t):Yd&&this.logToNode(t)}error(t,n){this.log({level:"error",description:t,data:n,context:this.context})}warn(t,n){this.log({level:"warn",description:t,data:n,context:this.context})}info(t,n){this.log({level:"info",description:t,data:n,context:this.context})}debug(t,n){this.log({level:"debug",description:t,data:n,context:this.context})}trace(t,n){this.log({level:"trace",description:t,data:n,context:this.context})}isEnabled(){return Fn?this.enabledInBrowser:!0}setLevel(t){this.settings.minLevel=t}createContextLogger(t){let n=new Xd(this.settings,t);return{error:(i,r)=>n.error(i,r),warn:(i,r)=>n.warn(i,r),info:(i,r)=>n.info(i,r),debug:(i,r)=>n.debug(i,r),trace:(i,r)=>n.trace(i,r),isEnabled:()=>n.isEnabled(),setLevel:i=>n.setLevel(i)}}};HS.hasShownHelp=!1;KS=HS;wn=new KS,xF=wn.error.bind(wn),_F=wn.warn.bind(wn),$F=wn.info.bind(wn),SF=wn.debug.bind(wn),IF=wn.trace.bind(wn),so=class{constructor(e,t){this.objectName=e,this.settings=t,this.logger=ao(e)}};PS={green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"}};gA=class{constructor(){this.tokenName="auth-token",this.deviceIdName="pl-device-id",this.tokenMaxAge=3600*24*90,this.fallbackStorageKey="token"}currentCookieOptions(){return hA(typeof window>"u"?void 0:window.location)}getCookie(e){if(typeof document>"u")return null;let t=document.cookie.split(";");for(let n of t){let[i,r]=n.trim().split("=");if(i===e)return decodeURIComponent(r||"")}return null}setCookie(e,t,n={}){if(typeof document>"u")return;let{secure:i=!0,sameSite:r="lax",maxAge:o=3600*24*7,domain:a,path:s="/"}=n,l=`${e}=${encodeURIComponent(t)}`;l+=`; Path=${s}`,l+=`; Max-Age=${o}`,l+=`; SameSite=${r}`,i&&(l+="; Secure"),a&&(l+=`; Domain=${a}`),document.cookie=l}removeCookie(e,t={}){this.setCookie(e,"",{...t,maxAge:0})}isLocalStorageFunctional(){return typeof window<"u"&&typeof window.localStorage?.getItem=="function"&&typeof window.localStorage?.setItem=="function"&&typeof window.localStorage?.removeItem=="function"}getAuthToken(){let e=this.getCookie(this.tokenName);if(e)return e;if(this.isLocalStorageFunctional()){let t=window.localStorage.getItem(this.fallbackStorageKey);if(t)return this.setAuthToken(t),window.localStorage.removeItem(this.fallbackStorageKey),t}return null}setAuthToken(e){let t=this.currentCookieOptions();this.setCookie(this.tokenName,e,{secure:t.secure,sameSite:"lax",maxAge:this.tokenMaxAge,domain:t.domain,path:t.path})}removeAuthToken(){let e=this.currentCookieOptions();this.removeCookie(this.tokenName,{domain:e.domain,path:e.path}),this.removeCookie(this.tokenName,{domain:".pagelines.com",path:"/"}),this.isLocalStorageFunctional()&&window.localStorage.removeItem(this.fallbackStorageKey)}getDeviceId(){return this.getCookie(this.deviceIdName)}},lo=new gA,vA=["https://redirect-a.invalid","https://redirect-b.invalid"];yA=c.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website","calendar"]),wA=c.object({platform:yA,handle:c.string(),url:c.string().optional()}),kA=c.preprocess(e=>Array.isArray(e)?e.filter(t=>t&&typeof t=="object"&&t.platform&&t.handle):e,c.array(wA)),xA=["image","audio","video","document"],y0=c.enum(xA),_A=["avatar","cover","general"],JS=c.enum(_A),$A=c.enum(["processing","active","failed","deleted"]),SA=c.enum(["low","standard","high"]),IA=c.enum(["jpg","jpeg","png","gif","webp","svg"]),EA=c.enum(["mp4","webm","ogg","mov","avi"]),TA=c.enum(["mp3","wav","ogg","opus","aac","flac","webm","m4a","mp4"]),NA=c.object({mediaId:c.string(),userId:c.string(),orgId:c.string(),botId:c.string().nullable().optional(),filename:c.string(),mimeType:c.string(),size:c.number(),src:c.string(),alt:c.string().optional(),context:JS.default("general"),status:$A.default("processing"),quality:SA.default("standard"),createdAt:c.string().optional(),updatedAt:c.string().optional()}),Mt=NA.extend({mediaType:y0.optional(),className:c.string().optional(),width:c.number().optional(),height:c.number().optional(),duration:c.number().optional(),blurhash:c.string().optional()}).partial(),CA=c.object({duration:c.number().optional(),thumbnail:c.string().optional(),autoplay:c.boolean().optional(),loop:c.boolean().optional(),muted:c.boolean().optional(),controls:c.boolean().optional()}),zA=c.object({duration:c.number().optional(),autoplay:c.boolean().optional(),loop:c.boolean().optional(),muted:c.boolean().optional(),controls:c.boolean().optional()}),OA=Mt.extend({mediaType:c.literal("image"),imageFormat:IA.optional()}),AA=Mt.extend({mediaType:c.literal("video"),videoFormat:EA.optional(),video:CA.optional()}),DA=Mt.extend({mediaType:c.literal("audio"),audioFormat:TA.optional(),audio:zA.optional()}),PA=Mt.extend({mediaType:c.literal("document")}),CF=c.discriminatedUnion("mediaType",[OA,AA,DA,PA]),qS=c.enum(["xxs","xs","sm","md","lg","xl"]),YS=c.enum(["primary","default","overlay","red","green","indigo","orange"]),XS=c.enum(["ghost","link","outline","solid"]),h0=c.object({key:c.string().optional(),label:c.string().optional(),href:c.string().optional(),size:qS.optional(),theme:YS.optional(),design:XS.optional(),icon:c.union([c.string(),Mt]).optional(),iconAfter:c.union([c.string(),Mt]).optional(),rounding:c.enum(["full","md","lg"]).optional(),loading:c.boolean().optional(),disabled:c.boolean().optional(),tooltip:c.string().optional(),onClick:c.any().optional(),testId:c.string().optional(),target:c.enum(["_blank","_self"]).optional(),type:c.enum(["button","submit","reset"]).optional()}),OF=c.object({buttons:c.array(h0).optional(),size:qS.optional(),theme:YS.optional(),design:XS.optional()}),RA=["COMPUTER_BOOT_FAILED","COMPUTER_CREATE_FAILED","BOT_DELETED","COMPUTER_DELETE_FAILED","COMPUTER_INACTIVE","COMPUTER_LIMIT","COMPUTER_NOT_FOUND","BOT_NOT_FOUND","COMPUTER_NOT_DEPLOYED","BOT_TOKENS_MISSING","COMPUTER_UNREACHABLE","COMPUTER_UPDATE_FAILED","COMPUTER_WAKE_TIMEOUT","ALREADY_MEMBER","ATTACHMENT_TYPE_UNSUPPORTED","AUTH_ACCOUNT_NOT_FOUND","AUTH_BOT_BLOCKED","AUTH_DISPOSABLE_EMAIL","AUTH_EMAIL_IN_USE","AUTH_INVALID","AUTH_INVALID_CODE","AUTH_INVALID_HANDOFF","AUTH_LOCKED_OUT","AUTH_MISSING","AUTH_PROVIDER_FAILED","AUTH_PROVIDER_NOT_CONFIGURED","AUTH_RATE_LIMITED","AUTH_REVOKED","AUTH_TURNSTILE_MISSING","AUTH_UNKNOWN","AUTH_WRONG_TYPE","ROUTINE_CHANNEL_UNAVAILABLE","ROUTINE_PURPOSE_REQUIRED","BOT_REPLY_FAILED","BILLING_BUDGET_REACHED","BILLING_DEMO_SPENT","BILLING_NO_PLAN","BILLING_PAST_DUE","BILLING_RUNAWAY_CAP","BILLING_SEAT_LIMIT","CHECKOUT_FAILED","CONFIRMATION_REQUIRED","CREATE_FAILED","CREDIT_LIMIT","DELETE_FAILED","DUPLICATE_INVITE","EMAIL_DELIVERY_FAILED","EMAIL_FAILED","EMAIL_MISMATCH","EMAIL_RATE_LIMITED","EMAIL_REASON_NOT_ELIGIBLE","EMPTY_STREAM","EMPTY_PATCH","ENV_VAR_CONFLICT","ENV_VAR_RESERVED","EXTENSION_INACTIVE","FORBIDDEN","HANDLE_TAKEN","IMAGE_GENERATION_FAILED","IMAGE_GENERATION_UNCONFIGURED","INTERNAL_ERROR","INVALID_FILE","INVALID_PRIMARY_CHANNEL","UNKNOWN_ROUTINE_CHANNEL","INVITE_CONFLICT","INVITE_EXPIRED","INVITE_INVALID","MCP_NOT_AVAILABLE","MCP_NOT_CONFIGURED","MEDIA_NOT_FOUND","MEDIA_SERVER_UNAVAILABLE","MEDIA_UPLOAD_FAILED","MEMORY_NOT_FOUND","MISSING_IDEMPOTENCY_KEY","NETWORK_ERROR","NO_WORKSPACE","NOT_A_MEMBER","NOT_AUTHORIZED","NOT_FOUND","ORG_NOT_FOUND","OVERAGE_CAP","OWNER_LOCK","PAIRING_VERIFY_FAILED","PAYMENT_FAILED","PLAN_LIMIT","PROVISIONER_UNAVAILABLE","RATE_LIMIT","RATE_LIMITED","REBUILD_FAILED","RESTART_FAILED","SEND_FAILED","STOP_FAILED","STREAM_DISCONNECT","STREAM_TIMEOUT","STRIPE_LOAD","TIMEOUT","TOKEN_ERROR","TOOL_PROTOCOL","TRIAL_ENDED","TURN_ACTIVE","UPLOAD_FAILED","VALIDATION_ERROR","VOICE_BUSY","VOICE_UNAVAILABLE","WAKE_FAILED"],QS=c.enum(RA),UA=4900,RS=`$${UA/100}/month`,jA=c.enum(["account","error"]),MA=["billing_no_plan","billing_seat_limit","billing_past_due","billing_runaway_cap","billing_budget_reached","billing_demo_spent","bot_deleted","computer_not_deployed","computer_boot_failed","computer_unreachable","computer_wake_timeout","stream_timeout","stream_disconnect","empty_stream","tool_protocol","rate_limit"],LA=c.enum(MA),eI=c.object({bucket:jA,code:LA,title:c.string(),help:c.string().optional(),actionLabel:c.string(),actionUrl:c.string()}),UF={billing_no_plan:{bucket:"account",title:"Billing needed",help:`Add a payment method to turn live replies back on. Plans start at ${RS} per active assistant, cancel anytime.`,actionLabel:"Open billing",oneLine:`The workspace needs a payment method before this assistant can reply; plans start at ${RS} per active assistant.`},billing_seat_limit:{bucket:"account",title:"Active assistant limit reached",help:"Your active assistants are all in use. Put one assistant to sleep or ask us to raise the ceiling.",actionLabel:"Open billing",oneLine:"The workspace has no unused active-assistant slots; one assistant must sleep or the limit must be raised."},billing_past_due:{bucket:"account",title:"Assistants paused",help:"Payment is overdue. Fix it and we\u2019ll bring your assistants back online.",actionLabel:"Fix payment",oneLine:"The workspace payment is overdue; its owner must fix it before assistants come back online."},billing_runaway_cap:{bucket:"account",title:"Usage limit reached",help:"Your workspace reached its usage limit. Review billing or contact support to keep your assistant running.",actionLabel:"Contact support",oneLine:"The workspace reached its usage limit; its owner can review billing or contact support."},billing_budget_reached:{bucket:"account",title:"Not enough credits",help:"Your workspace needs more included credits for another reply. Upgrade an assistant or wait for the next billing period.",actionLabel:"Review billing",oneLine:"The workspace needs more included credits; its owner can upgrade an assistant or wait for the next billing period."},billing_demo_spent:{bucket:"account",title:"Demo used up",help:"Your assistant has used the free demo. Starting a trial keeps it running around the clock, and is free for ten days.",actionLabel:"Start free trial",oneLine:"This workspace has used its free demo; starting a trial keeps the assistant running and is free for ten days."},bot_deleted:{bucket:"error",title:"Assistant deleted",help:"This chat is still here, but the assistant can no longer reply.",actionLabel:"",oneLine:"This assistant was deleted. The chat history remains, but it can no longer reply."},computer_not_deployed:{bucket:"error",title:"Assistant asleep",help:"Open the assistant profile to wake it up before chatting.",actionLabel:"Open assistant",oneLine:"This assistant needs to wake up before it can reply."},computer_boot_failed:{bucket:"error",title:"Couldn't wake up",help:"Open the assistant profile to restart it or check what failed.",actionLabel:"Open assistant",oneLine:"This assistant tried to wake up but hit an error."},computer_unreachable:{bucket:"error",title:"Not responding",help:"Open the assistant profile to check status or restart it.",actionLabel:"Open assistant",oneLine:"This assistant is not responding right now; its owner can check its status."},computer_wake_timeout:{bucket:"error",title:"Still waking",help:"Open the assistant profile to check status, or wait a minute and try again.",actionLabel:"Open assistant",oneLine:"This assistant is taking too long to wake up."},stream_timeout:{bucket:"error",title:"Reply too slow",help:"Your assistant took too long to start replying. Try your message again.",actionLabel:"Try again",oneLine:"This assistant took too long to start replying; try the message again."},stream_disconnect:{bucket:"error",title:"Connection lost",help:"The connection dropped while your assistant was replying. Send your message again to retry.",actionLabel:"Try again",oneLine:"The connection dropped while this assistant was replying; try the message again."},empty_stream:{bucket:"error",title:"Empty reply",help:"Your assistant could not generate a reply. Try your message again.",actionLabel:"Try again",oneLine:"This assistant did not return a reply; try the message again."},tool_protocol:{bucket:"error",title:"Tool call failed",help:"Your assistant tried to use a tool in a format PageLines could not run. Try the message again.",actionLabel:"Try again",oneLine:"This assistant tried to use a tool in a format PageLines could not run; try the message again."},rate_limit:{bucket:"error",title:"Slow down",help:"Too many messages at once. Wait a moment, then send your message again.",actionLabel:"Try again",oneLine:"Too many messages arrived at once; wait a moment and try again."}},tI=c.enum(["unknown","stopped","starting","running","unreachable","error"]),VA=c.enum(["wake","restart","rebuild","config_apply","setup"]),FA=c.enum(["running","coalesced","failed"]),BA=c.object({kind:VA,status:FA,startedAt:c.string().datetime(),detail:c.string().optional()}).strict(),rI=c.object({lifecycle:tI,changedAt:c.string().datetime().optional(),detail:c.string().optional(),blocker:eI.optional(),operation:BA.optional()}).strict(),Cl=Object.freeze({lifecycle:"unknown"}),ZA={running:"green",starting:"amber",unreachable:"red",error:"red",stopped:"grey",unknown:"grey"},HA=c.enum(["awake","asleep","changing","stuck"]),nI={awake:"Awake",asleep:"Asleep",changing:"Changing",stuck:"Needs attention"};KA={running:"Online",starting:"Waking up",unreachable:"Unreachable",error:"Error",stopped:"Asleep",unknown:"Checking"},WA={wake:"Waking up",restart:"Restarting",rebuild:"Rebuilding",config_apply:"Applying config",setup:"Setting up"};jF=c.enum(["wake","sleep","restart","rebuild"]);qA=c.object({key:c.string().optional(),id:c.string().optional(),label:c.string().optional(),srLabel:c.string().optional(),subLabel:c.string().optional(),value:c.union([c.string(),c.number()]).optional(),description:c.string().optional(),state:HA.optional(),count:c.number().optional(),className:c.string().optional(),media:Mt.optional(),subMedia:Mt.optional(),cover:Mt.optional(),icon:Mt.optional(),iconAfter:Mt.optional(),subIcon:c.string().optional(),href:c.string().optional(),target:c.enum(["_self","_blank"]).optional(),onClick:c.any().optional(),theme:c.enum(["primary","default"]).optional(),isActive:c.boolean().optional(),isDisabled:c.boolean().optional(),isHidden:c.boolean().optional(),priority:c.number().optional(),testId:c.string().optional(),items:c.array(c.any()).optional(),badges:c.array(h0).optional(),meta:c.array(h0).optional(),menuItems:c.array(c.any()).optional()}),MF=c.object({title:c.string().optional(),description:c.string().optional(),items:c.array(qA).optional()}),oI=c.string().trim().transform(e=>{if(!e.includes("/"))return e;try{let t=new URL(/^https?:\/\//i.test(e)?e:`https://${e}`),[n,i]=t.pathname.split("/").filter(Boolean),r=t.hostname.toLowerCase();if((r==="linkedin.com"||r.endsWith(".linkedin.com"))&&n?.toLowerCase()==="in"&&i)return i}catch{}return e}).pipe(c.string().min(3).max(100).regex(/^[a-zA-Z0-9-]+$/,"Use a LinkedIn username or profile URL")),YA=c.string().trim().transform((e,t)=>{try{let n=new URL(/^https?:\/\//i.test(e)?e:`https://${e}`),i=n.hostname.toLowerCase().replace(/^www\./,""),r=n.pathname.split("/").filter(Boolean)[0];if(!r||!["x.com","twitter.com","facebook.com"].includes(i))throw new Error("unsupported profile");return i==="twitter.com"?`https://x.com/${r}`:`https://${i}/${r}`}catch{return t.addIssue({code:"custom",message:"Use a LinkedIn username or an X or Facebook profile URL"}),c.NEVER}}),w0=c.string().trim().toLowerCase().pipe(c.email()),XA=c.object({lastBotId:c.string().nullable().optional(),userId:c.string(),email:c.string().optional(),handle:c.string().optional(),fullName:c.string().optional(),bio:c.string().optional(),linkedinUsername:oI.optional(),avatarId:c.string().optional(),avatar:Mt.optional(),isEmailVerified:c.boolean().optional(),primaryOrgId:c.string().optional(),lastActiveOrgId:c.string().optional(),onboarding:c.any().optional(),location:c.string().optional(),geo:c.any().optional(),systemRole:c.string().optional(),status:c.string().optional(),lastSeenAt:c.string().optional(),createdAt:c.string().optional(),updatedAt:c.string().optional(),onboarded:c.boolean().optional()}),VF=c.object({email:w0}),FF=c.object({email:w0,code:c.string().min(6,"Verification code is required"),timezone:c.string().max(64).optional()}),BF=c.object({newEmail:w0}),ZF=c.object({credential:c.string().optional(),code:c.string().optional(),timezone:c.string().max(64).optional(),source:c.enum(["web","ios"]).optional()}).refine(e=>e.credential||e.code,{message:"Either credential or code must be provided"}),HF=c.object({identityToken:c.string().min(1),fullName:c.string().optional(),timezone:c.string().max(64).optional()}),aI=c.object({orgId:c.string().optional(),handle:c.string().optional(),name:c.string().optional(),email:c.string().nullable().optional(),website:c.string().url().nullable().optional(),summary:c.string().nullable().optional(),avatarId:c.string().nullable().optional(),avatar:Mt.optional(),coverId:c.string().nullable().optional(),cover:Mt.optional(),accounts:kA.nullable().optional(),ownerId:c.string().optional(),isPersonal:c.boolean().optional(),stripeCustomerIdTest:c.string().nullable().optional(),stripeCustomerIdLive:c.string().nullable().optional(),maxUsers:c.number().optional(),timezone:c.string().nullable().optional(),apiKey:c.string().nullable().optional(),syncedPlan:c.string().nullable().optional(),syncedBillingStatus:c.string().nullable().optional(),firstPaidAt:c.string().nullable().optional(),entitlementDeleteAt:c.string().nullable().optional(),billingLastSyncedAt:c.string().nullable().optional(),syncedPeriodStart:c.string().nullable().optional(),syncedPeriodEnd:c.string().nullable().optional(),onboarding:c.any().optional(),status:c.string().optional(),createdAt:c.string().optional(),updatedAt:c.string().optional()}),QA=c.object({completedAt:c.string().datetime().optional(),setupBy:c.string().optional(),billingSetup:c.boolean().optional(),teamInvitesSetup:c.boolean().optional(),brandingSetup:c.boolean().optional(),domainsSetup:c.boolean().optional()}),e6=c.object({membershipId:c.string(),orgId:c.string(),name:c.string(),handle:c.string(),avatarId:c.string().optional(),avatar:Mt.optional(),coverId:c.string().optional(),cover:Mt.optional(),role:c.enum(["owner","admin","member","observer"]),inviterName:c.string().optional(),memberCount:c.number().optional(),hasComputer:c.boolean().optional(),computerCount:c.number().optional(),joinedAt:c.string().datetime(),onboarding:QA.optional()}),t6=XA.extend({orgs:c.array(e6).optional()}),US=[["#6366f1","#8b5cf6"],["#3b82f6","#06b6d4"],["#10b981","#34d399"],["#f59e0b","#f97316"],["#ef4444","#f97316"],["#ec4899","#8b5cf6"],["#14b8a6","#3b82f6"],["#8b5cf6","#ec4899"]];i6=["[SILENT]","SILENT","NO_REPLY","NO REPLY","NO-OP","NOOP","NO_OP","NO OP","[NO-OP]","[NOOP]","[NO_OP]","[NO OP]","HEARTBEAT_OK"],o6=new Set(i6);sI={wake:300*1e3,bootGrace:420*1e3,provision:600*1e3,stop:30*1e3},jS={AUTH_ACCOUNT_NOT_FOUND:"Account not found. Ask your workspace admin for an invite.",AUTH_INVALID:"Your session has expired. Sign in again to continue.",AUTH_LOCKED_OUT:"Too many failed attempts. Request a new code to try again.",AUTH_INVALID_CODE:"That code didn't match. Double-check the email and try again.",AUTH_INVALID_HANDOFF:"This link has expired. Open the dashboard from the app again.",AUTH_DISPOSABLE_EMAIL:"Please use your work email address.",AUTH_RATE_LIMITED:"Too many requests. Wait a minute and try again.",AUTH_PROVIDER_FAILED:"Sign-in failed. Try again or use email instead.",AUTH_PROVIDER_NOT_CONFIGURED:"That sign-in method isn't available right now.",PLAN_LIMIT:"Your active computers are all in use. Put one computer to sleep or ask us to raise the ceiling.",CREDIT_LIMIT:"Your workspace reached its usage limit. Review billing or contact support to keep your assistant running.",STRIPE_LOAD:"Couldn't open checkout. Try again \u2014 if it persists, contact support.",CHECKOUT_FAILED:"Couldn't start checkout. Try again in a moment.",PAYMENT_FAILED:"Your payment couldn't go through. Update your card to continue.",WAKE_FAILED:"Your assistant didn't wake up. Try again in a moment.",VOICE_BUSY:"Your assistant is on another call. Try again in a moment.",VOICE_UNAVAILABLE:"Voice isn't available right now. Try again in a moment.",STOP_FAILED:"Couldn't put your assistant to sleep. Try again.",RESTART_FAILED:"Restart didn't finish. Try again \u2014 if it persists, rebuild.",REBUILD_FAILED:"Rebuild didn't finish. Try again or contact support.",CREATE_FAILED:"Couldn't create your assistant. Try again in a moment.",DELETE_FAILED:"Couldn't delete your assistant. Try again \u2014 your data is safe.",BOT_NOT_FOUND:"We couldn't find that assistant.",COMPUTER_NOT_FOUND:"We couldn't find that computer.",COMPUTER_INACTIVE:"This computer is off. Turn it on to start it.",ATTACHMENT_TYPE_UNSUPPORTED:"Your assistant can't read this file type yet.",ROUTINE_CHANNEL_UNAVAILABLE:"Your delivery channel isn't reachable. Pair it again or choose PageLines Messenger.",ROUTINE_PURPOSE_REQUIRED:"Say what the scheduled message or work should contain.",NETWORK_ERROR:"Network issue. Check your connection and try again.",TIMEOUT:"The request took too long. Try again in a moment.",FORBIDDEN:"You don't have access to this.",RATE_LIMITED:"Too many requests. Wait a moment and try again."};lI=c.enum(["active","stopped"]),l6=c.enum(["notFound","busy","rateLimited","timeout","invalidConfig","transient","fatal"]),GF=c.object({ok:c.literal(!1),error:c.string(),code:QS.optional(),issue:eI.optional(),providerErrorKind:l6.optional()}),c6=c.object({kind:c.enum(["icon","favicon","service"]),icon:c.string().min(1).optional(),domain:c.string().min(1).optional(),serviceKey:c.string().min(1).optional()}).strict(),cI=c.object({activityId:c.string().min(1),turnId:c.string().min(1),status:c.enum(["started","completed","failed"]),label:c.string().trim().min(1),kind:c.enum(["search","file","image","service","routine","handoff","other"]),toolName:c.string().min(1).optional(),serviceKey:c.string().min(1).optional(),startedAt:c.string().datetime().optional(),endedAt:c.string().datetime().optional(),durationMs:c.number().int().nonnegative().optional(),note:c.string().trim().min(1).optional(),visual:c6.optional()}).strict(),u6=cI.extend({status:c.enum(["completed","failed"])}),Bn=c.string().min(1).max(64).refine(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(new Date(0)),!0}catch{return!1}},"Invalid IANA timezone");dI=y0,d6=c.object({kind:c.literal("inline"),offset:c.number().int().nonnegative()}),pI=c.object({type:dI,src:c.url(),filename:c.string().min(1),mimeType:c.string().min(1),mediaId:c.string().min(1).optional(),size:c.number().int().nonnegative().optional(),width:c.number().int().positive().optional(),height:c.number().int().positive().optional(),duration:c.number().nonnegative().optional(),text:c.string().optional(),placement:d6.optional()}),fI=c.object({ref:c.string().min(1).max(256)}).strict(),mI=c.enum(["handled","dismissed","deferred"]),hI=c.iso.datetime();p6=fI.extend({disposition:mI.optional(),revisitAt:hI.optional()}).superRefine(gI),QF=fI.extend({disposition:mI,revisitAt:hI.optional()}).superRefine(gI),f6=c.object({turnId:c.string().min(1).optional(),turnOutcome:c.enum(["failed","stopped"]).optional(),attachments:c.array(pI).optional(),toolActivities:c.array(u6).optional(),issue:c.object({code:c.string(),bucket:c.enum(["account","error"]),actionLabel:c.string(),actionUrl:c.string(),help:c.string().optional()}).optional(),notification:c.object({push:c.boolean().optional(),excludeUserId:c.string().min(1).optional()}).optional(),routine:c.object({run:c.object({routineRunId:c.string(),name:c.string().optional(),sourceKind:c.enum(["webhook","schedule","manual","heartbeat"]),sourceLabel:c.string().optional(),deliveryId:c.string().optional(),status:c.enum(["received","forwarded","owner_notified","needs_approval","completed","failed","dropped"])}).catchall(c.unknown())}).catchall(c.unknown()).optional(),voiceDelegated:c.literal(!0).optional(),ownerHandoff:c.literal(!0).optional(),attention:c.array(p6).max(20).optional()}).catchall(c.unknown()),m6=c.object({messageId:c.string().min(1),conversationId:c.string().min(1),role:c.enum(["user","assistant","system"]),authorParticipantId:c.string().nullable(),systemKind:c.string().nullable(),content:c.string(),sequence:c.string().min(1),clientNonce:c.string().nullable().optional(),metadata:f6.nullable().optional(),status:c.string().nullable().optional(),createdAt:c.string(),updatedAt:c.string()}),k0=c.object({type:dI,mediaId:c.string().min(1)}),eB=c.object({conversationId:c.string().min(1),content:c.string().max(1e4).default(""),clientNonce:c.string().max(64).optional(),attachments:c.array(k0).max(10).optional(),channel:c.enum(["ios","dashboard"]).optional(),actionUrls:c.object({billing:c.string().max(500),bot:c.string().max(500)}).optional(),viewerTimezone:Bn.optional()}).refine(e=>e.content.trim().length>0||(e.attachments?.length??0)>0,{path:["content"],message:"Message or attachment required"}),vI=c.object({type:c.enum(["user","bot"]),id:c.string().min(1)}).strict();tB=c.object({orgId:c.string().min(1),participants:c.array(vI).min(1).max(20)}).strict().superRefine(bI),rB=c.object({orgId:c.string().min(1),participants:c.array(vI).min(1).max(20)}).strict().superRefine((e,t)=>{bI(e,t),e.participants.some(n=>n.type==="bot")||t.addIssue({code:"custom",path:["participants"],message:"New sessions require at least one agent participant."})}),nB=c.object({category:c.string().min(1).max(30).optional(),reason:c.string().max(2e3).optional()}).strict(),h6=c.enum(["1:1","4:3","3:4","16:9","9:16"]),g6=c.enum(["1K","2K","4K"]),iB=c.object({prompt:c.string().trim().min(1).max(4e3),aspectRatio:h6.default("1:1"),outputFormat:c.enum(["png","jpeg","webp"]).default("webp"),resolution:g6.default("2K"),style:c.string().trim().max(200).optional(),altText:c.string().trim().max(500).optional(),referenceMediaIds:c.array(c.string().min(1)).max(4).optional()}).strict(),oB=c.object({mediaId:c.string().min(1),src:c.url(),filename:c.string().min(1),mimeType:c.string().min(1),width:c.number().int().positive().optional(),height:c.number().int().positive().optional(),provider:c.string().min(1).optional(),providerRequestId:c.string().min(1).optional(),media:c.string().startsWith("MEDIA:"),attachment:pI.extend({type:c.literal("image")})}),sB=c.object({identityToken:c.string().min(1),fullName:c.string().optional()}),v6=c.object({redirect:c.string(),redirectReason:c.string(),isNew:c.boolean(),deviceId:c.string()}),lB=c.object({ok:c.literal(!0),data:v6,token:c.string()}),cB=c.object({path:c.string().startsWith("/","path must be a relative dashboard path").refine(bA,"path must be a relative dashboard path")}),b6=c.object({url:c.string()}),uB=c.object({ok:c.literal(!0),data:b6}),dB=c.object({token:c.string().min(1)}),y6=c.object({redirect:c.string(),redirectReason:c.string(),deviceId:c.string()}),pB=c.object({ok:c.literal(!0),data:y6,token:c.string()}),yI=JS,w6=y0,g0=c.object({mediaId:c.string(),src:c.string(),alt:c.string().nullable().optional(),filename:c.string().optional(),displayName:c.string().nullable().optional(),mimeType:c.string().optional(),mediaType:w6.optional(),size:c.number().optional(),width:c.number().nullable().optional(),height:c.number().nullable().optional(),duration:c.number().nullable().optional(),context:yI.nullable().optional(),blurhash:c.string().nullable().optional(),quality:c.string().optional(),status:c.string().optional(),userId:c.string().optional(),orgId:c.string().optional(),botId:c.string().nullable().optional(),createdAt:c.string().optional(),updatedAt:c.string().optional()}),gB=c.object({file:c.string().describe("Binary file. multipart/form-data field \u2014 the actual upload. The server validates type + size and normalizes image uploads before storage. Audio/video/document uploads use the same uploader and are classified by MIME type."),context:yI.optional().default("general"),botId:c.string().optional(),orgId:c.string().optional(),duration:c.number().optional()}),wI=c.object({viewerTimezone:Bn.optional(),location:c.object({label:c.string().max(500),city:c.string().optional(),region:c.string().optional(),countryCode:c.string().optional(),timezone:c.string().optional(),source:c.literal("geoip"),precision:c.enum(["city","region","country"]),confidence:c.enum(["medium","low"]),vpnOrDatacenter:c.enum(["likely","unknown"])}).optional()}),k6=c.object({status:c.enum(["available","unavailable"]),user:c.string().max(16e3).optional(),memory:c.string().max(16e3).optional(),agents:c.string().max(4e3).optional()}).strict(),wB=c.object({bot:c.object({id:c.string(),name:c.string(),title:c.string().nullable().optional(),timezone:Bn}),scope:c.enum(["private","org","public"]),channel:c.string().max(120),currentTime:c.iso.datetime(),scopePrompt:c.string().optional(),observations:wI.optional(),lastObservedTimezone:Bn.optional(),lean:k6.optional()}),kI=c.enum(["woman","man"]),x6=[{key:"ava",gender:"woman",accent:"American",character:"Warm, patient and understanding",isDefault:!0},{key:"hope",gender:"woman",accent:"American",character:"Soft-spoken, smooth and kind"},{key:"lauren",gender:"woman",accent:"American",character:"Friendly, comforting and soft"},{key:"amy",gender:"woman",accent:"American",character:"Natural and sweet"},{key:"eve",gender:"woman",accent:"American",character:"Authentic, energetic and happy"},{key:"jessica",gender:"woman",accent:"British",character:"Smooth, articulate and warm"},{key:"adam",gender:"man",accent:"American",character:"Engaging, friendly and bright",isDefault:!0},{key:"jon",gender:"man",accent:"American",character:"Relaxed, deep and approachable"},{key:"joe",gender:"man",accent:"British",character:"Reflective and thoughtful"},{key:"peter",gender:"man",accent:"Australian",character:"Deep, warm and direct"}],xI=c.enum(x6.map(e=>e.key)),kB=c.object({conversationId:c.string().min(1),viewerTimezone:Bn.optional()}).strict(),xB=c.object({conversationId:c.string().min(1),botId:c.string().min(1),personaName:c.string().min(1),personaTitle:c.string().max(255).nullable().optional(),gender:kI,voiceKey:xI.nullable(),sessionScope:c.enum(["private","org","public"]),observations:wI.optional(),threadSummary:c.string(),capabilities:c.array(c.object({name:c.string().min(1),description:c.string().min(1)})).optional(),surfaceGuidance:c.string().optional(),maxDurationSeconds:c.number().int().positive().max(3600).optional(),expiresAt:c.iso.datetime()}),_6=c.literal("livekit"),_B=c.object({name:c.enum(["voice.ready","voice.first_playback","voice.failed"]),client:c.enum(["web","ios"]),botId:c.string().min(1).max(64).optional(),conversationId:c.string().min(1).max(64).optional(),provider:_6.optional(),durationMs:c.number().int().min(0).max(36e5),phase:c.enum(["idle","minting","connecting","live","ended"]).optional(),code:c.string().min(1).max(64).optional(),detail:c.string().min(1).max(300).optional(),appVersion:c.string().min(1).max(32).optional(),appBuild:c.string().min(1).max(32).optional()}).strict(),$B=c.object({provider:c.literal("livekit"),url:c.string().min(1),token:c.string().min(1),room:c.string().min(1)}).strict(),$6=c.enum(["identity","working-style","complete"]),S6=c.string().min(1).max(50).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),Tl=c.object({botId:c.string().min(1),computerId:c.string().min(1),handle:c.string().min(2).max(50),name:c.string().min(1).max(100),emoji:c.string().max(8).nullable().optional(),title:c.string().max(120).nullable().optional(),summary:c.string().max(500).nullable().optional(),avatarId:c.string().nullable().optional(),coverId:c.string().nullable().optional(),avatar:Mt.optional(),cover:Mt.optional(),email:c.email().nullable().optional(),website:c.url().nullable().optional(),accounts:c.array(c.object({platform:c.enum(["linkedin","x","facebook","tiktok","youtube","github","instagram","threads","email","phone","website"]),handle:c.string()})).nullable().optional(),gender:kI.optional(),voiceKey:xI.nullable().optional(),isPrimary:c.boolean(),collaborationEnabled:c.boolean(),publicChatEnabled:c.boolean(),status:c.enum(["active","deleted"]),onboardingStage:$6.nullable().optional(),onboardedAt:c.string().nullable().optional(),routinePrimaryChannel:S6.optional(),firstMessageAt:c.string().nullable().optional(),firstValueAt:c.string().nullable().optional(),lastMessageAt:c.string().nullable().optional(),createdAt:c.string(),updatedAt:c.string()}).strict(),x0=Tl.pick({name:!0,emoji:!0,title:!0,summary:!0,gender:!0,voiceKey:!0}).extend({handle:Tl.shape.handle.optional(),avatarPreset:c.string().min(1).max(64).optional(),avatarMediaId:c.string().optional()}).strict(),SB=x0.extend({computerId:c.string().min(1)}).strict(),IB=Tl.pick({name:!0,handle:!0,emoji:!0,title:!0,summary:!0,email:!0,website:!0,gender:!0,voiceKey:!0,routinePrimaryChannel:!0,collaborationEnabled:!0,publicChatEnabled:!0}).partial().extend({avatarMediaId:c.string().nullable().optional(),coverMediaId:c.string().nullable().optional()}).strict(),_I=c.enum(["essential","professional","business"]),tp=rI.partial().extend({computerId:c.string().min(1),ownerId:c.string().min(1),owner:c.object({userId:c.string(),fullName:c.string().optional(),avatar:g0.optional()}).optional(),orgId:c.string().min(1),name:c.string().min(1).max(100),model:c.string().nullable(),timezone:Bn,billingTier:_I,desiredStatus:lI.nullable(),status:c.enum(["active","deleted"]),lastActiveAt:c.string().nullable().optional(),createdAt:c.string(),updatedAt:c.string()}).strict(),EB=c.object({orgId:c.string().min(1),name:tp.shape.name.optional(),timezone:Bn.optional(),primaryBot:x0}).strict(),TB=tp.pick({name:!0,model:!0,timezone:!0}).partial().strict(),I6=c.enum(["none","active_assistant"]),E6=c.enum(["none","active","trial","canceling","past_due","paused"]),T6=c.object({brand:c.string(),last4:c.string(),expMonth:c.number(),expYear:c.number()}),N6=c.object({date:c.string(),amount:c.number(),status:c.string(),invoicePdf:c.string().optional()}),C6=c.object({graceEndsAt:c.string().optional(),suspended:c.boolean(),url:c.string().optional()}),NB=c.object({plan:I6,status:E6,price:c.number(),tierRates:c.record(c.string(),c.number()).optional(),maxComputers:c.number(),activeComputers:c.number(),workspaceTier:_I.optional(),upcomingAmountDue:c.number().optional(),upcomingDueDate:c.string().optional(),nextBillDate:c.string().optional(),cancelAtPeriodEnd:c.boolean().optional(),cancelAt:c.string().optional(),trialEnd:c.string().optional(),trialDaysRemaining:c.number().optional(),paymentMethod:T6.optional(),paymentRecovery:C6.optional(),invoices:c.array(N6),stripeError:c.string().optional()}),z6=c.enum(["demo_computer_exists","demo_usage_exhausted","subscription_required","plan_limit"]),CB=c.object({canCreate:c.boolean(),activeComputers:c.number().int().nonnegative(),computerLimit:c.number().int().nonnegative(),isDemo:c.boolean(),reason:z6.optional()}),zB=c.object({orgId:c.string(),computerName:c.string().optional(),runtime:c.string().optional()}),OB=c.object({created:c.number(),skipped:c.number(),errors:c.array(c.string())}),AB=c.object({updated:c.number(),errors:c.array(c.string())}),O6=rI,A6=c.object({code:QS,message:c.string(),bucket:c.enum(["account","error"]),actionLabel:c.string().optional(),actionUrl:c.string().optional(),help:c.string().optional()}),D6=c.discriminatedUnion("event",[c.object({event:c.literal("status"),data:O6}),c.object({event:c.literal("message"),data:c.object({message:m6})}),c.object({event:c.literal("message_delta"),data:c.object({delta:c.string(),turnId:c.string(),messageId:c.string().optional(),role:c.enum(["assistant","system"]).optional()})}),c.object({event:c.literal("working_state"),data:c.object({description:c.string(),turnId:c.string().optional()})}),c.object({event:c.literal("tool_activity"),data:cI}),c.object({event:c.literal("working_end"),data:c.object({turnId:c.string().optional()}).strict()}),c.object({event:c.literal("stream_end"),data:c.object({turnId:c.string().optional()}).strict()}),c.object({event:c.literal("error"),data:A6})]);M6=c.object({label:c.string().trim().min(1).max(40),reply:c.string().trim().min(1).max(500),style:c.enum(["primary","default","destructive"]).optional()}).strip(),L6=c.object({version:c.literal(1),title:c.string().trim().min(1).max(200),body:c.string().trim().min(1).max(8e3).optional(),actions:c.array(M6).min(1).max(3).optional()}).strip();V6=c.string().trim().min(1).max(240),v0=c.string().trim().min(1).max(800),Zn=c.string().trim().min(1).max(80).regex(/^[A-Za-z0-9_.:-]+$/),za=c.string().trim().min(1).max(120),F6=c.union([c.string().max(500),c.number().finite(),c.boolean(),c.null()]),EI=c.record(Zn,F6),B6=c.enum(["compact","currency","duration","integer","percent","raw"]),Z6=c.object({title:V6,description:v0.optional(),footer:v0.optional()}).strip(),TI=c.object({dataKey:Zn,label:za.optional(),axisLabel:za.optional(),valueFormat:B6.optional(),valuePrefix:c.string().trim().max(12).optional(),valueSuffix:c.string().trim().max(12).optional()}).strip(),H6=c.object({kind:c.literal("linear"),dataKey:Zn,label:za.optional()}).strip(),$0=c.object({version:c.literal(1),meta:Z6,fallbackMarkdown:c.string().trim().min(1).max(4e3)}).strip();W6=$0.extend({visualType:c.literal("chart"),chartType:c.enum(["bar","line","scatter"]),xKey:Zn,xAxisLabel:za.optional(),series:c.array(TI).min(1).max(6),data:c.array(EI).min(1).max(120),layout:c.enum(["horizontal","vertical"]).optional(),stacking:c.enum(["grouped","stacked"]).optional(),trendLine:H6.optional()}).strip().superRefine((e,t)=>{e.stacking&&e.chartType!=="bar"&&t.addIssue({code:"custom",path:["stacking"],message:"Stacking is only supported for bar charts"}),e.trendLine&&e.chartType!=="line"&&e.chartType!=="scatter"&&t.addIssue({code:"custom",path:["trendLine"],message:"Trend lines are only supported for line and scatter charts"}),NI(e.data,[{path:["xKey"],value:e.xKey},...e.series.map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey})),...e.trendLine?[{path:["trendLine","dataKey"],value:e.trendLine.dataKey}]:[]],t),CI(e.data,[...e.series.map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey})),...e.trendLine?[{path:["trendLine","dataKey"],value:e.trendLine.dataKey}]:[]],t)}),G6=$0.extend({visualType:c.literal("chart"),chartType:c.literal("pie"),nameKey:Zn,valueKey:Zn,series:c.array(TI).max(1).optional(),data:c.array(EI).min(1).max(16)}).strip().superRefine((e,t)=>{NI(e.data,[{path:["nameKey"],value:e.nameKey},{path:["valueKey"],value:e.valueKey},...(e.series??[]).map((n,i)=>({path:["series",i,"dataKey"],value:n.dataKey}))],t),CI(e.data,[{path:["valueKey"],value:e.valueKey,nonnegative:!0}],t)}),J6=c.discriminatedUnion("chartType",[W6,G6]),q6=c.object({id:Zn,label:za,detail:v0.optional(),kind:c.enum(["actor","agent","decision","event","input","output","system","task"]).optional()}).strip(),Y6=c.object({from:Zn,to:Zn,label:za.optional()}).strip(),X6=$0.extend({visualType:c.literal("diagram"),diagramType:c.enum(["flow","org","sequence","state"]),layout:c.enum(["auto","left-to-right","radial","top-to-bottom"]).default("auto"),nodes:c.array(q6).min(1).max(24),edges:c.array(Y6).max(48)}).strip().superRefine((e,t)=>{let n=new Set(e.nodes.map(i=>i.id));for(let[i,r]of e.edges.entries())n.has(r.from)||t.addIssue({code:"custom",path:["edges",i,"from"],message:`Unknown node id "${r.from}"`}),n.has(r.to)||t.addIssue({code:"custom",path:["edges",i,"to"],message:`Unknown node id "${r.to}"`})}),MS=c.union([J6,X6]);OI=c.object({conversationParticipantId:c.string().min(1),type:c.enum(["user","bot","anonymous"]),id:c.string(),role:c.enum(["owner","requester","member"]),status:c.enum(["active","left","deleted"]),displayName:c.string().optional(),handle:c.string().optional(),avatarUrl:c.string().optional()}).strict(),AI=c.object({messageId:c.string(),role:c.enum(["user","assistant","system"]),content:c.string(),sequence:c.string(),createdAt:c.string()}),jB=c.object({conversationId:c.string(),orgId:c.string(),kind:c.enum(["direct","group"]),updatedAt:c.string(),viewerRole:c.enum(["owner","requester","member"]),participants:c.array(OI),lastMessage:AI.nullable(),openingMessage:c.string().nullable(),unreadCount:c.number().int().nonnegative(),latestSequence:c.string().nullable()}),MB=c.object({sequence:c.string().min(1)}),LB=c.object({turnId:c.string().min(1).optional()}).strict(),VB=c.object({cancelled:c.boolean(),cancelledTurnIds:c.array(c.string())}).strict(),FB=c.object({conversationId:c.string(),messageId:c.string(),sequence:c.string(),snippet:c.string(),createdAt:c.string(),participants:c.array(OI)}),BB=c.object({conversationId:c.string(),lastMessage:AI.nullable(),unreadCount:c.number().int().nonnegative(),latestSequence:c.string().nullable()}),Lr=c.preprocess(e=>e===void 0?null:e,c.string().nullable()),iD=c.preprocess(e=>e===void 0?null:e,tI.nullable()),oD=c.preprocess(e=>e===void 0?null:e,lI.nullable()),aD=c.preprocess(e=>e===void 0?null:e,c.enum(["user","assistant","system"]).nullable()),LS=c.preprocess(e=>e===void 0?0:e,c.number()),sD=c.object({computerId:c.string(),handle:c.string(),name:c.string(),orgId:c.string(),orgName:Lr,orgHandle:Lr,ownerEmail:Lr,ownerName:Lr,state:iD,desiredStatus:oD,runtime:c.string(),imageVersion:Lr,lastHealthyAt:Lr,lastActiveAt:Lr,lastUserMessageAt:Lr,lastMessageAt:Lr,lastMessageRole:aD,lastMessageChannel:Lr,primaryChannel:Lr,totalMessages:LS,totalSessions:LS,error:Lr,appHandle:c.string(),hostAppExists:c.boolean(),plan:c.string(),billingStatus:c.string(),billingActive:c.boolean(),createdAt:c.string(),updatedAt:c.string()}),lD=c.object({running:c.number(),stopped:c.number(),error:c.number(),starting:c.number(),unknown:c.number(),total:c.number()}),HB=c.object({computers:c.array(sD),summary:lD,orphanedApps:c.array(c.string()),dailyMessages30d:c.array(c.number().int()).optional(),hostAppCount:c.number().optional(),latestVersions:c.record(c.string(),c.string()).optional()}),cD=c.object({mediaId:c.string().optional(),src:c.string().optional(),alt:c.string().optional(),width:c.number().optional(),height:c.number().optional(),mimeType:c.string().optional(),mediaType:c.string().optional(),blurhash:c.string().optional()}),WB=c.object({membershipId:c.string(),userId:c.string(),orgId:c.string(),email:c.string(),fullName:c.string().optional(),role:c.enum(["owner","admin","member","observer"]),status:c.enum(["active","suspended"]),joinedAt:c.string(),lastSeenAt:c.string().optional(),avatar:cD.optional()}),GB=c.object({invitationId:c.string(),email:c.string(),role:c.enum(["admin","member"]),status:c.string(),expiresAt:c.string(),createdAt:c.string()}),uD=c.object({token:c.string(),email:c.string(),orgId:c.string(),orgName:c.string(),orgInitial:c.string(),inviterName:c.string().optional(),inviterEmail:c.string(),role:c.enum(["owner","admin","member","observer"]),status:c.enum(["pending","accepted","expired","revoked"]),expiresAt:c.string(),memberCount:c.number().optional()}),JB=c.object({email:c.string().email(),role:c.enum(["admin","member"]).optional(),message:c.string().max(500).optional()}).strict(),qB=c.object({role:c.enum(["admin","member"])}).strict(),YB=c.object({token:c.string().min(1)}).strict(),XB=c.object({message:c.string()}),QB=c.object({invitationId:c.string(),message:c.string()}),e7=c.object({message:c.string(),membershipId:c.string(),orgId:c.string(),role:c.enum(["owner","admin","member","observer"])}),t7=c.object({invite:uD.nullable()}),dD={};uA(dD,{zNotificationTelemetryAck:()=>hD,zNotificationTelemetryEvent:()=>mD,zRegisterDeviceRequest:()=>pD,zRegisterDeviceResponse:()=>fD});pD=c.object({deviceId:c.string().min(1).max(64),pushToken:c.string().min(1).max(200),appVersion:c.string().max(40).optional(),osVersion:c.string().max(40).optional(),model:c.string().max(80).optional()}),fD=c.object({deviceId:c.string().min(1).max(64)}),mD=c.object({deviceId:c.string().min(1).max(64),kind:c.string().min(1).max(30),action:c.enum(["displayed","tapped","dismissed"]),messageId:c.string().max(32).optional()}),hD=c.object({updated:c.boolean()}),i7=aI.pick({orgId:!0,handle:!0,name:!0,email:!0,website:!0,avatarId:!0,coverId:!0,summary:!0,timezone:!0,isPersonal:!0,status:!0,updatedAt:!0}).extend({avatar:g0.nullable().optional(),cover:g0.nullable().optional()}),o7=c.object({name:c.string().min(1).max(255),handle:c.string().min(2).max(50).optional(),timezone:Bn.optional()}).strict(),a7=aI.pick({name:!0,email:!0,website:!0,summary:!0,timezone:!0}).extend({name:c.string().min(1).max(255).optional(),email:c.preprocess(e=>e===""?null:e,c.string().email().nullable()).optional(),timezone:Bn.optional(),avatarMediaId:c.string().nullable().optional(),coverMediaId:c.string().nullable().optional()}).strict(),l7=c.object({used:c.number().int().nonnegative(),limit:c.number().int().nonnegative(),remaining:c.number().int().nonnegative(),periodEnd:c.string(),isDemo:c.boolean(),state:c.enum(["ok","warning","exhausted"])}),u7=c.object({messagesHandled:c.number().int().nonnegative(),proactiveRuns:c.number().int().nonnegative(),approvalsWaiting:c.number().int().nonnegative(),approvalConversationId:c.string().optional(),approvalBotId:c.string().optional(),dailyHandled:c.array(c.number().int().nonnegative()).length(30),messagesByAssistant:c.array(c.object({botId:c.string(),count:c.number().int().nonnegative()})),briefingsDelivered:c.number().int().nonnegative(),scheduledRuns:c.number().int().nonnegative(),prev30MessagesHandled:c.number().int().nonnegative(),prev30BriefingsDelivered:c.number().int().nonnegative(),prev30ScheduledRuns:c.number().int().nonnegative(),since:c.string()}),gD=c.enum(["success","info","warning"]),vD=c.object({orgId:c.string(),name:c.string(),avatarUrl:c.string().nullable()}),bD=c.object({key:c.string(),label:c.string(),tone:gD,status:c.string(),trialDaysRemaining:c.number().optional()}),yD=c.object({activeComputerLimit:c.number().int().nonnegative(),activeComputerCount:c.number().int().nonnegative(),computerCount:c.number().int().nonnegative()}),p7=c.object({org:vD,plan:bD,quota:yD,memberCount:c.number().int().nonnegative()}),wD=c.object({sender:c.enum(["user","agent"]),text:c.string()}),kD=c.enum(["works-now","guided-setup","coming-soon","custom-workflow"]),xD=c.object({docsUrl:c.string(),verifiedAt:c.string(),version:c.string().optional(),versionPolicy:c.enum(["date-versioned","header-versioned","path-versioned","endpoint-versioned","unversioned"]),note:c.string().optional()}),_D=c.object({key:c.string(),label:c.string(),rank:c.number()}),$D=c.object({text:c.string(),tone:c.enum(["info","warning","success","danger"])}),m7=c.object({serviceKey:c.string(),name:c.string(),description:c.string(),shortDescription:c.string(),subtitle:c.string().optional(),icon:c.string().optional(),category:c.string(),categoryLabel:c.string(),categoryRank:c.number(),featuredRank:c.number().optional(),secondaryCategories:c.array(_D),badges:c.array($D),tags:c.array(c.string()),searchAliases:c.array(c.string()),jtbd:c.string(),useCase:c.string(),demoScenario:c.string(),sampleConversation:c.array(wD),publicStatus:kD,apiVerification:xD.optional(),setupDifficulty:c.string(),risk:c.string(),price:c.string(),kind:c.string(),tier:c.string(),installLevel:c.enum(["computer","org","both"]),setupSummary:c.string().optional(),pagePath:c.string()}),SD=c.object({title:c.string().optional(),text:c.string()}),g7=c.object({content:c.string(),mediaType:c.enum(["application/json","text/plain"]),copyLabel:c.string(),action:c.object({label:c.string(),url:c.url()}),steps:c.array(SD)}),b7=c.object({fullName:c.string().min(1).max(100).optional(),bio:c.string().max(500).nullable().optional(),linkedinUsername:oI.nullable().optional(),profileUrl:YA.nullable().optional(),avatarMediaId:c.string().nullable().optional(),lastBotId:c.string().nullable().optional(),lastActiveOrgId:c.string().nullable().optional()}).strict(),b0=8e3,ID=c.string().regex(/^[A-Z][A-Z0-9_]*$/),ED=c.object({name:c.string().trim().min(1).max(100),instructions:c.string().trim().min(1).max(b0),credentialNames:c.array(ID).max(10)}),DI=c.object({mediaId:c.string().min(1),sha256:c.string().regex(/^[a-f0-9]{64}$/).optional(),name:c.string().min(1).max(100)}).strict(),TD=ED.extend({toolId:c.string().min(1),assets:c.array(DI)}).strict(),ND={schemaVersion:c.literal(1),name:c.string().min(1).max(100),summary:c.string().max(500)},PI=c.object({...ND,identity:x0.pick({name:!0,emoji:!0,title:!0,summary:!0,gender:!0}).strict(),guidance:c.string().max(b0),examples:c.array(c.string().max(b0)),tools:c.array(TD),assets:c.array(DI)}).strict(),w7=c.object({templateId:c.string(),publisherId:c.string(),publisher:c.object({userId:c.string(),fullName:c.string(),avatar:c.object({src:c.string()}).strict().optional()}).strict(),name:c.string(),description:c.string(),snapshot:PI,createdAt:c.string()}).strict(),k7=c.object({reviewed:c.literal(!0),orgId:c.string().min(1),sourceBotId:c.string().min(1),snapshot:PI}).strict(),x7=c.object({templateId:c.string().min(1),destination:c.discriminatedUnion("kind",[c.object({kind:c.literal("computer"),computerId:c.string().min(1)}).strict(),c.object({kind:c.literal("first-computer"),orgId:c.string().min(1)}).strict()]),includedToolIds:c.array(c.string().min(1))}).strict(),_7=c.object({"idempotency-key":c.uuid().describe("One UUID per Add intent; reuse it for retries.")}),S7=c.object({user:t6,computers:c.array(tp),bots:c.array(Tl)}),VS=Object.keys(tp.shape),RI=class extends so{constructor(e){super("Computer",e),this.computerId=q(this.settings.computerId),this.ownerId=q(this.settings.ownerId),this.owner=q(this.settings.owner),this.orgId=q(this.settings.orgId),this.name=q(this.settings.name),this.model=q(this.settings.model),this.timezone=q(this.settings.timezone),this.billingTier=q(this.settings.billingTier),this.desiredStatus=q(this.settings.desiredStatus),this.status=q(this.settings.status),this.lastActiveAt=q(this.settings.lastActiveAt),this.createdAt=q(this.settings.createdAt),this.updatedAt=q(this.settings.updatedAt),this.lifecycle=q(this.settings.lifecycle),this.changedAt=q(this.settings.changedAt),this.detail=q(this.settings.detail),this.blocker=q(this.settings.blocker),this.operation=q(this.settings.operation),this.ownerMarkUrl=P(()=>{let t=this.owner.value;return t?.avatar?.src||zl(t?.fullName||this.ownerId.value)}),this.state=P(()=>GA({lifecycle:this.lifecycle.value??"unknown",changedAt:this.changedAt.value,detail:this.detail.value,blocker:this.blocker.value,operation:this.operation.value},this.name.value))}merge(e){if(e.computerId!==void 0&&e.computerId!==this.computerId.value)throw new Error("Cannot change a computer identity");for(let t of VS){if(!(t in e))continue;let n=this[t];n&&typeof n=="object"&&"value"in n&&(n.value=e[t])}}toData(){let e={};for(let t of VS){let n=this[t];n&&typeof n=="object"&&"value"in n&&(e[t]=n.value)}return e}toJSON(){return this.toData()}},FS=Object.keys(Tl.shape),S0=class extends so{constructor(e,t){if(e.computerId!==t.computerId.value)throw new Error("Bot and computer identities do not match");super("Bot",e),this.botId=q(this.settings.botId),this.computerId=q(this.settings.computerId),this.name=q(this.settings.name),this.handle=q(this.settings.handle),this.emoji=q(this.settings.emoji),this.title=q(this.settings.title),this.summary=q(this.settings.summary),this.avatarId=q(this.settings.avatarId),this.coverId=q(this.settings.coverId),this.avatar=q(this.settings.avatar),this.cover=q(this.settings.cover),this.email=q(this.settings.email),this.website=q(this.settings.website),this.accounts=q(this.settings.accounts),this.gender=q(this.settings.gender),this.voiceKey=q(this.settings.voiceKey),this.publicChatEnabled=q(this.settings.publicChatEnabled),this.isPrimary=q(this.settings.isPrimary),this.collaborationEnabled=q(this.settings.collaborationEnabled),this.status=q(this.settings.status),this.onboardingStage=q(this.settings.onboardingStage),this.onboardedAt=q(this.settings.onboardedAt),this.routinePrimaryChannel=q(this.settings.routinePrimaryChannel),this.firstMessageAt=q(this.settings.firstMessageAt),this.firstValueAt=q(this.settings.firstValueAt),this.lastMessageAt=q(this.settings.lastMessageAt),this.createdAt=q(this.settings.createdAt),this.updatedAt=q(this.settings.updatedAt),this.displayName=P(()=>this.name.value||"Unnamed"),this.avatarUrl=P(()=>this.avatar.value?.src||zl(this.name.value)),this.hasCustomHandle=P(()=>!!this.handle.value&&!/\d{13,}$/.test(this.handle.value)),this.displayHandle=P(()=>this.hasCustomHandle.value?`@${this.handle.value}`:void 0),this.hasReceivedMessage=P(()=>!!this.lastMessageAt.value),this.computer=t}get owner(){return this.computer.owner}get ownerMarkUrl(){return this.computer.ownerMarkUrl}get ownerId(){return this.computer.ownerId}get orgId(){return this.computer.orgId}get model(){return this.computer.model}get timezone(){return this.computer.timezone}get billingTier(){return this.computer.billingTier}get desiredStatus(){return this.computer.desiredStatus}get lifecycle(){return this.computer.lifecycle}get changedAt(){return this.computer.changedAt}get detail(){return this.computer.detail}get blocker(){return this.computer.blocker}get operation(){return this.computer.operation}get state(){return this.computer.state}get lastActiveAt(){return this.computer.lastActiveAt}merge(e){if(e.botId!==void 0&&e.botId!==this.botId.value)throw new Error("Cannot change a bot identity");if(e.computerId!==void 0&&e.computerId!==this.computerId.value)throw new Error("Cannot move a bot between computers");for(let t of FS){if(!(t in e))continue;let n=this[t];n&&typeof n=="object"&&"value"in n&&(n.value=e[t])}}toData(){let e={};for(let t of FS){let n=this[t];n&&typeof n=="object"&&"value"in n&&(e[t]=n.value)}return e}toJSON(){return this.toData()}}});function Hn(e,t){let n=Number(globalThis.process?.env?.PORT)||Nl.port;return e||(t?`http://localhost:${n}`:Nl.urls.app)}function CD(e,t,n){let i=Hn(e.apiBase,e.isDev);return async(r,o)=>{let a=lo.getAuthToken(),s=new Headers(o?.headers);s.has("Content-Type")||s.set("Content-Type","application/json"),a&&!s.has("Authorization")&&s.set("Authorization",`Bearer ${a}`);let l=typeof r=="string"&&r.startsWith("/")?`${i}${r}`:r,u=await fetch(l,{...o,headers:s,credentials:"include"});if(n&&u.status===401&&(await u.clone().json().catch(()=>{}))?.code==="TOKEN_ERROR"&&n(),t){let d=u.json.bind(u);u.json=async()=>{let p=await d();return typeof p=="object"&&p&&"ok"in p&&("user"in p||"token"in p)&&t(p),p}}return u}}function Dl(e){"@babel/helpers - typeof";return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dl(e)}function AD(e,t){if(Dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(Dl(i)!="object")return i;throw TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DD(e){var t=AD(e,"string");return Dl(t)=="symbol"?t:t+""}function W(e,t,n){return(t=DD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function Oa(e,t){e.loading.value=!0,e.error.value=null;try{return await t()}finally{e.loading.value=!1}}function MI(e){if(e.role==="assistant"||e.role==="system")return{id:e.messageId,text:e.content,sender:e.role==="system"?"system":"bot",timestamp:e.createdAt,conversationId:e.conversationId,sequence:e.sequence,systemKind:e.systemKind,...e.metadata?.routine?{routine:e.metadata.routine}:{},...e.metadata?.turnOutcome?{turnOutcome:e.metadata.turnOutcome}:{},...e.metadata?.attachments?.length?{attachments:e.metadata.attachments}:{},...e.metadata?.toolActivities?.length?{toolActivities:e.metadata.toolActivities}:{},...e.metadata?.issue?{issue:e.metadata.issue}:{}}}var UI,Xr,Al,jI,E0,zD,OD,T0,Aa,rp,np,ip,PD,RD,UD,I0,jD,MD,LD,VD,FD,op,Pl,N0=Y(()=>{"use strict";Tn();Ol();bn();Xr=[],Al=0,jI=null,E0=4,zD=(UI=globalThis).nanostoresGlobal||(UI.nanostoresGlobal={epoch:0}),OD=()=>{let e,t;for(;Al<Xr.length;){t=Al,Al+=E0;try{Xr[t](Xr[t+1].value,Xr[t+2],Xr[t+3])}catch(n){e=n}}if(Xr.length=Al=0,e)throw e},T0=e=>{let t=[],n={eq:Object.is,get(){return n.lc||n.listen(()=>{})(),n.value},init:e,lc:0,listen(i){return n.lc=t.push(i),()=>{for(let o=Al;o<Xr.length;)Xr[o]===i?Xr.splice(o,E0):o+=E0;let r=t.indexOf(i);~r&&(t.splice(r,1),--n.lc||n.off())}},notify(i,r){zD.epoch++;let o=!Xr.length&&!0;for(let a of t)jI?.has(a)||(jI?.add(a),Xr.push(a,n,i,r));o&&OD()},off(){},set(i){let r=n.value;n.eq(r,i)||(n.value=i,n.notify(r))},subscribe(i){let r=n.listen(i);return i(n.value),r},value:e};return n};Aa=globalThis,rp=Aa.__PL_AUTH_USER__??(Aa.__PL_AUTH_USER__=T0(void 0)),np=Aa.__PL_AUTH_TOKEN__??(Aa.__PL_AUTH_TOKEN__=T0(null)),ip=Aa.__PL_AUTH_DEVICE_ID__??(Aa.__PL_AUTH_DEVICE_ID__=T0(null)),PD=class{constructor(){W(this,"logger",ao("SDKStorage"))}isLocalStorageFunctional(){return typeof window<"u"&&typeof localStorage?.getItem=="function"&&typeof localStorage?.setItem=="function"&&typeof localStorage?.removeItem=="function"}syncWithGlobalStores(e){let{activeUser:t,token:n,deviceId:i}=e,r=rp.get(),o=np.get(),a=ip.get();r&&(t.value=r),o&&(n.value=o),a&&(i.value=a),ft(t,s=>rp.set(s),{immediate:!0}),ft(n,s=>np.set(s),{immediate:!0}),ft(i,s=>ip.set(s),{immediate:!0}),rp.subscribe(s=>{s!==t.value&&(t.value=s)}),np.subscribe(s=>{s!==n.value&&(n.value=s)}),ip.subscribe(s=>{s!==i.value&&(i.value=s)})}loadFromStorage(e){if(typeof window>"u")return;let t=lo.getAuthToken();t&&(e.token.value=t);let n=lo.getDeviceId();if(n&&(e.deviceId.value=n),this.isLocalStorageFunctional())try{let i=localStorage.getItem("pagelines-user");i&&(e.activeUser.value=JSON.parse(i))}catch(i){this.logger.error("Failed to load user from localStorage",{data:i})}}saveToStorage(e){if(!(typeof window>"u")&&(e.token.value?lo.setAuthToken(e.token.value):lo.removeAuthToken(),this.isLocalStorageFunctional()))try{e.activeUser.value?localStorage.setItem("pagelines-user",JSON.stringify(e.activeUser.value)):localStorage.removeItem("pagelines-user")}catch(t){this.logger.error("Failed to save user to localStorage",{data:t})}}clearStorage(){if(!(typeof window>"u")){if(lo.removeAuthToken(),this.isLocalStorageFunctional())try{localStorage.removeItem("pagelines-user")}catch(e){this.logger.error("Failed to clear user from localStorage",{data:e})}rp.set(void 0),np.set(null),ip.set(null)}}getItem(e){if(!this.isLocalStorageFunctional())return null;try{return localStorage.getItem(e)}catch(t){return this.logger.error("Failed to get item from localStorage",{key:e,error:t}),null}}setItem(e,t){if(this.isLocalStorageFunctional())try{localStorage.setItem(e,t)}catch(n){this.logger.error("Failed to set item in localStorage",{key:e,error:n})}}},RD=class{constructor(e){W(this,"ctx",void 0),W(this,"computers",ba(new Map)),W(this,"bots",ba(new Map)),this.ctx=e}get(e){return this.bots.get(e)}computer(e){return this.computers.get(e)}all(){return[...this.bots.values()]}hydrate(e){for(let t of e.computers){let n=this.computers.get(t.computerId);n?n.merge(t):this.computers.set(t.computerId,new RI(t))}return e.bots.map(t=>{let n=this.computers.get(t.computerId);if(!n)throw Error("Bot references an unknown computer");let i=this.bots.get(t.botId);if(i)return i.merge(t),i;let r=new S0(t,n);return this.bots.set(t.botId,r),r})}clear(){this.bots.clear(),this.computers.clear()}async webhook(e){let t=await this.ctx.apiFetch(`/api/bot-api/webhooks/routine-triggers/${encodeURIComponent(e.triggerId)}`,{method:"POST",headers:{"Content-Type":"application/json","X-PageLines-Key":e.key},body:JSON.stringify({type:e.type,data:e.data,...e.meta?{meta:e.meta}:{}})});if(!t.ok)throw Error(`Webhook delivery failed (${t.status})`);return t.json()}},UD=class{constructor(e,t){W(this,"ctx",void 0),W(this,"registry",void 0),this.ctx=e,this.registry=t}async create(e){let t=this.ctx.token.value,n=await(await this.ctx.apiFetch("/api/computers",{method:"POST",headers:{"Content-Type":"application/json","Idempotency-Key":crypto.randomUUID()},body:JSON.stringify(e)})).json();if(t!==this.ctx.token.value)throw Error("Your account changed. Try again.");if(!n.ok)throw Error(n.error||"Failed to create computer");return this.registry.hydrate({computers:[n.data.computer],bots:[n.data.bot]})[0]}async getLiveStatus(e){let t=this.ctx.token.value;try{let n=await(await this.ctx.apiFetch(`/api/computers/state?ids=${encodeURIComponent(e)}`)).json(),i=n.ok?n.data[e]??Cl:Cl;return t===this.ctx.token.value?(this.registry.computer(e)?.merge(i),i):Cl}catch(n){return this.ctx.logger.warn("Computer status unavailable",{computerId:e,error:n}),Cl}}async waitUntilReady(e){let t=Date.now(),n;for(;Date.now()-t<(e.timeoutMs??sI.wake);){let i=await this.getLiveStatus(e.computerId);if(i.lifecycle!==n&&(e.onStatus?.(i.lifecycle),n=i.lifecycle),i.lifecycle==="running")return;if(i.lifecycle==="error")throw Error("Your computer hit a problem starting");await new Promise(r=>setTimeout(r,e.pollIntervalMs??3e3))}throw Error("Your computer is taking longer than expected. Please try again.")}},I0="Signed in, but your account could not be loaded. Try again.";jD=class{constructor(e){W(this,"ctx",void 0),this.ctx=e}async authenticateWithCode(e,t){let n=await(await this.ctx.apiFetch("/api/auth/verify-code",{method:"POST",body:JSON.stringify({email:e,code:t})})).json();if(!n.ok)throw Error(n.error);let i=await this.getCurrentUser();if(!i)throw Error(I0);return i}async sendCode(e){return Oa(this.ctx,async()=>{try{let t=await(await this.ctx.apiFetch("/api/auth/check-email",{method:"POST",body:JSON.stringify({email:e})})).json();if(!t.ok)throw this.ctx.error.value=t.error,Error(t.error)}catch(t){this.ctx.logger.error("Send code error",{data:t});let n=t instanceof Error?t.message:"Failed to send verification code";throw this.ctx.error.value=n,t}})}async verifyCode(e,t){return Oa(this.ctx,async()=>{try{await this.authenticateWithCode(e,t)}catch(n){this.ctx.logger.error("Verify code error",{data:n});let i=n instanceof Error?n.message:"Failed to verify code";throw this.ctx.error.value=i,n}})}async logout(){return Oa(this.ctx,async()=>{try{await this.ctx.apiFetch("/api/auth/logout",{method:"POST"})}catch(e){this.ctx.logger.error("Logout error (user still logged out locally)",{data:e})}this.ctx.activeUser.value=void 0,this.ctx.token.value=null,this.ctx.storage.clearStorage(),this.ctx.clearRoster()})}async getCurrentUser(){let e=this.ctx.token.value;if(e)return Oa(this.ctx,async()=>{try{let t=await(await this.ctx.apiFetch("/api/users/me",{method:"GET"})).json();if(e!==this.ctx.token.value)return;if(!t.ok){this.ctx.error.value=t.error,t.error.includes("Authentication")&&(this.ctx.activeUser.value=void 0,this.ctx.token.value=null,this.ctx.storage.clearStorage(),this.ctx.clearRoster());return}return this.ctx.activeUser.value=t.data.user,this.ctx.hydrateRoster(t.data),t.data.user}catch(t){this.ctx.logger.error("Get current user error",{data:t}),this.ctx.error.value=t instanceof Error?t.message:"Failed to get user info";return}})}async requestAuthCode(e){return Oa(this.ctx,async()=>{try{let t=await(await this.ctx.apiFetch("/api/auth/check-email",{method:"POST",body:JSON.stringify({email:e.email})})).json();return t.ok?(this.ctx.logger.info("Auth code requested successfully",{email:e.email}),!0):(this.ctx.error.value=t.error,this.ctx.logger.error("Failed to request auth code",{email:e.email,error:t.error}),!1)}catch(t){return this.ctx.logger.error("Request auth code error",{email:e.email,error:t}),this.ctx.error.value=t instanceof Error?t.message:"Failed to request auth code",!1}})}async loginWithCode(e){return Oa(this.ctx,async()=>{try{return await this.authenticateWithCode(e.email,e.code),this.ctx.logger.info("Login successful",{email:e.email}),!0}catch(t){return this.ctx.logger.error("Login with code error",{email:e.email,error:t}),this.ctx.error.value=t instanceof Error?t.message:"Login failed",!1}})}loginWithGoogle(e){if(typeof window>"u"){this.ctx.logger.error("loginWithGoogle: Only available in browser");return}let t=Hn(this.ctx.apiBase,this.ctx.isDev),n=window.location.origin,i=`${t}/auth/google-popup?origin=${encodeURIComponent(n)}`,r=window.screenX+(window.outerWidth-500)/2,o=window.screenY+(window.outerHeight-600)/2,a=window.open(i,"google-auth",`width=500,height=600,left=${r},top=${o},popup=yes`);if(!a){let u="Popup was blocked. Please allow popups for this site.";this.ctx.error.value=u,e?.onError?.(u);return}let s=async u=>{let d=new URL(t).origin;if(u.origin===d){if(u.data?.type==="auth-success"){window.removeEventListener("message",s);let{token:p}=u.data;this.ctx.processApiResponse({ok:!0,data:{},token:p});let f=await this.getCurrentUser();if(!f){this.ctx.error.value=I0,this.ctx.logger.error("Google login: token accepted but user hydration failed"),e?.onError?.(I0);return}this.ctx.logger.info("Google login successful"),e?.onSuccess?.(f)}else if(u.data?.type==="auth-error"){window.removeEventListener("message",s);let p=u.data.error||"Google authentication failed";this.ctx.error.value=p,this.ctx.logger.error("Google login failed",{error:p}),e?.onError?.(p)}}};window.addEventListener("message",s);let l=setInterval(()=>{a.closed&&(clearInterval(l),window.removeEventListener("message",s))},500)}},MD=class{constructor(e){W(this,"ctx",void 0),this.ctx=e}async confirmCheckout(e){if(e?.sessionId){let t=Hn(this.ctx.apiBase,this.ctx.isDev),n=await(await fetch(`${t}/api/billing/complete-checkout`,{method:"POST",headers:{"Content-Type":"application/json",...this.ctx.token.value&&{Authorization:`Bearer ${this.ctx.token.value}`}},body:JSON.stringify({sessionId:e.sessionId})})).json();if(!n.ok){let i=n.error||"Failed to complete checkout";throw this.ctx.error.value=i,Error(i)}}return this.getStatus()}async getStatus(){let e=this.resolveOrgId(),t=Hn(this.ctx.apiBase,this.ctx.isDev),n=await(await fetch(`${t}/api/billing/details/${e}`,{headers:{...this.ctx.token.value&&{Authorization:`Bearer ${this.ctx.token.value}`}}})).json();if(!n.ok||!n.data)return{plan:void 0,status:"none",hasActiveBilling:!1,maxBots:0};let i=["active","trial","canceling"].includes(n.data.status)||n.data.status==="past_due"&&n.data.paymentRecovery?.suspended!==!0;return{plan:n.data.plan,status:n.data.status,hasActiveBilling:i,maxBots:n.data.maxBots,...n.data.trialEnd&&{trialEnd:n.data.trialEnd},...n.data.trialDaysRemaining!==void 0&&{trialDaysRemaining:n.data.trialDaysRemaining},...n.data.paymentRecovery&&{paymentRecovery:n.data.paymentRecovery}}}resolveOrgId(){let e=this.ctx.activeUser.value?.orgs?.[0]?.orgId;if(!e)throw Error("No organization found. Please sign in first.");return e}};LD=class{constructor(e){W(this,"ctx",void 0),this.ctx=e}async cancelConversationTurn(e){let t=Hn(this.ctx.apiBase,this.ctx.isDev),n=this.ctx.token.value?{Authorization:`Bearer ${this.ctx.token.value}`}:{},i=await fetch(`${t}/api/conversations/${encodeURIComponent(e.conversationId)}/cancel`,{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify(e.turnId?{turnId:e.turnId}:{})}),r=await i.json();if(!r.ok)throw Error(r.error||`Cancel failed: HTTP ${i.status}`);return r.data}async chatStreamPublic(e){let t=`${Hn(this.ctx.apiBase,this.ctx.isDev)}/api/bots/public/${encodeURIComponent(e.handle)}/chat/stream`,n="",i=!1,r=!1,o;try{let a=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e.message,anonymousId:e.anonymousId,...e.attachments?.length?{attachments:e.attachments.map(({type:s,src:l,filename:u,mimeType:d,mediaId:p})=>({type:s,url:l,name:u,mimeType:d,mediaId:p}))}:{},...e.context?{context:e.context}:{}})});if(!a.ok){let s=await a.json().catch(()=>({error:"Request failed"}));e.onError(Yr("api",s.error||`HTTP ${a.status}`,s.code));return}if(n=a.headers.get("X-Conversation-Id")||"",o=a.body?.getReader(),!o){e.onError(Yr("stream-open","No response stream"));return}for await(let s of _0(o))if(s.event==="working_state")e.onStatus?.(s.data.description);else if(s.event==="tool_activity")e.onToolActivity?.(s.data);else if(s.event==="working_end")e.onWorkingEnd?.();else if(s.event==="message_delta")e.onDelta(s.data.delta,s.data.role);else if(s.event==="error"){i=!0,e.onError(s.data);break}else if(s.event==="message"&&(s.data.message.role==="assistant"||s.data.message.role==="system")){r=!0;let l=MI(s.data.message);l&&e.onMessage?.(l)}else if(s.event==="stream_end")break;!i&&r?e.onDone(n):i||e.onError(Yr("no-reply","Stream ended before reply arrived"))}catch(a){e.onError(Yr("stream-read",a instanceof Error?a.message:"Stream failed","NETWORK_ERROR"))}finally{try{await o?.cancel()}catch{}}}async chatStreamAuthenticated(e){let t=Hn(this.ctx.apiBase,this.ctx.isDev),n=this.ctx.token.value?{Authorization:`Bearer ${this.ctx.token.value}`}:{},i=e.conversationId,r=e.latestSequence??null;if(!i)try{let l=await fetch(`${t}/api/conversations`,{method:"POST",headers:{"Content-Type":"application/json",...n},body:JSON.stringify({orgId:e.orgId,participants:[{type:"bot",id:e.botId}]})}),u=await l.json();if(!u.ok){e.onError(Yr("api",u.error||`Conversation failed: HTTP ${l.status}`,u.code));return}i=u.data.conversationId,r=u.data.latestSequence??null}catch(l){e.onError(Yr("api",l instanceof Error?l.message:"Conversation failed","NETWORK_ERROR"));return}let o=r?`${t}/api/conversations/${encodeURIComponent(i)}/stream?since=${encodeURIComponent(r)}`:`${t}/api/conversations/${encodeURIComponent(i)}/stream`,a=`nonce_${WS(16)}`,s=uI();await SI({streamUrl:o,sendUrl:`${t}/api/messages`,headers:n,sendBody:{conversationId:i,content:e.message,clientNonce:a,...s?{viewerTimezone:s}:{},...e.attachments&&e.attachments.length>0?{attachments:e.attachments}:{}},onStatus:e.onStatus,onDelta:e.onDelta,onToolActivity:e.onToolActivity,onWorkingEnd:e.onWorkingEnd,onMessage:l=>{let u=MI(l);u&&e.onMessage?.(u)},onDone:()=>e.onDone(i),onChatError:e.onError,onTransportError:e.onError})}},VD=class{constructor(e){W(this,"ctx",void 0),this.ctx=e}async getPublicBot(e){this.ctx.loading.value=!0,this.ctx.error.value=null;try{let t=await(await this.ctx.apiFetch(`/api/pub/bot/get-by-handle?handle=${encodeURIComponent(e.handle)}`)).json();if(!t.ok){this.ctx.error.value=t.error,this.ctx.logger.error("Failed to fetch public bot",{handle:e.handle,error:t.error});return}return this.ctx.hydrateRoster({bots:[t.data.bot],computers:[t.data.computer]})[0]}catch(t){this.ctx.logger.error("Get public bot error",{handle:e.handle,error:t}),this.ctx.error.value=t instanceof Error?t.message:"Failed to fetch bot";return}finally{this.ctx.loading.value=!1}}generateAnonId(){let e="pagelinesAnonId",t=this.ctx.storage.getItem(e);return t||(t=Qd({prefix:"anon"}),this.ctx.storage.setItem(e,t)),t}track(e){try{typeof window<"u"&&window.parent!==window&&window.parent.postMessage({type:"pagelines_track",event:e.event,botId:e.botId,properties:e.properties||{}},"*"),this.ctx.logger.info("SDK event tracked",{event:e.event,botId:e.botId})}catch(t){this.ctx.logger.error("Track event error",{error:t,args:e})}}},FD=class{constructor(){W(this,"key","__PAGELINES_SDK__")}get(){if(!(typeof window>"u"))return globalThis[this.key]}set(e){typeof window<"u"&&(globalThis[this.key]=e)}delete(){typeof window<"u"&&delete globalThis[this.key]}},op=new FD,Pl=class LI extends so{static getInstance(t={}){return op.get()||new LI(t)}get isDev(){return this.settings.isDev??(typeof window<"u"?window.location.hostname==="localhost"||window.location.hostname.includes("127.0.0.1"):!1)}constructor(t={}){let n=op.get();if(n)return console.debug("[PageLinesSDK] Returning existing singleton instance"),n;super("PageLinesSDK",t),W(this,"activeUser",q()),W(this,"token",q(null)),W(this,"deviceId",q(null)),W(this,"loading",q(!1)),W(this,"error",q(null)),W(this,"apiBase",this.settings.apiBase||void 0),W(this,"storage",new PD),W(this,"sessionId",Qd({prefix:"ses"})),W(this,"currentBot",P(()=>{let r=this.activeUser.value;return(r?.lastBotId?this.bot.get(r.lastBotId):void 0)??this.bot.all().find(o=>o.isPrimary.value&&o.ownerId.value===r?.userId)})),W(this,"currentOrg",P(()=>{let r=this.currentBot.value?.computer.orgId.value??this.activeUser.value?.lastActiveOrgId??this.activeUser.value?.primaryOrgId;return this.activeUser.value?.orgs?.find(o=>o.orgId===r)})),W(this,"initialized",void 0),W(this,"resolveUser",void 0),W(this,"bot",void 0),W(this,"computer",void 0),W(this,"auth",void 0),W(this,"billing",void 0),W(this,"chat",void 0),W(this,"user",void 0),W(this,"stopAccountWatch",void 0),op.set(this);let i={apiFetch:CD({isDev:this.isDev,apiBase:this.apiBase},this.processApiResponse.bind(this),()=>this.clearSession()),apiBase:this.apiBase,isDev:this.isDev,activeUser:this.activeUser,token:this.token,loading:this.loading,error:this.error,currentBot:this.currentBot,hydrateRoster:r=>this.bot.hydrate(r),clearRoster:()=>this.bot.clear(),storage:this.storage,sessionId:this.sessionId,logger:this.logger,processApiResponse:this.processApiResponse.bind(this)};this.bot=new RD(i),this.computer=new UD(i,this.bot),this.auth=new jD(i),this.billing=new MD(i),this.chat=new LD(i),this.user=new VD(i),this.stopAccountWatch=ft(()=>this.activeUser.value?.userId,()=>this.bot.clear(),{flush:"sync"}),this.logger.info("PageLinesSDK initialized"),this.storage.loadFromStorage(this.authRefs()),this.storage.syncWithGlobalStores(this.authRefs()),this.initialized=new Promise(r=>{this.resolveUser=r}),this.token.value&&!this.activeUser.value?this.auth.getCurrentUser().then(r=>{this.resolveUser&&(this.resolveUser(r),this.resolveUser=void 0)}).catch(r=>{this.logger.error("Auto user fetch failed",{data:r}),this.resolveUser&&(this.resolveUser(void 0),this.resolveUser=void 0)}):this.activeUser.value?this.resolveUser?.(this.activeUser.value):this.resolveUser?.(void 0)}processApiResponse(t){if(!t.ok)return;let n=!1;t.user&&(this.activeUser.value=t.user,this.logger.info("User updated from API response",{data:t.user}),n=!0),t.token&&(this.token.value!==t.token&&(this.activeUser.value=void 0,this.bot.clear()),this.token.value=t.token,this.logger.info("Token updated from API response"),n=!0);let i=t.data?.deviceId;i&&(this.deviceId.value=i,n=!0),n&&this.persistAuth(),this.resolveUser&&(this.resolveUser(t.user),this.resolveUser=void 0)}authRefs(){return{activeUser:this.activeUser,token:this.token,deviceId:this.deviceId}}persistAuth(){this.storage.saveToStorage(this.authRefs())}clearSession(){this.bot.clear(),this.logger.info("Clearing session"),this.activeUser.value=void 0,this.token.value=null,this.deviceId.value=null,this.error.value=null,this.storage.clearStorage()}clear(){this.logger.info("Clearing SDK completely"),this.clearSession(),this.loading.value=!1,this.sessionId=Qd({prefix:"ses"}),this.stopAccountWatch?.(),op.delete()}}});function HD(e,t){return w(),_("div",ZD,[...t[0]||(t[0]=[k("svg",{class:"ring-circular h-full w-full origin-center",viewBox:"25 25 50 50"},[k("circle",{class:"ring-path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"5","stroke-miterlimit":"30"})],-1)])])}function KD(e){let t=Math.max(0,Math.floor(e.ms/1e3));return`${Math.floor(t/60)}:${(t%60).toString().padStart(2,"0")}`}function WD(e){return e.mimeType.includes("mp4")||e.mimeType.includes("m4a")?"m4a":e.mimeType.includes("ogg")?"ogg":e.mimeType.includes("wav")?"wav":"webm"}function GD(){return typeof MediaRecorder>"u"?"":["audio/webm;codecs=opus","audio/mp4","audio/webm"].find(e=>MediaRecorder.isTypeSupported?.(e))||""}function YD(e){return e.turnOutcome==="failed"?"failed":e.turnOutcome==="stopped"?"stopped":e.sender==="system"?"failed":"completed"}function fp(e){if(!e)return;let t=Date.parse(e);return Number.isFinite(t)?t:void 0}function Ma(e){return fp(e.endedAt)??fp(e.startedAt)??0}function L0(e,t){return Ma(e)-Ma(t)}function Ll(e,t){let n=e.filter(r=>r.status==="completed"||r.status==="failed"&&!!r.note).filter(r=>!t.has(r.activityId)).slice().sort(L0),i=[];for(let r of n){let o=r.status==="completed"?"done":"failed",a=i[i.length-1];if(o==="done"&&a?.tone==="done"&&a.label===r.label&&Ma(r)-a.lastMs<=XD){a.count+=1,a.lastMs=Ma(r);continue}i.push({id:r.activityId,tone:o,label:r.label,note:r.note,count:1,lastMs:Ma(r)})}return i.map(r=>({id:r.id,tone:r.tone,label:r.count>1?`${r.label} \xB7 ${r.count}`:r.label,...r.note?{note:r.note}:{}}))}function dp(e){return e.length<=C0?{visibleRows:e,hiddenRows:[]}:{visibleRows:e.slice(e.length-C0),hiddenRows:e.slice(0,e.length-C0)}}function V0(e){let{activities:t,outcome:n,nowMs:i,canNotifyOnCompletion:r,lastVisibleProgressAtMs:o,includeFailureNote:a=!0}=e;if(n==="completed")return{outcome:n,visibleRows:[],hiddenRows:Ll(t,new Set),terminal:{id:"work-complete",tone:"completed",label:ki.completed}};if(n==="failed"){let E=t.filter(X=>X.status==="failed").sort(L0).pop(),M=new Set;E&&M.add(E.activityId);let{visibleRows:z,hiddenRows:D}=dp(Ll(t,M));return{outcome:n,visibleRows:z,hiddenRows:D,terminal:{id:"work-failed",tone:"failed",label:ki.failed,...a&&E?.note?{note:E.note}:{}}}}if(n==="stopped"){let{visibleRows:E,hiddenRows:M}=dp(Ll(t,new Set));return{outcome:n,visibleRows:E,hiddenRows:M,terminal:{id:"work-stopped",tone:"stopped",label:ki.stopped}}}let{visibleRows:s,hiddenRows:l}=dp(Ll(t,new Set)),u=t.filter(E=>E.status==="started").sort(L0).pop(),d=t.reduce((E,M)=>Math.max(E,Ma(M)),o??-1/0),p=Number.isFinite(d)?d:i,f=t.reduce((E,M)=>{let z=fp(M.startedAt)??fp(M.endedAt);return z===void 0?E:Math.min(E,z)},1/0),m=p+h2,h=(Number.isFinite(f)?f:p)+QD,v=i>=m,x=u||v?{id:u?.activityId??"work-active",tone:"active",label:u?.label??ki.finishing}:void 0,A=v?i>=h?r?ki.notifyHint:ki.leaveHint:ki.slowHint:void 0,I=[m,h].filter(E=>E>i).sort((E,M)=>E-M)[0];return{outcome:n,visibleRows:s,hiddenRows:l,...x?{terminal:x}:{},...A?{hint:A}:{},...I===void 0?{}:{nextBoundaryAtMs:I}}}function e3(e){let{segments:t,activities:n,nowMs:i,canNotifyOnCompletion:r,lastVisibleProgressAtMs:o}=e,a=new Map(n.map(m=>[m.activityId,m])),s=m=>V0({activities:m,outcome:"running",nowMs:i,canNotifyOnCompletion:r,...o===void 0?{}:{lastVisibleProgressAtMs:o}}),l=m=>{let{visibleRows:h,hiddenRows:v}=dp(Ll(m,new Set));if(h.length!==0||v.length!==0)return{outcome:"running",visibleRows:h,hiddenRows:v}},u=[],d=new Set(t.flatMap(m=>m.kind==="work"?m.activityIds:[])),p=l(n.filter(m=>!d.has(m.activityId)));p&&u.push({kind:"work",id:"work-unsegmented",journal:p}),t.forEach((m,h)=>{if(m.kind==="text"){m.content&&u.push({kind:"text",id:`text-${h}`,content:m.content});return}let v=m.activityIds.map(A=>a.get(A)).filter(A=>A!==void 0);if(v.length===0)return;let x=l(v);x&&u.push({kind:"work",id:`work-${m.activityIds[0]??h}`,journal:x})});let f=s(n);return f.terminal||f.hint?u.push({kind:"work",id:"work-tail",journal:{outcome:"running",visibleRows:[],hiddenRows:[],...f.terminal?{terminal:f.terminal}:{},...f.hint?{hint:f.hint}:{},...f.nextBoundaryAtMs===void 0?{}:{nextBoundaryAtMs:f.nextBoundaryAtMs}}}):u.push({kind:"loading",id:"work-tail"}),u}function ap(e){if(!e)return;let t=Date.parse(e);return Number.isFinite(t)?t:void 0}function t3(){return typeof navigator<"u"&&!!navigator.mediaDevices?.getUserMedia&&typeof RTCPeerConnection<"u"}function VI(e){return e?typeof e=="string"?e:e.src||"":""}function g2(e){return VI(e.cover)||VI(e.avatar)||zl(e.name)}function Bl(e){let t=e.target;t.dataset.fallbackUsed||(t.dataset.fallbackUsed="true",t.src=zl())}function v2(e){let{template:t,bot:n}=e;return t.replace(/{name}/g,n.name||"Assistant").replace(/{title}/g,n.title||"").replace(/{handle}/g,n.handle||"")}function FI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function x3(e){if(Array.isArray(e))return e}function _3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(d){u=!0,r=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}function $3(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S3(e,t){return x3(e)||_3(e,t)||I3(e,t)||$3()}function I3(e,t){if(e){if(typeof e=="string")return FI(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FI(e,t):void 0}}function Ct(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return B0(e,t,n)}}function P3(e){return function(){return Z0(e,[...arguments])}}function Ze(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vl;if(BI&&BI(e,null),!xi(t))return e;let i=t.length;for(;i--;){let r=t[i];if(typeof r=="string"){let o=n(r);o!==r&&(E3(t)||(t[i]=o),r=o)}e[r]=!0}return e}function R3(e){for(let t=0;t<e.length;t++)Vt(e,t)||(e[t]=null);return e}function mr(e){let t=Ua(null);for(let i of b2(e)){var n=S3(i,2);let r=n[0],o=n[1];Vt(e,r)&&(t[r]=xi(o)?R3(o):o&&typeof o=="object"&&o.constructor===Object?mr(o):o)}return t}function U3(e){switch(typeof e){case"string":return e;case"number":return A3(e);case"boolean":return D3(e);case"bigint":return WI?WI(e):"0";case"symbol":return GI?GI(e):"Symbol()";case"undefined":return Ul(e);case"function":case"object":{if(e===null)return Ul(e);let t=e,n=kn(t,"toString");if(typeof n=="function"){let i=n(t);return typeof i=="string"?i:Ul(i)}return Ul(e)}default:return Ul(e)}}function kn(e,t){for(;e!==null;){let i=N3(e,t);if(i){if(i.get)return Ct(i.get);if(typeof i.value=="function")return Ct(i.value)}e=T3(e)}function n(){return null}return n}function j3(e){try{return Lt(e,""),!0}catch{return!1}}function w2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X3(),t=ue=>w2(ue);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==Tr.document||!e.Element)return t.isSupported=!1,t;let n=e.document,i=n,r=i.currentScript;e.DocumentFragment;let o=e.HTMLTemplateElement,a=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,p=s.prototype,f=kn(p,"cloneNode"),m=kn(p,"remove"),h=kn(p,"nextSibling"),v=kn(p,"childNodes"),x=kn(p,"parentNode"),A=kn(p,"shadowRoot"),I=kn(p,"attributes"),E=a&&a.prototype?kn(a.prototype,"nodeType"):null,M=a&&a.prototype?kn(a.prototype,"nodeName"):null;if(typeof o=="function"){let ue=n.createElement("template");ue.content&&ue.content.ownerDocument&&(n=ue.content.ownerDocument)}let z,D="",X,ce=!1,ie=0,Q=function(){if(ie>0)throw co('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ae=function(g){Q(),ie++;try{return z.createHTML(g)}finally{ie--}},ne=function(g){Q(),ie++;try{return z.createScriptURL(g)}finally{ie--}},ve=function(){return ce||(X=Q3(d,r),ce=!0),X},Le=n,mt=Le.implementation,ht=Le.createNodeIterator,je=Le.createDocumentFragment,Me=Le.getElementsByTagName,Rt=i.importNode,Je=r2();t.isSupported=typeof b2=="function"&&typeof x=="function"&&mt&&mt.createHTMLDocument!==void 0;let Cr=V3,wt=F3,xt=B3,Fr=Z3,Tt=H3,Wn=K3,Nt=W3,Ft=J3,er=QI,Ye=null,tr=Ze({},[...JI,...A0,...D0,...P0,...qI]),Ve=null,zr=Ze({},[...YI,...R0,...XI,...sp]),b=Object.seal(Ua(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),S=null,L=null,J=Object.seal(Ua(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),$=!0,T=!0,y=!1,R=!0,O=!1,U=!0,se=!1,te=!1,pe=null,he=null,$e=!1,Te=!1,Ne=!1,qe=!1,Xe=!0,zt=!1,St="user-content-",rr=!0,be=!1,ct={},it=null,$n=Ze({},"annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")),Sn=null,Jl=Ze({},["audio","video","img","source","image","track"]),Za=null,ql=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vo="http://www.w3.org/1998/Math/MathML",bo="http://www.w3.org/2000/svg",Or="http://www.w3.org/1999/xhtml",Gn=Or,yo=!1,In=null,En=Ze({},[vo,bo,Or],O0),_i=Jt(["mi","mo","mn","ms","mtext"]),Ha=Ze({},_i),Yl=Jt(["annotation-xml"]),Ka=Ze({},Yl),Ep=Ze({},["title","style","font","a","script"]),$i=null,Xl=["application/xhtml+xml","text/html"],gt=null,F=null,Z=n.createElement("form"),G=function(g){return g instanceof RegExp||g instanceof Function},ot=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(F&&F===g)return;(!g||typeof g!="object")&&(g={}),g=mr(g),$i=Xl.indexOf(g.PARSER_MEDIA_TYPE)===-1?"text/html":g.PARSER_MEDIA_TYPE,gt=$i==="application/xhtml+xml"?O0:Vl,Ye=yi(g,"ALLOWED_TAGS",tr,{transform:gt}),Ve=yi(g,"ALLOWED_ATTR",zr,{transform:gt}),In=yi(g,"ALLOWED_NAMESPACES",En,{transform:O0}),Za=yi(g,"ADD_URI_SAFE_ATTR",ql,{transform:gt,base:ql}),Sn=yi(g,"ADD_DATA_URI_TAGS",Jl,{transform:gt,base:Jl}),it=yi(g,"FORBID_CONTENTS",$n,{transform:gt}),S=yi(g,"FORBID_TAGS",mr({}),{transform:gt}),L=yi(g,"FORBID_ATTR",mr({}),{transform:gt}),ct=Vt(g,"USE_PROFILES")?g.USE_PROFILES&&typeof g.USE_PROFILES=="object"?mr(g.USE_PROFILES):g.USE_PROFILES:!1,$=g.ALLOW_ARIA_ATTR!==!1,T=g.ALLOW_DATA_ATTR!==!1,y=g.ALLOW_UNKNOWN_PROTOCOLS||!1,R=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,O=g.SAFE_FOR_TEMPLATES||!1,U=g.SAFE_FOR_XML!==!1,se=g.WHOLE_DOCUMENT||!1,Te=g.RETURN_DOM||!1,Ne=g.RETURN_DOM_FRAGMENT||!1,qe=g.RETURN_TRUSTED_TYPE||!1,$e=g.FORCE_BODY||!1,Xe=g.SANITIZE_DOM!==!1,zt=g.SANITIZE_NAMED_PROPS||!1,rr=g.KEEP_CONTENT!==!1,be=g.IN_PLACE||!1,er=j3(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:QI,Gn=typeof g.NAMESPACE=="string"?g.NAMESPACE:Or,Ha=Vt(g,"MATHML_TEXT_INTEGRATION_POINTS")&&g.MATHML_TEXT_INTEGRATION_POINTS&&typeof g.MATHML_TEXT_INTEGRATION_POINTS=="object"?mr(g.MATHML_TEXT_INTEGRATION_POINTS):Ze({},_i),Ka=Vt(g,"HTML_INTEGRATION_POINTS")&&g.HTML_INTEGRATION_POINTS&&typeof g.HTML_INTEGRATION_POINTS=="object"?mr(g.HTML_INTEGRATION_POINTS):Ze({},Yl);let j=Vt(g,"CUSTOM_ELEMENT_HANDLING")&&g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING=="object"?mr(g.CUSTOM_ELEMENT_HANDLING):Ua(null);if(b=Ua(null),Vt(j,"tagNameCheck")&&G(j.tagNameCheck)&&(b.tagNameCheck=j.tagNameCheck),Vt(j,"attributeNameCheck")&&G(j.attributeNameCheck)&&(b.attributeNameCheck=j.attributeNameCheck),Vt(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),qt(b),O&&(T=!1),Ne&&(Te=!0),ct&&(Ye=Ze({},qI),Ve=Ua(null),ct.html===!0&&(Ze(Ye,JI),Ze(Ve,YI)),ct.svg===!0&&(Ze(Ye,A0),Ze(Ve,R0),Ze(Ve,sp)),ct.svgFilters===!0&&(Ze(Ye,D0),Ze(Ve,R0),Ze(Ve,sp)),ct.mathMl===!0&&(Ze(Ye,P0),Ze(Ve,XI),Ze(Ve,sp))),J.tagCheck=null,J.attributeCheck=null,Vt(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?J.tagCheck=g.ADD_TAGS:xi(g.ADD_TAGS)&&(Ye===tr&&(Ye=mr(Ye)),Ze(Ye,g.ADD_TAGS,gt))),Vt(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?J.attributeCheck=g.ADD_ATTR:xi(g.ADD_ATTR)&&(Ve===zr&&(Ve=mr(Ve)),Ze(Ve,g.ADD_ATTR,gt))),Vt(g,"ADD_URI_SAFE_ATTR")&&xi(g.ADD_URI_SAFE_ATTR)&&Ze(Za,g.ADD_URI_SAFE_ATTR,gt),Vt(g,"FORBID_CONTENTS")&&xi(g.FORBID_CONTENTS)&&(it===$n&&(it=mr(it)),Ze(it,g.FORBID_CONTENTS,gt)),Vt(g,"ADD_FORBID_CONTENTS")&&xi(g.ADD_FORBID_CONTENTS)&&(it===$n&&(it=mr(it)),Ze(it,g.ADD_FORBID_CONTENTS,gt)),rr&&(Ye["#text"]=!0),se&&Ze(Ye,["html","head","body"]),Ye.table&&(Ze(Ye,["tbody"]),delete S.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw co('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw co('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let re=z;z=g.TRUSTED_TYPES_POLICY;try{D=ae("")}catch(me){throw z=re,me}}else g.TRUSTED_TYPES_POLICY===null?(z=void 0,D=""):(z===void 0&&(z=ve()),z&&typeof D=="string"&&(D=ae("")));Jt&&Jt(g),F=g},ke=Ze({},[...A0,...D0,...M3]),vt=Ze({},[...P0,...L3]),Jn=function(g,j,re){return j.namespaceURI===Or?g==="svg":j.namespaceURI===vo?g==="svg"&&(re==="annotation-xml"||Ha[re]):!!ke[g]},H2=function(g,j,re){return j.namespaceURI===Or?g==="math":j.namespaceURI===bo?g==="math"&&Ka[re]:!!vt[g]},K2=function(g,j,re){return j.namespaceURI===bo&&!Ka[re]||j.namespaceURI===vo&&!Ha[re]?!1:!vt[g]&&(Ep[g]||!ke[g])},W2=function(g){let j=x(g);(!j||!j.tagName)&&(j={namespaceURI:Gn,tagName:"template"});let re=Vl(g.tagName),me=Vl(j.tagName);return In[g.namespaceURI]?g.namespaceURI===bo?Jn(re,j,me):g.namespaceURI===vo?H2(re,j,me):g.namespaceURI===Or?K2(re,j,me):!!($i==="application/xhtml+xml"&&In[g.namespaceURI]):!1},Si=function(g){Pa(t.removed,{element:g});try{x(g).removeChild(g)}catch{if(m(g),!x(g))throw co("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ql=function(g){Tp(g);let j=v(g);if(j){let me=[];Da(j,De=>{Pa(me,De)}),Da(me,De=>{try{m(De)}catch{}})}let re=I(g);if(re)for(let me=re.length-1;me>=0;--me){let De=re[me],Be=De&&De.name;if(typeof Be=="string")try{g.removeAttribute(Be)}catch{}}},Ii=function(g,j){try{Pa(t.removed,{attribute:j.getAttributeNode(g),from:j})}catch{Pa(t.removed,{attribute:null,from:j})}if(j.removeAttribute(g),g==="is")if(Te||Ne)try{Si(j)}catch{}else try{j.setAttribute(g,"")}catch{}},G2=function(g){let j=I(g);if(j)for(let re=j.length-1;re>=0;--re){let me=j[re],De=me&&me.name;if(!(typeof De!="string"||Ve[gt(De)]))try{g.removeAttribute(De)}catch{}}},Tp=function(g){let j=[g];for(;j.length>0;){let re=j.pop();(E?E(re):re.nodeType)===Tr.element&&G2(re);let me=v(re);if(me)for(let De=me.length-1;De>=0;--De)j.push(me[De])}},J2=function(g){if(!U)return;let j=[g];for(;j.length>0;){let re=j.pop(),me=E?E(re):re.nodeType;if(me===Tr.processingInstruction||me===Tr.comment&&Lt(t2,re.data)){try{m(re)}catch{}continue}if(me===Tr.element){let Be=re,ut=gt(M?M(re):re.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&ut!=="label"&&ut!=="output"&&Be.removeAttribute("for")}catch{}}let De=v(re);if(De)for(let Be=De.length-1;Be>=0;--Be)j.push(De[Be])}},iy=function(g){let j=null,re=null;if($e)g="<remove></remove>"+g;else{let Be=HI(g,/^[\r\n\t ]+/);re=Be&&Be[0]}$i==="application/xhtml+xml"&&Gn===Or&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");let me=z?ae(g):g;if(Gn===Or)try{j=new u().parseFromString(me,$i)}catch{}if(!j||!j.documentElement){j=mt.createDocument(Gn,"template",null);try{j.documentElement.innerHTML=yo?D:me}catch{}}let De=j.body||j.documentElement;return g&&re&&De.insertBefore(n.createTextNode(re),De.childNodes[0]||null),Gn===Or?Me.call(j,se?"html":"body")[0]:se?j.documentElement:De},oy=function(g){return ht.call(g.ownerDocument||g,g,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ec=function(g){return g=Rl(g,Cr," "),g=Rl(g,wt," "),g=Rl(g,xt," "),g},Np=function(g){g.normalize();let j=ht.call(g.ownerDocument||g,g,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),re=j.nextNode();for(;re;)re.data=ec(re.data),re=j.nextNode();let me=g.querySelectorAll?.call(g,"template");me&&Da(me,De=>{wo(De.content)&&Np(De.content)})},tc=function(g){let j=M?M(g):null;return typeof j!="string"||gt(j)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==I(g)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==E(g)||g.childNodes!==v(g)},wo=function(g){if(!E||typeof g!="object"||!g)return!1;try{return E(g)===Tr.documentFragment}catch{return!1}},Wa=function(g){if(!E||typeof g!="object"||!g)return!1;try{return typeof E(g)=="number"}catch{return!1}};function tn(ue,g,j){ue.length!==0&&Da(ue,re=>{re.call(t,g,j,F)})}let q2=function(g,j){return!!(U&&g.hasChildNodes()&&!Wa(g.firstElementChild)&&Lt(e2,g.textContent)&&Lt(e2,g.innerHTML)||U&&g.namespaceURI===Or&&j==="style"&&Wa(g.firstElementChild)||g.nodeType===Tr.processingInstruction||U&&g.nodeType===Tr.comment&&Lt(t2,g.data))},Y2=function(g,j){if(!S[j]&&ly(j)&&(b.tagNameCheck instanceof RegExp&&Lt(b.tagNameCheck,j)||b.tagNameCheck instanceof Function&&b.tagNameCheck(j)))return!1;if(rr&&!it[j]){let re=x(g),me=v(g);if(me&&re){let De=me.length;for(let Be=De-1;Be>=0;--Be){let ut=be?me[Be]:f(me[Be],!0);re.insertBefore(ut,h(g))}}}return Si(g),!0},ay=function(g,j){if(tn(Je.beforeSanitizeElements,g,null),g!==j&&x(g)===null)return!0;if(tc(g))return Si(g),!0;let re=gt(M?M(g):g.nodeName);if(tn(Je.uponSanitizeElement,g,{tagName:re,allowedTags:Ye}),g!==j&&x(g)===null)return!0;if(q2(g,re))return Si(g),!0;if(S[re]||!(J.tagCheck instanceof Function&&J.tagCheck(re))&&!Ye[re]){let me=Y2(g,re);return me===!1&&tn(Je.afterSanitizeElements,g,null),me}if((E?E(g):g.nodeType)===Tr.element&&!W2(g)||(re==="noscript"||re==="noembed"||re==="noframes")&&Lt(q3,g.innerHTML))return Si(g),!0;if(O&&g.nodeType===Tr.text){let me=ec(g.textContent);g.textContent!==me&&(Pa(t.removed,{element:g.cloneNode()}),g.textContent=me)}return tn(Je.afterSanitizeElements,g,null),!1},sy=function(g,j,re){if(L[j]||U&&j==="patchsrc"||U&&j==="for"&&g!=="label"&&g!=="output"||Xe&&(j==="id"||j==="name")&&(re in n||re in Z))return!1;let me=Ve[j]||J.attributeCheck instanceof Function&&J.attributeCheck(j,g);if(!(T&&Lt(Fr,j))&&!($&&Lt(Tt,j))){if(me){if(!Za[j]&&!Lt(er,Rl(re,Nt,""))&&(j!=="src"&&j!=="xlink:href"&&j!=="href"||g==="script"||KI(re,"data:")!==0||!Sn[g])&&(!y||Lt(Wn,Rl(re,Nt,"")))&&re)return!1}else if(!(ly(g)&&(b.tagNameCheck instanceof RegExp&&Lt(b.tagNameCheck,g)||b.tagNameCheck instanceof Function&&b.tagNameCheck(g))&&(b.attributeNameCheck instanceof RegExp&&Lt(b.attributeNameCheck,j)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(j,g))||j==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&Lt(b.tagNameCheck,re)||b.tagNameCheck instanceof Function&&b.tagNameCheck(re))))return!1}return!0},X2=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ly=function(g){return!X2[Vl(g)]&&Lt(Ft,g)},Q2=function(g,j,re,me){if(z&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!re)switch(d.getAttributeType(g,j)){case"TrustedHTML":return ae(me);case"TrustedScriptURL":return ne(me)}return me},eE=function(g,j,re,me){try{re?g.setAttributeNS(re,j,me):g.setAttribute(j,me),tc(g)?Si(g):ZI(t.removed)}catch{Ii(j,g)}},cy=function(g){tn(Je.beforeSanitizeAttributes,g,null);let j=g.attributes;if(!j||tc(g))return;let re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ve,forceKeepAttr:void 0},me=j.length,De=gt(g.nodeName);for(;me--;){let Be=j[me],ut=Be.name,Ei=Be.namespaceURI,qn=Be.value,hr=gt(ut),Br=qn,nr=ut==="value"?Br:O3(Br);if(re.attrName=hr,re.attrValue=nr,re.keepAttr=!0,re.forceKeepAttr=void 0,tn(Je.uponSanitizeAttribute,g,re),nr=re.attrValue,zt&&(hr==="id"||hr==="name")&&KI(nr,St)!==0&&(Ii(ut,g),nr=St+nr),U&&Lt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,nr)){Ii(ut,g);continue}if(hr==="attributename"&&HI(nr,"href")){Ii(ut,g);continue}if(!re.forceKeepAttr){if(!re.keepAttr){Ii(ut,g);continue}if(!R&&Lt(Y3,nr)){Ii(ut,g);continue}if(O&&(nr=ec(nr)),!sy(De,hr,nr)){Ii(ut,g);continue}nr=Q2(De,hr,Ei,nr),nr!==Br&&eE(g,ut,Ei,nr)}}tn(Je.afterSanitizeAttributes,g,null)},rc=function(g){let j=null,re=oy(g);for(tn(Je.beforeSanitizeShadowDOM,g,null);j=re.nextNode();)if(tn(Je.uponSanitizeShadowNode,j,null),ay(j,g),cy(j),wo(j.content)&&rc(j.content),(E?E(j):j.nodeType)===Tr.element){let me=A(j);wo(me)&&(Cp(me),rc(me))}tn(Je.afterSanitizeShadowDOM,g,null)},Cp=function(g){let j=[{node:g,shadow:null}];for(;j.length>0;){let re=j.pop();if(re.shadow){rc(re.shadow);continue}let me=re.node,De=(E?E(me):me.nodeType)===Tr.element,Be=v(me);if(Be)for(let ut=Be.length-1;ut>=0;--ut)j.push({node:Be[ut],shadow:null});if(De){let ut=M?M(me):null;if(typeof ut=="string"&&gt(ut)==="template"){let Ei=me.content;wo(Ei)&&j.push({node:Ei,shadow:null})}}if(De){let ut=A(me);wo(ut)&&j.push({node:null,shadow:ut},{node:ut,shadow:null})}}};return t.sanitize=function(ue){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,re=null,me=null,De=null;if(yo=!ue,yo&&(ue="<!-->"),typeof ue!="string"&&!Wa(ue)&&(ue=U3(ue),typeof ue!="string"))throw co("dirty is not a string, aborting");if(!t.isSupported)return ue;te?(Ye=pe,Ve=he):ot(g),(Je.uponSanitizeElement.length>0||Je.uponSanitizeAttribute.length>0)&&(Ye=mr(Ye)),Je.uponSanitizeAttribute.length>0&&(Ve=mr(Ve)),t.removed=[];let Be=be&&typeof ue!="string"&&Wa(ue);if(Be){J2(ue);let hr=M?M(ue):ue.nodeName;if(typeof hr=="string"){let Br=gt(hr);if(!Ye[Br]||S[Br])throw Ql(ue),co("root node is forbidden and cannot be sanitized in-place")}if(tc(ue))throw Ql(ue),co("root node is clobbered and cannot be sanitized in-place");try{Cp(ue)}catch(Br){throw Ql(ue),Br}}else if(Wa(ue))j=iy("<!---->"),re=j.ownerDocument.importNode(ue,!0),re.nodeType===Tr.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?j=re:j.appendChild(re),Cp(re);else{if(!Te&&!O&&!se&&ue.indexOf("<")===-1)return z&&qe?ae(ue):ue;if(j=iy(ue),!j)return Te?null:qe?D:""}j&&$e&&Si(j.firstChild);let ut=Be?ue:j,Ei=oy(ut);try{for(;me=Ei.nextNode();)ay(me,ut),cy(me),wo(me.content)&&rc(me.content)}catch(hr){throw Be&&(Ql(ue),Da(t.removed,Br=>{Br.element&&Tp(Br.element)})),hr}if(Be)return Da(t.removed,hr=>{hr.element&&Tp(hr.element)}),O&&Np(ue),ue;if(Te){if(O&&Np(j),Ne)for(De=je.call(j.ownerDocument);j.firstChild;)De.appendChild(j.firstChild);else De=j;return(Ve.shadowroot||Ve.shadowrootmode)&&(De=Rt.call(i,De,!0)),De}let qn=se?j.outerHTML:j.innerHTML;return se&&Ye["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&Lt(G3,j.ownerDocument.doctype.name)&&(qn="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
96
- `+qn),O&&(qn=ec(qn)),z&&qe?ae(qn):qn},t.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ot(ue),te=!0,pe=Ye,he=Ve},t.clearConfig=function(){F=null,te=!1,pe=null,he=null,z=X,D=""},t.isValidAttribute=function(ue,g,j){F||ot({});let re=gt(ue),me=gt(g);return sy(re,me,j)},t.addHook=function(ue,g){typeof g=="function"&&Vt(Je,ue)&&Pa(Je[ue],g)},t.removeHook=function(ue,g){if(Vt(Je,ue)){if(g!==void 0){let j=C3(Je[ue],g);return j===-1?void 0:z3(Je[ue],j,1)[0]}return ZI(Je[ue])}},t.removeHooks=function(ue){Vt(Je,ue)&&(Je[ue]=[])},t.removeAllHooks=function(){Je=r2()},t}function G0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function x2(e){fo=e}function Ra(e){let t=[];return n=>{let i=Math.max(0,Math.min(3,n-1)),r=t[i];return r||(r=e(i),t[i]=r),r}}function Ae(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(r,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(Qt.caret,"$1"),n=n.replace(r,a),i},getRegex:()=>new RegExp(n,t)};return i}function Nr(e,t){if(t){if(Qt.escapeTest.test(e))return e.replace(Qt.escapeReplace,a2)}else if(Qt.escapeTestNoEncode.test(e))return e.replace(Qt.escapeReplaceNoEncode,a2);return e}function s2(e){try{e=encodeURI(e).replace(Qt.percentDecode,"%")}catch{return null}return e}function l2(e,t){let n=e.replace(Qt.findPipe,(r,o,a)=>{let s=!1,l=o;for(;--l>=0&&a[l]==="\\";)s=!s;return s?"|":" |"}).split(Qt.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Qt.slashPipe,"|");return n}function wi(e,t,n){let i=e.length;if(i===0)return"";let r=0;for(;r<i;){let o=e.charAt(i-r-1);if(o===t&&!n)r++;else if(o!==t&&n)r++;else break}return e.slice(0,i-r)}function c2(e){let t=e.split(`
95
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S3(e,t){return x3(e)||_3(e,t)||I3(e,t)||$3()}function I3(e,t){if(e){if(typeof e=="string")return FI(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?FI(e,t):void 0}}function Ct(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return B0(e,t,n)}}function P3(e){return function(){return Z0(e,[...arguments])}}function Ze(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vl;if(BI&&BI(e,null),!xi(t))return e;let i=t.length;for(;i--;){let r=t[i];if(typeof r=="string"){let o=n(r);o!==r&&(E3(t)||(t[i]=o),r=o)}e[r]=!0}return e}function R3(e){for(let t=0;t<e.length;t++)Vt(e,t)||(e[t]=null);return e}function mr(e){let t=Ua(null);for(let i of b2(e)){var n=S3(i,2);let r=n[0],o=n[1];Vt(e,r)&&(t[r]=xi(o)?R3(o):o&&typeof o=="object"&&o.constructor===Object?mr(o):o)}return t}function U3(e){switch(typeof e){case"string":return e;case"number":return A3(e);case"boolean":return D3(e);case"bigint":return WI?WI(e):"0";case"symbol":return GI?GI(e):"Symbol()";case"undefined":return Ul(e);case"function":case"object":{if(e===null)return Ul(e);let t=e,n=kn(t,"toString");if(typeof n=="function"){let i=n(t);return typeof i=="string"?i:Ul(i)}return Ul(e)}default:return Ul(e)}}function kn(e,t){for(;e!==null;){let i=N3(e,t);if(i){if(i.get)return Ct(i.get);if(typeof i.value=="function")return Ct(i.value)}e=T3(e)}function n(){return null}return n}function j3(e){try{return Lt(e,""),!0}catch{return!1}}function w2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X3(),t=ce=>w2(ce);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==Tr.document||!e.Element)return t.isSupported=!1,t;let n=e.document,i=n,r=i.currentScript;e.DocumentFragment;let o=e.HTMLTemplateElement,a=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,p=s.prototype,f=kn(p,"cloneNode"),m=kn(p,"remove"),h=kn(p,"nextSibling"),v=kn(p,"childNodes"),x=kn(p,"parentNode"),A=kn(p,"shadowRoot"),I=kn(p,"attributes"),E=a&&a.prototype?kn(a.prototype,"nodeType"):null,M=a&&a.prototype?kn(a.prototype,"nodeName"):null;if(typeof o=="function"){let ce=n.createElement("template");ce.content&&ce.content.ownerDocument&&(n=ce.content.ownerDocument)}let z,D="",X,le=!1,ie=0,Q=function(){if(ie>0)throw co('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ae=function(g){Q(),ie++;try{return z.createHTML(g)}finally{ie--}},ne=function(g){Q(),ie++;try{return z.createScriptURL(g)}finally{ie--}},ve=function(){return le||(X=Q3(d,r),le=!0),X},Le=n,mt=Le.implementation,ht=Le.createNodeIterator,je=Le.createDocumentFragment,Me=Le.getElementsByTagName,Rt=i.importNode,Je=r2();t.isSupported=typeof b2=="function"&&typeof x=="function"&&mt&&mt.createHTMLDocument!==void 0;let Cr=V3,wt=F3,xt=B3,Fr=Z3,Tt=H3,Wn=K3,Nt=W3,Ft=J3,er=QI,Ye=null,tr=Ze({},[...JI,...A0,...D0,...P0,...qI]),Ve=null,zr=Ze({},[...YI,...R0,...XI,...sp]),b=Object.seal(Ua(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),S=null,L=null,J=Object.seal(Ua(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),$=!0,T=!0,y=!1,R=!0,O=!1,U=!0,se=!1,te=!1,pe=null,he=null,$e=!1,Te=!1,Ne=!1,qe=!1,Xe=!0,zt=!1,St="user-content-",rr=!0,be=!1,ct={},it=null,$n=Ze({},"annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")),Sn=null,Jl=Ze({},["audio","video","img","source","image","track"]),Za=null,ql=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vo="http://www.w3.org/1998/Math/MathML",bo="http://www.w3.org/2000/svg",Or="http://www.w3.org/1999/xhtml",Gn=Or,yo=!1,In=null,En=Ze({},[vo,bo,Or],O0),_i=Jt(["mi","mo","mn","ms","mtext"]),Ha=Ze({},_i),Yl=Jt(["annotation-xml"]),Ka=Ze({},Yl),Ep=Ze({},["title","style","font","a","script"]),$i=null,Xl=["application/xhtml+xml","text/html"],gt=null,F=null,Z=n.createElement("form"),G=function(g){return g instanceof RegExp||g instanceof Function},ot=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(F&&F===g)return;(!g||typeof g!="object")&&(g={}),g=mr(g),$i=Xl.indexOf(g.PARSER_MEDIA_TYPE)===-1?"text/html":g.PARSER_MEDIA_TYPE,gt=$i==="application/xhtml+xml"?O0:Vl,Ye=yi(g,"ALLOWED_TAGS",tr,{transform:gt}),Ve=yi(g,"ALLOWED_ATTR",zr,{transform:gt}),In=yi(g,"ALLOWED_NAMESPACES",En,{transform:O0}),Za=yi(g,"ADD_URI_SAFE_ATTR",ql,{transform:gt,base:ql}),Sn=yi(g,"ADD_DATA_URI_TAGS",Jl,{transform:gt,base:Jl}),it=yi(g,"FORBID_CONTENTS",$n,{transform:gt}),S=yi(g,"FORBID_TAGS",mr({}),{transform:gt}),L=yi(g,"FORBID_ATTR",mr({}),{transform:gt}),ct=Vt(g,"USE_PROFILES")?g.USE_PROFILES&&typeof g.USE_PROFILES=="object"?mr(g.USE_PROFILES):g.USE_PROFILES:!1,$=g.ALLOW_ARIA_ATTR!==!1,T=g.ALLOW_DATA_ATTR!==!1,y=g.ALLOW_UNKNOWN_PROTOCOLS||!1,R=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,O=g.SAFE_FOR_TEMPLATES||!1,U=g.SAFE_FOR_XML!==!1,se=g.WHOLE_DOCUMENT||!1,Te=g.RETURN_DOM||!1,Ne=g.RETURN_DOM_FRAGMENT||!1,qe=g.RETURN_TRUSTED_TYPE||!1,$e=g.FORCE_BODY||!1,Xe=g.SANITIZE_DOM!==!1,zt=g.SANITIZE_NAMED_PROPS||!1,rr=g.KEEP_CONTENT!==!1,be=g.IN_PLACE||!1,er=j3(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:QI,Gn=typeof g.NAMESPACE=="string"?g.NAMESPACE:Or,Ha=Vt(g,"MATHML_TEXT_INTEGRATION_POINTS")&&g.MATHML_TEXT_INTEGRATION_POINTS&&typeof g.MATHML_TEXT_INTEGRATION_POINTS=="object"?mr(g.MATHML_TEXT_INTEGRATION_POINTS):Ze({},_i),Ka=Vt(g,"HTML_INTEGRATION_POINTS")&&g.HTML_INTEGRATION_POINTS&&typeof g.HTML_INTEGRATION_POINTS=="object"?mr(g.HTML_INTEGRATION_POINTS):Ze({},Yl);let j=Vt(g,"CUSTOM_ELEMENT_HANDLING")&&g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING=="object"?mr(g.CUSTOM_ELEMENT_HANDLING):Ua(null);if(b=Ua(null),Vt(j,"tagNameCheck")&&G(j.tagNameCheck)&&(b.tagNameCheck=j.tagNameCheck),Vt(j,"attributeNameCheck")&&G(j.attributeNameCheck)&&(b.attributeNameCheck=j.attributeNameCheck),Vt(j,"allowCustomizedBuiltInElements")&&typeof j.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=j.allowCustomizedBuiltInElements),qt(b),O&&(T=!1),Ne&&(Te=!0),ct&&(Ye=Ze({},qI),Ve=Ua(null),ct.html===!0&&(Ze(Ye,JI),Ze(Ve,YI)),ct.svg===!0&&(Ze(Ye,A0),Ze(Ve,R0),Ze(Ve,sp)),ct.svgFilters===!0&&(Ze(Ye,D0),Ze(Ve,R0),Ze(Ve,sp)),ct.mathMl===!0&&(Ze(Ye,P0),Ze(Ve,XI),Ze(Ve,sp))),J.tagCheck=null,J.attributeCheck=null,Vt(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?J.tagCheck=g.ADD_TAGS:xi(g.ADD_TAGS)&&(Ye===tr&&(Ye=mr(Ye)),Ze(Ye,g.ADD_TAGS,gt))),Vt(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?J.attributeCheck=g.ADD_ATTR:xi(g.ADD_ATTR)&&(Ve===zr&&(Ve=mr(Ve)),Ze(Ve,g.ADD_ATTR,gt))),Vt(g,"ADD_URI_SAFE_ATTR")&&xi(g.ADD_URI_SAFE_ATTR)&&Ze(Za,g.ADD_URI_SAFE_ATTR,gt),Vt(g,"FORBID_CONTENTS")&&xi(g.FORBID_CONTENTS)&&(it===$n&&(it=mr(it)),Ze(it,g.FORBID_CONTENTS,gt)),Vt(g,"ADD_FORBID_CONTENTS")&&xi(g.ADD_FORBID_CONTENTS)&&(it===$n&&(it=mr(it)),Ze(it,g.ADD_FORBID_CONTENTS,gt)),rr&&(Ye["#text"]=!0),se&&Ze(Ye,["html","head","body"]),Ye.table&&(Ze(Ye,["tbody"]),delete S.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw co('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw co('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let re=z;z=g.TRUSTED_TYPES_POLICY;try{D=ae("")}catch(me){throw z=re,me}}else g.TRUSTED_TYPES_POLICY===null?(z=void 0,D=""):(z===void 0&&(z=ve()),z&&typeof D=="string"&&(D=ae("")));Jt&&Jt(g),F=g},ke=Ze({},[...A0,...D0,...M3]),vt=Ze({},[...P0,...L3]),Jn=function(g,j,re){return j.namespaceURI===Or?g==="svg":j.namespaceURI===vo?g==="svg"&&(re==="annotation-xml"||Ha[re]):!!ke[g]},H2=function(g,j,re){return j.namespaceURI===Or?g==="math":j.namespaceURI===bo?g==="math"&&Ka[re]:!!vt[g]},K2=function(g,j,re){return j.namespaceURI===bo&&!Ka[re]||j.namespaceURI===vo&&!Ha[re]?!1:!vt[g]&&(Ep[g]||!ke[g])},W2=function(g){let j=x(g);(!j||!j.tagName)&&(j={namespaceURI:Gn,tagName:"template"});let re=Vl(g.tagName),me=Vl(j.tagName);return In[g.namespaceURI]?g.namespaceURI===bo?Jn(re,j,me):g.namespaceURI===vo?H2(re,j,me):g.namespaceURI===Or?K2(re,j,me):!!($i==="application/xhtml+xml"&&In[g.namespaceURI]):!1},Si=function(g){Pa(t.removed,{element:g});try{x(g).removeChild(g)}catch{if(m(g),!x(g))throw co("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ql=function(g){Tp(g);let j=v(g);if(j){let me=[];Da(j,De=>{Pa(me,De)}),Da(me,De=>{try{m(De)}catch{}})}let re=I(g);if(re)for(let me=re.length-1;me>=0;--me){let De=re[me],Be=De&&De.name;if(typeof Be=="string")try{g.removeAttribute(Be)}catch{}}},Ii=function(g,j){try{Pa(t.removed,{attribute:j.getAttributeNode(g),from:j})}catch{Pa(t.removed,{attribute:null,from:j})}if(j.removeAttribute(g),g==="is")if(Te||Ne)try{Si(j)}catch{}else try{j.setAttribute(g,"")}catch{}},G2=function(g){let j=I(g);if(j)for(let re=j.length-1;re>=0;--re){let me=j[re],De=me&&me.name;if(!(typeof De!="string"||Ve[gt(De)]))try{g.removeAttribute(De)}catch{}}},Tp=function(g){let j=[g];for(;j.length>0;){let re=j.pop();(E?E(re):re.nodeType)===Tr.element&&G2(re);let me=v(re);if(me)for(let De=me.length-1;De>=0;--De)j.push(me[De])}},J2=function(g){if(!U)return;let j=[g];for(;j.length>0;){let re=j.pop(),me=E?E(re):re.nodeType;if(me===Tr.processingInstruction||me===Tr.comment&&Lt(t2,re.data)){try{m(re)}catch{}continue}if(me===Tr.element){let Be=re,ut=gt(M?M(re):re.nodeName);try{Be.hasAttribute&&Be.hasAttribute("patchsrc")&&Be.removeAttribute("patchsrc"),Be.hasAttribute&&Be.hasAttribute("for")&&ut!=="label"&&ut!=="output"&&Be.removeAttribute("for")}catch{}}let De=v(re);if(De)for(let Be=De.length-1;Be>=0;--Be)j.push(De[Be])}},iy=function(g){let j=null,re=null;if($e)g="<remove></remove>"+g;else{let Be=HI(g,/^[\r\n\t ]+/);re=Be&&Be[0]}$i==="application/xhtml+xml"&&Gn===Or&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");let me=z?ae(g):g;if(Gn===Or)try{j=new u().parseFromString(me,$i)}catch{}if(!j||!j.documentElement){j=mt.createDocument(Gn,"template",null);try{j.documentElement.innerHTML=yo?D:me}catch{}}let De=j.body||j.documentElement;return g&&re&&De.insertBefore(n.createTextNode(re),De.childNodes[0]||null),Gn===Or?Me.call(j,se?"html":"body")[0]:se?j.documentElement:De},oy=function(g){return ht.call(g.ownerDocument||g,g,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ec=function(g){return g=Rl(g,Cr," "),g=Rl(g,wt," "),g=Rl(g,xt," "),g},Np=function(g){g.normalize();let j=ht.call(g.ownerDocument||g,g,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),re=j.nextNode();for(;re;)re.data=ec(re.data),re=j.nextNode();let me=g.querySelectorAll?.call(g,"template");me&&Da(me,De=>{wo(De.content)&&Np(De.content)})},tc=function(g){let j=M?M(g):null;return typeof j!="string"||gt(j)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==I(g)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==E(g)||g.childNodes!==v(g)},wo=function(g){if(!E||typeof g!="object"||!g)return!1;try{return E(g)===Tr.documentFragment}catch{return!1}},Wa=function(g){if(!E||typeof g!="object"||!g)return!1;try{return typeof E(g)=="number"}catch{return!1}};function tn(ce,g,j){ce.length!==0&&Da(ce,re=>{re.call(t,g,j,F)})}let q2=function(g,j){return!!(U&&g.hasChildNodes()&&!Wa(g.firstElementChild)&&Lt(e2,g.textContent)&&Lt(e2,g.innerHTML)||U&&g.namespaceURI===Or&&j==="style"&&Wa(g.firstElementChild)||g.nodeType===Tr.processingInstruction||U&&g.nodeType===Tr.comment&&Lt(t2,g.data))},Y2=function(g,j){if(!S[j]&&ly(j)&&(b.tagNameCheck instanceof RegExp&&Lt(b.tagNameCheck,j)||b.tagNameCheck instanceof Function&&b.tagNameCheck(j)))return!1;if(rr&&!it[j]){let re=x(g),me=v(g);if(me&&re){let De=me.length;for(let Be=De-1;Be>=0;--Be){let ut=be?me[Be]:f(me[Be],!0);re.insertBefore(ut,h(g))}}}return Si(g),!0},ay=function(g,j){if(tn(Je.beforeSanitizeElements,g,null),g!==j&&x(g)===null)return!0;if(tc(g))return Si(g),!0;let re=gt(M?M(g):g.nodeName);if(tn(Je.uponSanitizeElement,g,{tagName:re,allowedTags:Ye}),g!==j&&x(g)===null)return!0;if(q2(g,re))return Si(g),!0;if(S[re]||!(J.tagCheck instanceof Function&&J.tagCheck(re))&&!Ye[re]){let me=Y2(g,re);return me===!1&&tn(Je.afterSanitizeElements,g,null),me}if((E?E(g):g.nodeType)===Tr.element&&!W2(g)||(re==="noscript"||re==="noembed"||re==="noframes")&&Lt(q3,g.innerHTML))return Si(g),!0;if(O&&g.nodeType===Tr.text){let me=ec(g.textContent);g.textContent!==me&&(Pa(t.removed,{element:g.cloneNode()}),g.textContent=me)}return tn(Je.afterSanitizeElements,g,null),!1},sy=function(g,j,re){if(L[j]||U&&j==="patchsrc"||U&&j==="for"&&g!=="label"&&g!=="output"||Xe&&(j==="id"||j==="name")&&(re in n||re in Z))return!1;let me=Ve[j]||J.attributeCheck instanceof Function&&J.attributeCheck(j,g);if(!(T&&Lt(Fr,j))&&!($&&Lt(Tt,j))){if(me){if(!Za[j]&&!Lt(er,Rl(re,Nt,""))&&(j!=="src"&&j!=="xlink:href"&&j!=="href"||g==="script"||KI(re,"data:")!==0||!Sn[g])&&(!y||Lt(Wn,Rl(re,Nt,"")))&&re)return!1}else if(!(ly(g)&&(b.tagNameCheck instanceof RegExp&&Lt(b.tagNameCheck,g)||b.tagNameCheck instanceof Function&&b.tagNameCheck(g))&&(b.attributeNameCheck instanceof RegExp&&Lt(b.attributeNameCheck,j)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(j,g))||j==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&Lt(b.tagNameCheck,re)||b.tagNameCheck instanceof Function&&b.tagNameCheck(re))))return!1}return!0},X2=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ly=function(g){return!X2[Vl(g)]&&Lt(Ft,g)},Q2=function(g,j,re,me){if(z&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!re)switch(d.getAttributeType(g,j)){case"TrustedHTML":return ae(me);case"TrustedScriptURL":return ne(me)}return me},eE=function(g,j,re,me){try{re?g.setAttributeNS(re,j,me):g.setAttribute(j,me),tc(g)?Si(g):ZI(t.removed)}catch{Ii(j,g)}},cy=function(g){tn(Je.beforeSanitizeAttributes,g,null);let j=g.attributes;if(!j||tc(g))return;let re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ve,forceKeepAttr:void 0},me=j.length,De=gt(g.nodeName);for(;me--;){let Be=j[me],ut=Be.name,Ei=Be.namespaceURI,qn=Be.value,hr=gt(ut),Br=qn,nr=ut==="value"?Br:O3(Br);if(re.attrName=hr,re.attrValue=nr,re.keepAttr=!0,re.forceKeepAttr=void 0,tn(Je.uponSanitizeAttribute,g,re),nr=re.attrValue,zt&&(hr==="id"||hr==="name")&&KI(nr,St)!==0&&(Ii(ut,g),nr=St+nr),U&&Lt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,nr)){Ii(ut,g);continue}if(hr==="attributename"&&HI(nr,"href")){Ii(ut,g);continue}if(!re.forceKeepAttr){if(!re.keepAttr){Ii(ut,g);continue}if(!R&&Lt(Y3,nr)){Ii(ut,g);continue}if(O&&(nr=ec(nr)),!sy(De,hr,nr)){Ii(ut,g);continue}nr=Q2(De,hr,Ei,nr),nr!==Br&&eE(g,ut,Ei,nr)}}tn(Je.afterSanitizeAttributes,g,null)},rc=function(g){let j=null,re=oy(g);for(tn(Je.beforeSanitizeShadowDOM,g,null);j=re.nextNode();)if(tn(Je.uponSanitizeShadowNode,j,null),ay(j,g),cy(j),wo(j.content)&&rc(j.content),(E?E(j):j.nodeType)===Tr.element){let me=A(j);wo(me)&&(Cp(me),rc(me))}tn(Je.afterSanitizeShadowDOM,g,null)},Cp=function(g){let j=[{node:g,shadow:null}];for(;j.length>0;){let re=j.pop();if(re.shadow){rc(re.shadow);continue}let me=re.node,De=(E?E(me):me.nodeType)===Tr.element,Be=v(me);if(Be)for(let ut=Be.length-1;ut>=0;--ut)j.push({node:Be[ut],shadow:null});if(De){let ut=M?M(me):null;if(typeof ut=="string"&&gt(ut)==="template"){let Ei=me.content;wo(Ei)&&j.push({node:Ei,shadow:null})}}if(De){let ut=A(me);wo(ut)&&j.push({node:null,shadow:ut},{node:ut,shadow:null})}}};return t.sanitize=function(ce){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,re=null,me=null,De=null;if(yo=!ce,yo&&(ce="<!-->"),typeof ce!="string"&&!Wa(ce)&&(ce=U3(ce),typeof ce!="string"))throw co("dirty is not a string, aborting");if(!t.isSupported)return ce;te?(Ye=pe,Ve=he):ot(g),(Je.uponSanitizeElement.length>0||Je.uponSanitizeAttribute.length>0)&&(Ye=mr(Ye)),Je.uponSanitizeAttribute.length>0&&(Ve=mr(Ve)),t.removed=[];let Be=be&&typeof ce!="string"&&Wa(ce);if(Be){J2(ce);let hr=M?M(ce):ce.nodeName;if(typeof hr=="string"){let Br=gt(hr);if(!Ye[Br]||S[Br])throw Ql(ce),co("root node is forbidden and cannot be sanitized in-place")}if(tc(ce))throw Ql(ce),co("root node is clobbered and cannot be sanitized in-place");try{Cp(ce)}catch(Br){throw Ql(ce),Br}}else if(Wa(ce))j=iy("<!---->"),re=j.ownerDocument.importNode(ce,!0),re.nodeType===Tr.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?j=re:j.appendChild(re),Cp(re);else{if(!Te&&!O&&!se&&ce.indexOf("<")===-1)return z&&qe?ae(ce):ce;if(j=iy(ce),!j)return Te?null:qe?D:""}j&&$e&&Si(j.firstChild);let ut=Be?ce:j,Ei=oy(ut);try{for(;me=Ei.nextNode();)ay(me,ut),cy(me),wo(me.content)&&rc(me.content)}catch(hr){throw Be&&(Ql(ce),Da(t.removed,Br=>{Br.element&&Tp(Br.element)})),hr}if(Be)return Da(t.removed,hr=>{hr.element&&Tp(hr.element)}),O&&Np(ce),ce;if(Te){if(O&&Np(j),Ne)for(De=je.call(j.ownerDocument);j.firstChild;)De.appendChild(j.firstChild);else De=j;return(Ve.shadowroot||Ve.shadowrootmode)&&(De=Rt.call(i,De,!0)),De}let qn=se?j.outerHTML:j.innerHTML;return se&&Ye["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&Lt(G3,j.ownerDocument.doctype.name)&&(qn="<!DOCTYPE "+j.ownerDocument.doctype.name+`>
96
+ `+qn),O&&(qn=ec(qn)),z&&qe?ae(qn):qn},t.setConfig=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ot(ce),te=!0,pe=Ye,he=Ve},t.clearConfig=function(){F=null,te=!1,pe=null,he=null,z=X,D=""},t.isValidAttribute=function(ce,g,j){F||ot({});let re=gt(ce),me=gt(g);return sy(re,me,j)},t.addHook=function(ce,g){typeof g=="function"&&Vt(Je,ce)&&Pa(Je[ce],g)},t.removeHook=function(ce,g){if(Vt(Je,ce)){if(g!==void 0){let j=C3(Je[ce],g);return j===-1?void 0:z3(Je[ce],j,1)[0]}return ZI(Je[ce])}},t.removeHooks=function(ce){Vt(Je,ce)&&(Je[ce]=[])},t.removeAllHooks=function(){Je=r2()},t}function G0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function x2(e){fo=e}function Ra(e){let t=[];return n=>{let i=Math.max(0,Math.min(3,n-1)),r=t[i];return r||(r=e(i),t[i]=r),r}}function Ae(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(r,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(Qt.caret,"$1"),n=n.replace(r,a),i},getRegex:()=>new RegExp(n,t)};return i}function Nr(e,t){if(t){if(Qt.escapeTest.test(e))return e.replace(Qt.escapeReplace,a2)}else if(Qt.escapeTestNoEncode.test(e))return e.replace(Qt.escapeReplaceNoEncode,a2);return e}function s2(e){try{e=encodeURI(e).replace(Qt.percentDecode,"%")}catch{return null}return e}function l2(e,t){let n=e.replace(Qt.findPipe,(r,o,a)=>{let s=!1,l=o;for(;--l>=0&&a[l]==="\\";)s=!s;return s?"|":" |"}).split(Qt.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Qt.slashPipe,"|");return n}function wi(e,t,n){let i=e.length;if(i===0)return"";let r=0;for(;r<i;){let o=e.charAt(i-r-1);if(o===t&&!n)r++;else if(o!==t&&n)r++;else break}return e.slice(0,i-r)}function c2(e){let t=e.split(`
97
97
  `),n=t.length-1;for(;n>=0&&Qt.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
98
98
  `)}function hp(e){return e.toLowerCase().toUpperCase().toLowerCase()}function Z5(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function H5(e,t=0){let n=t,i="";for(let r of e)if(r===" "){let o=4-n%4;i+=" ".repeat(o),n+=o}else i+=r,n++;return i}function u2(e,t,n,i,r){let o=t.href,a=t.title||null,s=e[1].replace(r.other.outputLinkReplace,"$1"),l=e[0].charAt(0)==="!";i.state.inLink=!0;let u=i.state.linkEmitted,d=i.state.inRawBlock;i.state.linkEmitted=!1;let p=i.inlineTokens(s),f=i.state.linkEmitted;if(i.state.linkEmitted=u,i.state.inLink=!1,!l){if(f){i.state.inRawBlock=d;return}i.state.linkEmitted=!0}return{type:l?"image":"link",raw:n,href:o,title:a,text:s,tokens:p}}function K5(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let r=i[1];return t.split(`
99
99
  `).map(o=>{let a=o.match(n.other.beginningSpace);if(a===null)return o;let[s]=a;return o.slice(Math.min(s.length,r.length))}).join(`
100
- `)}function d2(e,t,n,i){if(!t.includes("<"))return!1;for(let r=0;r<t.length;r++){if(t[r]==="\\"){r++;continue}if(t[r]==="`"){let s=i.inline.code.exec(t.slice(r));if(s){r+=s[0].length-1;continue}}if(t[r]!=="<")continue;let o=e.slice(n+r),a=i.inline.tag.exec(o)||i.inline.autolink.exec(o);if(a){if(a[0].length>t.length-r)return!0;r+=a[0].length-1}}return!1}function et(e,t){return po.parse(e,t)}function G5(...e){return po.use(...e),et.defaults=po.defaults,x2(et.defaults),et}function tP(e){let{orientation:t,maxRows:n,maxWidth:i}=e;if(t==="horizontal"||!i)return p2;let r=i-28-(n-1)*ja;return Math.min(eP,Math.max(p2,Math.floor(r/n)))}function rP(e){return e.layout==="left-to-right"||e.layout==="radial"?"horizontal":e.layout==="top-to-bottom"?"vertical":e.diagramType==="sequence"?"horizontal":"vertical"}function nP(e){let t=new Set(e.nodes.map(a=>a.id)),n=new Set(e.edges.map(a=>a.to)),i=e.nodes.map(a=>a.id).filter(a=>!n.has(a)),r=new Map;for(let a of i.length?i:e.nodes.slice(0,1).map(s=>s.id))r.set(a,0);for(let a=0;a<e.nodes.length;a++){let s=!1;for(let l of e.edges){if(!t.has(l.from)||!t.has(l.to))continue;let u=r.get(l.from);if(u===void 0)continue;let d=u+1;(r.get(l.to)??-1)<d&&(r.set(l.to,d),s=!0)}if(!s)break}let o=Math.max(0,...r.values());for(let a of e.nodes)r.has(a.id)||r.set(a.id,++o);return r}function iP(e,t){let n=m2(e,rP(e),t?.maxWidth);return t?.maxWidth&&n.orientation==="horizontal"&&n.width>t.maxWidth?m2(e,"vertical",t.maxWidth):n}function m2(e,t,n){let i=nP(e),r=new Map;for(let m of e.nodes){let h=i.get(m.id)??0;r.set(h,[...r.get(h)??[],m])}let o=[...r.entries()].sort(([m],[h])=>m-h),a=Math.max(1,...o.map(([,m])=>m.length)),s=Math.max(1,o.length),l=tP({orientation:t,maxRows:a,...n===void 0?{}:{maxWidth:n}}),u=t==="horizontal"?28+s*l+(s-1)*ja:28+a*l+(a-1)*ja,d=t==="horizontal"?28+a*U0+(a-1)*f2:28+s*U0+(s-1)*f2,p=[];for(let[m,[,h]]of o.entries()){let v=(a-h.length)*(t==="horizontal"?86:l+ja)/2;for(let[x,A]of h.entries()){let I=t==="horizontal"?up+m*(l+ja):up+v+x*(l+ja),E=t==="horizontal"?up+v+x*86:up+m*86;p.push({id:A.id,label:A.label,...A.detail?{detail:A.detail}:{},...A.kind?{kind:A.kind}:{},x:I,y:E,width:l,height:U0})}}let f=new Map(p.map(m=>[m.id,m]));return{width:u,height:d,orientation:t,nodes:p,edges:e.edges.flatMap((m,h)=>{let v=f.get(m.from),x=f.get(m.to);if(!v||!x)return[];let A=t==="horizontal"?v.x+v.width:v.x+v.width/2,I=t==="horizontal"?v.y+v.height/2:v.y+v.height,E=t==="horizontal"?x.x:x.x+x.width/2,M=t==="horizontal"?x.y+x.height/2:x.y;return[{key:`${m.from}-${m.to}-${h}`,from:m.from,to:m.to,...m.label?{label:m.label}:{},x1:A,y1:I,x2:E,y2:M,labelX:(A+E)/2,labelY:(I+M)/2}]})}}function z2(e){let{value:t}=e,n=Math.abs(t);return n>=1e6?`${(t/1e6).toFixed(1).replace(/\.0$/,"")}M`:n>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,"")}k`:Number.isInteger(t)?`${t}`:t.toFixed(1)}function O2(e){let{seconds:t}=e,n=Math.round(Math.abs(t)),i=t<0?"-":"";if(n<60)return`${i}${n}s`;if(n<3600){let a=Math.floor(n/60),s=n%60;return s?`${i}${a}m ${s}s`:`${i}${a}m`}let r=Math.floor(n/3600),o=Math.floor(n%3600/60);return o?`${i}${r}h ${o}m`:`${i}${r}h`}function A2(e){return{prefix:e?.valuePrefix??(e?.valueFormat==="currency"?"$":""),suffix:e?.valueSuffix??(e?.valueFormat==="percent"?"%":"")}}function j0(e){let{value:t,series:n}=e,{prefix:i,suffix:r}=A2(n),o;switch(n?.valueFormat){case"integer":o=`${Math.round(t)}`;break;case"duration":o=O2({seconds:t});break;case"raw":o=Number.isInteger(t)?`${t}`:t.toFixed(1);break;default:o=z2({value:t})}return`${i}${o}${r}`}function oP(e){let[t,...n]=e.series;if(t)return n.every(i=>i.valueFormat===t.valueFormat&&i.valuePrefix===t.valuePrefix&&i.valueSuffix===t.valueSuffix)?t:void 0}function aP(e){let{value:t,shared:n}=e;if(n?.valueFormat==="duration")return O2({seconds:t});let{prefix:i,suffix:r}=A2(n);return`${i}${z2({value:t})}${r}`}function dP(e){let{labels:t,plotWidth:n}=e;if(!t.length||n<=0)return{mode:"horizontal",entries:[]};let i=t.map(l=>l.length>uP?`${l.slice(0,15).trimEnd()}\u2026`:l),r=t.length-1;if(r===0)return{mode:"horizontal",entries:[{index:0,text:i[0]}]};if((Math.max(...i.map(l=>l.length*sP))+lP)*t.length<=n)return{mode:"horizontal",entries:i.map((l,u)=>({index:u,text:l}))};let o=Math.max(2,Math.floor(n/cP));if(t.length<=o)return{mode:"angled",entries:i.map((l,u)=>({index:u,text:l}))};let a=new Set([0,r]),s=r/(o-1);for(let l=1;l<o-1;l++)a.add(Math.round(l*s));return{mode:"angled",entries:[...a].sort((l,u)=>l-u).map(l=>({index:l,text:i[l]}))}}function WP(e){return e&&HP[e]||KP}function aR(e){return e.hadError?"error":e.sessionState==="live"?e.speaking.bot?"speaking":e.speaking.user?"listening":e.work.active?"working":e.providerThinking?"thinking":"listening":"connecting"}function sR(e){let t=aR(e),n=oR[t],i=t==="working"?e.work.description||"Working on it":n.label,r=t==="working"?i:n.visibleText??"",o=e.takingLonger&&(t==="thinking"||t==="working"),a=o?`${r} ${ki.slowHint}`:r;return{activity:t,label:o?a:i,tone:e.isMuted&&t==="listening"?"bg-theme-400":n.tone,visibleStatus:a,usesIdleWave:n.waits||e.isMuted&&t==="listening",takingLonger:o}}var yp,BD,ZD,pp,JD,qD,ki,h2,XD,QD,C0,Zl,r3,La,n3,wp,i3,kp,o3,a3,s3,l3,c3,xp,u3,d3,p3,f3,F0,m3,h3,g3,v3,b3,y3,w3,k3,z0,b2,BI,E3,T3,N3,Jt,qt,Ua,y2,B0,Z0,Da,C3,ZI,Pa,z3,xi,Vl,O0,HI,Rl,KI,O3,A3,D3,WI,GI,Vt,Ul,Lt,co,JI,A0,D0,M3,P0,L3,qI,YI,R0,XI,sp,V3,F3,B3,Z3,H3,QI,K3,W3,G3,J3,e2,t2,q3,Y3,Tr,X3,Q3,r2,yi,k2,lp,fo,uo,e5,Qt,t5,r5,n5,Hl,i5,J0,_2,$2,o5,q0,a5,Y0,s5,l5,Kl,X0,c5,S2,u5,d5,Q0,n2,p5,f5,m5,h5,I2,g5,Kn,Va,Wl,v5,b5,E2,y5,w5,k5,T2,x5,_5,$5,N2,S5,I5,E5,T5,N5,C5,z5,O5,A5,D5,P5,C2,mp,R5,U5,j5,i2,M5,L5,o2,ey,V5,H0,F5,cp,jl,B5,a2,gp,Qr,vp,ty,en,Fl,W5,po,J5,q5,Y5,X5,Q5,p2,U0,up,ja,f2,eP,sP,lP,cP,uP,pP,fP,mP,hP,gP,vP,bP,yP,wP,kP,xP,_P,$P,SP,IP,EP,TP,NP,CP,zP,OP,AP,DP,PP,RP,UP,jP,MP,LP,VP,Ml,FP,BP,ZP,HP,KP,bp,D2,GP,JP,qP,YP,XP,QP,eR,tR,rR,M0,nR,iR,oR,lR,cR,uR,dR,pR,fR,mR,hR,gR,vR,bR,yR,wR,kR,xR,_R,$R,SR,IR,ER,TR,NR,CR,zR,OR,AR,DR,PR,RR,UR,jR,MR,LR,VR,FR,BR,ZR,HR,KR,WR,GR,JR,qR,YR,XR,QR,eU,tU,rU,nU,iU,oU,aU,sU,lU,cU,uU,dU,pU,fU,mU,hU,gU,vU,bU,yU,wU,kU,xU,_U,$U,SU,IU,EU,mo,TU,NU,CU,_p,ry=Y(()=>{"use strict";Tn();N0();Ol();bn();yp=uy((e,t)=>{let n=e.__vccOpts||e;for(let[i,r]of t)n[i]=r;return n},"default"),BD={},ZD={class:"spinner max-w-sm"};pp=yp(BD,[["render",HD]]);JD=400,qD=class extends so{constructor(e){super("VoiceRecorderController",e),W(this,"state",q({phase:"idle",elapsedMs:0})),W(this,"isActive",P(()=>this.state.value.phase!=="idle")),W(this,"isBusy",P(()=>this.state.value.phase!=="idle")),W(this,"elapsedLabel",P(()=>KD({ms:this.state.value.elapsedMs}))),W(this,"statusText",P(()=>this.state.value.phase==="preparing"?"Starting microphone":this.state.value.phase==="sending"?"Sending voice message":"Release to send")),W(this,"recorder",void 0),W(this,"stream",void 0),W(this,"chunks",[]),W(this,"timer",void 0),W(this,"startedAt",0),W(this,"cancelOnStop",!1),W(this,"stopAfterStart",!1),W(this,"startToken",0)}get canUseBrowserRecording(){return!!this.settings.getUserMedia||typeof navigator<"u"&&!!navigator.mediaDevices?.getUserMedia&&typeof MediaRecorder<"u"}async start(){if(!this.settings.getCanRecord()||this.state.value.phase!=="idle")return;if(!this.canUseBrowserRecording){this.settings.getChatController()?.notify("Voice recording is not available in this browser.");return}this.state.value={phase:"preparing",elapsedMs:0},this.cancelOnStop=!1;let e=++this.startToken;try{let t=await this.getUserMedia({constraints:{audio:!0}});if(e!==this.startToken){t.getTracks().forEach(r=>r.stop());return}let n=GD(),i=this.createRecorder({stream:t,mimeType:n});this.stream=t,this.recorder=i,this.chunks=[],i.addEventListener("dataavailable",r=>{r.data.size>0&&this.chunks.push(r.data)}),i.addEventListener("stop",async()=>{let r=new Blob(this.chunks,{type:i.mimeType||n||"audio/webm"}),o=this.now()-this.startedAt,a=!this.cancelOnStop&&r.size>0&&o>=JD;if(this.stopCapture(),!a){this.reset();return}this.state.value={phase:"sending",elapsedMs:this.state.value.elapsedMs},await this.sendBlob({blob:r}),this.reset()}),i.start(),this.startedAt=this.now(),this.state.value={phase:"recording",elapsedMs:0},this.timer=this.setInterval(()=>{this.state.value={phase:"recording",elapsedMs:this.now()-this.startedAt}},250),this.stopAfterStart&&this.finish({cancelled:this.cancelOnStop})}catch(t){if(e!==this.startToken)return;this.teardown();let n=t instanceof Error?t.message:"Microphone access failed.";this.settings.getChatController()?.notify(`Voice recording failed \u2014 ${n}`)}}finish(e){if(this.state.value.phase!=="idle"&&this.state.value.phase!=="sending"){if(this.state.value.phase==="preparing"){this.stopAfterStart=!0,this.cancelOnStop=e.cancelled;return}if(!this.recorder||this.recorder.state!=="recording"){this.teardown();return}this.cancelOnStop=e.cancelled,this.recorder.stop()}}teardown(){this.cancelOnStop=!0,this.startToken+=1,this.recorder?.state==="recording"&&this.recorder.stop(),this.stopCapture(),this.reset()}async getUserMedia(e){return(this.settings.getUserMedia||navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices))(e.constraints)}createRecorder(e){return this.settings.createRecorder?this.settings.createRecorder(e):e.mimeType?new MediaRecorder(e.stream,{mimeType:e.mimeType}):new MediaRecorder(e.stream)}async sendBlob(e){let t=this.settings.getUploadFn(),n=this.settings.getChatController();if(!t||!n)return;let i=e.blob.type||"audio/webm",r=new File([e.blob],`voice-${new Date().toISOString().replace(/[:.]/g,"-")}.${WD({mimeType:i})}`,{type:i});try{let o=await t(r);this.settings.onBeforeSend?.(),await n.sendChatMessage("",[o])}catch(o){let a=o instanceof Error?o.message:"Couldn't send that recording.";n.notify(`Voice message failed \u2014 ${a}`)}}stopCapture(){this.timer&&(this.clearInterval(this.timer),this.timer=void 0),this.stream?.getTracks().forEach(e=>e.stop()),this.stream=void 0,this.recorder=void 0,this.chunks=[],this.stopAfterStart=!1}reset(){this.state.value={phase:"idle",elapsedMs:0}}now(){return this.settings.now?.()??Date.now()}setInterval(e,t){return this.settings.setInterval?.(e,t)??setInterval(e,t)}clearInterval(e){(this.settings.clearInterval??clearInterval)(e)}};ki={finishing:"Finishing up",slowHint:"Taking longer than usual.",completed:"Work complete",failed:"Couldn\u2019t finish",stopped:"Stopped",notifyHint:"Taking longer than usual. You can leave and I\u2019ll notify you when it\u2019s ready.",leaveHint:"Taking longer than usual. You can leave this chat while I work."},h2=1e4,XD=15e3,QD=6e4,C0=3;Zl=class extends so{isQueuedMessage(e){return this.queuedMessageIdSet.value.has(e)}consumeQueuedThrough(e){if(!e||this.queuedMessageIdSet.value.size===0)return;let t=new Set(this.queuedMessageIdSet.value),n=this.sharedMessages.value.findIndex(i=>i.id===e);n<0?t.delete(e):this.sharedMessages.value.slice(0,n+1).forEach(i=>t.delete(i.id)),this.queuedMessageIdSet.value=t}get activeConversationId(){return this.conversationId}createVoiceClient(e){let{sdk:t,createVoiceClientFn:n}=this.settings,i=this._bot.botId.value,r=this._bot.orgId.value;if(t?.activeUser.value&&i&&r)return n?.({botId:i,orgId:r,conversationId:this.conversationId,handlers:e})}async refreshMessages(){await this.settings.refreshMessagesFn?.()}constructor(e){super("BotChatController",e),W(this,"isTextMode",!1),W(this,"lastMessage",{hash:"",time:0}),W(this,"isConnecting",!1),W(this,"turnEpoch",0),W(this,"nextStreamToken",0),W(this,"runningStreamToken",void 0),W(this,"suppressedStreamTokens",new Set),W(this,"queuedMessageIdSet",q(new Set)),W(this,"queuedMessageIds",P(()=>this.queuedMessageIdSet.value)),W(this,"boundaryTimer",void 0),W(this,"nowMs",We(Date.now())),W(this,"toolActivityTiming",We({})),W(this,"lastVisibleProgressAtMs",We()),W(this,"liveSegments",We([])),W(this,"liveStreamMessageId",We(void 0)),W(this,"conversationId",void 0),W(this,"textState",q({isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected"})),W(this,"botMode",q("self")),W(this,"sharedMessages",q([])),W(this,"composerState",q({text:"",pendingAttachments:[],isUploading:!1})),W(this,"workJournal",P(()=>{let t=this.textState.value.isThinking?"running":this.textState.value.turnOutcome;if(!t)return;let n=this.textState.value.toolActivities;if(n?.length)return V0({activities:n,outcome:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),W(this,"liveTurnBlocks",P(()=>{if(!this.textState.value.isThinking)return[];let t=this.textState.value.toolActivities??[],n=this.liveSegments.value;return!n.length&&!t.length?[]:e3({segments:n,activities:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),W(this,"canUseComposer",P(()=>this.textState.value.sendBlockedReason!=="bot_deleted"&&!this.composerState.value.isUploading)),W(this,"canAttachFile",P(()=>!!this.settings.uploadFileFn)),W(this,"canRecordAudio",P(()=>this.canAttachFile.value&&this.canUseComposer.value&&!this.composerState.value.text.trim()&&this.composerState.value.pendingAttachments.length===0)),W(this,"voiceRecorder",new qD({getCanRecord:()=>this.canRecordAudio.value,getUploadFn:()=>{let t=this.settings.uploadFileFn;return t?n=>t({file:n}):void 0},getChatController:()=>this})),W(this,"canSend",P(()=>(this.composerState.value.text.trim().length>0||this.composerState.value.pendingAttachments.length>0)&&this.canUseComposer.value&&!this.voiceRecorder.isBusy.value)),W(this,"canStop",P(()=>this.textState.value.isThinking&&!this.composerState.value.isUploading&&!this.voiceRecorder.isBusy.value)),W(this,"composerAction",P(()=>this.canSend.value?"send":this.canStop.value?"stop":"idle")),W(this,"composerShowsSecondaryStop",P(()=>this.canStop.value&&this.composerAction.value==="send")),W(this,"canStartVoice",P(()=>{let t=this.settings.sdk;return this.textState.value.sendBlockedReason!=="bot_deleted"&&!!t?.activeUser.value&&!!this._bot.botId.value&&!!this._bot.orgId.value&&!!this.settings.createVoiceClientFn&&t3()})),W(this,"_bot",void 0),W(this,"localMessageSeq",0),this._bot=e.bot,this.setupModeWatcher(),this.setupAvailabilityWatcher(),this.setupBoundaryWatcher()}get chatEnabled(){let e=this._bot.state.value.lifecycle;return this._bot.lifecycle.value===void 0?this._bot.desiredStatus.value==="active":e==="running"}get chatUnavailableReason(){if(this.chatEnabled)return;let e=this._bot.displayName.value,t=this._bot.state.value.lifecycle;return t==="starting"?`${e} is waking up`:t==="stopped"?`${e} is asleep`:this._bot.desiredStatus.value==="active"?`${e} is unavailable`:`${e} is offline`}isDuplicateMessage(e,t){let n=`${t}:${e.toLowerCase().trim()}`,i=Date.now(),r=n===this.lastMessage.hash&&i-this.lastMessage.time<500;return r||(this.lastMessage={hash:n,time:i}),r}addMessage(e,t,n,i){this.isDuplicateMessage(e,t)||(this.sharedMessages.value=[...this.sharedMessages.value,{id:this.nextLocalMessageId(),text:e,sender:t,timestamp:new Date().toISOString(),attachments:n,...i?{issue:i}:{}}])}nextLocalMessageId(){return`${Date.now()}-${++this.localMessageSeq}`}notify(e){e&&this.addMessage(e,"system")}get canReportMessages(){return!!this.settings.reportMessageFn}async reportMessage(e){let t=this.settings.reportMessageFn;if(t)try{await t({messageId:e}),this.notify("Reported. Our team will review this message.")}catch(n){this.logger.warn("reportMessage failed",{messageId:e,error:n instanceof Error?n.message:String(n)}),this.notify("Could not report that message.")}}setComposerText(e){this.composerState.value={...this.composerState.value,text:e.text}}async attachFile(e){let t=this.settings.uploadFileFn;if(t&&!this.voiceRecorder.isBusy.value){this.composerState.value={...this.composerState.value,isUploading:!0};try{let n=await t({file:e.file});this.composerState.value={...this.composerState.value,pendingAttachments:[...this.composerState.value.pendingAttachments,n]}}catch(n){let i=n instanceof Error?n.message:"Couldn't attach that file.";this.notify(`Upload failed \u2014 ${i}`)}finally{this.composerState.value={...this.composerState.value,isUploading:!1}}}}removeAttachment(e){this.composerState.value={...this.composerState.value,pendingAttachments:this.composerState.value.pendingAttachments.filter((t,n)=>n!==e.index)}}addOfflineSystemReply(){let e=this._bot.displayName.value||"Your assistant",t=this._bot.state.value.blocker;if(t){let s=t.actionUrl.startsWith("pagelines://")?this.settings.billingUrl:t.actionUrl,l=[`${t.title}.${t.help?` ${t.help}`:""}`,t.actionLabel&&s?`[${t.actionLabel}](${s})`:t.actionLabel||""].filter(Boolean).join(" "),u=this.sharedMessages.value[this.sharedMessages.value.length-1];if(u?.sender==="system"&&u.text===l)return;this.addMessage(l,"system");return}let n=this.chatUnavailableReason??`${e} is unavailable`,i=this._bot.state.value.lifecycle==="stopped"||this._bot.desiredStatus.value!=="active",r=this.settings.manageUrl,o=i?r?`${n}, so your message can't be answered yet. [Wake ${e}](${r}), then send again.`:`${n}, so your message can't be answered yet. Wake it from the dashboard, then send again.`:`${n}. Give it a moment and send again.`,a=this.sharedMessages.value[this.sharedMessages.value.length-1];(a?.sender!=="system"||a.text!==o)&&this.addMessage(o,"system")}async sendComposerMessage(){if(!this.canSend.value)return;let e=this.composerState.value.text,t=this.composerState.value.pendingAttachments.length>0?[...this.composerState.value.pendingAttachments]:void 0;if(!this.chatEnabled){this.addOfflineSystemReply();return}this.composerState.value={...this.composerState.value,text:"",pendingAttachments:[]},await this.sendChatMessage(e,t)}async handleComposerAction(){if(this.composerAction.value==="stop"){await this.stopChatTurn();return}this.composerAction.value==="send"&&await this.sendComposerMessage()}getDynamicSettings(){return{context:this.settings.context||"",firstMessage:this.settings.firstMessage||""}}updateState(e,t){e.value={...e.value,...t}}resetWorkJournalTiming(){this.toolActivityTiming.value={},this.lastVisibleProgressAtMs.value=void 0,this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.clearBoundaryTimer()}resetState(){this.resetWorkJournalTiming(),this.updateState(this.textState,{isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected",error:void 0,sendBlockedReason:void 0,workingDescription:void 0,toolActivities:void 0,turnOutcome:void 0})}setupBoundaryWatcher(){ft(()=>this.workJournal.value?.nextBoundaryAtMs,e=>{this.scheduleBoundary(e)})}scheduleBoundary(e){if(this.clearBoundaryTimer(),e===void 0)return;let t=Math.max(0,e-Date.now());this.boundaryTimer=setTimeout(()=>{this.boundaryTimer=void 0,this.nowMs.value=Date.now()},t),this.boundaryTimer.unref?.()}clearBoundaryTimer(){this.boundaryTimer&&(clearTimeout(this.boundaryTimer),this.boundaryTimer=void 0)}rememberToolActivity(e){let t=ap(e.startedAt)??this.toolActivityTiming.value[e.activityId]?.startedAt??(e.status==="started"?Date.now():void 0),n=ap(e.endedAt)??this.toolActivityTiming.value[e.activityId]?.endedAt??(e.status==="started"?void 0:Date.now());t&&(this.toolActivityTiming.value={...this.toolActivityTiming.value,[e.activityId]:{startedAt:t,...n?{endedAt:n}:{}}})}withToolActivityTiming(e){let t=this.toolActivityTiming.value[e.activityId],n=Date.now(),i=ap(e.startedAt)??t?.startedAt??(e.status==="started"?n:void 0),r=ap(e.endedAt)??t?.endedAt??(e.status==="started"?void 0:n);return{...e,...i!==void 0&&!e.startedAt?{startedAt:new Date(i).toISOString()}:{},...r!==void 0&&!e.endedAt?{endedAt:new Date(r).toISOString()}:{}}}updateToolActivity(e){let t=this.textState.value.toolActivities??[],n=t.findIndex(o=>o.activityId===e.activityId),i=this.withToolActivityTiming({...n>=0?t[n]:{},...e}),r=n>=0?[...t.slice(0,n),i,...t.slice(n+1)]:[...t,i];this.rememberToolActivity(i),this.updateState(this.textState,{toolActivities:r})}finishToolActivities(e){let t=this.textState.value.toolActivities;if(!t?.length)return;let n=t.map(i=>i.status==="started"?this.withToolActivityTiming({...i,status:e}):i);n.forEach(i=>this.rememberToolActivity(i)),this.updateState(this.textState,{toolActivities:n})}workJournalFor(e){if(e.activities?.length)return V0({activities:e.activities,outcome:e.outcome,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,includeFailureNote:e.includeFailureNote})}setupModeWatcher(){ft(this.botMode,async(e,t)=>{this.logger.info(`Mode changed from ${t} to ${e}`),this.isTextMode&&(t==="talk"||t==="chat")&&await this.endConversation()})}setupAvailabilityWatcher(){ft(()=>[this.chatEnabled,this._bot.state.value.lifecycle],([e])=>{if(this.isTextMode&&!this.isConnecting){if(e){this.textState.value.isConnected||this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected",error:void 0});return}this.textState.value.isConnected&&this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason})}})}handleError(e){let t=e.message;this.logger.error("Conversation error:",{message:t,error:e}),this.addMessage(t,"system"),this.resetState(),this.updateState(this.textState,{error:t,connectionStatus:"error"})}async setMode(e){this.botMode.value!==e&&(this.botMode.value=e)}async startTextConversation(e={}){if(this.isConnecting){this.logger.info("Text conversation already connecting, ignoring duplicate request");return}this.isConnecting=!0,this.isTextMode=!0,this.updateState(this.textState,{isActive:!0,connectionStatus:"connecting"});try{if(!this.chatEnabled){this.isConnecting=!1,this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason});return}this.isConnecting=!1,this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected"}),e.onConnect?.(),this.logger.info("Text conversation ready")}catch(t){throw this.isConnecting=!1,this.handleError(t),t}}async endConversation(){if(this.turnEpoch+=1,this.runningStreamToken=void 0,this.suppressedStreamTokens.clear(),this.queuedMessageIdSet.value=new Set,!this.isTextMode){this.resetState();return}try{this.conversationId=void 0,this.resetState(),this.isTextMode=!1}catch{this.isTextMode=!1}}async sendChatMessage(e,t){if(!this.isTextMode)return;let{chatStreamFn:n}=this.settings;if(!this.chatEnabled){this.addOfflineSystemReply();return}if(this.textState.value.sendBlockedReason==="bot_deleted")return;let{sdk:i}=this.settings;if(!n&&!this._bot.handle.value){this.handleError(Error("Bot handle required for chat"));return}let r=this.textState.value.isThinking,o=this.sharedMessages.value.length;this.addMessage(e,"user",t);let a=this.sharedMessages.value.length>o?this.sharedMessages.value[this.sharedMessages.value.length-1]?.id:void 0,s=this.turnEpoch,l=++this.nextStreamToken;r&&a?this.queuedMessageIdSet.value=new Set(this.queuedMessageIdSet.value).add(a):(this.runningStreamToken=l,this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}));let u=`stream-${Date.now()}-${l}`,d=!1,p=!1,f=()=>s===this.turnEpoch&&!this.suppressedStreamTokens.has(l),m=D=>{if(s!==this.turnEpoch||!a)return;let X=this.sharedMessages.value;if(this.sharedMessages.value=X.some(ce=>ce.id===D.id)?X.filter(ce=>ce.id!==a||ce.id===D.id):X.map(ce=>ce.id===a?D:ce),this.queuedMessageIdSet.value.has(a)){let ce=new Set(this.queuedMessageIdSet.value);ce.delete(a),ce.add(D.id),this.queuedMessageIdSet.value=ce}a=D.id},h=()=>{this.runningStreamToken!==l&&(this.runningStreamToken=l,this.consumeQueuedThrough(a),this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}))},v=(D,X="assistant")=>{if(!f())return;h(),this.updateState(this.textState,{workingDescription:void 0}),X==="assistant"&&(this.lastVisibleProgressAtMs.value=Date.now()),d||(d=!0,this.liveStreamMessageId.value=u,this.sharedMessages.value=[...this.sharedMessages.value,{id:u,text:"",sender:X==="system"?"system":"bot",timestamp:new Date().toISOString()}]);let ce=this.liveSegments.value,ie=ce[ce.length-1];this.liveSegments.value=ie?.kind==="text"?[...ce.slice(0,-1),{kind:"text",content:ie.content+D}]:[...ce,{kind:"text",content:D}];let Q=this.sharedMessages.value,ae=Q[Q.length-1];ae?.id===u&&(ae.text+=D,this.sharedMessages.value=[...Q])},x=D=>{if(!f())return;if(h(),p=!0,D.sender==="bot"&&ep(D.text)){this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.sharedMessages.value=this.sharedMessages.value.filter(ne=>ne.id!==u);return}d=!0;let X=D.sender==="system"||D.turnOutcome==="failed"?"failed":"completed";this.finishToolActivities(X);let ce=this.textState.value.toolActivities,ie=D.toolActivities?.length||!ce?.length?D:{...D,toolActivities:ce};this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.updateState(this.textState,{workingDescription:void 0,toolActivities:[],turnOutcome:void 0});let Q=this.sharedMessages.value.filter(ne=>ne.id!==u),ae=Q.findIndex(ne=>ne.id===ie.id);ae>=0?this.sharedMessages.value=[...Q.slice(0,ae),ie,...Q.slice(ae+1)]:this.sharedMessages.value=[...Q,ie],ie.sender==="system"&&ie.issue?.bucket==="account"?this.updateState(this.textState,{sendBlockedReason:"account"}):ie.sender==="system"&&ie.issue?.code==="BOT_DELETED"&&this.updateState(this.textState,{sendBlockedReason:"bot_deleted"})},A=D=>{if(!f())return;if(!d&&!p){I(Yr("no-reply","Assistant returned no content"));return}this.finishToolActivities("completed");let X=this.sharedMessages.value,ce=X[X.length-1];ce?.id===u&&ce.sender==="bot"&&ep(ce.text)&&(this.sharedMessages.value=X.slice(0,-1)),D&&(this.conversationId=D),this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,transientIssue:void 0}),this.settings.onTurnCompleted?.(D)},I=D=>{if(!f())return;if(this.runningStreamToken!==l){this.consumeQueuedThrough(a),this.sharedMessages.value=this.sharedMessages.value.filter(je=>je.id!==a),this.composerState.value.text||(this.composerState.value={...this.composerState.value,text:e,pendingAttachments:t??[]});return}this.updateState(this.textState,{workingDescription:void 0,turnOutcome:"failed"}),this.finishToolActivities("failed");let X=this.sharedMessages.value,ce=X[X.length-1];ce?.id===u&&!ce.text&&(this.sharedMessages.value=X.slice(0,-1)),this.logger.warn("Chat turn failed:",D);let{code:ie,bucket:Q,message:ae,actionLabel:ne,actionUrl:ve,help:Le}=D,mt={...ne?{actionLabel:ne}:{},...ve?{actionUrl:ve}:{},...Le?{help:Le}:{}},ht=Q==="account"?"account":ie==="BOT_DELETED"?"bot_deleted":void 0;ht?(this.addMessage(ae,"system",void 0,{code:ie,bucket:Q,...mt}),this.updateState(this.textState,{isThinking:!1,sendBlockedReason:ht})):this.updateState(this.textState,{isThinking:!1,transientIssue:{code:ie,message:ae,...mt}})},E=D=>{if(!f())return;h();let X=D.trim();this.updateState(this.textState,{workingDescription:X||void 0})},M=D=>{if(f()){if(h(),this.lastVisibleProgressAtMs.value=Date.now(),D.status==="started"){let X=this.liveSegments.value,ce=X[X.length-1];ce?.kind==="work"?ce.activityIds.includes(D.activityId)||(this.liveSegments.value=[...X.slice(0,-1),{kind:"work",activityIds:[...ce.activityIds,D.activityId]}]):this.liveSegments.value=[...X,{kind:"work",activityIds:[D.activityId]}]}this.updateToolActivity(D)}},z=()=>{f()&&this.updateState(this.textState,{workingDescription:void 0})};try{this.settings.onTurnStarted?.(),await(n?n({message:e,attachments:t,conversationId:this.conversationId,history:this.buildHistory(),onDelta:v,onMessage:x,onUserMessage:m,onDone:A,onError:I,onStatus:E,onToolActivity:M,onWorkingEnd:z}):i.chat.chatStreamPublic({handle:this._bot.handle.value,message:e,attachments:t,anonymousId:i.user.generateAnonId(),context:this.getDynamicSettings().context||void 0,onDelta:v,onMessage:x,onDone:A,onError:I,onStatus:E,onToolActivity:M,onWorkingEnd:z}))}catch(D){I(Yr("api",D instanceof Error?D.message:"Chat failed","NETWORK_ERROR"))}finally{this.runningStreamToken===l&&(this.runningStreamToken=void 0)}}async stopChatTurn(){if(this.textState.value.isThinking){this.runningStreamToken!==void 0&&this.suppressedStreamTokens.add(this.runningStreamToken),this.runningStreamToken=void 0,this.updateState(this.textState,{isThinking:!1,turnOutcome:"stopped",workingDescription:void 0,transientIssue:void 0});try{await this.settings.cancelChatTurnFn?.({conversationId:this.conversationId})}catch(e){this.logger.warn("stopChatTurn: cancel failed",{conversationId:this.conversationId,error:e instanceof Error?e.message:String(e)})}}}buildHistory(){return this.sharedMessages.value.filter(e=>e.sender==="user"||e.sender==="bot").slice(-20).map(e=>({role:e.sender==="user"?"user":"assistant",content:e.text,...e.attachments?.length?{attachments:e.attachments}:{}})).filter(e=>e.content.length>0||e.attachments&&e.attachments.length>0)}loadMessages(e){this.conversationId=e.conversationId;let t=this.sharedMessages.value,n=e.messages.filter(d=>d.sender!=="bot"||!ep(d.text)),i=new Set(n.map(d=>d.id)),r=t.filter(d=>!i.has(d.id)),o=n[0]?.sequence,a=d=>!!o&&!!d.sequence&&d.sequence<o;if(this.sharedMessages.value=[...r.filter(a),...n,...r.filter(d=>!a(d))],this.runningStreamToken!==void 0)return;let s=new Set(this.sharedMessages.value.flatMap(d=>d.toolActivities?.map(p=>p.turnId)??[])),l=new Set(this.textState.value.turnOutcome==="stopped"?this.textState.value.toolActivities?.map(d=>d.turnId):[]),u=(e.activeToolActivities??[]).filter(d=>!s.has(d.turnId)&&!l.has(d.turnId));u.length?(u.forEach(d=>this.rememberToolActivity(d)),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:u,transientIssue:void 0,turnOutcome:void 0})):this.textState.value.toolActivities?.some(d=>s.has(d.turnId))&&this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,toolActivities:[],turnOutcome:void 0})}async destroy(){this.clearBoundaryTimer(),this.voiceRecorder.teardown(),await this.endConversation()}};r3={key:0,class:"absolute inset-0 flex items-center justify-center"},La=Ue({__name:"ElBotButton",props:{theme:{default:"primary"},size:{default:"lg"},loading:{type:Boolean,default:!1},icon:{},iconAfter:{}},setup(e){let t=P(()=>({primary:"bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",green:"bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",red:"bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",default:"bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20",dark:"bg-theme-900 border-transparent hover:bg-theme-800"})[e.theme]),n=P(()=>({sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-base"})[e.size]),i=P(()=>({sm:"size-4",md:"size-4",lg:"size-5"})[e.size]);return(r,o)=>(w(),_("button",{class:V(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",[t.value,n.value]])},[e.loading?(w(),_("div",r3,[...o[0]||(o[0]=[k("i",{class:"i-svg-spinners-90-ring-with-bg size-5"},null,-1)])])):ee("",!0),k("span",{class:V(["flex items-center gap-2 transition-opacity duration-200",e.loading?"opacity-0":"opacity-100"])},[e.icon?(w(),_("i",{key:0,class:V([e.icon,i.value])},null,2)):ee("",!0),fr(r.$slots,"default"),e.iconAfter?(w(),_("i",{key:1,class:V([e.iconAfter,i.value])},null,2)):ee("",!0)],2)],2))}}),n3=["value"],wp=Ue({__name:"BotInputEmail",props:{modelValue:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){let n=t;return(i,r)=>(w(),_("input",{name:"username",type:"email",inputmode:"email",autocomplete:"username",autocapitalize:"off",autocorrect:"off",spellcheck:"false",placeholder:"Enter your email",value:e.modelValue,class:"w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:r[0]||(r[0]=o=>n("update:modelValue",o.target.value))},null,40,n3))}}),i3=["placeholder","value"],kp=Ue({__name:"BotInputOneTimeCode",props:{modelValue:{},length:{},focusFirst:{type:Boolean}},emits:["update:modelValue","autoSubmit"],setup(e,{emit:t}){let n=e,i=t,r=q(null),o=P(()=>"0".repeat(n.length));Pt(()=>{n.focusFirst&&!("ontouchstart"in window)&&r.value?.focus()});function a(s){let l=s.target.value.replace(/\D/g,"").slice(0,n.length);i("update:modelValue",l),l.length===n.length&&i("autoSubmit",l)}return(s,l)=>(w(),_("input",{ref_key:"input",ref:r,name:"one-time-code",type:"text",inputmode:"numeric",autocomplete:"one-time-code",autocapitalize:"off",autocorrect:"off",spellcheck:"false",enterkeyhint:"done",placeholder:o.value,value:e.modelValue,class:"w-full px-6 py-3 text-center font-mono tracking-[0.35em] text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:a},null,40,i3))}}),o3={class:"relative flex-shrink-0"},a3=["src","alt"],s3={class:"absolute top-1 right-1"},l3={key:1,class:"size-3 bg-theme-400 rounded-full ring-2 ring-white"},c3={class:"min-w-0"},xp=Ue({__name:"ElModeHeader",props:{bot:{},size:{default:"md"},isOnline:{type:Boolean,default:!1},layout:{default:"centered"}},setup(e){return(t,n)=>(w(),_("div",{class:V(["flex gap-4",[e.layout==="centered"?"flex-col items-center text-center":"flex-row items-center justify-center"]])},[k("div",o3,[k("div",{class:V(["rounded-full overflow-hidden border-white",e.size==="lg"?"w-20 h-20 sm:w-24 sm:h-24 border-4":"w-16 sm:size-16 border-2"])},[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"w-full h-full object-cover",onError:n[0]||(n[0]=(...i)=>Ce(Bl)&&Ce(Bl)(...i))},null,40,a3)],2),k("div",s3,[e.isOnline?(w(),_(ge,{key:0},[n[1]||(n[1]=k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1)),n[2]||(n[2]=k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1))],64)):(w(),_("div",l3))])]),k("div",c3,[k("h1",{class:V(["font-light text-white mb-1 truncate",[e.size==="lg"?"text-3xl mb-2":"text-xl sm:text-2xl tracking-wide leading-tight",e.layout==="horizontal"?"text-white/95":""]])},le(e.bot.displayName.value),3),k("p",{class:V(["font-light line-clamp-1",[e.size==="lg"?"text-base text-white/60":"text-sm sm:text-base",e.layout==="horizontal"?"text-white/70 truncate":"text-white/60"]])},le(e.layout==="horizontal"?e.bot.title.value||"Assistant":e.bot.title.value),3)])],2))}}),u3={class:"relative shrink-0 rounded-full"},d3=["src","alt"],p3=["src","alt"],f3=["aria-label"],F0=Ue({__name:"BotAvatar",props:{bot:{},showStatus:{type:Boolean,default:!0},showOwnerMark:{type:Boolean,default:!0},isLight:{type:Boolean,default:!0}},setup(e){let t={green:"bg-green-500",amber:"bg-amber-500",red:"bg-red-500",grey:"bg-theme-300"},n=P(()=>{let o=e.bot.state.value;return e.showStatus&&o.lifecycle!=="unknown"?t[o.color]:null}),i={width:"clamp(7px, 14%, 14px)",height:"clamp(7px, 14%, 14px)",top:"calc(14.6% - clamp(3.5px, 7%, 7px))",right:"calc(14.6% - clamp(3.5px, 7%, 7px))"},r=P(()=>e.isLight?"ring-white":"ring-theme-900");return(o,a)=>(w(),_("div",u3,[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:V(["size-full rounded-full object-cover ring-1",e.isLight?"ring-black/5":"ring-white/10"])},null,10,d3),e.showOwnerMark&&e.bot.ownerMarkUrl.value?(w(),_("img",{key:0,src:e.bot.ownerMarkUrl.value,alt:e.bot.owner.value?.fullName?`Owned by ${e.bot.owner.value.fullName}`:"Owner",class:V(["absolute z-10 size-[36%] -bottom-[3%] -left-[3%] rounded-full object-cover ring-2",r.value])},null,10,p3)):ee("",!0),n.value?(w(),_("span",{key:1,role:"status","aria-label":e.bot.state.value.tooltip,class:V(["absolute z-10 rounded-full ring-2",[n.value,r.value]]),style:i},null,10,f3)):ee("",!0),n.value&&e.bot.state.value.lifecycle==="running"?(w(),_("span",{key:2,"aria-hidden":"true",class:V(["pointer-events-none absolute rounded-full animate-ping opacity-50 [animation-duration:3s]",n.value]),style:i},null,2)):ee("",!0)]))}}),m3={key:0,class:"sr-only",role:"status","aria-live":"polite"},h3=["aria-expanded","disabled"],g3=["aria-expanded"],v3={class:"flex w-5 shrink-0 justify-center self-stretch","aria-hidden":"true"},b3=["data-journal-row"],y3={class:"flex w-5 shrink-0 flex-col items-center self-stretch","aria-hidden":"true"},w3={class:"flex h-[17px] shrink-0 items-center"},k3={key:0,class:"sr-only"},z0=Ue({__name:"BotToolActivityGroup",props:{model:{},isLight:{type:Boolean}},setup(e){let t=e,n=We(!1);function i(){n.value=!n.value}let r=P(()=>t.model.outcome==="completed"),o=P(()=>t.model.hiddenRows.length),a=P(()=>t.model.hint??(t.model.terminal?.tone==="active"?t.model.terminal.label:void 0)),s=P(()=>{let d=t.model;return r.value?n.value?d.hiddenRows:[]:[...n.value?d.hiddenRows:[],...d.visibleRows,...d.terminal?[d.terminal]:[]]}),l=P(()=>t.isLight?{spine:"bg-theme-200",dashed:"border-theme-300",doneMark:"text-theme-400",failedMark:"text-theme-500",activeLine:"text-theme-900",stoppedSquare:"bg-theme-500",muted:"text-theme-500",ring:"focus-visible:ring-theme-900"}:{spine:"bg-white/15",dashed:"border-white/25",doneMark:"text-white/45",failedMark:"text-white/60",activeLine:"text-white",stoppedSquare:"bg-white/55",muted:"text-white/55",ring:"focus-visible:ring-white"}),u=P(()=>{let d=t.isLight;return{done:{statusWord:"completed",label:d?"text-[12.5px] text-theme-500":"text-[12.5px] text-white/55",station:{tag:"i",class:`i-tabler-check size-3 ${l.value.doneMark}`}},active:{statusWord:"in progress",label:d?"text-[13px] font-medium text-theme-900":"text-[13px] font-medium text-white",station:{tag:"span",class:`chat-pulse-dot size-1.5 rounded-full bg-current ${l.value.activeLine}`}},failed:{statusWord:"failed",label:d?"text-[12.5px] font-medium text-theme-700":"text-[12.5px] font-medium text-white/80",station:{tag:"i",class:`i-tabler-alert-circle size-3.5 ${l.value.failedMark}`}},stopped:{label:d?"text-[13px] font-medium text-theme-600":"text-[13px] font-medium text-white/70",station:{tag:"span",class:`size-[9px] rounded-[2px] ${l.value.stoppedSquare}`}},completed:{label:d?"text-[12.5px] text-theme-500":"text-[12.5px] text-white/55",station:{tag:"i",class:"i-tabler-circle-check size-3.5 text-green-600"}}}});return(d,p)=>(w(),_("div",{class:V(["w-full py-0.5",l.value.muted])},[a.value?(w(),_("span",m3,le(a.value),1)):ee("",!0),r.value?(w(),_("button",{key:1,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,disabled:o.value===0,class:V(["flex min-h-11 items-center gap-x-2 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default",l.value.ring]),onClick:i},[p[0]||(p[0]=k("i",{"data-journal-station":"completed",class:"i-tabler-circle-check size-3.5 shrink-0 text-green-600","aria-hidden":"true"},null,-1)),k("span",{class:V(["text-[12.5px] font-medium leading-none",l.value.muted])},le(e.model.terminal?.label),3),o.value?(w(),_("i",{key:0,class:V(["size-[13px] shrink-0",[n.value?"i-tabler-chevron-down":"i-tabler-chevron-right",l.value.muted]]),"aria-hidden":"true"},null,2)):ee("",!0)],10,h3)):o.value?(w(),_("button",{key:2,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,class:V(["flex min-h-11 w-full gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",l.value.ring]),onClick:i},[k("span",v3,[k("span",{"data-journal-spine":"dashed",class:V(["w-0 border-l border-dashed",l.value.dashed])},null,2)]),k("span",{class:V(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none",l.value.muted])},[$t(le(o.value)+" earlier updates ",1),k("i",{class:V(["size-3 shrink-0",n.value?"i-tabler-chevron-down":"i-tabler-chevron-right"]),"aria-hidden":"true"},null,2)],2)],10,g3)):ee("",!0),(w(!0),_(ge,null,st(s.value,(f,m)=>(w(),_("div",{key:f.id,"data-test":"messaging-tool-activity-row","data-journal-row":f.tone,class:V([r.value?"pl-[22px]":"","flex gap-x-2.5"])},[k("div",y3,[k("span",w3,[(w(),Ge(P$(u.value[f.tone].station.tag),{"data-journal-station":f.tone,class:V(u.value[f.tone].station.class)},null,8,["data-journal-station","class"]))]),m===s.value.length-1?ee("",!0):(w(),_("span",{key:0,class:V(["w-px flex-1",l.value.spine])},null,2))]),k("div",{class:V(["min-w-0 flex-1",m===s.value.length-1?"":"pb-2"])},[k("span",{class:V(["relative block leading-snug",u.value[f.tone].label])},[$t(le(f.label),1),u.value[f.tone].statusWord?(w(),_("span",k3,", "+le(u.value[f.tone].statusWord),1)):ee("",!0)],2),f.note?(w(),_("p",{key:0,class:V(["pt-0.5 text-[11.5px] leading-snug",l.value.muted])},le(f.note),3)):ee("",!0)],2)],10,b3))),128)),!r.value&&e.model.hint?(w(),_("p",{key:3,"data-test":"messaging-tool-activity-hint",class:V(["pl-[30px] pt-2.5 text-[12px] leading-snug",l.value.muted])},le(e.model.hint),3)):ee("",!0)],2))}});b2=Object.entries,BI=Object.setPrototypeOf,E3=Object.isFrozen,T3=Object.getPrototypeOf,N3=Object.getOwnPropertyDescriptor,Jt=Object.freeze,qt=Object.seal,Ua=Object.create,y2=typeof Reflect<"u"&&Reflect,B0=y2.apply,Z0=y2.construct;Jt||(Jt=function(t){return t}),qt||(qt=function(t){return t}),B0||(B0=function(t,n){var i=[...arguments].slice(2);return t.apply(n,i)}),Z0||(Z0=function(t){return new t(...[...arguments].slice(1))});Da=Ct(Array.prototype.forEach),C3=Ct(Array.prototype.lastIndexOf),ZI=Ct(Array.prototype.pop),Pa=Ct(Array.prototype.push),z3=Ct(Array.prototype.splice),xi=Array.isArray,Vl=Ct(String.prototype.toLowerCase),O0=Ct(String.prototype.toString),HI=Ct(String.prototype.match),Rl=Ct(String.prototype.replace),KI=Ct(String.prototype.indexOf),O3=Ct(String.prototype.trim),A3=Ct(Number.prototype.toString),D3=Ct(Boolean.prototype.toString),WI=typeof BigInt>"u"?null:Ct(BigInt.prototype.toString),GI=typeof Symbol>"u"?null:Ct(Symbol.prototype.toString),Vt=Ct(Object.prototype.hasOwnProperty),Ul=Ct(Object.prototype.toString),Lt=Ct(RegExp.prototype.test),co=P3(TypeError);JI=Jt("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),A0=Jt("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),D0=Jt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M3=Jt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P0=Jt("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),L3=Jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qI=Jt(["#text"]),YI=Jt("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")),R0=Jt("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),XI=Jt("accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),sp=Jt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V3=qt(/{{[\w\W]*|^[\w\W]*}}/g),F3=qt(/<%[\w\W]*|^[\w\W]*%>/g),B3=qt(/\${[\w\W]*/g),Z3=qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),H3=qt(/^aria-[\-\w]+$/),QI=qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K3=qt(/^(?:\w+script|data):/i),W3=qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G3=qt(/^html$/i),J3=qt(/^[a-z][.\w]*(-[.\w]+)+$/i),e2=qt(/<[/\w!]/g),t2=qt(/<[/\w]/g),q3=qt(/<\/no(script|embed|frames)/i),Y3=qt(/\/>/i),Tr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},X3=function(){return typeof window>"u"?null:window},Q3=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));let o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},r2=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},yi=function(t,n,i,r){return Vt(t,n)&&xi(t[n])?Ze(r.base?mr(r.base):{},t[n],r.transform):i};k2=w2();fo=G0();uo={exec:()=>null};e5=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Qt={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ra(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ra(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Ra(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ra(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ra(e=>RegExp(`^ {0,${e}}(?:</?(?:${Kl})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Ra(e=>RegExp(`^ {0,${e}}>`))},t5=/^(?:[ \t]*(?:\n|$))+/,r5=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,n5=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,i5=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,_2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$2=Ae(_2).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),o5=Ae(_2).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),q0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,a5=/^[^\n]+/,Y0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,s5=Ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Y0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),l5=Ae(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,J0).getRegex(),Kl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,c5=Ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X0).replace("tag",Kl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S2=e=>Ae(q0).replace("hr",Hl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kl).getRegex(),u5=S2(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),d5=S2(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Q0={blockquote:Ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",d5).getRegex(),code:r5,def:s5,fences:n5,heading:i5,hr:Hl,html:c5,lheading:$2,list:l5,newline:t5,paragraph:u5,table:uo,text:a5},n2=Ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kl).getRegex(),p5={...Q0,lheading:o5,table:n2,paragraph:Ae(q0).replace("hr",Hl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",n2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kl).getRegex()},f5={...Q0,html:Ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ae(q0).replace("hr",Hl).replace("heading",` *#{1,6} *[^
100
+ `)}function d2(e,t,n,i){if(!t.includes("<"))return!1;for(let r=0;r<t.length;r++){if(t[r]==="\\"){r++;continue}if(t[r]==="`"){let s=i.inline.code.exec(t.slice(r));if(s){r+=s[0].length-1;continue}}if(t[r]!=="<")continue;let o=e.slice(n+r),a=i.inline.tag.exec(o)||i.inline.autolink.exec(o);if(a){if(a[0].length>t.length-r)return!0;r+=a[0].length-1}}return!1}function et(e,t){return po.parse(e,t)}function G5(...e){return po.use(...e),et.defaults=po.defaults,x2(et.defaults),et}function tP(e){let{orientation:t,maxRows:n,maxWidth:i}=e;if(t==="horizontal"||!i)return p2;let r=i-28-(n-1)*ja;return Math.min(eP,Math.max(p2,Math.floor(r/n)))}function rP(e){return e.layout==="left-to-right"||e.layout==="radial"?"horizontal":e.layout==="top-to-bottom"?"vertical":e.diagramType==="sequence"?"horizontal":"vertical"}function nP(e){let t=new Set(e.nodes.map(a=>a.id)),n=new Set(e.edges.map(a=>a.to)),i=e.nodes.map(a=>a.id).filter(a=>!n.has(a)),r=new Map;for(let a of i.length?i:e.nodes.slice(0,1).map(s=>s.id))r.set(a,0);for(let a=0;a<e.nodes.length;a++){let s=!1;for(let l of e.edges){if(!t.has(l.from)||!t.has(l.to))continue;let u=r.get(l.from);if(u===void 0)continue;let d=u+1;(r.get(l.to)??-1)<d&&(r.set(l.to,d),s=!0)}if(!s)break}let o=Math.max(0,...r.values());for(let a of e.nodes)r.has(a.id)||r.set(a.id,++o);return r}function iP(e,t){let n=m2(e,rP(e),t?.maxWidth);return t?.maxWidth&&n.orientation==="horizontal"&&n.width>t.maxWidth?m2(e,"vertical",t.maxWidth):n}function m2(e,t,n){let i=nP(e),r=new Map;for(let m of e.nodes){let h=i.get(m.id)??0;r.set(h,[...r.get(h)??[],m])}let o=[...r.entries()].sort(([m],[h])=>m-h),a=Math.max(1,...o.map(([,m])=>m.length)),s=Math.max(1,o.length),l=tP({orientation:t,maxRows:a,...n===void 0?{}:{maxWidth:n}}),u=t==="horizontal"?28+s*l+(s-1)*ja:28+a*l+(a-1)*ja,d=t==="horizontal"?28+a*U0+(a-1)*f2:28+s*U0+(s-1)*f2,p=[];for(let[m,[,h]]of o.entries()){let v=(a-h.length)*(t==="horizontal"?86:l+ja)/2;for(let[x,A]of h.entries()){let I=t==="horizontal"?up+m*(l+ja):up+v+x*(l+ja),E=t==="horizontal"?up+v+x*86:up+m*86;p.push({id:A.id,label:A.label,...A.detail?{detail:A.detail}:{},...A.kind?{kind:A.kind}:{},x:I,y:E,width:l,height:U0})}}let f=new Map(p.map(m=>[m.id,m]));return{width:u,height:d,orientation:t,nodes:p,edges:e.edges.flatMap((m,h)=>{let v=f.get(m.from),x=f.get(m.to);if(!v||!x)return[];let A=t==="horizontal"?v.x+v.width:v.x+v.width/2,I=t==="horizontal"?v.y+v.height/2:v.y+v.height,E=t==="horizontal"?x.x:x.x+x.width/2,M=t==="horizontal"?x.y+x.height/2:x.y;return[{key:`${m.from}-${m.to}-${h}`,from:m.from,to:m.to,...m.label?{label:m.label}:{},x1:A,y1:I,x2:E,y2:M,labelX:(A+E)/2,labelY:(I+M)/2}]})}}function z2(e){let{value:t}=e,n=Math.abs(t);return n>=1e6?`${(t/1e6).toFixed(1).replace(/\.0$/,"")}M`:n>=1e3?`${(t/1e3).toFixed(1).replace(/\.0$/,"")}k`:Number.isInteger(t)?`${t}`:t.toFixed(1)}function O2(e){let{seconds:t}=e,n=Math.round(Math.abs(t)),i=t<0?"-":"";if(n<60)return`${i}${n}s`;if(n<3600){let a=Math.floor(n/60),s=n%60;return s?`${i}${a}m ${s}s`:`${i}${a}m`}let r=Math.floor(n/3600),o=Math.floor(n%3600/60);return o?`${i}${r}h ${o}m`:`${i}${r}h`}function A2(e){return{prefix:e?.valuePrefix??(e?.valueFormat==="currency"?"$":""),suffix:e?.valueSuffix??(e?.valueFormat==="percent"?"%":"")}}function j0(e){let{value:t,series:n}=e,{prefix:i,suffix:r}=A2(n),o;switch(n?.valueFormat){case"integer":o=`${Math.round(t)}`;break;case"duration":o=O2({seconds:t});break;case"raw":o=Number.isInteger(t)?`${t}`:t.toFixed(1);break;default:o=z2({value:t})}return`${i}${o}${r}`}function oP(e){let[t,...n]=e.series;if(t)return n.every(i=>i.valueFormat===t.valueFormat&&i.valuePrefix===t.valuePrefix&&i.valueSuffix===t.valueSuffix)?t:void 0}function aP(e){let{value:t,shared:n}=e;if(n?.valueFormat==="duration")return O2({seconds:t});let{prefix:i,suffix:r}=A2(n);return`${i}${z2({value:t})}${r}`}function dP(e){let{labels:t,plotWidth:n}=e;if(!t.length||n<=0)return{mode:"horizontal",entries:[]};let i=t.map(l=>l.length>uP?`${l.slice(0,15).trimEnd()}\u2026`:l),r=t.length-1;if(r===0)return{mode:"horizontal",entries:[{index:0,text:i[0]}]};if((Math.max(...i.map(l=>l.length*sP))+lP)*t.length<=n)return{mode:"horizontal",entries:i.map((l,u)=>({index:u,text:l}))};let o=Math.max(2,Math.floor(n/cP));if(t.length<=o)return{mode:"angled",entries:i.map((l,u)=>({index:u,text:l}))};let a=new Set([0,r]),s=r/(o-1);for(let l=1;l<o-1;l++)a.add(Math.round(l*s));return{mode:"angled",entries:[...a].sort((l,u)=>l-u).map(l=>({index:l,text:i[l]}))}}function WP(e){return e&&HP[e]||KP}function aR(e){return e.hadError?"error":e.sessionState==="live"?e.speaking.bot?"speaking":e.speaking.user?"listening":e.work.active?"working":e.providerThinking?"thinking":"listening":"connecting"}function sR(e){let t=aR(e),n=oR[t],i=t==="working"?e.work.description||"Working on it":n.label,r=t==="working"?i:n.visibleText??"",o=e.takingLonger&&(t==="thinking"||t==="working"),a=o?`${r} ${ki.slowHint}`:r;return{activity:t,label:o?a:i,tone:e.isMuted&&t==="listening"?"bg-theme-400":n.tone,visibleStatus:a,usesIdleWave:n.waits||e.isMuted&&t==="listening",takingLonger:o}}var yp,BD,ZD,pp,JD,qD,ki,h2,XD,QD,C0,Zl,r3,La,n3,wp,i3,kp,o3,a3,s3,l3,c3,xp,u3,d3,p3,f3,F0,m3,h3,g3,v3,b3,y3,w3,k3,z0,b2,BI,E3,T3,N3,Jt,qt,Ua,y2,B0,Z0,Da,C3,ZI,Pa,z3,xi,Vl,O0,HI,Rl,KI,O3,A3,D3,WI,GI,Vt,Ul,Lt,co,JI,A0,D0,M3,P0,L3,qI,YI,R0,XI,sp,V3,F3,B3,Z3,H3,QI,K3,W3,G3,J3,e2,t2,q3,Y3,Tr,X3,Q3,r2,yi,k2,lp,fo,uo,e5,Qt,t5,r5,n5,Hl,i5,J0,_2,$2,o5,q0,a5,Y0,s5,l5,Kl,X0,c5,S2,u5,d5,Q0,n2,p5,f5,m5,h5,I2,g5,Kn,Va,Wl,v5,b5,E2,y5,w5,k5,T2,x5,_5,$5,N2,S5,I5,E5,T5,N5,C5,z5,O5,A5,D5,P5,C2,mp,R5,U5,j5,i2,M5,L5,o2,ey,V5,H0,F5,cp,jl,B5,a2,gp,Qr,vp,ty,en,Fl,W5,po,J5,q5,Y5,X5,Q5,p2,U0,up,ja,f2,eP,sP,lP,cP,uP,pP,fP,mP,hP,gP,vP,bP,yP,wP,kP,xP,_P,$P,SP,IP,EP,TP,NP,CP,zP,OP,AP,DP,PP,RP,UP,jP,MP,LP,VP,Ml,FP,BP,ZP,HP,KP,bp,D2,GP,JP,qP,YP,XP,QP,eR,tR,rR,M0,nR,iR,oR,lR,cR,uR,dR,pR,fR,mR,hR,gR,vR,bR,yR,wR,kR,xR,_R,$R,SR,IR,ER,TR,NR,CR,zR,OR,AR,DR,PR,RR,UR,jR,MR,LR,VR,FR,BR,ZR,HR,KR,WR,GR,JR,qR,YR,XR,QR,eU,tU,rU,nU,iU,oU,aU,sU,lU,cU,uU,dU,pU,fU,mU,hU,gU,vU,bU,yU,wU,kU,xU,_U,$U,SU,IU,EU,mo,TU,NU,CU,_p,ry=Y(()=>{"use strict";Tn();N0();Ol();bn();yp=uy((e,t)=>{let n=e.__vccOpts||e;for(let[i,r]of t)n[i]=r;return n},"default"),BD={},ZD={class:"spinner max-w-sm"};pp=yp(BD,[["render",HD]]);JD=400,qD=class extends so{constructor(e){super("VoiceRecorderController",e),W(this,"state",q({phase:"idle",elapsedMs:0})),W(this,"isActive",P(()=>this.state.value.phase!=="idle")),W(this,"isBusy",P(()=>this.state.value.phase!=="idle")),W(this,"elapsedLabel",P(()=>KD({ms:this.state.value.elapsedMs}))),W(this,"statusText",P(()=>this.state.value.phase==="preparing"?"Starting microphone":this.state.value.phase==="sending"?"Sending voice message":"Release to send")),W(this,"recorder",void 0),W(this,"stream",void 0),W(this,"chunks",[]),W(this,"timer",void 0),W(this,"startedAt",0),W(this,"cancelOnStop",!1),W(this,"stopAfterStart",!1),W(this,"startToken",0)}get canUseBrowserRecording(){return!!this.settings.getUserMedia||typeof navigator<"u"&&!!navigator.mediaDevices?.getUserMedia&&typeof MediaRecorder<"u"}async start(){if(!this.settings.getCanRecord()||this.state.value.phase!=="idle")return;if(!this.canUseBrowserRecording){this.settings.getChatController()?.notify("Voice recording is not available in this browser.");return}this.state.value={phase:"preparing",elapsedMs:0},this.cancelOnStop=!1;let e=++this.startToken;try{let t=await this.getUserMedia({constraints:{audio:!0}});if(e!==this.startToken){t.getTracks().forEach(r=>r.stop());return}let n=GD(),i=this.createRecorder({stream:t,mimeType:n});this.stream=t,this.recorder=i,this.chunks=[],i.addEventListener("dataavailable",r=>{r.data.size>0&&this.chunks.push(r.data)}),i.addEventListener("stop",async()=>{let r=new Blob(this.chunks,{type:i.mimeType||n||"audio/webm"}),o=this.now()-this.startedAt,a=!this.cancelOnStop&&r.size>0&&o>=JD;if(this.stopCapture(),!a){this.reset();return}this.state.value={phase:"sending",elapsedMs:this.state.value.elapsedMs},await this.sendBlob({blob:r}),this.reset()}),i.start(),this.startedAt=this.now(),this.state.value={phase:"recording",elapsedMs:0},this.timer=this.setInterval(()=>{this.state.value={phase:"recording",elapsedMs:this.now()-this.startedAt}},250),this.stopAfterStart&&this.finish({cancelled:this.cancelOnStop})}catch(t){if(e!==this.startToken)return;this.teardown();let n=t instanceof Error?t.message:"Microphone access failed.";this.settings.getChatController()?.notify(`Voice recording failed \u2014 ${n}`)}}finish(e){if(this.state.value.phase!=="idle"&&this.state.value.phase!=="sending"){if(this.state.value.phase==="preparing"){this.stopAfterStart=!0,this.cancelOnStop=e.cancelled;return}if(!this.recorder||this.recorder.state!=="recording"){this.teardown();return}this.cancelOnStop=e.cancelled,this.recorder.stop()}}teardown(){this.cancelOnStop=!0,this.startToken+=1,this.recorder?.state==="recording"&&this.recorder.stop(),this.stopCapture(),this.reset()}async getUserMedia(e){return(this.settings.getUserMedia||navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices))(e.constraints)}createRecorder(e){return this.settings.createRecorder?this.settings.createRecorder(e):e.mimeType?new MediaRecorder(e.stream,{mimeType:e.mimeType}):new MediaRecorder(e.stream)}async sendBlob(e){let t=this.settings.getUploadFn(),n=this.settings.getChatController();if(!t||!n)return;let i=e.blob.type||"audio/webm",r=new File([e.blob],`voice-${new Date().toISOString().replace(/[:.]/g,"-")}.${WD({mimeType:i})}`,{type:i});try{let o=await t(r);this.settings.onBeforeSend?.(),await n.sendChatMessage("",[o])}catch(o){let a=o instanceof Error?o.message:"Couldn't send that recording.";n.notify(`Voice message failed \u2014 ${a}`)}}stopCapture(){this.timer&&(this.clearInterval(this.timer),this.timer=void 0),this.stream?.getTracks().forEach(e=>e.stop()),this.stream=void 0,this.recorder=void 0,this.chunks=[],this.stopAfterStart=!1}reset(){this.state.value={phase:"idle",elapsedMs:0}}now(){return this.settings.now?.()??Date.now()}setInterval(e,t){return this.settings.setInterval?.(e,t)??setInterval(e,t)}clearInterval(e){(this.settings.clearInterval??clearInterval)(e)}};ki={finishing:"Finishing up",slowHint:"Taking longer than usual.",completed:"Work complete",failed:"Couldn\u2019t finish",stopped:"Stopped",notifyHint:"Taking longer than usual. You can leave and I\u2019ll notify you when it\u2019s ready.",leaveHint:"Taking longer than usual. You can leave this chat while I work."},h2=1e4,XD=15e3,QD=6e4,C0=3;Zl=class extends so{isQueuedMessage(e){return this.queuedMessageIdSet.value.has(e)}consumeQueuedThrough(e){if(!e||this.queuedMessageIdSet.value.size===0)return;let t=new Set(this.queuedMessageIdSet.value),n=this.sharedMessages.value.findIndex(i=>i.id===e);n<0?t.delete(e):this.sharedMessages.value.slice(0,n+1).forEach(i=>t.delete(i.id)),this.queuedMessageIdSet.value=t}get activeConversationId(){return this.conversationId}createVoiceClient(e){let{sdk:t,createVoiceClientFn:n}=this.settings,i=this._bot.botId.value,r=this._bot.orgId.value;if(t?.activeUser.value&&i&&r)return n?.({botId:i,orgId:r,conversationId:this.conversationId,handlers:e})}async refreshMessages(){await this.settings.refreshMessagesFn?.()}constructor(e){super("BotChatController",e),W(this,"isTextMode",!1),W(this,"lastMessage",{hash:"",time:0}),W(this,"isConnecting",!1),W(this,"turnEpoch",0),W(this,"nextStreamToken",0),W(this,"runningStreamToken",void 0),W(this,"suppressedStreamTokens",new Set),W(this,"queuedMessageIdSet",q(new Set)),W(this,"queuedMessageIds",P(()=>this.queuedMessageIdSet.value)),W(this,"boundaryTimer",void 0),W(this,"nowMs",We(Date.now())),W(this,"toolActivityTiming",We({})),W(this,"lastVisibleProgressAtMs",We()),W(this,"liveSegments",We([])),W(this,"liveStreamMessageId",We(void 0)),W(this,"conversationId",void 0),W(this,"textState",q({isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected"})),W(this,"botMode",q("self")),W(this,"sharedMessages",q([])),W(this,"composerState",q({text:"",pendingAttachments:[],isUploading:!1})),W(this,"workJournal",P(()=>{let t=this.textState.value.isThinking?"running":this.textState.value.turnOutcome;if(!t)return;let n=this.textState.value.toolActivities;if(n?.length)return V0({activities:n,outcome:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),W(this,"liveTurnBlocks",P(()=>{if(!this.textState.value.isThinking)return[];let t=this.textState.value.toolActivities??[],n=this.liveSegments.value;return!n.length&&!t.length?[]:e3({segments:n,activities:t,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,lastVisibleProgressAtMs:this.lastVisibleProgressAtMs.value})})),W(this,"canUseComposer",P(()=>this.textState.value.sendBlockedReason!=="bot_deleted"&&!this.composerState.value.isUploading)),W(this,"canAttachFile",P(()=>!!this.settings.uploadFileFn)),W(this,"canRecordAudio",P(()=>this.canAttachFile.value&&this.canUseComposer.value&&!this.composerState.value.text.trim()&&this.composerState.value.pendingAttachments.length===0)),W(this,"voiceRecorder",new qD({getCanRecord:()=>this.canRecordAudio.value,getUploadFn:()=>{let t=this.settings.uploadFileFn;return t?n=>t({file:n}):void 0},getChatController:()=>this})),W(this,"canSend",P(()=>(this.composerState.value.text.trim().length>0||this.composerState.value.pendingAttachments.length>0)&&this.canUseComposer.value&&!this.voiceRecorder.isBusy.value)),W(this,"canStop",P(()=>this.textState.value.isThinking&&!this.composerState.value.isUploading&&!this.voiceRecorder.isBusy.value)),W(this,"composerAction",P(()=>this.canSend.value?"send":this.canStop.value?"stop":"idle")),W(this,"composerShowsSecondaryStop",P(()=>this.canStop.value&&this.composerAction.value==="send")),W(this,"canStartVoice",P(()=>{let t=this.settings.sdk;return this.textState.value.sendBlockedReason!=="bot_deleted"&&!!t?.activeUser.value&&!!this._bot.botId.value&&!!this._bot.orgId.value&&!!this.settings.createVoiceClientFn&&t3()})),W(this,"_bot",void 0),W(this,"localMessageSeq",0),this._bot=e.bot,this.setupModeWatcher(),this.setupAvailabilityWatcher(),this.setupBoundaryWatcher()}get chatEnabled(){let e=this._bot.state.value.lifecycle;return this._bot.lifecycle.value===void 0?this._bot.desiredStatus.value==="active":e==="running"}get chatUnavailableReason(){if(this.chatEnabled)return;let e=this._bot.displayName.value,t=this._bot.state.value.lifecycle;return t==="starting"?`${e} is waking up`:t==="stopped"?`${e} is asleep`:this._bot.desiredStatus.value==="active"?`${e} is unavailable`:`${e} is offline`}isDuplicateMessage(e,t){let n=`${t}:${e.toLowerCase().trim()}`,i=Date.now(),r=n===this.lastMessage.hash&&i-this.lastMessage.time<500;return r||(this.lastMessage={hash:n,time:i}),r}addMessage(e,t,n,i){this.isDuplicateMessage(e,t)||(this.sharedMessages.value=[...this.sharedMessages.value,{id:this.nextLocalMessageId(),text:e,sender:t,timestamp:new Date().toISOString(),attachments:n,...i?{issue:i}:{}}])}nextLocalMessageId(){return`${Date.now()}-${++this.localMessageSeq}`}notify(e){e&&this.addMessage(e,"system")}get canReportMessages(){return!!this.settings.reportMessageFn}async reportMessage(e){let t=this.settings.reportMessageFn;if(t)try{await t({messageId:e}),this.notify("Reported. Our team will review this message.")}catch(n){this.logger.warn("reportMessage failed",{messageId:e,error:n instanceof Error?n.message:String(n)}),this.notify("Could not report that message.")}}setComposerText(e){this.composerState.value={...this.composerState.value,text:e.text}}async attachFile(e){let t=this.settings.uploadFileFn;if(t&&!this.voiceRecorder.isBusy.value){this.composerState.value={...this.composerState.value,isUploading:!0};try{let n=await t({file:e.file});this.composerState.value={...this.composerState.value,pendingAttachments:[...this.composerState.value.pendingAttachments,n]}}catch(n){let i=n instanceof Error?n.message:"Couldn't attach that file.";this.notify(`Upload failed \u2014 ${i}`)}finally{this.composerState.value={...this.composerState.value,isUploading:!1}}}}removeAttachment(e){this.composerState.value={...this.composerState.value,pendingAttachments:this.composerState.value.pendingAttachments.filter((t,n)=>n!==e.index)}}addOfflineSystemReply(){let e=this._bot.displayName.value||"Your assistant",t=this._bot.state.value.blocker;if(t){let s=t.actionUrl.startsWith("pagelines://")?this.settings.billingUrl:t.actionUrl,l=[`${t.title}.${t.help?` ${t.help}`:""}`,t.actionLabel&&s?`[${t.actionLabel}](${s})`:t.actionLabel||""].filter(Boolean).join(" "),u=this.sharedMessages.value[this.sharedMessages.value.length-1];if(u?.sender==="system"&&u.text===l)return;this.addMessage(l,"system");return}let n=this.chatUnavailableReason??`${e} is unavailable`,i=this._bot.state.value.lifecycle==="stopped"||this._bot.desiredStatus.value!=="active",r=this.settings.manageUrl,o=i?r?`${n}, so your message can't be answered yet. [Wake ${e}](${r}), then send again.`:`${n}, so your message can't be answered yet. Wake it from the dashboard, then send again.`:`${n}. Give it a moment and send again.`,a=this.sharedMessages.value[this.sharedMessages.value.length-1];(a?.sender!=="system"||a.text!==o)&&this.addMessage(o,"system")}async sendComposerMessage(){if(!this.canSend.value)return;let e=this.composerState.value.text,t=this.composerState.value.pendingAttachments.length>0?[...this.composerState.value.pendingAttachments]:void 0;if(!this.chatEnabled){this.addOfflineSystemReply();return}this.composerState.value={...this.composerState.value,text:"",pendingAttachments:[]},await this.sendChatMessage(e,t)}async handleComposerAction(){if(this.composerAction.value==="stop"){await this.stopChatTurn();return}this.composerAction.value==="send"&&await this.sendComposerMessage()}getDynamicSettings(){return{context:this.settings.context||"",firstMessage:this.settings.firstMessage||""}}updateState(e,t){e.value={...e.value,...t}}resetWorkJournalTiming(){this.toolActivityTiming.value={},this.lastVisibleProgressAtMs.value=void 0,this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.clearBoundaryTimer()}resetState(){this.resetWorkJournalTiming(),this.updateState(this.textState,{isActive:!1,isConnected:!1,isThinking:!1,connectionStatus:"disconnected",error:void 0,sendBlockedReason:void 0,workingDescription:void 0,toolActivities:void 0,turnOutcome:void 0})}setupBoundaryWatcher(){ft(()=>this.workJournal.value?.nextBoundaryAtMs,e=>{this.scheduleBoundary(e)})}scheduleBoundary(e){if(this.clearBoundaryTimer(),e===void 0)return;let t=Math.max(0,e-Date.now());this.boundaryTimer=setTimeout(()=>{this.boundaryTimer=void 0,this.nowMs.value=Date.now()},t),this.boundaryTimer.unref?.()}clearBoundaryTimer(){this.boundaryTimer&&(clearTimeout(this.boundaryTimer),this.boundaryTimer=void 0)}rememberToolActivity(e){let t=ap(e.startedAt)??this.toolActivityTiming.value[e.activityId]?.startedAt??(e.status==="started"?Date.now():void 0),n=ap(e.endedAt)??this.toolActivityTiming.value[e.activityId]?.endedAt??(e.status==="started"?void 0:Date.now());t&&(this.toolActivityTiming.value={...this.toolActivityTiming.value,[e.activityId]:{startedAt:t,...n?{endedAt:n}:{}}})}withToolActivityTiming(e){let t=this.toolActivityTiming.value[e.activityId],n=Date.now(),i=ap(e.startedAt)??t?.startedAt??(e.status==="started"?n:void 0),r=ap(e.endedAt)??t?.endedAt??(e.status==="started"?void 0:n);return{...e,...i!==void 0&&!e.startedAt?{startedAt:new Date(i).toISOString()}:{},...r!==void 0&&!e.endedAt?{endedAt:new Date(r).toISOString()}:{}}}updateToolActivity(e){let t=this.textState.value.toolActivities??[],n=t.findIndex(o=>o.activityId===e.activityId),i=this.withToolActivityTiming({...n>=0?t[n]:{},...e}),r=n>=0?[...t.slice(0,n),i,...t.slice(n+1)]:[...t,i];this.rememberToolActivity(i),this.updateState(this.textState,{toolActivities:r})}finishToolActivities(e){let t=this.textState.value.toolActivities;if(!t?.length)return;let n=t.map(i=>i.status==="started"?this.withToolActivityTiming({...i,status:e}):i);n.forEach(i=>this.rememberToolActivity(i)),this.updateState(this.textState,{toolActivities:n})}workJournalFor(e){if(e.activities?.length)return V0({activities:e.activities,outcome:e.outcome,nowMs:this.nowMs.value,canNotifyOnCompletion:!1,includeFailureNote:e.includeFailureNote})}setupModeWatcher(){ft(this.botMode,async(e,t)=>{this.logger.info(`Mode changed from ${t} to ${e}`),this.isTextMode&&(t==="talk"||t==="chat")&&await this.endConversation()})}setupAvailabilityWatcher(){ft(()=>[this.chatEnabled,this._bot.state.value.lifecycle],([e])=>{if(this.isTextMode&&!this.isConnecting){if(e){this.textState.value.isConnected||this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected",error:void 0});return}this.textState.value.isConnected&&this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason})}})}handleError(e){let t=e.message;this.logger.error("Conversation error:",{message:t,error:e}),this.addMessage(t,"system"),this.resetState(),this.updateState(this.textState,{error:t,connectionStatus:"error"})}async setMode(e){this.botMode.value!==e&&(this.botMode.value=e)}async startTextConversation(e={}){if(this.isConnecting){this.logger.info("Text conversation already connecting, ignoring duplicate request");return}this.isConnecting=!0,this.isTextMode=!0,this.updateState(this.textState,{isActive:!0,connectionStatus:"connecting"});try{if(!this.chatEnabled){this.isConnecting=!1,this.updateState(this.textState,{isConnected:!1,connectionStatus:"disconnected",error:this.chatUnavailableReason});return}this.isConnecting=!1,this.updateState(this.textState,{isConnected:!0,connectionStatus:"connected"}),e.onConnect?.(),this.logger.info("Text conversation ready")}catch(t){throw this.isConnecting=!1,this.handleError(t),t}}async endConversation(){if(this.turnEpoch+=1,this.runningStreamToken=void 0,this.suppressedStreamTokens.clear(),this.queuedMessageIdSet.value=new Set,!this.isTextMode){this.resetState();return}try{this.conversationId=void 0,this.resetState(),this.isTextMode=!1}catch{this.isTextMode=!1}}async sendChatMessage(e,t){if(!this.isTextMode)return;let{chatStreamFn:n}=this.settings;if(!this.chatEnabled){this.addOfflineSystemReply();return}if(this.textState.value.sendBlockedReason==="bot_deleted")return;let{sdk:i}=this.settings;if(!n&&!this._bot.handle.value){this.handleError(Error("Bot handle required for chat"));return}let r=this.textState.value.isThinking,o=this.sharedMessages.value.length;this.addMessage(e,"user",t);let a=this.sharedMessages.value.length>o?this.sharedMessages.value[this.sharedMessages.value.length-1]?.id:void 0,s=this.turnEpoch,l=++this.nextStreamToken;r&&a?this.queuedMessageIdSet.value=new Set(this.queuedMessageIdSet.value).add(a):(this.runningStreamToken=l,this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}));let u=`stream-${Date.now()}-${l}`,d=!1,p=!1,f=()=>s===this.turnEpoch&&!this.suppressedStreamTokens.has(l),m=D=>{if(s!==this.turnEpoch||!a)return;let X=this.sharedMessages.value;if(this.sharedMessages.value=X.some(le=>le.id===D.id)?X.filter(le=>le.id!==a||le.id===D.id):X.map(le=>le.id===a?D:le),this.queuedMessageIdSet.value.has(a)){let le=new Set(this.queuedMessageIdSet.value);le.delete(a),le.add(D.id),this.queuedMessageIdSet.value=le}a=D.id},h=()=>{this.runningStreamToken!==l&&(this.runningStreamToken=l,this.consumeQueuedThrough(a),this.resetWorkJournalTiming(),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:[],transientIssue:void 0,turnOutcome:void 0}))},v=(D,X="assistant")=>{if(!f())return;h(),this.updateState(this.textState,{workingDescription:void 0}),X==="assistant"&&(this.lastVisibleProgressAtMs.value=Date.now()),d||(d=!0,this.liveStreamMessageId.value=u,this.sharedMessages.value=[...this.sharedMessages.value,{id:u,text:"",sender:X==="system"?"system":"bot",timestamp:new Date().toISOString()}]);let le=this.liveSegments.value,ie=le[le.length-1];this.liveSegments.value=ie?.kind==="text"?[...le.slice(0,-1),{kind:"text",content:ie.content+D}]:[...le,{kind:"text",content:D}];let Q=this.sharedMessages.value,ae=Q[Q.length-1];ae?.id===u&&(ae.text+=D,this.sharedMessages.value=[...Q])},x=D=>{if(!f())return;if(h(),p=!0,D.sender==="bot"&&ep(D.text)){this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.sharedMessages.value=this.sharedMessages.value.filter(ne=>ne.id!==u);return}d=!0;let X=D.sender==="system"||D.turnOutcome==="failed"?"failed":"completed";this.finishToolActivities(X);let le=this.textState.value.toolActivities,ie=D.toolActivities?.length||!le?.length?D:{...D,toolActivities:le};this.liveSegments.value=[],this.liveStreamMessageId.value=void 0,this.updateState(this.textState,{workingDescription:void 0,toolActivities:[],turnOutcome:void 0});let Q=this.sharedMessages.value.filter(ne=>ne.id!==u),ae=Q.findIndex(ne=>ne.id===ie.id);ae>=0?this.sharedMessages.value=[...Q.slice(0,ae),ie,...Q.slice(ae+1)]:this.sharedMessages.value=[...Q,ie],ie.sender==="system"&&ie.issue?.bucket==="account"?this.updateState(this.textState,{sendBlockedReason:"account"}):ie.sender==="system"&&ie.issue?.code==="BOT_DELETED"&&this.updateState(this.textState,{sendBlockedReason:"bot_deleted"})},A=D=>{if(!f())return;if(!d&&!p){I(Yr("no-reply","Assistant returned no content"));return}this.finishToolActivities("completed");let X=this.sharedMessages.value,le=X[X.length-1];le?.id===u&&le.sender==="bot"&&ep(le.text)&&(this.sharedMessages.value=X.slice(0,-1)),D&&(this.conversationId=D),this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,transientIssue:void 0}),this.settings.onTurnCompleted?.(D)},I=D=>{if(!f())return;if(this.runningStreamToken!==l){this.consumeQueuedThrough(a),this.sharedMessages.value=this.sharedMessages.value.filter(je=>je.id!==a),this.composerState.value.text||(this.composerState.value={...this.composerState.value,text:e,pendingAttachments:t??[]});return}this.updateState(this.textState,{workingDescription:void 0,turnOutcome:"failed"}),this.finishToolActivities("failed");let X=this.sharedMessages.value,le=X[X.length-1];le?.id===u&&!le.text&&(this.sharedMessages.value=X.slice(0,-1)),this.logger.warn("Chat turn failed:",D);let{code:ie,bucket:Q,message:ae,actionLabel:ne,actionUrl:ve,help:Le}=D,mt={...ne?{actionLabel:ne}:{},...ve?{actionUrl:ve}:{},...Le?{help:Le}:{}},ht=Q==="account"?"account":ie==="BOT_DELETED"?"bot_deleted":void 0;ht?(this.addMessage(ae,"system",void 0,{code:ie,bucket:Q,...mt}),this.updateState(this.textState,{isThinking:!1,sendBlockedReason:ht})):this.updateState(this.textState,{isThinking:!1,transientIssue:{code:ie,message:ae,...mt}})},E=D=>{if(!f())return;h();let X=D.trim();this.updateState(this.textState,{workingDescription:X||void 0})},M=D=>{if(f()){if(h(),this.lastVisibleProgressAtMs.value=Date.now(),D.status==="started"){let X=this.liveSegments.value,le=X[X.length-1];le?.kind==="work"?le.activityIds.includes(D.activityId)||(this.liveSegments.value=[...X.slice(0,-1),{kind:"work",activityIds:[...le.activityIds,D.activityId]}]):this.liveSegments.value=[...X,{kind:"work",activityIds:[D.activityId]}]}this.updateToolActivity(D)}},z=()=>{f()&&this.updateState(this.textState,{workingDescription:void 0})};try{this.settings.onTurnStarted?.(),await(n?n({message:e,attachments:t,conversationId:this.conversationId,history:this.buildHistory(),onDelta:v,onMessage:x,onUserMessage:m,onDone:A,onError:I,onStatus:E,onToolActivity:M,onWorkingEnd:z}):i.chat.chatStreamPublic({handle:this._bot.handle.value,message:e,attachments:t,anonymousId:i.user.generateAnonId(),context:this.getDynamicSettings().context||void 0,onDelta:v,onMessage:x,onDone:A,onError:I,onStatus:E,onToolActivity:M,onWorkingEnd:z}))}catch(D){I(Yr("api",D instanceof Error?D.message:"Chat failed","NETWORK_ERROR"))}finally{this.runningStreamToken===l&&(this.runningStreamToken=void 0)}}async stopChatTurn(){if(this.textState.value.isThinking){this.runningStreamToken!==void 0&&this.suppressedStreamTokens.add(this.runningStreamToken),this.runningStreamToken=void 0,this.updateState(this.textState,{isThinking:!1,turnOutcome:"stopped",workingDescription:void 0,transientIssue:void 0});try{await this.settings.cancelChatTurnFn?.({conversationId:this.conversationId})}catch(e){this.logger.warn("stopChatTurn: cancel failed",{conversationId:this.conversationId,error:e instanceof Error?e.message:String(e)})}}}buildHistory(){return this.sharedMessages.value.filter(e=>e.sender==="user"||e.sender==="bot").slice(-20).map(e=>({role:e.sender==="user"?"user":"assistant",content:e.text,...e.attachments?.length?{attachments:e.attachments}:{}})).filter(e=>e.content.length>0||e.attachments&&e.attachments.length>0)}loadMessages(e){this.conversationId=e.conversationId;let t=this.sharedMessages.value,n=e.messages.filter(d=>d.sender!=="bot"||!ep(d.text)),i=new Set(n.map(d=>d.id)),r=t.filter(d=>!i.has(d.id)),o=n[0]?.sequence,a=d=>!!o&&!!d.sequence&&d.sequence<o;if(this.sharedMessages.value=[...r.filter(a),...n,...r.filter(d=>!a(d))],this.runningStreamToken!==void 0)return;let s=new Set(this.sharedMessages.value.flatMap(d=>d.toolActivities?.map(p=>p.turnId)??[])),l=new Set(this.textState.value.turnOutcome==="stopped"?this.textState.value.toolActivities?.map(d=>d.turnId):[]),u=(e.activeToolActivities??[]).filter(d=>!s.has(d.turnId)&&!l.has(d.turnId));u.length?(u.forEach(d=>this.rememberToolActivity(d)),this.updateState(this.textState,{isThinking:!0,workingDescription:void 0,toolActivities:u,transientIssue:void 0,turnOutcome:void 0})):this.textState.value.toolActivities?.some(d=>s.has(d.turnId))&&this.updateState(this.textState,{isThinking:!1,workingDescription:void 0,toolActivities:[],turnOutcome:void 0})}async destroy(){this.clearBoundaryTimer(),this.voiceRecorder.teardown(),await this.endConversation()}};r3={key:0,class:"absolute inset-0 flex items-center justify-center"},La=Ue({__name:"ElBotButton",props:{theme:{default:"primary"},size:{default:"lg"},loading:{type:Boolean,default:!1},icon:{},iconAfter:{}},setup(e){let t=P(()=>({primary:"bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",green:"bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",red:"bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",default:"bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20",dark:"bg-theme-900 border-transparent hover:bg-theme-800"})[e.theme]),n=P(()=>({sm:"px-4 py-2 text-sm",md:"px-6 py-3 text-base",lg:"px-8 py-4 text-base"})[e.size]),i=P(()=>({sm:"size-4",md:"size-4",lg:"size-5"})[e.size]);return(r,o)=>(w(),_("button",{class:V(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",[t.value,n.value]])},[e.loading?(w(),_("div",r3,[...o[0]||(o[0]=[k("i",{class:"i-svg-spinners-90-ring-with-bg size-5"},null,-1)])])):ee("",!0),k("span",{class:V(["flex items-center gap-2 transition-opacity duration-200",e.loading?"opacity-0":"opacity-100"])},[e.icon?(w(),_("i",{key:0,class:V([e.icon,i.value])},null,2)):ee("",!0),fr(r.$slots,"default"),e.iconAfter?(w(),_("i",{key:1,class:V([e.iconAfter,i.value])},null,2)):ee("",!0)],2)],2))}}),n3=["value"],wp=Ue({__name:"BotInputEmail",props:{modelValue:{default:""}},emits:["update:modelValue"],setup(e,{emit:t}){let n=t;return(i,r)=>(w(),_("input",{name:"username",type:"email",inputmode:"email",autocomplete:"username",autocapitalize:"off",autocorrect:"off",spellcheck:"false",placeholder:"Enter your email",value:e.modelValue,class:"w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:r[0]||(r[0]=o=>n("update:modelValue",o.target.value))},null,40,n3))}}),i3=["placeholder","value"],kp=Ue({__name:"BotInputOneTimeCode",props:{modelValue:{},length:{},focusFirst:{type:Boolean}},emits:["update:modelValue","autoSubmit"],setup(e,{emit:t}){let n=e,i=t,r=q(null),o=P(()=>"0".repeat(n.length));Pt(()=>{n.focusFirst&&!("ontouchstart"in window)&&r.value?.focus()});function a(s){let l=s.target.value.replace(/\D/g,"").slice(0,n.length);i("update:modelValue",l),l.length===n.length&&i("autoSubmit",l)}return(s,l)=>(w(),_("input",{ref_key:"input",ref:r,name:"one-time-code",type:"text",inputmode:"numeric",autocomplete:"one-time-code",autocapitalize:"off",autocorrect:"off",spellcheck:"false",enterkeyhint:"done",placeholder:o.value,value:e.modelValue,class:"w-full px-6 py-3 text-center font-mono tracking-[0.35em] text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-colors",style:{"font-size":"16px"},onInput:a},null,40,i3))}}),o3={class:"relative flex-shrink-0"},a3=["src","alt"],s3={class:"absolute top-1 right-1"},l3={key:1,class:"size-3 bg-theme-400 rounded-full ring-2 ring-white"},c3={class:"min-w-0"},xp=Ue({__name:"ElModeHeader",props:{bot:{},size:{default:"md"},isOnline:{type:Boolean,default:!1},layout:{default:"centered"}},setup(e){return(t,n)=>(w(),_("div",{class:V(["flex gap-4",[e.layout==="centered"?"flex-col items-center text-center":"flex-row items-center justify-center"]])},[k("div",o3,[k("div",{class:V(["rounded-full overflow-hidden border-white",e.size==="lg"?"w-20 h-20 sm:w-24 sm:h-24 border-4":"w-16 sm:size-16 border-2"])},[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"w-full h-full object-cover",onError:n[0]||(n[0]=(...i)=>Ce(Bl)&&Ce(Bl)(...i))},null,40,a3)],2),k("div",s3,[e.isOnline?(w(),_(ge,{key:0},[n[1]||(n[1]=k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1)),n[2]||(n[2]=k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1))],64)):(w(),_("div",l3))])]),k("div",c3,[k("h1",{class:V(["font-light text-white mb-1 truncate",[e.size==="lg"?"text-3xl mb-2":"text-xl sm:text-2xl tracking-wide leading-tight",e.layout==="horizontal"?"text-white/95":""]])},ue(e.bot.displayName.value),3),k("p",{class:V(["font-light line-clamp-1",[e.size==="lg"?"text-base text-white/60":"text-sm sm:text-base",e.layout==="horizontal"?"text-white/70 truncate":"text-white/60"]])},ue(e.layout==="horizontal"?e.bot.title.value||"Assistant":e.bot.title.value),3)])],2))}}),u3={class:"relative shrink-0 rounded-full"},d3=["src","alt"],p3=["src","alt"],f3=["aria-label"],F0=Ue({__name:"BotAvatar",props:{bot:{},showStatus:{type:Boolean,default:!0},showOwnerMark:{type:Boolean,default:!0},isLight:{type:Boolean,default:!0}},setup(e){let t={green:"bg-green-500",amber:"bg-amber-500",red:"bg-red-500",grey:"bg-theme-300"},n=P(()=>{let o=e.bot.state.value;return e.showStatus&&o.lifecycle!=="unknown"?t[o.color]:null}),i={width:"clamp(7px, 14%, 14px)",height:"clamp(7px, 14%, 14px)",top:"calc(14.6% - clamp(3.5px, 7%, 7px))",right:"calc(14.6% - clamp(3.5px, 7%, 7px))"},r=P(()=>e.isLight?"ring-white":"ring-theme-900");return(o,a)=>(w(),_("div",u3,[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:V(["size-full rounded-full object-cover ring-1",e.isLight?"ring-black/5":"ring-white/10"])},null,10,d3),e.showOwnerMark&&e.bot.ownerMarkUrl.value?(w(),_("img",{key:0,src:e.bot.ownerMarkUrl.value,alt:e.bot.owner.value?.fullName?`Owned by ${e.bot.owner.value.fullName}`:"Owner",class:V(["absolute z-10 size-[36%] -bottom-[3%] -left-[3%] rounded-full object-cover ring-2",r.value])},null,10,p3)):ee("",!0),n.value?(w(),_("span",{key:1,role:"status","aria-label":e.bot.state.value.tooltip,class:V(["absolute z-10 rounded-full ring-2",[n.value,r.value]]),style:i},null,10,f3)):ee("",!0),n.value&&e.bot.state.value.lifecycle==="running"?(w(),_("span",{key:2,"aria-hidden":"true",class:V(["pointer-events-none absolute rounded-full animate-ping opacity-50 [animation-duration:3s]",n.value]),style:i},null,2)):ee("",!0)]))}}),m3={key:0,class:"sr-only",role:"status","aria-live":"polite"},h3=["aria-expanded","disabled"],g3=["aria-expanded"],v3={class:"flex w-5 shrink-0 justify-center self-stretch","aria-hidden":"true"},b3=["data-journal-row"],y3={class:"flex w-5 shrink-0 flex-col items-center self-stretch","aria-hidden":"true"},w3={class:"flex h-[17px] shrink-0 items-center"},k3={key:0,class:"sr-only"},z0=Ue({__name:"BotToolActivityGroup",props:{model:{},isLight:{type:Boolean}},setup(e){let t=e,n=We(!1);function i(){n.value=!n.value}let r=P(()=>t.model.outcome==="completed"),o=P(()=>t.model.hiddenRows.length),a=P(()=>t.model.hint??(t.model.terminal?.tone==="active"?t.model.terminal.label:void 0)),s=P(()=>{let d=t.model;return r.value?n.value?d.hiddenRows:[]:[...n.value?d.hiddenRows:[],...d.visibleRows,...d.terminal?[d.terminal]:[]]}),l=P(()=>t.isLight?{spine:"bg-theme-200",dashed:"border-theme-300",doneMark:"text-theme-400",failedMark:"text-theme-400",activeLine:"text-theme-700",stoppedSquare:"bg-theme-400",muted:"text-theme-400",ring:"focus-visible:ring-theme-900"}:{spine:"bg-white/15",dashed:"border-white/25",doneMark:"text-white/45",failedMark:"text-white/55",activeLine:"text-white/85",stoppedSquare:"bg-white/50",muted:"text-white/50",ring:"focus-visible:ring-white"}),u=P(()=>{let d=t.isLight;return{done:{statusWord:"completed",label:d?"text-[12px] text-theme-400":"text-[12px] text-white/50",station:{tag:"i",class:`i-tabler-check size-3 ${l.value.doneMark}`}},active:{statusWord:"in progress",label:d?"text-[12px] font-medium text-theme-700":"text-[12px] font-medium text-white/85",station:{tag:"span",class:`chat-pulse-dot size-1.5 rounded-full bg-current ${l.value.activeLine}`}},failed:{statusWord:"failed",label:d?"text-[12px] font-medium text-theme-600":"text-[12px] font-medium text-white/70",station:{tag:"i",class:`i-tabler-alert-circle size-3.5 ${l.value.failedMark}`}},stopped:{label:d?"text-[12px] font-medium text-theme-600":"text-[12px] font-medium text-white/70",station:{tag:"span",class:`size-[9px] rounded-[2px] ${l.value.stoppedSquare}`}},completed:{label:d?"text-[12px] text-theme-400":"text-[12px] text-white/50",station:{tag:"i",class:"i-tabler-circle-check size-3.5 text-green-600"}}}});return(d,p)=>(w(),_("div",{class:V(["w-full py-0.5",l.value.muted])},[a.value?(w(),_("span",m3,ue(a.value),1)):ee("",!0),r.value?(w(),_("button",{key:1,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,disabled:o.value===0,class:V(["flex min-h-11 items-center gap-x-2 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default",l.value.ring]),onClick:i},[p[0]||(p[0]=k("i",{"data-journal-station":"completed",class:"i-tabler-circle-check size-3.5 shrink-0 text-green-600","aria-hidden":"true"},null,-1)),k("span",{class:V(["text-[12px] font-medium leading-none",l.value.muted])},ue(e.model.terminal?.label),3),o.value?(w(),_("i",{key:0,class:V(["size-[13px] shrink-0",[n.value?"i-tabler-chevron-down":"i-tabler-chevron-right",l.value.muted]]),"aria-hidden":"true"},null,2)):ee("",!0)],10,h3)):o.value?(w(),_("button",{key:2,type:"button","data-test":"messaging-tool-activity-summary","data-journal-disclosure":"","aria-expanded":n.value,class:V(["flex min-h-11 w-full gap-x-2.5 text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",l.value.ring]),onClick:i},[k("span",v3,[k("span",{"data-journal-spine":"dashed",class:V(["w-0 border-l border-dashed",l.value.dashed])},null,2)]),k("span",{class:V(["flex min-h-[20px] items-center gap-0.5 pb-2 text-[12px] leading-none",l.value.muted])},[$t(ue(o.value)+" earlier updates ",1),k("i",{class:V(["size-3 shrink-0",n.value?"i-tabler-chevron-down":"i-tabler-chevron-right"]),"aria-hidden":"true"},null,2)],2)],10,g3)):ee("",!0),(w(!0),_(ge,null,st(s.value,(f,m)=>(w(),_("div",{key:f.id,"data-test":"messaging-tool-activity-row","data-journal-row":f.tone,class:V([r.value?"pl-[22px]":"","flex gap-x-2.5"])},[k("div",y3,[k("span",w3,[(w(),Ge(P$(u.value[f.tone].station.tag),{"data-journal-station":f.tone,class:V(u.value[f.tone].station.class)},null,8,["data-journal-station","class"]))]),m===s.value.length-1?ee("",!0):(w(),_("span",{key:0,class:V(["w-px flex-1",l.value.spine])},null,2))]),k("div",{class:V(["min-w-0 flex-1",m===s.value.length-1?"":"pb-2"])},[k("span",{class:V(["relative block leading-snug",u.value[f.tone].label])},[$t(ue(f.label),1),u.value[f.tone].statusWord?(w(),_("span",k3,", "+ue(u.value[f.tone].statusWord),1)):ee("",!0)],2),f.note?(w(),_("p",{key:0,class:V(["pt-0.5 text-[12px] leading-snug",l.value.muted])},ue(f.note),3)):ee("",!0)],2)],10,b3))),128)),!r.value&&e.model.hint?(w(),_("p",{key:3,"data-test":"messaging-tool-activity-hint",class:V(["pl-[30px] pt-2.5 text-[12px] leading-snug",l.value.muted])},ue(e.model.hint),3)):ee("",!0)],2))}});b2=Object.entries,BI=Object.setPrototypeOf,E3=Object.isFrozen,T3=Object.getPrototypeOf,N3=Object.getOwnPropertyDescriptor,Jt=Object.freeze,qt=Object.seal,Ua=Object.create,y2=typeof Reflect<"u"&&Reflect,B0=y2.apply,Z0=y2.construct;Jt||(Jt=function(t){return t}),qt||(qt=function(t){return t}),B0||(B0=function(t,n){var i=[...arguments].slice(2);return t.apply(n,i)}),Z0||(Z0=function(t){return new t(...[...arguments].slice(1))});Da=Ct(Array.prototype.forEach),C3=Ct(Array.prototype.lastIndexOf),ZI=Ct(Array.prototype.pop),Pa=Ct(Array.prototype.push),z3=Ct(Array.prototype.splice),xi=Array.isArray,Vl=Ct(String.prototype.toLowerCase),O0=Ct(String.prototype.toString),HI=Ct(String.prototype.match),Rl=Ct(String.prototype.replace),KI=Ct(String.prototype.indexOf),O3=Ct(String.prototype.trim),A3=Ct(Number.prototype.toString),D3=Ct(Boolean.prototype.toString),WI=typeof BigInt>"u"?null:Ct(BigInt.prototype.toString),GI=typeof Symbol>"u"?null:Ct(Symbol.prototype.toString),Vt=Ct(Object.prototype.hasOwnProperty),Ul=Ct(Object.prototype.toString),Lt=Ct(RegExp.prototype.test),co=P3(TypeError);JI=Jt("a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")),A0=Jt("svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")),D0=Jt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M3=Jt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P0=Jt("math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")),L3=Jt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qI=Jt(["#text"]),YI=Jt("accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")),R0=Jt("accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")),XI=Jt("accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")),sp=Jt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V3=qt(/{{[\w\W]*|^[\w\W]*}}/g),F3=qt(/<%[\w\W]*|^[\w\W]*%>/g),B3=qt(/\${[\w\W]*/g),Z3=qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),H3=qt(/^aria-[\-\w]+$/),QI=qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K3=qt(/^(?:\w+script|data):/i),W3=qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G3=qt(/^html$/i),J3=qt(/^[a-z][.\w]*(-[.\w]+)+$/i),e2=qt(/<[/\w!]/g),t2=qt(/<[/\w]/g),q3=qt(/<\/no(script|embed|frames)/i),Y3=qt(/\/>/i),Tr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},X3=function(){return typeof window>"u"?null:window},Q3=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));let o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},r2=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},yi=function(t,n,i,r){return Vt(t,n)&&xi(t[n])?Ze(r.base?mr(r.base):{},t[n],r.transform):i};k2=w2();fo=G0();uo={exec:()=>null};e5=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Qt={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ra(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ra(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Ra(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ra(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ra(e=>RegExp(`^ {0,${e}}(?:</?(?:${Kl})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Ra(e=>RegExp(`^ {0,${e}}>`))},t5=/^(?:[ \t]*(?:\n|$))+/,r5=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,n5=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,i5=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J0=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,_2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,$2=Ae(_2).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),o5=Ae(_2).replace(/bull/g,J0).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),q0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,a5=/^[^\n]+/,Y0=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,s5=Ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Y0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),l5=Ae(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,J0).getRegex(),Kl="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,c5=Ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X0).replace("tag",Kl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S2=e=>Ae(q0).replace("hr",Hl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kl).getRegex(),u5=S2(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),d5=S2(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Q0={blockquote:Ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",d5).getRegex(),code:r5,def:s5,fences:n5,heading:i5,hr:Hl,html:c5,lheading:$2,list:l5,newline:t5,paragraph:u5,table:uo,text:a5},n2=Ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kl).getRegex(),p5={...Q0,lheading:o5,table:n2,paragraph:Ae(q0).replace("hr",Hl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",n2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kl).getRegex()},f5={...Q0,html:Ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ae(q0).replace("hr",Hl).replace("heading",` *#{1,6} *[^
101
101
  ]`).replace("lheading",$2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},m5=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,h5=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,I2=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,g5=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kn=/[\p{P}\p{S}]/u,Va=/[\s\p{P}\p{S}]/u,Wl=/[^\s\p{P}\p{S}]/u,v5=Ae(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Va).getRegex(),b5=/[\p{Pi}\p{Ps}"']/u,E2=/(?!~)[\p{P}\p{S}]/u,y5=/(?!~)[\s\p{P}\p{S}]/u,w5=/(?:[^\s\p{P}\p{S}]|~)/u,k5=Ae(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",e5?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),T2=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,x5=Ae(T2,"u").replace(/punct/g,Kn).getRegex(),_5=Ae(T2,"u").replace(/punct/g,E2).getRegex(),$5=Ae(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,b5).replace(/punct/g,Kn).getRegex(),N2="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",S5=Ae(N2,"gu").replace(/notPunctSpace/g,Wl).replace(/punctSpace/g,Va).replace(/punct/g,Kn).getRegex(),I5=Ae(N2,"gu").replace(/notPunctSpace/g,w5).replace(/punctSpace/g,y5).replace(/punct/g,E2).getRegex(),E5=Ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Wl).replace(/punctSpace/g,Va).replace(/punct/g,Kn).getRegex(),T5=Ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Wl).replace(/punctSpace/g,Va).replace(/punct/g,Kn).getRegex(),N5=Ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Wl).replace(/punctSpace/g,Va).replace(/punct/g,Kn).getRegex(),C5=Ae(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Kn).getRegex(),z5=Ae("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Wl).replace(/punctSpace/g,Va).replace(/punct/g,Kn).getRegex(),O5=Ae(/\\(punct)/,"gu").replace(/punct/g,Kn).getRegex(),A5=Ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),D5=Ae(X0).replace("(?:-->|$)","-->").getRegex(),P5=Ae("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",D5).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),C2=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,mp=Ae(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",C2).getRegex(),R5=Ae(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",mp).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),U5=Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",mp).replace("ref",Y0).getRegex(),j5=Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",Y0).getRegex(),i2=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,M5=Ae(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",C2).getRegex(),L5=Ae("reflink|nolink(?!\\()","g").replace("reflink",Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",M5).replace("ref",i2).getRegex()).replace("nolink",Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",i2).getRegex()).getRegex(),o2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ey={_backpedal:uo,anyPunctuation:O5,autolink:A5,blockSkip:k5,br:I2,code:h5,del:uo,delLDelim:uo,delRDelim:uo,emStrongLDelim:x5,emStrongRDelimAst:S5,emStrongRDelimUnd:T5,escape:m5,link:R5,nolink:j5,punctuation:v5,reflink:U5,reflinkSearch:L5,tag:P5,text:g5,url:uo},V5={...ey,emStrongLDelim:$5,emStrongRDelimAst:E5,emStrongRDelimUnd:N5,link:Ae(/^!?\[(label)\]\((.*?)\)/).replace("label",mp).getRegex(),reflink:Ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mp).getRegex()},H0={...ey,emStrongRDelimAst:I5,emStrongLDelim:_5,delLDelim:C5,delRDelim:z5,url:Ae(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",o2).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ae(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",o2).getRegex()},F5={...H0,br:Ae(I2).replace("{2,}","*").getRegex(),text:Ae(H0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},cp={normal:Q0,gfm:p5,pedantic:f5},jl={normal:ey,gfm:H0,breaks:F5,pedantic:V5},B5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a2=e=>B5[e];gp=class{constructor(e){W(this,"options",void 0),W(this,"rules",void 0),W(this,"lexer",void 0),this.options=e||fo}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:c2(t[0]);return{type:"code",raw:n,codeBlockStyle:"indented",text:n.replace(this.rules.other.codeRemoveIndent,"")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],i=K5(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let i=wi(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceTabChar.test(i))&&(n=i.trim())}return{type:"heading",raw:wi(t[0],`
102
102
  `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:wi(t[0],`
103
103
  `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=wi(t[0],`
@@ -157,10 +157,10 @@ ${this.parser.parse(e)}</blockquote>
157
157
  ${e}</tr>
158
158
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
159
159
  `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Nr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:i,autolink:r}){let o=r?Nr(n,!0):this.parser.parseInline(i),a=s2(e);if(a===null)return o;e=Nr(a,r);let s='<a href="'+e+'"';return t&&(s+=' title="'+Nr(t)+'"'),s+=">"+o+"</a>",s}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let r=s2(e);if(r===null)return Nr(n);e=r;let o=`<img src="${Nr(e)}" alt="${Nr(n)}"`;return t&&(o+=` title="${Nr(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Nr(e.text)}},ty=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},en=class W0{constructor(t){W(this,"options",void 0),W(this,"renderer",void 0),W(this,"textRenderer",void 0),this.options=t||fo,this.options.renderer=this.options.renderer||new vp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ty}static parse(t,n){return new W0(n).parse(t)}static parseInline(t,n){return new W0(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let r=t[i];if(this.options.extensions?.renderers?.[r.type]){let a=r,s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(a.type)){n+=s||"";continue}}let o=r;switch(o.type){case"space":n+=this.renderer.space(o);break;case"hr":n+=this.renderer.hr(o);break;case"heading":n+=this.renderer.heading(o);break;case"code":n+=this.renderer.code(o);break;case"table":n+=this.renderer.table(o);break;case"blockquote":n+=this.renderer.blockquote(o);break;case"list":n+=this.renderer.list(o);break;case"checkbox":n+=this.renderer.checkbox(o);break;case"html":n+=this.renderer.html(o);break;case"def":n+=this.renderer.def(o);break;case"paragraph":n+=this.renderer.paragraph(o);break;case"text":n+=this.renderer.text(o);break;default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw Error(a)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let i="";for(let r=0;r<t.length;r++){let o=t[r];if(this.options.extensions?.renderers?.[o.type]){let s=this.options.extensions.renderers[o.type].call({parser:this},o);if(s!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(o.type)){i+=s||"";continue}}let a=o;switch(a.type){case"escape":i+=n.text(a);break;case"html":i+=n.html(a);break;case"link":i+=n.link(a);break;case"image":i+=n.image(a);break;case"checkbox":i+=n.checkbox(a);break;case"strong":i+=n.strong(a);break;case"em":i+=n.em(a);break;case"codespan":i+=n.codespan(a);break;case"br":i+=n.br(a);break;case"del":i+=n.del(a);break;case"text":i+=n.text(a);break;default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw Error(s)}}}return i}},Fl=(lp=class{constructor(e){W(this,"options",void 0),W(this,"block",void 0),this.options=e||fo}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Qr.lex:Qr.lexInline}provideParser(e=this.block){return e?en.parse:en.parseInline}},W(lp,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),W(lp,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),lp),W5=class{constructor(...e){W(this,"defaults",G0()),W(this,"options",this.setOptions),W(this,"parse",this.parseMarkdown(!0)),W(this,"parseInline",this.parseMarkdown(!1)),W(this,"Parser",en),W(this,"Renderer",vp),W(this,"TextRenderer",ty),W(this,"Lexer",Qr),W(this,"Tokenizer",gp),W(this,"Hooks",Fl),this.use(...e)}walkTokens(e,t){let n=[];for(let i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{let r=i;for(let o of r.header)n=n.concat(this.walkTokens(o.tokens,t));for(let o of r.rows)for(let a of o)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let r=i;n=n.concat(this.walkTokens(r.items,t));break}default:{let r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(o=>{let a=r[o].flat(1/0);n=n.concat(this.walkTokens(a,t))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw Error("extension name required");if("renderer"in r){let o=t.renderers[r.name];o?t.renderers[r.name]=function(...a){let s=r.renderer.apply(this,a);return s===!1&&(s=o.apply(this,a)),s}:t.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let o=t[r.level];o?o.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens)}),i.extensions=t),n.renderer){let r=this.defaults.renderer||new vp(this.defaults);for(let o in n.renderer){if(!(o in r))throw Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let a=o,s=n.renderer[a],l=r[a];r[a]=(...u)=>{let d=s.apply(r,u);return d===!1&&(d=l.apply(r,u)),d||""}}i.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new gp(this.defaults);for(let o in n.tokenizer){if(!(o in r))throw Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let a=o,s=n.tokenizer[a],l=r[a];r[a]=(...u)=>{let d=s.apply(r,u);return d===!1&&(d=l.apply(r,u)),d}}i.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new Fl;for(let o in n.hooks){if(!(o in r))throw Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let a=o,s=n.hooks[a],l=r[a];r[a]=Fl.passThroughHooks.has(o)?u=>{if(this.defaults.async&&Fl.passThroughHooksRespectAsync.has(o))return(async()=>{let p=await s.call(r,u);return l.call(r,p)})();let d=s.call(r,u);return l.call(r,d)}:(...u)=>{if(this.defaults.async)return(async()=>{let p=await s.apply(r,u);return p===!1&&(p=await l.apply(r,u)),p})();let d=s.apply(r,u);return d===!1&&(d=l.apply(r,u)),d}}i.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(a){let s=[];return s.push(o.call(this,a)),r&&(s=s.concat(r.call(this,a))),s}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Qr.lex(e,t??this.defaults)}parser(e,t){return en.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let i={...n},r={...this.defaults,...i},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&i.async===!1)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return o(Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=e),r.async)return(async()=>{let a=r.hooks?await r.hooks.preprocess(t):t,s=await(r.hooks?await r.hooks.provideLexer(e):e?Qr.lex:Qr.lexInline)(a,r),l=r.hooks?await r.hooks.processAllTokens(s):s;r.walkTokens&&await Promise.all(this.walkTokens(l,r.walkTokens));let u=await(r.hooks?await r.hooks.provideParser(e):e?en.parse:en.parseInline)(l,r);return r.hooks?await r.hooks.postprocess(u):u})().catch(o);try{r.hooks&&(t=r.hooks.preprocess(t));let a=(r.hooks?r.hooks.provideLexer(e):e?Qr.lex:Qr.lexInline)(t,r);r.hooks&&(a=r.hooks.processAllTokens(a)),r.walkTokens&&this.walkTokens(a,r.walkTokens);let s=(r.hooks?r.hooks.provideParser(e):e?en.parse:en.parseInline)(a,r);return r.hooks&&(s=r.hooks.postprocess(s)),s}catch(a){return o(a)}}}onError(e,t){return n=>{if(n.message+=`
160
- Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+Nr(n.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(n);throw n}}},po=new W5;et.options=et.setOptions=function(e){return po.setOptions(e),et.defaults=po.defaults,x2(et.defaults),et},et.getDefaults=G0,et.defaults=fo;et.use=G5,et.walkTokens=function(e,t){return po.walkTokens(e,t)},et.parseInline=po.parseInline,et.Parser=en,et.parser=en.parse,et.Renderer=vp,et.TextRenderer=ty,et.Lexer=Qr,et.lexer=Qr.lex,et.Tokenizer=gp,et.Hooks=Fl,et.parse=et,et.options,et.setOptions,et.walkTokens,et.parseInline,en.parse,Qr.lex;J5=["aria-label"],q5={class:"px-4 pb-2 pt-4"},Y5=["innerHTML"],X5=["onClick"],Q5=Ue({__name:"ChatCardBlock",props:{spec:{},inverted:{type:Boolean}},emits:["action"],setup(e,{emit:t}){let n=e,i=t,r=P(()=>{if(!n.spec.body)return"";let f=et.parse(n.spec.body,{async:!1});return k2.sanitize(f,{ADD_ATTR:["target"]})}),o=P(()=>n.inverted?"rgba(255, 255, 255, 0.22)":"rgba(0, 0, 0, 0.16)"),a=P(()=>n.inverted?"rgba(255, 255, 255, 0.12)":"color-mix(in oklch, var(--color-theme-200) 80%, transparent)"),s=P(()=>n.inverted?"rgba(255, 255, 255, 0.95)":"var(--color-theme-900)"),l=P(()=>n.inverted?"rgba(255, 255, 255, 0.8)":"var(--color-theme-800)"),u=P(()=>n.inverted?`inset 0 0 0 1px ${o.value}`:`inset 0 0 0 1px ${o.value}, 0 4px 16px rgba(15, 23, 42, 0.05)`),d=P(()=>n.inverted?"transparent":"var(--color-theme-0)");function p(f){return f==="primary"||f==="destructive"?{background:n.inverted?"rgba(255, 255, 255, 0.92)":"var(--color-theme-900)",color:n.inverted?"var(--color-theme-900)":"#fff"}:{background:"var(--color-theme-100)",color:s.value}}return(f,m)=>(w(),_("div",{"data-test":"chat-card",class:"my-6 w-full self-start overflow-hidden rounded-2xl",style:_e({background:d.value,boxShadow:u.value}),"aria-label":e.spec.title},[k("div",q5,[k("div",{class:"text-[14px] font-semibold leading-tight",style:_e({color:s.value})},le(e.spec.title),5)]),r.value?(w(),_("div",{key:0,class:"chat-msg-prose px-4 pb-4 pt-2 text-[14px] leading-relaxed",style:_e({color:l.value}),innerHTML:r.value},null,12,Y5)):ee("",!0),e.spec.actions?.length?(w(),_("div",{key:1,class:"flex flex-wrap items-center gap-2 px-3 py-2.5",style:_e({borderTop:`1px solid ${a.value}`})},[(w(!0),_(ge,null,st(e.spec.actions,h=>(w(),_("button",{key:h.label,type:"button","data-test":"chat-card-action",class:"inline-flex h-10 items-center justify-center rounded-full px-5 text-[14px] font-semibold transition-colors duration-150 active:opacity-80",style:_e(p(h.style)),onClick:v=>i("action",h.reply)},le(h.label),13,X5))),128))],4)):ee("",!0)],12,J5))}}),p2=112,U0=52,up=14,ja=54,f2=34,eP=260;sP=5.4,lP=10,cP=15,uP=16;pP=["data-visual-type","data-chart-type","data-stacking","data-diagram-type","aria-label"],fP={class:"mb-2.5"},mP=["aria-label"],hP={key:0,"data-test":"chat-visual-horizontal-bars",class:"grid gap-3"},gP={class:"mb-1 flex items-start justify-between gap-3 text-[12px]"},vP=["viewBox"],bP=["x1","x2","y1","y2"],yP=["x","y"],wP=["data-row-index","data-series-index","data-data-key","x","y","width","height"],kP=["data-trend-key","d"],xP=["d"],_P=["cx","cy"],$P=["cx","cy"],SP=["x","y","text-anchor","transform"],IP={key:2,class:"mt-2.5 flex flex-wrap items-center gap-x-4 gap-y-1.5"},EP={key:1,class:"grid gap-3"},TP={class:"mb-1 flex items-baseline justify-between gap-3 text-[12px]"},NP={class:"shrink-0 tabular-nums"},CP={key:2,class:"overflow-x-auto"},zP=["viewBox","aria-label"],OP=["data-from","data-to","x1","y1","x2","y2"],AP=["cx","cy"],DP=["x","y"],PP=["data-node-id","data-node-kind","transform"],RP=["points"],UP=["width","height"],jP=["width","height"],MP={xmlns:"http://www.w3.org/1999/xhtml",class:"flex h-full min-w-0 flex-col items-center justify-center text-center"},LP=Ue({__name:"ChatVisualBlock",props:{result:{},inverted:{type:Boolean}},setup(e){let t=e,n=q(),i=We(360),r;Pt(()=>{typeof ResizeObserver>"u"||!n.value||(r=new ResizeObserver($=>{let T=$[0]?.contentRect.width;T&&(i.value=Math.round(T))}),r.observe(n.value))}),Sa(()=>r?.disconnect());let o=P(()=>Math.min(720,Math.max(280,i.value))),a=P(()=>t.result.ok?t.result.spec:null),s=P(()=>a.value?.visualType==="chart"?a.value:null),l=P(()=>a.value?.visualType==="diagram"?a.value:null);function u($){return $?.chartType==="bar"||$?.chartType==="line"||$?.chartType==="scatter"}function d($){return $?.chartType==="pie"}let p=P(()=>s.value?.data??[]),f=P(()=>u(s.value)?s.value:null),m=P(()=>f.value?.series??[]),h=P(()=>d(s.value)?s.value:null),v=P(()=>f.value?.chartType==="bar"&&f.value.stacking==="stacked");function x($){return typeof $=="number"&&Number.isFinite($)?$:null}function A($,T){return String($[T]??"").trim()}function I($,T){let y=$.map(U=>A(U,T)).filter(Boolean);if(!y.length)return!1;let R=Math.max(...y.map(U=>U.length)),O=y.reduce((U,se)=>U+se.length,0)/y.length;return R>=16||y.length>5&&O>=10}function E($,T){return $.data.map((y,R)=>{let O=x(y[T]);return O===null?null:{index:R,value:O}}).filter(y=>y!==null)}function M($){if($.length<2)return null;let T=$.length,y=$.reduce((pe,he)=>pe+he.index,0),R=$.reduce((pe,he)=>pe+he.value,0),O=$.reduce((pe,he)=>pe+he.index*he.index,0),U=$.reduce((pe,he)=>pe+he.index*he.value,0),se=T*O-y*y;if(se===0)return null;let te=(T*U-y*R)/se;return{slope:te,intercept:(R-te*y)/T}}let z=P(()=>{let $=[],T=f.value;if(!T)return $;if(T.chartType==="bar"&&T.stacking==="stacked")for(let y of T.data){let R=0,O=0;for(let U of T.series){let se=x(y[U.dataKey]);se!==null&&(se>=0?R+=se:O+=se)}$.push(R,O)}else for(let y of T.data)for(let R of T.series){let O=x(y[R.dataKey]);O!==null&&$.push(O)}if(T.trendLine&&(T.chartType==="line"||T.chartType==="scatter")){let y=E(T,T.trendLine.dataKey);$.push(...y.map(O=>O.value));let R=M(y);if(R&&y.length){let O=y[0].index,U=y[y.length-1].index;$.push(R.intercept+R.slope*O,R.intercept+R.slope*U)}}return $});function D($,T){let y=$>0?$:1,R=Math.floor(Math.log10(y)),O=y/10**R,U;return U=T?O<1.5?1:O<3?2:O<7?5:10:O<=1?1:O<=2?2:O<=5?5:10,U*10**R}let X=P(()=>{let $=z.value,T=$.length?Math.max(0,...$):1,y=$.length?Math.min(0,...$):0;if(y===T)return{min:0,max:T||1,ticks:[0,T||1]};let R=D(D(T-y,!1)/3,!0),O=Math.floor(y/R)*R,U=Math.ceil(T/R)*R,se=[];for(let te=O;te<=U+R*.5;te+=R)se.push(Number(te.toFixed(6)));return{min:O,max:U,ticks:se}}),ce=P(()=>oP({series:m.value})),ie=P(()=>{let $=f.value;if(!$)return{mode:"horizontal",entries:[]};let T=$.xKey;return dP({labels:$.data.map(y=>String(y?.[T]??"")),plotWidth:Math.max(200,o.value-42)})}),Q=P(()=>{let $=ce.value?.valueFormat,T=!!(ce.value&&($==="currency"||$==="percent"||ce.value.valuePrefix||ce.value.valueSuffix)),y=$==="duration"?46:T?38:30,R=ie.value.mode==="angled";return{width:o.value,height:168+(R?36:0),left:y,right:12,top:10,bottom:24+(R?36:0)}});function ae($,T){let y=f.value,R=Q.value;if(y?.chartType==="bar"){let O=R.width-R.left-R.right;return R.left+($+.5)*(O/Math.max(T,1))}return ne($,T)}function ne($,T){let y=Q.value,R=y.width-y.left-y.right;return T<=1?y.left+R/2:y.left+R*$/(T-1)}function ve($){let{min:T,max:y}=X.value,R=Q.value,O=R.height-R.top-R.bottom;return R.top+(y-$)/(y-T||1)*O}function Le($){let T=f.value;return T?T.data.map((y,R)=>{let O=x(y[$])??0;return`${R===0?"M":"L"} ${ne(R,T.data.length).toFixed(1)} ${ve(O).toFixed(1)}`}).join(" "):""}let mt=P(()=>{let $=f.value;if(!$?.trendLine||$.chartType!=="line"&&$.chartType!=="scatter")return null;let T=E($,$.trendLine.dataKey),y=M(T);if(!y||!T.length)return null;let R=T[0].index,O=T[T.length-1].index,U=y.intercept+y.slope*R,se=y.intercept+y.slope*O,te=Math.max(0,$.series.findIndex(pe=>pe.dataKey===$.trendLine?.dataKey));return{path:`M ${ne(R,$.data.length).toFixed(1)} ${ve(U).toFixed(1)} L ${ne(O,$.data.length).toFixed(1)} ${ve(se).toFixed(1)}`,dataKey:$.trendLine.dataKey,seriesIndex:te}}),ht=P(()=>{let $=f.value;if(!$||$.chartType!=="bar")return[];let T=Q.value,y=(T.width-T.left-T.right)/Math.max($.data.length,1),R=ve(0);if(v.value){let pe=Math.max(4,Math.min(24,y*.42));return $.data.flatMap((he,$e)=>{let Te=0,Ne=0,qe=T.left+$e*y+(y-pe)/2;return $.series.map((Xe,zt)=>{let St=x(he[Xe.dataKey])??0,rr=St>=0?Te:Ne,be=rr+St,ct=ve(rr),it=ve(be);return St>=0?Te=be:Ne=be,{key:`${$e}-${Xe.dataKey}`,x:qe,y:Math.min(ct,it),width:pe,height:Math.max(1.5,Math.abs(ct-it)),seriesIndex:zt,rowIndex:$e,dataKey:Xe.dataKey}})})}let O=Math.max($.series.length,1),U=O>1?2:0,se=Math.max(3,Math.min(20,(y*.62-U*(O-1))/O)),te=se*O+U*(O-1);return $.data.flatMap((pe,he)=>$.series.map(($e,Te)=>{let Ne=ve(x(pe[$e.dataKey])??0),qe=T.left+he*y+(y-te)/2+Te*(se+U);return{key:`${he}-${$e.dataKey}`,x:qe,y:Math.min(Ne,R),width:se,height:Math.max(1.5,Math.abs(R-Ne)),seriesIndex:Te,rowIndex:he,dataKey:$e.dataKey}}))}),je=P(()=>{let $=f.value;if(!$)return[];let T=$.data;if(!T.length)return[];let y=T.length-1,R=ie.value,O=R.mode==="angled";return R.entries.map(({index:U,text:se})=>({key:`${U}`,label:se,x:ae(U,T.length),anchor:O?"end":U===0?"start":U===y?"end":"middle",angled:O})).filter(U=>U.label)}),Me=P(()=>{let $=f.value;if(!$||$.chartType!=="bar"||$.series.length!==1||v.value)return[];let T=$.series[0],y=$.data.map((O,U)=>{let se=A(O,$.xKey),te=x(O[T.dataKey]);return!se||te===null?null:{key:`${U}-${se}`,label:se,rawValue:te}}).filter(O=>O!==null);if(!y.length||y.some(O=>O.rawValue<0)||!($.layout==="horizontal"||I($.data,$.xKey)))return[];let R=Math.max(...y.map(O=>O.rawValue),1);return y.map(O=>({key:O.key,label:O.label,value:j0({value:O.rawValue,series:T}),width:O.rawValue<=0?0:Math.max(2,O.rawValue/R*100),seriesIndex:0}))}),Rt=P(()=>{let $=f.value;if(!$?.data.length)return[];let T=$.data[$.data.length-1];return $.series.map((y,R)=>{let O=x(T?.[y.dataKey]);return{key:y.dataKey,label:y.label||y.dataKey,value:O===null?"\u2014":j0({value:O,series:y}),seriesIndex:R}})}),Je=P(()=>{let $=f.value;if(!$?.data.length||$.chartType!=="line")return[];let T=$.data.length-1,y=$.data[T];return $.series.map((R,O)=>{let U=x(y?.[R.dataKey]);return U===null?null:{key:R.dataKey,cx:ne(T,$.data.length),cy:ve(U),seriesIndex:O}}).filter(R=>R!==null)}),Cr=P(()=>{let $=h.value;if(!$)return[];let T=$.data.map(O=>({name:String(O[$.nameKey]??""),value:x(O[$.valueKey])??0})).filter(O=>O.name&&O.value>=0).sort((O,U)=>U.value-O.value),y=T.reduce((O,U)=>O+U.value,0)||1,R=$.series?.[0];return T.map((O,U)=>({...O,key:`${U}-${O.name}`,percent:O.value/y,display:j0({value:O.value,series:R})}))}),wt=P(()=>l.value?iP(l.value,{maxWidth:i.value}):null),xt=["var(--color-theme-900)","var(--color-primary-500)","color-mix(in oklch, var(--color-primary-500) 55%, var(--color-theme-500))"],Fr=["rgba(255, 255, 255, 0.92)","color-mix(in oklch, white 30%, var(--color-primary-500))","rgba(255, 255, 255, 0.55)"];function Tt($){let T=t.inverted?Fr:xt;return T[$%T.length]}function Wn($){return t.inverted?$==="decision"?"rgba(255, 255, 255, 0.1)":"rgba(255, 255, 255, 0.06)":$==="decision"?"color-mix(in oklch, var(--color-primary-500) 6%, var(--color-theme-0))":$==="output"?"color-mix(in oklch, var(--color-theme-900) 5%, var(--color-theme-0))":"var(--color-theme-0)"}function Nt($){return t.inverted?"rgba(255, 255, 255, 0.22)":zr.value}let Ft=P(()=>t.inverted?"rgba(255, 255, 255, 0.95)":"var(--color-theme-900)"),er=P(()=>t.inverted?"rgba(255, 255, 255, 0.6)":"var(--color-theme-500)"),Ye=P(()=>t.inverted?"rgba(255, 255, 255, 0.45)":"color-mix(in oklch, var(--color-theme-900) 42%, transparent)"),tr=P(()=>t.inverted?"rgba(255, 255, 255, 0.1)":"color-mix(in oklch, var(--color-theme-900) 8%, transparent)"),Ve=P(()=>t.inverted?"rgba(255, 255, 255, 0.24)":"color-mix(in oklch, var(--color-theme-900) 18%, transparent)"),zr=P(()=>t.inverted?"rgba(255, 255, 255, 0.16)":"color-mix(in oklch, var(--color-theme-300) 55%, transparent)"),b=P(()=>t.inverted?"rgba(255, 255, 255, 0.14)":"color-mix(in oklch, var(--color-theme-900) 10%, transparent)"),S=P(()=>t.inverted?"transparent":"var(--color-theme-0)"),L=P(()=>t.inverted?"rgba(255, 255, 255, 0.18)":"color-mix(in oklch, var(--color-theme-900) 16%, transparent)"),J=P(()=>t.inverted?"rgba(255, 255, 255, 0.12)":"color-mix(in oklch, var(--color-theme-900) 9%, transparent)");return($,T)=>a.value?(w(),_("section",{key:0,"data-test":"chat-visual","data-visual-type":a.value.visualType,"data-chart-type":s.value?.chartType,"data-stacking":v.value?"stacked":void 0,"data-diagram-type":l.value?.diagramType,class:"my-6 w-full rounded-[20px] px-4 pb-3.5 pt-4",style:_e({background:S.value,boxShadow:`inset 0 0 0 1px ${b.value}`}),"aria-label":a.value.meta.title},[k("header",fP,[k("h4",{class:"text-[13px] font-semibold leading-tight",style:_e({color:Ft.value})},le(a.value.meta.title),5),a.value.meta.description?(w(),_("p",{key:0,class:"mt-0.5 text-[12px] leading-snug",style:_e({color:er.value})},le(a.value.meta.description),5)):ee("",!0)]),k("div",{ref_key:"bodyEl",ref:n},[f.value?(w(),_("div",{key:0,role:"img","aria-label":a.value.meta.title},[Me.value.length?(w(),_("div",hP,[(w(!0),_(ge,null,st(Me.value,y=>(w(),_("div",{key:y.key,"data-test":"chat-visual-horizontal-bar",class:"min-w-0"},[k("div",gP,[k("span",{class:"line-clamp-2 min-w-0 font-medium leading-snug",style:_e({color:Ft.value})},le(y.label),5),k("span",{class:"shrink-0 font-semibold tabular-nums",style:_e({color:Ft.value})},le(y.value),5)]),k("div",{class:"h-2 w-full overflow-hidden rounded-full",style:_e({background:J.value})},[k("div",{class:"h-full rounded-full",style:_e({width:`${y.width}%`,background:Tt(y.seriesIndex)})},null,4)],4)]))),128))])):(w(),_("svg",{key:1,class:"block h-auto w-full overflow-visible",viewBox:`0 0 ${Q.value.width} ${Q.value.height}`,style:_e({aspectRatio:`${Q.value.width} / ${Q.value.height}`}),preserveAspectRatio:"xMidYMid meet","aria-hidden":"true"},[(w(!0),_(ge,null,st(X.value.ticks,y=>(w(),_("line",{key:`grid-${y}`,x1:Q.value.left,x2:Q.value.width-Q.value.right,y1:ve(y),y2:ve(y),"stroke-width":"1","vector-effect":"non-scaling-stroke",style:_e({stroke:y===0?Ve.value:tr.value})},null,12,bP))),128)),k("g",null,[(w(!0),_(ge,null,st(X.value.ticks,y=>(w(),_("text",{key:`y-${y}`,x:Q.value.left-7,y:ve(y)+3,"text-anchor":"end","font-size":"9.5",style:_e({fill:Ye.value})},le(Ce(aP)({value:y,shared:ce.value})),13,yP))),128))]),f.value.chartType==="bar"?(w(!0),_(ge,{key:0},st(ht.value,y=>(w(),_("rect",{key:y.key,"data-test":"chat-visual-bar","data-row-index":y.rowIndex,"data-series-index":y.seriesIndex,"data-data-key":y.dataKey,x:y.x,y:y.y,width:y.width,height:y.height,rx:"2.5",style:_e({fill:Tt(y.seriesIndex)})},null,12,wP))),128)):(w(),_(ge,{key:1},[mt.value?(w(),_("path",{key:0,"data-test":"chat-visual-trend-line","data-trend-key":mt.value.dataKey,d:mt.value.path,fill:"none","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":"4 3","vector-effect":"non-scaling-stroke",style:_e({stroke:Tt(mt.value.seriesIndex)})},null,12,kP)):ee("",!0),(w(!0),_(ge,null,st(m.value,(y,R)=>(w(),_("g",{key:y.dataKey},[f.value.chartType==="line"?(w(),_("path",{key:0,d:Le(y.dataKey),fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","vector-effect":"non-scaling-stroke",style:_e({stroke:Tt(R)})},null,12,xP)):ee("",!0),(w(!0),_(ge,null,st(p.value,(O,U)=>(w(),_(ge,{key:`${y.dataKey}-${U}`},[f.value.chartType==="scatter"?(w(),_("circle",{key:0,cx:ne(U,p.value.length),cy:ve(x(O[y.dataKey])??0),r:"2.6",style:_e({fill:Tt(R)})},null,12,_P)):ee("",!0)],64))),128))]))),128)),(w(!0),_(ge,null,st(Je.value,y=>(w(),_("circle",{key:`marker-${y.key}`,cx:y.cx,cy:y.cy,r:"3",style:_e({fill:Tt(y.seriesIndex)})},null,12,$P))),128))],64)),(w(!0),_(ge,null,st(je.value,y=>(w(),_("text",{key:y.key,x:y.x,y:y.angled?Q.value.height-Q.value.bottom+12:Q.value.height-6,"text-anchor":y.anchor,"font-size":"9.5",transform:y.angled?`rotate(${Ce(-40)} ${y.x} ${Q.value.height-Q.value.bottom+12})`:void 0,style:_e({fill:Ye.value})},le(y.label),13,SP))),128))],12,vP)),Rt.value.length>1||f.value.chartType!=="bar"?(w(),_("div",IP,[(w(!0),_(ge,null,st(Rt.value,y=>(w(),_("div",{key:y.key,class:"inline-flex items-center gap-1.5 text-[11.5px] leading-none"},[k("span",{class:"size-2.5 shrink-0 rounded-full",style:_e({background:Tt(y.seriesIndex)})},null,4),k("span",{style:_e({color:er.value})},le(y.label),5),k("span",{class:"font-semibold tabular-nums",style:_e({color:Ft.value})},le(y.value),5)]))),128))])):ee("",!0)],8,mP)):h.value?(w(),_("div",EP,[(w(!0),_(ge,null,st(Cr.value,(y,R)=>(w(),_("div",{key:y.key},[k("div",TP,[k("span",{class:"truncate font-medium",style:_e({color:Ft.value})},le(y.name),5),k("span",NP,[k("span",{class:"font-semibold",style:_e({color:Ft.value})},le(y.display),5),k("span",{class:"ml-1.5",style:_e({color:er.value})},le(Math.round(y.percent*100))+"%",5)])]),k("div",{class:"h-1.5 w-full overflow-hidden rounded-full",style:_e({background:J.value})},[k("div",{class:"h-full rounded-full",style:_e({width:`${Math.max(2,y.percent*100)}%`,background:Tt(R)})},null,4)],4)]))),128))])):l.value&&wt.value?(w(),_("div",CP,[(w(),_("svg",{"data-test":"chat-visual-diagram-svg",class:"block h-auto overflow-visible",viewBox:`0 0 ${wt.value.width} ${wt.value.height}`,style:_e({width:`${wt.value.width}px`,aspectRatio:`${wt.value.width} / ${wt.value.height}`}),role:"img","aria-label":a.value.meta.title},[(w(!0),_(ge,null,st(wt.value.edges,y=>(w(),_("line",{key:y.key,"data-test":"chat-visual-diagram-edge","data-from":y.from,"data-to":y.to,x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,"stroke-width":"1.4","stroke-linecap":"round","vector-effect":"non-scaling-stroke",style:_e({stroke:L.value})},null,12,OP))),128)),(w(!0),_(ge,null,st(wt.value.edges,y=>(w(),_("circle",{key:`${y.key}-dot`,cx:y.x2,cy:y.y2,r:"2.4",style:_e({fill:L.value})},null,12,AP))),128)),(w(!0),_(ge,null,st(wt.value.edges.filter(y=>y.label),y=>(w(),_("foreignObject",{key:`${y.key}-label`,x:y.labelX-55,y:y.labelY-12,width:"110",height:"24"},[k("div",{xmlns:"http://www.w3.org/1999/xhtml",class:"flex h-full items-center justify-center px-1 text-center text-[10.5px] font-medium leading-none",style:_e({color:er.value,background:t.inverted?"var(--color-theme-900)":"var(--color-theme-0)"})},le(y.label),5)],8,DP))),128)),(w(!0),_(ge,null,st(wt.value.nodes,y=>(w(),_("g",{key:y.id,"data-test":"chat-visual-diagram-node","data-node-id":y.id,"data-node-kind":y.kind,transform:`translate(${y.x} ${y.y})`},[y.kind==="decision"?(w(),_("polygon",{key:0,points:`${y.width/2},0 ${y.width},${y.height/2} ${y.width/2},${y.height} 0,${y.height/2}`,"stroke-width":"1","vector-effect":"non-scaling-stroke",style:_e({fill:Wn(y.kind),stroke:Nt(y.kind)})},null,12,RP)):(w(),_("rect",{key:1,width:y.width,height:y.height,rx:"9","stroke-width":"1","vector-effect":"non-scaling-stroke",style:_e({fill:Wn(y.kind),stroke:Nt(y.kind)})},null,12,UP)),(w(),_("foreignObject",{x:"8",y:"5",width:y.width-16,height:y.height-10},[k("div",MP,[k("div",{class:"line-clamp-2 text-[13px] font-medium leading-snug",style:_e({color:Ft.value})},le(y.label),5),y.detail?(w(),_("div",{key:0,class:"mt-0.5 line-clamp-1 text-[10.5px] leading-none",style:_e({color:er.value})},le(y.detail),5)):ee("",!0)])],8,jP))],8,PP))),128))],12,zP))])):ee("",!0)],512),a.value.meta.footer?(w(),_("footer",{key:0,class:"mt-3 text-[11px] leading-snug",style:_e({color:Ye.value})},le(a.value.meta.footer),5)):ee("",!0)],12,pP)):ee("",!0)}}),VP=["innerHTML"],Ml=Ue({__name:"ChatRichText",props:{text:{},inverted:{type:Boolean},streaming:{type:Boolean}},emits:["action"],setup(e,{emit:t}){let n=e,i=t,r=We(n.text),o;ft([()=>n.text,()=>n.streaming],([v,x])=>{if(!x){o!==void 0&&(cancelAnimationFrame(o),o=void 0),r.value=v;return}o===void 0&&(o=requestAnimationFrame(()=>{o=void 0,r.value=n.text}))}),Sa(()=>{o!==void 0&&cancelAnimationFrame(o)});let a=new et.Renderer;a.link=({href:v,text:x})=>{let A=v.trim();if(!A||A==="#")return x;let I=!1;if(typeof window<"u")try{I=new URL(v,window.location.href).origin===window.location.origin}catch{I=!1}return I?`<a href="${v}">${x}</a>`:`<a href="${v}" target="_blank" rel="noopener noreferrer">${x}</a>`},et.setOptions({breaks:!0,gfm:!0,renderer:a});function s(v){if(!v)return"";let x=et.parse(v,{async:!1});return k2.sanitize(x,{ADD_ATTR:["target"],ADD_DATA_URI_TAGS:["img"]})}function l(v){if(typeof v!="string")return null;let x=v.trim();return x?x.slice(0,80):null}function u(v){try{let x=JSON.parse(v);if(!x||typeof x!="object"||Array.isArray(x))return{topLevelKeys:[],declaredVisualType:null,declaredChartType:null,declaredDiagramType:null,inputType:null};let A=x;return{topLevelKeys:Object.keys(A).sort().slice(0,24),declaredVisualType:l(A.visualType),declaredChartType:l(A.chartType),declaredDiagramType:l(A.diagramType),inputType:l(A.type)}}catch{return{topLevelKeys:[],declaredVisualType:null,declaredChartType:null,declaredDiagramType:null,inputType:null}}}function d(v){if(typeof window>"u")return null;try{return new URL(v.currentSrc||v.src,window.location.href).host||null}catch{return null}}function p(v){typeof HTMLImageElement>"u"||!(v.target instanceof HTMLImageElement)||typeof console<"u"&&console.warn("[chat-image] load_failed",{host:d(v.target),altPresent:!!v.target.alt?.trim(),width:v.target.naturalWidth||null,height:v.target.naturalHeight||null})}let f=/```(?:pl-visual|pl-platform-visual|pl-card)[ \t]*(?:\r?\n|$)/;function m(v){let{text:x,streaming:A}=v,I=[],E=/```(pl-visual|pl-platform-visual|pl-card)[ \t]*\r?\n([\s\S]*?)```/g,M=0,z=0,D=E.exec(x);for(;D!==null;){let Q=s(x.slice(M,D.index));Q&&I.push({kind:"markdown",key:`md-${z}`,html:Q});let ae=D[1],ne=D[2].trim();if(ae==="pl-card"){let ve=II(ne);ve.ok?I.push({kind:"card",key:`card-${z}`,spec:ve.spec}):(typeof console<"u"&&console.warn("[pl-card] parse_failed",{reason:ve.reason,message:ve.message,payloadChars:ne.length}),I.push({kind:"markdown",key:`card-${z}`,html:s(`\`\`\`
160
+ Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+Nr(n.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(n);throw n}}},po=new W5;et.options=et.setOptions=function(e){return po.setOptions(e),et.defaults=po.defaults,x2(et.defaults),et},et.getDefaults=G0,et.defaults=fo;et.use=G5,et.walkTokens=function(e,t){return po.walkTokens(e,t)},et.parseInline=po.parseInline,et.Parser=en,et.parser=en.parse,et.Renderer=vp,et.TextRenderer=ty,et.Lexer=Qr,et.lexer=Qr.lex,et.Tokenizer=gp,et.Hooks=Fl,et.parse=et,et.options,et.setOptions,et.walkTokens,et.parseInline,en.parse,Qr.lex;J5=["aria-label"],q5={class:"px-4 pb-2 pt-4"},Y5=["innerHTML"],X5=["onClick"],Q5=Ue({__name:"ChatCardBlock",props:{spec:{},inverted:{type:Boolean}},emits:["action"],setup(e,{emit:t}){let n=e,i=t,r=P(()=>{if(!n.spec.body)return"";let f=et.parse(n.spec.body,{async:!1});return k2.sanitize(f,{ADD_ATTR:["target"]})}),o=P(()=>n.inverted?"rgba(255, 255, 255, 0.22)":"rgba(0, 0, 0, 0.16)"),a=P(()=>n.inverted?"rgba(255, 255, 255, 0.12)":"color-mix(in oklch, var(--color-theme-200) 80%, transparent)"),s=P(()=>n.inverted?"rgba(255, 255, 255, 0.95)":"var(--color-theme-900)"),l=P(()=>n.inverted?"rgba(255, 255, 255, 0.8)":"var(--color-theme-800)"),u=P(()=>n.inverted?`inset 0 0 0 1px ${o.value}`:`inset 0 0 0 1px ${o.value}, 0 4px 16px rgba(15, 23, 42, 0.05)`),d=P(()=>n.inverted?"transparent":"var(--color-theme-0)");function p(f){return f==="primary"||f==="destructive"?{background:n.inverted?"rgba(255, 255, 255, 0.92)":"var(--color-theme-900)",color:n.inverted?"var(--color-theme-900)":"#fff"}:{background:"var(--color-theme-100)",color:s.value}}return(f,m)=>(w(),_("div",{"data-test":"chat-card",class:"my-6 w-full self-start overflow-hidden rounded-2xl",style:_e({background:d.value,boxShadow:u.value}),"aria-label":e.spec.title},[k("div",q5,[k("div",{class:"text-[14px] font-semibold leading-tight",style:_e({color:s.value})},ue(e.spec.title),5)]),r.value?(w(),_("div",{key:0,class:"chat-msg-prose px-4 pb-4 pt-2 text-[14px] leading-relaxed",style:_e({color:l.value}),innerHTML:r.value},null,12,Y5)):ee("",!0),e.spec.actions?.length?(w(),_("div",{key:1,class:"flex flex-wrap items-center gap-2 px-3 py-2.5",style:_e({borderTop:`1px solid ${a.value}`})},[(w(!0),_(ge,null,st(e.spec.actions,h=>(w(),_("button",{key:h.label,type:"button","data-test":"chat-card-action",class:"inline-flex h-10 items-center justify-center rounded-full px-5 text-[14px] font-semibold transition-colors duration-150 active:opacity-80",style:_e(p(h.style)),onClick:v=>i("action",h.reply)},ue(h.label),13,X5))),128))],4)):ee("",!0)],12,J5))}}),p2=112,U0=52,up=14,ja=54,f2=34,eP=260;sP=5.4,lP=10,cP=15,uP=16;pP=["data-visual-type","data-chart-type","data-stacking","data-diagram-type","aria-label"],fP={class:"mb-2.5"},mP=["aria-label"],hP={key:0,"data-test":"chat-visual-horizontal-bars",class:"grid gap-3"},gP={class:"mb-1 flex items-start justify-between gap-3 text-[12px]"},vP=["viewBox"],bP=["x1","x2","y1","y2"],yP=["x","y"],wP=["data-row-index","data-series-index","data-data-key","x","y","width","height"],kP=["data-trend-key","d"],xP=["d"],_P=["cx","cy"],$P=["cx","cy"],SP=["x","y","text-anchor","transform"],IP={key:2,class:"mt-2.5 flex flex-wrap items-center gap-x-4 gap-y-1.5"},EP={key:1,class:"grid gap-3"},TP={class:"mb-1 flex items-baseline justify-between gap-3 text-[12px]"},NP={class:"shrink-0 tabular-nums"},CP={key:2,class:"overflow-x-auto"},zP=["viewBox","aria-label"],OP=["data-from","data-to","x1","y1","x2","y2"],AP=["cx","cy"],DP=["x","y"],PP=["data-node-id","data-node-kind","transform"],RP=["points"],UP=["width","height"],jP=["width","height"],MP={xmlns:"http://www.w3.org/1999/xhtml",class:"flex h-full min-w-0 flex-col items-center justify-center text-center"},LP=Ue({__name:"ChatVisualBlock",props:{result:{},inverted:{type:Boolean}},setup(e){let t=e,n=q(),i=We(360),r;Pt(()=>{typeof ResizeObserver>"u"||!n.value||(r=new ResizeObserver($=>{let T=$[0]?.contentRect.width;T&&(i.value=Math.round(T))}),r.observe(n.value))}),Sa(()=>r?.disconnect());let o=P(()=>Math.min(720,Math.max(280,i.value))),a=P(()=>t.result.ok?t.result.spec:null),s=P(()=>a.value?.visualType==="chart"?a.value:null),l=P(()=>a.value?.visualType==="diagram"?a.value:null);function u($){return $?.chartType==="bar"||$?.chartType==="line"||$?.chartType==="scatter"}function d($){return $?.chartType==="pie"}let p=P(()=>s.value?.data??[]),f=P(()=>u(s.value)?s.value:null),m=P(()=>f.value?.series??[]),h=P(()=>d(s.value)?s.value:null),v=P(()=>f.value?.chartType==="bar"&&f.value.stacking==="stacked");function x($){return typeof $=="number"&&Number.isFinite($)?$:null}function A($,T){return String($[T]??"").trim()}function I($,T){let y=$.map(U=>A(U,T)).filter(Boolean);if(!y.length)return!1;let R=Math.max(...y.map(U=>U.length)),O=y.reduce((U,se)=>U+se.length,0)/y.length;return R>=16||y.length>5&&O>=10}function E($,T){return $.data.map((y,R)=>{let O=x(y[T]);return O===null?null:{index:R,value:O}}).filter(y=>y!==null)}function M($){if($.length<2)return null;let T=$.length,y=$.reduce((pe,he)=>pe+he.index,0),R=$.reduce((pe,he)=>pe+he.value,0),O=$.reduce((pe,he)=>pe+he.index*he.index,0),U=$.reduce((pe,he)=>pe+he.index*he.value,0),se=T*O-y*y;if(se===0)return null;let te=(T*U-y*R)/se;return{slope:te,intercept:(R-te*y)/T}}let z=P(()=>{let $=[],T=f.value;if(!T)return $;if(T.chartType==="bar"&&T.stacking==="stacked")for(let y of T.data){let R=0,O=0;for(let U of T.series){let se=x(y[U.dataKey]);se!==null&&(se>=0?R+=se:O+=se)}$.push(R,O)}else for(let y of T.data)for(let R of T.series){let O=x(y[R.dataKey]);O!==null&&$.push(O)}if(T.trendLine&&(T.chartType==="line"||T.chartType==="scatter")){let y=E(T,T.trendLine.dataKey);$.push(...y.map(O=>O.value));let R=M(y);if(R&&y.length){let O=y[0].index,U=y[y.length-1].index;$.push(R.intercept+R.slope*O,R.intercept+R.slope*U)}}return $});function D($,T){let y=$>0?$:1,R=Math.floor(Math.log10(y)),O=y/10**R,U;return U=T?O<1.5?1:O<3?2:O<7?5:10:O<=1?1:O<=2?2:O<=5?5:10,U*10**R}let X=P(()=>{let $=z.value,T=$.length?Math.max(0,...$):1,y=$.length?Math.min(0,...$):0;if(y===T)return{min:0,max:T||1,ticks:[0,T||1]};let R=D(D(T-y,!1)/3,!0),O=Math.floor(y/R)*R,U=Math.ceil(T/R)*R,se=[];for(let te=O;te<=U+R*.5;te+=R)se.push(Number(te.toFixed(6)));return{min:O,max:U,ticks:se}}),le=P(()=>oP({series:m.value})),ie=P(()=>{let $=f.value;if(!$)return{mode:"horizontal",entries:[]};let T=$.xKey;return dP({labels:$.data.map(y=>String(y?.[T]??"")),plotWidth:Math.max(200,o.value-42)})}),Q=P(()=>{let $=le.value?.valueFormat,T=!!(le.value&&($==="currency"||$==="percent"||le.value.valuePrefix||le.value.valueSuffix)),y=$==="duration"?46:T?38:30,R=ie.value.mode==="angled";return{width:o.value,height:168+(R?36:0),left:y,right:12,top:10,bottom:24+(R?36:0)}});function ae($,T){let y=f.value,R=Q.value;if(y?.chartType==="bar"){let O=R.width-R.left-R.right;return R.left+($+.5)*(O/Math.max(T,1))}return ne($,T)}function ne($,T){let y=Q.value,R=y.width-y.left-y.right;return T<=1?y.left+R/2:y.left+R*$/(T-1)}function ve($){let{min:T,max:y}=X.value,R=Q.value,O=R.height-R.top-R.bottom;return R.top+(y-$)/(y-T||1)*O}function Le($){let T=f.value;return T?T.data.map((y,R)=>{let O=x(y[$])??0;return`${R===0?"M":"L"} ${ne(R,T.data.length).toFixed(1)} ${ve(O).toFixed(1)}`}).join(" "):""}let mt=P(()=>{let $=f.value;if(!$?.trendLine||$.chartType!=="line"&&$.chartType!=="scatter")return null;let T=E($,$.trendLine.dataKey),y=M(T);if(!y||!T.length)return null;let R=T[0].index,O=T[T.length-1].index,U=y.intercept+y.slope*R,se=y.intercept+y.slope*O,te=Math.max(0,$.series.findIndex(pe=>pe.dataKey===$.trendLine?.dataKey));return{path:`M ${ne(R,$.data.length).toFixed(1)} ${ve(U).toFixed(1)} L ${ne(O,$.data.length).toFixed(1)} ${ve(se).toFixed(1)}`,dataKey:$.trendLine.dataKey,seriesIndex:te}}),ht=P(()=>{let $=f.value;if(!$||$.chartType!=="bar")return[];let T=Q.value,y=(T.width-T.left-T.right)/Math.max($.data.length,1),R=ve(0);if(v.value){let pe=Math.max(4,Math.min(24,y*.42));return $.data.flatMap((he,$e)=>{let Te=0,Ne=0,qe=T.left+$e*y+(y-pe)/2;return $.series.map((Xe,zt)=>{let St=x(he[Xe.dataKey])??0,rr=St>=0?Te:Ne,be=rr+St,ct=ve(rr),it=ve(be);return St>=0?Te=be:Ne=be,{key:`${$e}-${Xe.dataKey}`,x:qe,y:Math.min(ct,it),width:pe,height:Math.max(1.5,Math.abs(ct-it)),seriesIndex:zt,rowIndex:$e,dataKey:Xe.dataKey}})})}let O=Math.max($.series.length,1),U=O>1?2:0,se=Math.max(3,Math.min(20,(y*.62-U*(O-1))/O)),te=se*O+U*(O-1);return $.data.flatMap((pe,he)=>$.series.map(($e,Te)=>{let Ne=ve(x(pe[$e.dataKey])??0),qe=T.left+he*y+(y-te)/2+Te*(se+U);return{key:`${he}-${$e.dataKey}`,x:qe,y:Math.min(Ne,R),width:se,height:Math.max(1.5,Math.abs(R-Ne)),seriesIndex:Te,rowIndex:he,dataKey:$e.dataKey}}))}),je=P(()=>{let $=f.value;if(!$)return[];let T=$.data;if(!T.length)return[];let y=T.length-1,R=ie.value,O=R.mode==="angled";return R.entries.map(({index:U,text:se})=>({key:`${U}`,label:se,x:ae(U,T.length),anchor:O?"end":U===0?"start":U===y?"end":"middle",angled:O})).filter(U=>U.label)}),Me=P(()=>{let $=f.value;if(!$||$.chartType!=="bar"||$.series.length!==1||v.value)return[];let T=$.series[0],y=$.data.map((O,U)=>{let se=A(O,$.xKey),te=x(O[T.dataKey]);return!se||te===null?null:{key:`${U}-${se}`,label:se,rawValue:te}}).filter(O=>O!==null);if(!y.length||y.some(O=>O.rawValue<0)||!($.layout==="horizontal"||I($.data,$.xKey)))return[];let R=Math.max(...y.map(O=>O.rawValue),1);return y.map(O=>({key:O.key,label:O.label,value:j0({value:O.rawValue,series:T}),width:O.rawValue<=0?0:Math.max(2,O.rawValue/R*100),seriesIndex:0}))}),Rt=P(()=>{let $=f.value;if(!$?.data.length)return[];let T=$.data[$.data.length-1];return $.series.map((y,R)=>{let O=x(T?.[y.dataKey]);return{key:y.dataKey,label:y.label||y.dataKey,value:O===null?"\u2014":j0({value:O,series:y}),seriesIndex:R}})}),Je=P(()=>{let $=f.value;if(!$?.data.length||$.chartType!=="line")return[];let T=$.data.length-1,y=$.data[T];return $.series.map((R,O)=>{let U=x(y?.[R.dataKey]);return U===null?null:{key:R.dataKey,cx:ne(T,$.data.length),cy:ve(U),seriesIndex:O}}).filter(R=>R!==null)}),Cr=P(()=>{let $=h.value;if(!$)return[];let T=$.data.map(O=>({name:String(O[$.nameKey]??""),value:x(O[$.valueKey])??0})).filter(O=>O.name&&O.value>=0).sort((O,U)=>U.value-O.value),y=T.reduce((O,U)=>O+U.value,0)||1,R=$.series?.[0];return T.map((O,U)=>({...O,key:`${U}-${O.name}`,percent:O.value/y,display:j0({value:O.value,series:R})}))}),wt=P(()=>l.value?iP(l.value,{maxWidth:i.value}):null),xt=["var(--color-theme-900)","var(--color-primary-500)","color-mix(in oklch, var(--color-primary-500) 55%, var(--color-theme-500))"],Fr=["rgba(255, 255, 255, 0.92)","color-mix(in oklch, white 30%, var(--color-primary-500))","rgba(255, 255, 255, 0.55)"];function Tt($){let T=t.inverted?Fr:xt;return T[$%T.length]}function Wn($){return t.inverted?$==="decision"?"rgba(255, 255, 255, 0.1)":"rgba(255, 255, 255, 0.06)":$==="decision"?"color-mix(in oklch, var(--color-primary-500) 6%, var(--color-theme-0))":$==="output"?"color-mix(in oklch, var(--color-theme-900) 5%, var(--color-theme-0))":"var(--color-theme-0)"}function Nt($){return t.inverted?"rgba(255, 255, 255, 0.22)":zr.value}let Ft=P(()=>t.inverted?"rgba(255, 255, 255, 0.95)":"var(--color-theme-900)"),er=P(()=>t.inverted?"rgba(255, 255, 255, 0.6)":"var(--color-theme-500)"),Ye=P(()=>t.inverted?"rgba(255, 255, 255, 0.45)":"color-mix(in oklch, var(--color-theme-900) 42%, transparent)"),tr=P(()=>t.inverted?"rgba(255, 255, 255, 0.1)":"color-mix(in oklch, var(--color-theme-900) 8%, transparent)"),Ve=P(()=>t.inverted?"rgba(255, 255, 255, 0.24)":"color-mix(in oklch, var(--color-theme-900) 18%, transparent)"),zr=P(()=>t.inverted?"rgba(255, 255, 255, 0.16)":"color-mix(in oklch, var(--color-theme-300) 55%, transparent)"),b=P(()=>t.inverted?"rgba(255, 255, 255, 0.14)":"color-mix(in oklch, var(--color-theme-900) 10%, transparent)"),S=P(()=>t.inverted?"transparent":"var(--color-theme-0)"),L=P(()=>t.inverted?"rgba(255, 255, 255, 0.18)":"color-mix(in oklch, var(--color-theme-900) 16%, transparent)"),J=P(()=>t.inverted?"rgba(255, 255, 255, 0.12)":"color-mix(in oklch, var(--color-theme-900) 9%, transparent)");return($,T)=>a.value?(w(),_("section",{key:0,"data-test":"chat-visual","data-visual-type":a.value.visualType,"data-chart-type":s.value?.chartType,"data-stacking":v.value?"stacked":void 0,"data-diagram-type":l.value?.diagramType,class:"my-6 w-full rounded-[20px] px-4 pb-3.5 pt-4",style:_e({background:S.value,boxShadow:`inset 0 0 0 1px ${b.value}`}),"aria-label":a.value.meta.title},[k("header",fP,[k("h4",{class:"text-[13px] font-semibold leading-tight",style:_e({color:Ft.value})},ue(a.value.meta.title),5),a.value.meta.description?(w(),_("p",{key:0,class:"mt-0.5 text-[12px] leading-snug",style:_e({color:er.value})},ue(a.value.meta.description),5)):ee("",!0)]),k("div",{ref_key:"bodyEl",ref:n},[f.value?(w(),_("div",{key:0,role:"img","aria-label":a.value.meta.title},[Me.value.length?(w(),_("div",hP,[(w(!0),_(ge,null,st(Me.value,y=>(w(),_("div",{key:y.key,"data-test":"chat-visual-horizontal-bar",class:"min-w-0"},[k("div",gP,[k("span",{class:"line-clamp-2 min-w-0 font-medium leading-snug",style:_e({color:Ft.value})},ue(y.label),5),k("span",{class:"shrink-0 font-semibold tabular-nums",style:_e({color:Ft.value})},ue(y.value),5)]),k("div",{class:"h-2 w-full overflow-hidden rounded-full",style:_e({background:J.value})},[k("div",{class:"h-full rounded-full",style:_e({width:`${y.width}%`,background:Tt(y.seriesIndex)})},null,4)],4)]))),128))])):(w(),_("svg",{key:1,class:"block h-auto w-full overflow-visible",viewBox:`0 0 ${Q.value.width} ${Q.value.height}`,style:_e({aspectRatio:`${Q.value.width} / ${Q.value.height}`}),preserveAspectRatio:"xMidYMid meet","aria-hidden":"true"},[(w(!0),_(ge,null,st(X.value.ticks,y=>(w(),_("line",{key:`grid-${y}`,x1:Q.value.left,x2:Q.value.width-Q.value.right,y1:ve(y),y2:ve(y),"stroke-width":"1","vector-effect":"non-scaling-stroke",style:_e({stroke:y===0?Ve.value:tr.value})},null,12,bP))),128)),k("g",null,[(w(!0),_(ge,null,st(X.value.ticks,y=>(w(),_("text",{key:`y-${y}`,x:Q.value.left-7,y:ve(y)+3,"text-anchor":"end","font-size":"9.5",style:_e({fill:Ye.value})},ue(Ce(aP)({value:y,shared:le.value})),13,yP))),128))]),f.value.chartType==="bar"?(w(!0),_(ge,{key:0},st(ht.value,y=>(w(),_("rect",{key:y.key,"data-test":"chat-visual-bar","data-row-index":y.rowIndex,"data-series-index":y.seriesIndex,"data-data-key":y.dataKey,x:y.x,y:y.y,width:y.width,height:y.height,rx:"2.5",style:_e({fill:Tt(y.seriesIndex)})},null,12,wP))),128)):(w(),_(ge,{key:1},[mt.value?(w(),_("path",{key:0,"data-test":"chat-visual-trend-line","data-trend-key":mt.value.dataKey,d:mt.value.path,fill:"none","stroke-width":"1.4","stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":"4 3","vector-effect":"non-scaling-stroke",style:_e({stroke:Tt(mt.value.seriesIndex)})},null,12,kP)):ee("",!0),(w(!0),_(ge,null,st(m.value,(y,R)=>(w(),_("g",{key:y.dataKey},[f.value.chartType==="line"?(w(),_("path",{key:0,d:Le(y.dataKey),fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","vector-effect":"non-scaling-stroke",style:_e({stroke:Tt(R)})},null,12,xP)):ee("",!0),(w(!0),_(ge,null,st(p.value,(O,U)=>(w(),_(ge,{key:`${y.dataKey}-${U}`},[f.value.chartType==="scatter"?(w(),_("circle",{key:0,cx:ne(U,p.value.length),cy:ve(x(O[y.dataKey])??0),r:"2.6",style:_e({fill:Tt(R)})},null,12,_P)):ee("",!0)],64))),128))]))),128)),(w(!0),_(ge,null,st(Je.value,y=>(w(),_("circle",{key:`marker-${y.key}`,cx:y.cx,cy:y.cy,r:"3",style:_e({fill:Tt(y.seriesIndex)})},null,12,$P))),128))],64)),(w(!0),_(ge,null,st(je.value,y=>(w(),_("text",{key:y.key,x:y.x,y:y.angled?Q.value.height-Q.value.bottom+12:Q.value.height-6,"text-anchor":y.anchor,"font-size":"9.5",transform:y.angled?`rotate(${Ce(-40)} ${y.x} ${Q.value.height-Q.value.bottom+12})`:void 0,style:_e({fill:Ye.value})},ue(y.label),13,SP))),128))],12,vP)),Rt.value.length>1||f.value.chartType!=="bar"?(w(),_("div",IP,[(w(!0),_(ge,null,st(Rt.value,y=>(w(),_("div",{key:y.key,class:"inline-flex items-center gap-1.5 text-[11.5px] leading-none"},[k("span",{class:"size-2.5 shrink-0 rounded-full",style:_e({background:Tt(y.seriesIndex)})},null,4),k("span",{style:_e({color:er.value})},ue(y.label),5),k("span",{class:"font-semibold tabular-nums",style:_e({color:Ft.value})},ue(y.value),5)]))),128))])):ee("",!0)],8,mP)):h.value?(w(),_("div",EP,[(w(!0),_(ge,null,st(Cr.value,(y,R)=>(w(),_("div",{key:y.key},[k("div",TP,[k("span",{class:"truncate font-medium",style:_e({color:Ft.value})},ue(y.name),5),k("span",NP,[k("span",{class:"font-semibold",style:_e({color:Ft.value})},ue(y.display),5),k("span",{class:"ml-1.5",style:_e({color:er.value})},ue(Math.round(y.percent*100))+"%",5)])]),k("div",{class:"h-1.5 w-full overflow-hidden rounded-full",style:_e({background:J.value})},[k("div",{class:"h-full rounded-full",style:_e({width:`${Math.max(2,y.percent*100)}%`,background:Tt(R)})},null,4)],4)]))),128))])):l.value&&wt.value?(w(),_("div",CP,[(w(),_("svg",{"data-test":"chat-visual-diagram-svg",class:"block h-auto overflow-visible",viewBox:`0 0 ${wt.value.width} ${wt.value.height}`,style:_e({width:`${wt.value.width}px`,aspectRatio:`${wt.value.width} / ${wt.value.height}`}),role:"img","aria-label":a.value.meta.title},[(w(!0),_(ge,null,st(wt.value.edges,y=>(w(),_("line",{key:y.key,"data-test":"chat-visual-diagram-edge","data-from":y.from,"data-to":y.to,x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,"stroke-width":"1.4","stroke-linecap":"round","vector-effect":"non-scaling-stroke",style:_e({stroke:L.value})},null,12,OP))),128)),(w(!0),_(ge,null,st(wt.value.edges,y=>(w(),_("circle",{key:`${y.key}-dot`,cx:y.x2,cy:y.y2,r:"2.4",style:_e({fill:L.value})},null,12,AP))),128)),(w(!0),_(ge,null,st(wt.value.edges.filter(y=>y.label),y=>(w(),_("foreignObject",{key:`${y.key}-label`,x:y.labelX-55,y:y.labelY-12,width:"110",height:"24"},[k("div",{xmlns:"http://www.w3.org/1999/xhtml",class:"flex h-full items-center justify-center px-1 text-center text-[10.5px] font-medium leading-none",style:_e({color:er.value,background:t.inverted?"var(--color-theme-900)":"var(--color-theme-0)"})},ue(y.label),5)],8,DP))),128)),(w(!0),_(ge,null,st(wt.value.nodes,y=>(w(),_("g",{key:y.id,"data-test":"chat-visual-diagram-node","data-node-id":y.id,"data-node-kind":y.kind,transform:`translate(${y.x} ${y.y})`},[y.kind==="decision"?(w(),_("polygon",{key:0,points:`${y.width/2},0 ${y.width},${y.height/2} ${y.width/2},${y.height} 0,${y.height/2}`,"stroke-width":"1","vector-effect":"non-scaling-stroke",style:_e({fill:Wn(y.kind),stroke:Nt(y.kind)})},null,12,RP)):(w(),_("rect",{key:1,width:y.width,height:y.height,rx:"9","stroke-width":"1","vector-effect":"non-scaling-stroke",style:_e({fill:Wn(y.kind),stroke:Nt(y.kind)})},null,12,UP)),(w(),_("foreignObject",{x:"8",y:"5",width:y.width-16,height:y.height-10},[k("div",MP,[k("div",{class:"line-clamp-2 text-[13px] font-medium leading-snug",style:_e({color:Ft.value})},ue(y.label),5),y.detail?(w(),_("div",{key:0,class:"mt-0.5 line-clamp-1 text-[10.5px] leading-none",style:_e({color:er.value})},ue(y.detail),5)):ee("",!0)])],8,jP))],8,PP))),128))],12,zP))])):ee("",!0)],512),a.value.meta.footer?(w(),_("footer",{key:0,class:"mt-3 text-[11px] leading-snug",style:_e({color:Ye.value})},ue(a.value.meta.footer),5)):ee("",!0)],12,pP)):ee("",!0)}}),VP=["innerHTML"],Ml=Ue({__name:"ChatRichText",props:{text:{},inverted:{type:Boolean},streaming:{type:Boolean}},emits:["action"],setup(e,{emit:t}){let n=e,i=t,r=We(n.text),o;ft([()=>n.text,()=>n.streaming],([v,x])=>{if(!x){o!==void 0&&(cancelAnimationFrame(o),o=void 0),r.value=v;return}o===void 0&&(o=requestAnimationFrame(()=>{o=void 0,r.value=n.text}))}),Sa(()=>{o!==void 0&&cancelAnimationFrame(o)});let a=new et.Renderer;a.link=({href:v,text:x})=>{let A=v.trim();if(!A||A==="#")return x;let I=!1;if(typeof window<"u")try{I=new URL(v,window.location.href).origin===window.location.origin}catch{I=!1}return I?`<a href="${v}">${x}</a>`:`<a href="${v}" target="_blank" rel="noopener noreferrer">${x}</a>`},et.setOptions({breaks:!0,gfm:!0,renderer:a});function s(v){if(!v)return"";let x=et.parse(v,{async:!1});return k2.sanitize(x,{ADD_ATTR:["target"],ADD_DATA_URI_TAGS:["img"]})}function l(v){if(typeof v!="string")return null;let x=v.trim();return x?x.slice(0,80):null}function u(v){try{let x=JSON.parse(v);if(!x||typeof x!="object"||Array.isArray(x))return{topLevelKeys:[],declaredVisualType:null,declaredChartType:null,declaredDiagramType:null,inputType:null};let A=x;return{topLevelKeys:Object.keys(A).sort().slice(0,24),declaredVisualType:l(A.visualType),declaredChartType:l(A.chartType),declaredDiagramType:l(A.diagramType),inputType:l(A.type)}}catch{return{topLevelKeys:[],declaredVisualType:null,declaredChartType:null,declaredDiagramType:null,inputType:null}}}function d(v){if(typeof window>"u")return null;try{return new URL(v.currentSrc||v.src,window.location.href).host||null}catch{return null}}function p(v){typeof HTMLImageElement>"u"||!(v.target instanceof HTMLImageElement)||typeof console<"u"&&console.warn("[chat-image] load_failed",{host:d(v.target),altPresent:!!v.target.alt?.trim(),width:v.target.naturalWidth||null,height:v.target.naturalHeight||null})}let f=/```(?:pl-visual|pl-platform-visual|pl-card)[ \t]*(?:\r?\n|$)/;function m(v){let{text:x,streaming:A}=v,I=[],E=/```(pl-visual|pl-platform-visual|pl-card)[ \t]*\r?\n([\s\S]*?)```/g,M=0,z=0,D=E.exec(x);for(;D!==null;){let Q=s(x.slice(M,D.index));Q&&I.push({kind:"markdown",key:`md-${z}`,html:Q});let ae=D[1],ne=D[2].trim();if(ae==="pl-card"){let ve=II(ne);ve.ok?I.push({kind:"card",key:`card-${z}`,spec:ve.spec}):(typeof console<"u"&&console.warn("[pl-card] parse_failed",{reason:ve.reason,message:ve.message,payloadChars:ne.length}),I.push({kind:"markdown",key:`card-${z}`,html:s(`\`\`\`
161
161
  ${ne}
162
- \`\`\``)}))}else{let ve=zI(ne);if(ve.ok)I.push({kind:"visual",key:`visual-${z}`,result:ve});else{typeof console<"u"&&console.warn("[pl-visual] parse_failed",{reason:ve.reason,message:ve.message,hasFallbackMarkdown:!!ve.fallbackMarkdown,payloadChars:ne.length,...u(ne)});let Le=ve.fallbackMarkdown?s(ve.fallbackMarkdown):"";Le&&I.push({kind:"markdown",key:`visual-${z}`,html:Le})}}M=D.index+D[0].length,z+=1,D=E.exec(x)}let X=x.slice(M),ce=A?f.exec(X):null;if(ce){let Q=s(X.slice(0,ce.index));return Q&&I.push({kind:"markdown",key:`md-${z}`,html:Q}),I.push({kind:"pending-visual",key:`pending-${z}`}),I}let ie=s(X);return ie&&I.push({kind:"markdown",key:`md-${z}`,html:ie}),I}let h=P(()=>{let v=r.value;return v?m({text:v,streaming:!!n.streaming}):[]});return(v,x)=>(w(),_("div",{class:"chat-msg-rich break-words text-[14px] leading-[1.55] @sm/chat:text-[15px] @sm/chat:leading-[1.5]",onErrorCapture:p},[(w(!0),_(ge,null,st(h.value,A=>(w(),_(ge,{key:A.key},[A.kind==="markdown"?(w(),_("div",{key:0,class:V(["chat-msg-prose",e.inverted?"chat-msg-prose-invert":""]),innerHTML:A.html},null,10,VP)):A.kind==="visual"?(w(),Ge(LP,{key:1,result:A.result,inverted:e.inverted},null,8,["result","inverted"])):A.kind==="card"?(w(),Ge(Q5,{key:2,spec:A.spec,inverted:e.inverted,onAction:x[0]||(x[0]=I=>i("action",I))},null,8,["spec","inverted"])):(w(),_("div",{key:3,"data-test":"chat-visual-pending",role:"status",class:"my-6 flex items-center gap-2.5 rounded-[20px] px-4 py-5 text-[12px] font-medium",style:_e({background:e.inverted?"transparent":"var(--color-theme-0)",boxShadow:`inset 0 0 0 1px ${e.inverted?"rgba(255, 255, 255, 0.14)":"color-mix(in oklch, var(--color-theme-900) 8%, transparent)"}`,color:e.inverted?"rgba(255, 255, 255, 0.6)":"var(--color-theme-500)"})},[...x[1]||(x[1]=[k("span",{class:"size-2 shrink-0 animate-pulse rounded-full",style:{background:"currentcolor"}},null,-1),$t(" Preparing chart\u2026 ",-1)])],4))],64))),128))],32))}}),FP=80,BP=600,ZP=Ue({__name:"ChatScroller",setup(e,{expose:t}){let n=q(),i=q(),r=q(!0),o,a,s=0;function l(){let m=n.value;m&&(m.scrollTop=m.scrollHeight)}function u(){let m=n.value;m&&(r.value=m.scrollHeight-m.scrollTop-m.clientHeight<=FP)}function d(){s=Date.now()+BP}function p(){r.value&&Date.now()>s&&l()}function f(){r.value=!0,s=0,l(),requestAnimationFrame(()=>{l(),requestAnimationFrame(l)})}return t({pin:f}),Pt(()=>{requestAnimationFrame(()=>{l(),requestAnimationFrame(l)}),i.value&&(o=new ResizeObserver(p),o.observe(i.value),n.value&&o.observe(n.value),a=new MutationObserver(p),a.observe(i.value,{childList:!0,subtree:!0}))}),Sa(()=>{o?.disconnect(),a?.disconnect()}),(m,h)=>(w(),_("div",{ref_key:"viewport",ref:n,class:V(["overflow-y-auto overscroll-contain overflow-x-hidden min-h-0 flex flex-col [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",r.value?"[overflow-anchor:none]":""]),onScrollPassive:u,onWheelPassive:d,onTouchstartPassive:d},[k("div",{ref_key:"content",ref:i,class:"flex-1 flex flex-col"},[fr(m.$slots,"default")],512)],34))}}),HP={VOICE_MIC_UNAVAILABLE:"I couldn't reach your microphone. Check that this site is allowed to use it, then try again.",VOICE_BOT_UNAVAILABLE:"Your assistant didn't pick up. Give it a moment and start the call again.",VOICE_CONNECT_TIMEOUT:"The call took too long to connect. Try again in a moment.",VOICE_CONNECTION_LOST:"The call dropped. Start it again when you're ready.",VOICE_BUSY:"Your assistant is on another call. Try again in a moment, or keep going by typing.",VOICE_UNAVAILABLE:"Voice isn't available right now. You can keep going by typing.",VOICE_MINT_INVALID:"That call couldn't be started. Refresh the page and try again.",VOICE_PROVIDER_ERROR:"The call ended unexpectedly. Try again, or keep going by typing."},KP="The call ended unexpectedly. Try again, or keep going by typing.";bp=[0,2,4,6,8],D2=5,GP=33,JP=.7,qP=.1,YP=60,XP=320,QP=.55,eR=.1,tR=.32,rR=.9,M0=bp.map(()=>0),nR=bp.map(()=>D2),iR=class{constructor(e=typeof window>"u"?void 0:window){W(this,"browser",void 0),W(this,"heights",We(nR)),W(this,"targetBars",M0),W(this,"displayBars",M0),W(this,"level",{source:"mic",level:0}),W(this,"isMuted",!1),W(this,"usesIdleWave",!1),W(this,"frameId",0),W(this,"lastFrameAt",0),W(this,"easeFrame",t=>{let n=this.browser;if(!n)return;this.frameId=0;let i=Math.min(64,Math.max(0,t-this.lastFrameAt));this.lastFrameAt=t;let r=this.usesIdleWave?bp.map((a,s)=>{let l=t/1e3*QP*2*Math.PI-s*rR;return eR+tR*(Math.sin(l)+1)/2}):this.targetBars;this.displayBars=this.displayBars.map((a,s)=>{let l=r[s]??0,u=l>a?YP:XP;return a+(l-a)*(1-Math.exp(-i/u))}),this.publish();let o=this.displayBars.every((a,s)=>Math.abs((r[s]??0)-a)<=5e-4);(this.usesIdleWave||!o)&&(this.frameId=n.requestAnimationFrame(this.easeFrame))}),this.browser=e}updateLevel(e){this.level=e,this.updateTargets()}setMuted(e){this.isMuted=e,this.updateTargets()}setIdleWave(e){this.usesIdleWave!==e&&(this.usesIdleWave=e,this.start())}stop(){this.frameId&&this.browser?.cancelAnimationFrame(this.frameId),this.frameId=0}updateTargets(){let e=n=>Math.max(0,n-qP)/.9,t=this.isMuted&&this.level.source==="mic";this.targetBars=bp.map(n=>t?0:e(Math.min(1,Math.max(0,this.level.bands?.[n]??this.level.level)))),this.start()}start(){if(!this.browser||this.browser.matchMedia("(prefers-reduced-motion: reduce)").matches){this.displayBars=this.usesIdleWave?M0:this.targetBars,this.publish();return}this.frameId||(this.lastFrameAt=this.browser.performance.now(),this.frameId=this.browser.requestAnimationFrame(this.easeFrame))}publish(){this.heights.value=this.displayBars.map(e=>Math.round((D2+Math.min(1,Math.max(0,e))**JP*GP)*10)/10)}},oR={connecting:{label:"Connecting",tone:"bg-amber-500",waits:!0},listening:{label:"Listening",tone:"bg-green-500",waits:!1},thinking:{label:"Thinking",tone:"bg-amber-500",waits:!0,visibleText:"Thinking"},working:{label:"Working",tone:"bg-primary-500",waits:!0},speaking:{label:"Speaking",tone:"bg-primary-500",waits:!1},error:{label:"Connection problem",tone:"bg-red-500",waits:!1,visibleText:"Connection lost"}};lR=["data-voice-state","data-voice-activity"],cR=["src"],uR={key:1,"data-test":"voice-background-fallback","aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-[#0A1522]"},dR={"data-test":"voice-stage",class:"relative z-10 flex flex-1 flex-col items-center px-8"},pR={"data-voice-assistant-avatar":""},fR={"data-test":"voice-lower-stage",class:"flex flex-1 flex-col items-center pt-10"},mR={"data-test":"voice-histogram","aria-hidden":"true",class:"flex h-[38px] items-center gap-[5px]"},hR={"data-test":"voice-presence-status",role:"status","aria-live":"polite",class:"sr-only"},gR=["data-taking-longer"],vR={class:"absolute inset-x-0 bottom-0 z-20 flex items-center justify-between px-14 pb-[max(3rem,env(safe-area-inset-bottom))] sm:px-12"},bR=["disabled","aria-label","aria-pressed","title"],yR=Ue({__name:"VoiceMode",props:{bot:{},chatController:{},isLight:{type:Boolean},backdropSrc:{}},emits:["end"],setup(e,{expose:t,emit:n}){let i=n,r=We(!1),o=We(!1),a=We({user:!1,bot:!1}),s=We({active:!1}),l=We(!1),u=We(!1),d=We(),p=P(()=>d.value?.state.value??"idle"),f=P(()=>d.value?.isMuted.value??!1),m=new iR,h=m.heights,v=Xb("endButton"),x=Xb("muteButton"),A=!1,I,E,M=P(()=>sR({sessionState:p.value,hadError:r.value,providerThinking:o.value,speaking:a.value,work:s.value,isMuted:f.value,takingLonger:l.value})),z=P(()=>{if(M.value.activity==="thinking")return"thinking";if(M.value.activity==="working")return`working:${s.value.description??""}`});ft(()=>M.value.usesIdleWave,Q=>m.setIdleWave(Q),{immediate:!0}),ft(f,Q=>m.setMuted(Q),{immediate:!0}),ft(z,Q=>{E&&clearTimeout(E),l.value=!1,Q&&(E=setTimeout(()=>{E=void 0,l.value=!0},h2),E.unref?.())},{immediate:!0});async function D(){A=!0,await d.value?.end()}t({end:D});function X(){A||(A=!0,i("end"))}function ce(Q){Q.shiftKey&&document.activeElement===v.value?(Q.preventDefault(),x.value?.focus()):!Q.shiftKey&&document.activeElement===x.value&&(Q.preventDefault(),v.value?.focus())}async function ie(){let Q=d.value;Q&&!u.value&&(u.value=!0,await Q.toggleMuted(),u.value=!1)}return Pt(async()=>{v.value?.focus({preventScroll:!0});let Q=e.chatController?.createVoiceClient({onLevel:ae=>m.updateLevel(ae),onStateChange:ae=>{ae==="ended"&&(r.value?I=setTimeout(X,1600):X())},onThinkingChange:ae=>{o.value=ae},onSpeakingChange:ae=>{a.value=ae},onWorkChange:ae=>{s.value=ae},onError:ae=>{r.value=!0,e.chatController?.notify?.(WP(ae.code)),e.chatController?.logger?.warn("voice.session.failed",{code:ae.code,providerMessage:ae.message})},onMetric:ae=>{e.chatController?.logger?.info(ae.name,{durationMs:ae.durationMs})}});if(!Q){X();return}d.value=Q,await Q.start()}),qr(()=>{A=!0,I&&clearTimeout(I),E&&clearTimeout(E),m.stop(),d.value?.end()}),(Q,ae)=>(w(),_("div",{"data-test":"voice-mode","data-voice-state":p.value,"data-voice-activity":M.value.activity,class:"relative flex min-h-0 flex-1 flex-col overflow-hidden bg-[#0A1522] text-white",onKeydown:Vn(ce,["tab"])},[e.backdropSrc?(w(),_("img",{key:0,"data-test":"voice-background-image",src:e.backdropSrc,alt:"","aria-hidden":"true",draggable:"false",class:"pointer-events-none absolute inset-0 size-full object-cover"},null,8,cR)):(w(),_("div",uR)),ae[2]||(ae[2]=k("div",{"data-test":"voice-background-overlay","aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-gradient-to-b from-[#050F19]/82 via-[#050F19]/90 to-[#050F19]/99"},null,-1)),k("div",dR,[ae[0]||(ae[0]=k("div",{"data-test":"voice-stage-spacer","aria-hidden":"true",class:"flex-1"},null,-1)),k("div",pR,[ye(F0,{bot:e.bot,"show-status":!1,"show-owner-mark":!1,"is-light":!1,class:"size-32"},null,8,["bot"])]),k("div",fR,[k("div",mR,[(w(!0),_(ge,null,st(Ce(h),(ne,ve)=>(w(),_("span",{key:ve,"data-test":"voice-histogram-bar",class:V(["w-[5px] rounded-full transition-colors duration-150",M.value.tone]),style:_e({height:`${ne}px`})},null,6))),128))]),k("div",hR,le(M.value.label),1),k("p",{"data-test":"voice-visible-status","data-taking-longer":M.value.takingLonger||void 0,"aria-hidden":"true",class:"mt-5 min-h-5 text-center text-sm font-medium tracking-wide text-white/80"},le(M.value.visibleStatus),9,gR)])]),k("div",vR,[k("button",{ref_key:"endButton",ref:v,type:"button","data-test":"voice-end-btn",class:"flex size-16 cursor-pointer items-center justify-center rounded-full bg-white/10 text-white ring-1 ring-white/20 transition-colors hover:bg-white/15 active:bg-white/25","aria-label":"Hang up",title:"Hang up",onClick:X},[...ae[1]||(ae[1]=[k("i",{class:"i-tabler-x size-[25px]","aria-hidden":"true"},null,-1)])],512),k("button",{ref_key:"muteButton",ref:x,type:"button","data-test":"voice-mute-btn",class:V(["flex size-16 items-center justify-center rounded-full ring-1 transition-colors active:opacity-70",[f.value?"bg-white text-[#050F19] ring-white":"bg-white/10 text-white ring-white/20",p.value==="live"&&!u.value?"cursor-pointer":"cursor-default opacity-50"]]),disabled:p.value!=="live"||u.value,"aria-label":f.value?"Unmute microphone":"Mute microphone","aria-pressed":f.value,title:f.value?"Unmute microphone":"Mute microphone",onClick:ie},[k("i",{class:V([f.value?"i-tabler-microphone-off":"i-tabler-microphone","size-[25px]"]),"aria-hidden":"true"},null,2)],10,bR)])],40,lR))}}),wR={key:0,class:"pb-4"},kR={key:1,"data-test":"messaging-sdk-header",class:"shrink-0 border-b border-theme-100 px-4 py-3"},xR={class:"min-w-0 flex-1"},_R={class:"truncate text-base font-semibold leading-tight text-theme-900"},$R={class:"mt-1 truncate text-sm leading-tight text-theme-500"},SR={key:0,class:"shrink-0 rounded-full bg-theme-50 px-2.5 py-1 font-mono text-[11px] font-medium text-theme-500"},IR=["aria-label"],ER={key:0,"data-test":"messaging-empty-state",class:"flex flex-col items-center justify-center px-4"},TR=["title"],NR={key:0,class:"flex items-center gap-3 py-3 px-2"},CR=["data-journal-outcome"],zR=["data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-system-kind","data-issue-code","data-issue-bucket","data-issue-action-label","data-issue-action-url","data-streaming"],OR={class:"flex items-center gap-3"},AR=["href"],DR=["data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-routine-run-id"],PR=["data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-system-kind","data-issue-code","data-issue-bucket","data-streaming"],RR=["data-test","data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-system-kind","data-streaming","data-queued","aria-label"],UR=["data-routine-run-id"],jR=["src","alt"],MR=["src"],LR=["href"],VR={key:0,"data-test":"messaging-message-text-part"},FR=["src","alt","data-attachment-placement"],BR=["src","data-attachment-placement"],ZR=["href","data-attachment-placement"],HR=["data-actions-reveal"],KR=["data-copied","title","aria-label","onClick"],WR=["onClick"],GR=["data-journal-outcome"],JR=["data-journal-outcome"],qR=["data-test","data-working-description"],YR={key:0,class:"truncate"},XR={key:1,class:"sr-only"},QR=["data-issue-code"],eU={class:"min-w-0 flex-1"},tU={"data-test":"messaging-transient-issue-title",class:"font-medium"},rU={"data-test":"messaging-transient-issue-help"},nU=["href"],iU=["inert","aria-hidden"],oU=["data-seat-state"],aU=["src","alt"],sU={class:"max-w-20 truncate"},lU=["onClick"],cU={key:0,class:"shrink-0 flex items-center justify-center size-14"},uU=["data-composer-action"],dU=["placeholder","disabled"],pU={class:"font-mono text-sm tabular-nums"},fU={class:"mt-2.5 flex items-center"},mU=["disabled","aria-label","title"],hU={key:0,class:"i-svg-spinners-ring-resize size-5"},gU={key:1,class:"i-tabler-plus size-5"},vU={class:"sr-only"},bU={class:"flex items-center gap-2"},yU=["aria-label","title"],wU={class:"sr-only"},kU=["disabled","aria-label","title"],xU={class:"flex h-4 items-center gap-[2px]","aria-hidden":"true"},_U=["data-composer-action","disabled","aria-label","title"],$U={key:0,class:"i-tabler-player-stop-filled size-3.5"},SU={key:1,class:"i-tabler-arrow-up size-[17px]"},IU={class:"sr-only"},EU={key:2,"data-test":"messaging-ai-notice",class:"mx-auto max-w-[640px] @5xl/chat:max-w-[720px] pt-3 text-center text-[11.5px] leading-none text-theme-300"},mo=yp(Ue({__name:"ElBotChat",props:{chatController:{},bot:{},variant:{default:"dark"},scope:{default:"private"},scopeName:{},setupHint:{},emptyStateMessage:{},showHeader:{type:Boolean,default:!1},headerMeta:{},centered:{type:Boolean,default:!1}},setup(e){let t={private:{icon:"i-tabler-lock",label:"Private",tooltip:"Only you can see this conversation"},org:{icon:"i-tabler-users",label:"Workspace",tooltip:"Visible to workspace members"},public:{icon:"i-tabler-globe",label:"Public",tooltip:"Anyone with the link can see this"}},n=P(()=>{let F={...t[e.scope]};return e.scope==="org"&&e.scopeName&&(F.label=e.scopeName,F.tooltip=`Visible to ${e.scopeName} members`),F}),i=q(),r=q(),o=q();function a(F){return F?/\[[^\]]+\]\([^)]+\)/.test(F):!1}function s(F){return F.sender==="system"&&(!!F.issue||F.id===ae.value)}function l(F,Z){let G=F[Z],ot=F[Z+1];return!ot||ot.sender!==G.sender}let u=P(()=>e.chatController?.textState.value),d=P(()=>u.value?.isConnected??!1),p=P(()=>u.value?.isThinking??!1),f=P(()=>u.value?.connectionStatus!=="connected"&&!u.value?.error),m=P(()=>e.chatController?.liveTurnBlocks?.value??[]),h=P(()=>{for(let F=m.value.length-1;F>=0;F--){let Z=m.value[F];if(Z?.kind==="text")return Z.id}}),v=P(()=>e.chatController?.liveStreamMessageId?.value),x=P(()=>{let F=e.chatController?.sharedMessages.value??[];return m.value.length&&v.value?F.filter(Z=>Z.id!==v.value):F}),A=P(()=>{if(!e.chatController?.workJournal?.value)return u.value?.workingDescription?.trim()||void 0}),I=P(()=>e.chatController?.workJournal?.value),E=P(()=>{if(!I.value&&!m.value.length)return;let F=x.value,Z=F[F.length-1];if(Z)return Z.sender==="bot"||Z.sender==="system"?F.length>=2?F[F.length-2].id:void 0:Z.id}),M=P(()=>{let F={};for(let Z of x.value){if(Z.sender==="user"||!Z.toolActivities?.length)continue;let G=e.chatController?.workJournalFor?.({activities:Z.toolActivities,outcome:YD(Z),includeFailureNote:Z.sender!=="system"});G&&(F[Z.id]=G)}return F});function z(F){return M.value[F.id]}function D(F,Z){return F.placement?.kind!=="inline"||!Number.isFinite(F.placement.offset)?null:Math.max(0,Math.min(Z.length,Math.trunc(F.placement.offset)))}function X(F,Z){return F.mediaId||`${F.src}:${Z}`}function ce(F){return(F.attachments??[]).map((Z,G)=>({attachment:Z,index:G})).filter(({attachment:Z})=>D(Z,F.text)===null)}function ie(F){let Z=F.text??"";if(F.sender!=="bot")return Z?[{kind:"text",key:`${F.id}:text`,text:Z}]:[];let G=(F.attachments??[]).map((vt,Jn)=>({attachment:vt,index:Jn,offset:D(vt,Z)})).filter(vt=>vt.offset!==null).sort((vt,Jn)=>vt.offset-Jn.offset||vt.index-Jn.index);if(G.length===0)return Z?[{kind:"text",key:`${F.id}:text`,text:Z}]:[];let ot=[],ke=0;for(let vt of G)vt.offset>ke&&ot.push({kind:"text",key:`${F.id}:text:${ke}`,text:Z.slice(ke,vt.offset)}),ot.push({kind:"attachment",key:`${F.id}:attachment:${X(vt.attachment,vt.index)}`,attachment:vt.attachment,placement:"inline"}),ke=vt.offset;return ke<Z.length&&ot.push({kind:"text",key:`${F.id}:text:${ke}`,text:Z.slice(ke)}),ot}let Q=P(()=>u.value?.transientIssue),ae=P(()=>{if(!p.value)return;let F=x.value,Z=F[F.length-1];return Z?.sender==="bot"||Z?.sender==="system"?Z.id:void 0}),ne=P(()=>!p.value||A.value||I.value||m.value.length?!1:ae.value===void 0),ve=P(()=>!!A.value||ne.value),Le=P(()=>u.value?.sendBlockedReason),mt=P(()=>Le.value==="bot_deleted"),ht=P(()=>f.value?"Connecting...":Le.value==="bot_deleted"?"This assistant was deleted":"Send a message"),je=P(()=>iI(e.bot.state.value)),Me=P(()=>{if(te.value||!je.value||je.value==="awake")return;let F=e.bot.displayName.value||e.bot.name.value||"Your assistant";return je.value==="changing"?`${F} will be right back\u2026`:je.value==="stuck"?`${F} needs attention.`:`${F} is ${nI[je.value].toLowerCase()}.`}),Rt=P(()=>e.chatController?.composerState?.value??{text:"",pendingAttachments:[],isUploading:!1}),Je=P({get:()=>Rt.value.text,set:F=>e.chatController?.setComposerText?.({text:F})}),Cr=P(()=>Rt.value.pendingAttachments),wt=P(()=>Rt.value.isUploading),xt=P(()=>e.chatController?.voiceRecorder),Fr=P(()=>xt.value?.isBusy.value??!1),Tt=P(()=>e.chatController?.canAttachFile?.value??!1),Wn=P(()=>e.chatController?.canRecordAudio?.value??!1),Nt=P(()=>e.chatController?.composerAction?.value??"idle"),Ft=P(()=>Nt.value!=="idle"),er=P(()=>e.chatController?.composerShowsSecondaryStop?.value??!1),Ye=P(()=>e.chatController?.queuedMessageIds?.value);function tr(F){return Ye.value?.has(F)??!1}let Ve=q(),zr;function b(F){return F.sender==="bot"&&F.id!==ae.value&&!!F.text?.trim()}let S=P(()=>[...x.value].reverse().find(b)?.id);async function L(F){try{await navigator.clipboard.writeText(F.text),Ve.value=F.id,clearTimeout(zr),zr=setTimeout(()=>{Ve.value=void 0},1500)}catch(Z){console.warn("ElBotChat: copy to clipboard rejected",Z),e.chatController?.notify?.("Could not copy that message.")}}qr(()=>clearTimeout(zr));let J=P(()=>e.chatController?.canReportMessages??!1),$=P(()=>Nt.value==="stop"?"Stop reply":er.value?"Send \u2014 answered after current work":"Send message"),T=P(()=>Wn.value&&!Fr.value&&!!xt.value?.canUseBrowserRecording),y=P(()=>xt.value?.isActive.value??!1),R=P(()=>xt.value?.state.value.phase==="sending"),O=P(()=>xt.value?.elapsedLabel.value??"0:00"),U=P(()=>{let F=xt.value?.state.value.phase;return F==="preparing"||F==="sending"?xt.value?.statusText.value??"Starting microphone":En.value?"Release to send":"Click mic to send"}),se=P(()=>xt.value?.state.value.phase==="sending"?"Sending voice message":y.value?En.value?"Release to send voice message":"Stop and send voice message":"Record voice message"),te=q(!1),pe=q(),he=q(),$e=q(),Te=0,Ne=P(()=>e.chatController?.canStartVoice?.value??!1);ft([()=>e.bot.avatar.value?.src,Ne],([F,Z])=>{let G=++Te;if($e.value=void 0,!Z||!F||typeof Image>"u")return;let ot=new Image;ot.onload=()=>{G===Te&&($e.value=F)},ot.src=F},{immediate:!0});let qe=P(()=>Ne.value&&!te.value&&!y.value&&Nt.value==="idle"),Xe=P(()=>!d.value),zt=P(()=>Xe.value?`Voice available when ${e.bot.displayName.value||e.bot.name.value||"the assistant"} is awake`:"Start voice conversation");function St(){qe.value&&!Xe.value&&(he.value=$e.value,te.value=!0)}async function rr(){if(!te.value)return;let F=pe.value;te.value=!1,he.value=void 0,await no(),await F?.end(),window.matchMedia("(pointer: coarse)").matches||r.value?.focus(),await e.chatController?.refreshMessages()}let be=P(()=>e.variant==="light"),ct=P(()=>be.value?"bg-theme-200/70":"bg-white/15"),it=P(()=>be.value?"text-theme-300":"text-white/30");Pt(async()=>{e.chatController&&!d.value&&await e.chatController.startTextConversation()}),qr(()=>{e.chatController?.voiceRecorder?.teardown()});async function $n(){e.chatController&&Nt.value==="send"&&(r.value&&(r.value.style.height="auto",window.matchMedia("(pointer: coarse)").matches?(r.value.blur(),requestAnimationFrame(()=>{let F=document.activeElement;F&&(F.tagName==="TEXTAREA"||F.tagName==="INPUT")&&F.blur()})):r.value.focus()),i.value?.pin(),await e.chatController.sendComposerMessage())}async function Sn(F){e.chatController&&!mt.value&&(i.value?.pin(),await e.chatController.sendChatMessage(F))}async function Jl(){if(e.chatController){if(Nt.value==="send"){await $n();return}await e.chatController.handleComposerAction()}}async function Za(F){F.isComposing||F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),await $n())}function ql(F){y.value||mt.value||F.target instanceof Element&&F.target.closest("button, a, textarea")||r.value?.focus()}function vo(){r.value&&(r.value.style.height="auto",r.value.style.height=`${Math.min(r.value.scrollHeight,150)}px`)}ft(Je,()=>no(()=>vo()));function bo(){o.value?.click()}async function Or(F){let Z=F.target,G=Z.files?.[0];G&&e.chatController&&!Fr.value&&(await e.chatController.attachFile({file:G}),Z.value="")}function Gn(F){e.chatController?.removeAttachment({index:F})}function yo(){xt.value?.start()}function In(F){xt.value?.finish(F)}let En=We(!1),_i=!1;function Ha(F){F.pointerType==="touch"&&(_i=!0,En.value=!0,F.currentTarget.setPointerCapture?.(F.pointerId),yo())}function Yl(F){F.pointerType==="touch"&&En.value&&(En.value=!1,In({cancelled:!1}))}function Ka(F){F.pointerType==="touch"&&En.value&&(En.value=!1,_i=!1,In({cancelled:!0}))}function Ep(){y.value?In({cancelled:!1}):yo()}function $i(){if(_i){_i=!1;return}Ep()}function Xl(F,Z){if(Z===0){let vt=F[Z];return vt?.timestamp?gt(new Date(vt.timestamp)):null}let G=F[Z-1],ot=F[Z];if(!G?.timestamp||!ot?.timestamp)return null;let ke=new Date(G.timestamp).getTime();return new Date(ot.timestamp).getTime()-ke>36e5?gt(new Date(ot.timestamp)):null}function gt(F){let Z=new Date,G=F.toDateString()===Z.toDateString(),ot=new Date(Z);ot.setDate(ot.getDate()-1);let ke=F.toDateString()===ot.toDateString(),vt=F.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});if(G)return vt;if(ke)return`Yesterday, ${vt}`;let Jn=F.getFullYear()===Z.getFullYear();return`${F.toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric",...Jn?{}:{year:"numeric"}})}, ${vt}`}return(F,Z)=>(w(),_("div",{"data-test":"messaging-root",class:V(["@container/chat relative flex h-full flex-col",x.value.length===0?"min-h-0 [justify-content:safe_center] overflow-y-auto":""])},[e.showHeader&&!be.value?(w(),_("div",wR,[ye(xp,{bot:e.bot,"is-online":d.value},null,8,["bot","is-online"])])):e.showHeader?(w(),_("div",kR,[k("div",{class:V(["flex items-center gap-3",e.centered?"max-w-[640px] @5xl/chat:max-w-[720px] mx-auto":""])},[ye(F0,{bot:e.bot,"is-light":be.value,class:"size-10"},null,8,["bot","is-light"]),k("div",xR,[k("div",_R,le(e.bot.displayName.value),1),k("div",$R,le(e.bot.title.value||"Assistant"),1)]),e.headerMeta?(w(),_("span",SR,le(e.headerMeta),1)):ee("",!0)],2)])):ee("",!0),ye(bi,{name:"voice-call"},{default:_t(()=>[te.value?(w(),_("div",{key:0,"data-test":"voice-call-overlay",role:"dialog","aria-modal":"true","aria-label":`Voice conversation with ${e.bot.displayName.value}`,class:"fixed inset-0 z-[100] flex items-stretch justify-stretch bg-[#050F19] sm:items-center sm:justify-center sm:bg-[#050F19]/45 sm:p-6",onKeydown:Z[0]||(Z[0]=Vn(G=>rr(),["esc"]))},[ye(yR,{ref_key:"voiceMode",ref:pe,bot:e.bot,"chat-controller":e.chatController,"backdrop-src":he.value,"is-light":!1,class:"voice-call-card h-full w-full sm:max-h-[620px] sm:max-w-[420px] sm:flex-none sm:rounded-[32px] sm:shadow-[0_32px_80px_rgba(5,15,25,0.45)]",onEnd:rr},null,8,["bot","chat-controller","backdrop-src"])],40,IR)):ee("",!0)]),_:1}),f.value?(w(),_("div",{key:2,class:V(["py-16 flex flex-col items-center justify-center gap-2 text-sm",be.value?"text-theme-400":"text-theme-600"])},[ye(pp,{class:"size-4"})],2)):e.setupHint?(w(),_("div",{key:3,class:V(["flex items-center justify-center gap-1.5 py-2 text-[11px]",it.value])},[Z[14]||(Z[14]=k("i",{class:"i-tabler-tool size-3"},null,-1)),k("span",null,le(e.setupHint),1)],2)):ee("",!0),ye(ZP,{ref_key:"chatScroller",ref:i,inert:te.value,"aria-hidden":te.value?"true":void 0,class:V(x.value.length===0?"flex-none":"flex-1")},{default:_t(()=>[k("div",{class:V([x.value.length===0?"flex flex-col items-center justify-center px-3 py-4":e.centered?"pt-20 pb-5 px-3 @lg/chat:px-8 space-y-2":"pt-4 pb-[120px] px-3 @lg/chat:px-8 space-y-2",e.centered?x.value.length===0?"max-w-[900px] mx-auto w-full":"max-w-[640px] @5xl/chat:max-w-[720px] mx-auto w-full":""])},[x.value.length===0&&!f.value?(w(),_("div",ER,[fr(F.$slots,"empty-heading",{bot:e.bot,isLight:be.value},()=>[ye(F0,{bot:e.bot,"is-light":be.value,class:"mb-4 size-20 @sm/chat:size-24"},null,8,["bot","is-light"]),k("div",{class:V(["text-base @sm/chat:text-lg font-semibold",be.value?"text-theme-900":"text-white"])},le(e.bot.displayName.value),3)],!0),e.emptyStateMessage===""?ee("",!0):(w(),_(ge,{key:0},[k("p",{class:V(["mt-1 text-center text-xs @sm/chat:text-sm",it.value])},le(e.emptyStateMessage||"Type your message to get started."),3),k("div",{class:V(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]",be.value?"bg-theme-50 border border-theme-100 text-theme-400":"bg-white/10 border border-white/20 text-white/40"]),title:n.value.tooltip},[k("i",{class:V([n.value.icon,"size-3"])},null,2),k("span",null,le(n.value.label),1)],10,TR)],64))])):ee("",!0),(w(!0),_(ge,null,st(x.value,(G,ot)=>(w(),_(ge,{key:G.id},[Xl(x.value,ot)?(w(),_("div",NR,[k("div",{class:V(["flex-1 h-px",ct.value])},null,2),k("span",{class:V(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase",it.value])},le(Xl(x.value,ot)),3),k("div",{class:V(["flex-1 h-px",ct.value])},null,2)])):ee("",!0),z(G)?(w(),_("div",{key:1,"data-test":"messaging-message-tool-activity","data-journal-outcome":z(G)?.outcome,class:"mb-4 w-full"},[ye(z0,{model:z(G),"is-light":be.value},null,8,["model","is-light"])],8,CR)):ee("",!0),s(G)?(w(),_("section",{key:2,"data-test":"messaging-system-msg","data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-system-kind":G.systemKind,"data-issue-code":G.issue?.code,"data-issue-bucket":G.issue?.bucket,"data-issue-action-label":G.issue?.actionLabel,"data-issue-action-url":G.issue?.actionUrl,"data-streaming":G.id===ae.value?"true":void 0,class:"mb-6 w-full"},[k("div",{class:V(["mb-1.5 text-center text-[10.5px] font-medium",it.value])},"System message",2),k("div",OR,[k("span",{"data-test":"messaging-system-divider-line","aria-hidden":"true",class:V(["hidden h-px flex-1 opacity-60 @md/chat:block",ct.value])},null,2),k("div",{class:V(["w-[46ch] min-w-0 max-w-full rounded-2xl px-5 py-3.5 text-center text-[13px] ring-1 [&_.chat-msg-rich]:max-w-none [&_.chat-msg-rich]:text-[13px] [&_.chat-msg-rich]:italic [&_.chat-msg-rich]:leading-[1.6]",be.value?"text-theme-700 ring-theme-200/50":"text-white/85 ring-white/10"])},[G.text?(w(),Ge(Ml,{key:0,text:G.text,inverted:!be.value,streaming:G.id===ae.value,onClick:Z[1]||(Z[1]=Et(()=>{},["stop"])),onAction:Sn},null,8,["text","inverted","streaming"])):G.issue?.help?(w(),Ge(Ml,{key:1,text:G.issue.help,inverted:!be.value},null,8,["text","inverted"])):ee("",!0),G.issue?.actionUrl&&!a(G.text)?(w(),_("a",{key:2,href:G.issue.actionUrl,"data-test":"messaging-system-msg-action",class:V(["mt-2 text-[12px] font-medium inline-flex items-center gap-1",be.value?"text-theme-900 hover:text-theme-700":"text-white hover:text-white/80"]),onClick:Z[2]||(Z[2]=Et(()=>{},["stop"]))},[$t(le(G.issue.actionLabel)+" ",1),Z[15]||(Z[15]=k("i",{class:"i-tabler-arrow-right size-3"},null,-1))],10,AR)):ee("",!0)],2),k("span",{"data-test":"messaging-system-divider-line","aria-hidden":"true",class:V(["hidden h-px flex-1 opacity-60 @md/chat:block",ct.value])},null,2)])],8,zR)):G.sender==="system"&&G.systemKind==="routine_completed"?(w(),_("div",{key:3,"data-test":"messaging-routine-receipt","data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-routine-run-id":G.routine?.run.routineRunId,class:V(["mb-6 flex items-start gap-2 pr-3 @sm/chat:pr-[2em] text-[13px] leading-relaxed",be.value?"text-theme-500":"text-white/50"])},[Z[16]||(Z[16]=k("i",{class:"i-tabler-clock size-4 mt-0.5 shrink-0","aria-hidden":"true"},null,-1)),k("span",null,le(G.text),1)],10,DR)):G.sender==="system"?(w(),_("div",{key:4,"data-test":"messaging-system-status-msg","data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-system-kind":G.systemKind,"data-issue-code":G.issue?.code,"data-issue-bucket":G.issue?.bucket,"data-streaming":G.id===ae.value?"true":void 0,class:V(["mb-4 flex w-fit max-w-[85%] items-start gap-2 rounded-2xl px-3 py-2 text-[13px] leading-relaxed ring-1",be.value?"bg-theme-100 text-theme-600 ring-theme-200":"bg-white/10 text-white/70 ring-white/10"])},[Z[17]||(Z[17]=k("i",{class:"i-tabler-info-circle size-4 mt-0.5 shrink-0","aria-hidden":"true"},null,-1)),ye(Ml,{text:G.text,inverted:!be.value,onClick:Z[3]||(Z[3]=Et(()=>{},["stop"]))},null,8,["text","inverted"])],10,PR)):(w(),_("div",{key:5,"data-test":G.sender==="bot"?"messaging-assistant-msg":G.sender==="user"?"messaging-user-msg":void 0,"data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-system-kind":G.systemKind,"data-streaming":G.id===ae.value?"true":void 0,"data-queued":tr(G.id)?"true":void 0,"aria-label":tr(G.id)?"Sent \u2014 will be answered after the current work finishes":void 0,class:V(["group/msg flex gap-2 items-end",{"justify-end":G.sender==="user","justify-start":G.sender==="bot","mb-6":l(x.value,ot),"opacity-70":tr(G.id)}])},[k("div",{"data-test":"messaging-message-body",class:V(G.sender==="user"?"min-w-0 ml-3 @sm/chat:ml-[2em]":"w-full min-w-0 pr-3 @sm/chat:pr-[2em]")},[G.sender==="bot"&&G.routine?(w(),_("div",{key:0,"data-test":"messaging-routine-label","data-routine-run-id":G.routine.run.routineRunId,class:V(["mb-2 flex items-start gap-2 text-[13px] leading-relaxed",be.value?"text-theme-500":"text-white/50"])},[Z[18]||(Z[18]=k("i",{class:"i-tabler-clock size-4 mt-0.5 shrink-0","aria-hidden":"true"},null,-1)),k("span",null,le(e.bot.displayName.value||e.bot.name.value)+" ran "+le(G.routine.run.name||G.routine.run.sourceLabel||"a routine"),1)],10,UR)):ee("",!0),ce(G).length?(w(),_("div",{key:1,class:V(["mb-1 space-y-1",G.sender==="user"?"flex flex-col items-end":""])},[(w(!0),_(ge,null,st(ce(G),({attachment:ke,index:vt})=>(w(),_(ge,{key:X(ke,vt)},[ke.type==="image"?(w(),_("img",{key:0,src:ke.src,alt:ke.filename,"data-test":"messaging-attachment","data-attachment-placement":"block",class:"rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"},null,8,jR)):ke.type==="audio"?(w(),_("audio",{key:1,src:ke.src,controls:"","data-test":"messaging-attachment","data-attachment-placement":"block",class:"max-w-full"},null,8,MR)):(w(),_("a",{key:2,href:ke.src,target:"_blank",rel:"noopener","data-test":"messaging-attachment","data-attachment-placement":"block",class:V(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs",be.value?"bg-theme-100 text-theme-600 hover:bg-theme-200":"bg-white/10 text-white/80 hover:bg-white/20"])},[Z[19]||(Z[19]=k("i",{class:"i-tabler-file size-3.5"},null,-1)),$t(" "+le(ke.filename),1)],10,LR))],64))),128))],2)):ee("",!0),ie(G).length?(w(),_("div",{key:2,"data-test":"messaging-message-content",class:V(G.sender==="user"?be.value?"rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900":"rounded-[14px] px-4 py-2.5 bg-white/10 text-white":be.value?"text-theme-800":"text-white/95")},[(w(!0),_(ge,null,st(ie(G),ke=>(w(),_(ge,{key:ke.key},[ke.kind==="text"&&ke.text?(w(),_("div",VR,[ye(Ml,{text:ke.text,inverted:G.sender==="user"||!be.value,streaming:G.id===ae.value,onClick:Z[4]||(Z[4]=Et(()=>{},["stop"])),onAction:Sn},null,8,["text","inverted","streaming"])])):ke.kind==="attachment"&&ke.attachment.type==="image"?(w(),_("img",{key:1,src:ke.attachment.src,alt:ke.attachment.filename,"data-test":"messaging-attachment","data-attachment-placement":ke.placement,class:"my-2 rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"},null,8,FR)):ke.kind==="attachment"&&ke.attachment.type==="audio"?(w(),_("audio",{key:2,src:ke.attachment.src,controls:"","data-test":"messaging-attachment","data-attachment-placement":ke.placement,class:"my-2 max-w-full"},null,8,BR)):ke.kind==="attachment"?(w(),_("a",{key:3,href:ke.attachment.src,target:"_blank",rel:"noopener","data-test":"messaging-attachment","data-attachment-placement":ke.placement,class:V(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs",be.value?"bg-theme-100 text-theme-600 hover:bg-theme-200":"bg-white/10 text-white/80 hover:bg-white/20"])},[Z[20]||(Z[20]=k("i",{class:"i-tabler-file size-3.5"},null,-1)),$t(" "+le(ke.attachment.filename),1)],10,ZR)):ee("",!0)],64))),128))],2)):ee("",!0),b(G)?(w(),_("div",{key:3,"data-test":"messaging-message-actions","data-actions-reveal":G.id===S.value?"always":"hover",class:V(["-ml-1 flex items-center gap-1 pt-1 transition-opacity",[be.value?"text-theme-300":"text-white/35",G.id===S.value?"":"opacity-0 group-hover/msg:opacity-100 focus-within:opacity-100 pointer-coarse:opacity-100"]])},[k("button",{type:"button","data-test":"messaging-message-copy","data-copied":Ve.value===G.id||void 0,title:Ve.value===G.id?"Copied":"Copy","aria-label":Ve.value===G.id?"Copied":"Copy",class:V(["grid size-6 cursor-pointer place-items-center transition-colors",be.value?"hover:text-theme-800":"hover:text-white"]),onClick:Et(ke=>L(G),["stop"])},[k("i",{class:V(["size-3.5",Ve.value===G.id?"i-tabler-check":"i-tabler-copy"]),"aria-hidden":"true"},null,2)],10,KR),J.value?(w(),_("button",{key:0,type:"button","data-test":"messaging-message-report",title:"Report","aria-label":"Report",class:V(["grid size-6 cursor-pointer place-items-center transition-colors",be.value?"hover:text-theme-800":"hover:text-white"]),onClick:Et(ke=>e.chatController?.reportMessage(G.id),["stop"])},[...Z[21]||(Z[21]=[k("i",{class:"i-tabler-flag size-3.5","aria-hidden":"true"},null,-1)])],10,WR)):ee("",!0)],10,HR)):ee("",!0)],2)],10,RR)),G.id===E.value?(w(),_(ge,{key:6},[m.value.length?(w(!0),_(ge,{key:0},st(m.value,ke=>(w(),_(ge,{key:ke.id},[ke.kind==="work"?(w(),_("div",{key:0,"data-test":"messaging-tool-activity","data-journal-outcome":ke.journal.outcome,class:"chat-live-enter mb-4 w-full"},[ye(z0,{model:ke.journal,"is-light":be.value},null,8,["model","is-light"])],8,GR)):ke.kind==="text"&&ke.content?(w(),_("div",{key:1,"data-test":"messaging-live-text-block",class:V(["mb-4",be.value?"text-theme-800":"text-white/95"])},[ye(Ml,{text:ke.content,inverted:!be.value,streaming:ke.id===h.value,onClick:Z[5]||(Z[5]=Et(()=>{},["stop"])),onAction:Sn},null,8,["text","inverted","streaming"])],2)):(w(),_("div",{key:2,"data-test":"messaging-tool-activity-tail","aria-label":"Assistant is still working",class:V(["chat-live-enter mb-4 grid h-[17px] w-5 place-items-center",be.value?"text-theme-500":"text-white/70"])},[...Z[22]||(Z[22]=[k("span",{class:"chat-dots chat-dots--mini","aria-hidden":"true"},[k("span"),k("span"),k("span")],-1)])],2))],64))),128)):I.value?(w(),_("div",{key:1,"data-test":"messaging-tool-activity","data-journal-outcome":I.value.outcome,class:"chat-live-enter mb-4 w-full"},[ye(z0,{model:I.value,"is-light":be.value},null,8,["model","is-light"])],8,JR)):ee("",!0)],64)):ee("",!0)],64))),128)),ve.value?(w(),_("div",{key:1,"data-test":A.value?"messaging-working-state":"messaging-thinking-indicator","data-working-description":A.value,role:"status","aria-live":"polite",class:V(["chat-live-enter relative mb-4 flex h-[17px] items-center gap-2.5 pl-0.5 text-[13.5px] leading-snug",be.value?"text-theme-500":"text-white/50"])},[Z[23]||(Z[23]=k("span",{"data-test":"messaging-thinking-dots",class:"chat-dots shrink-0","aria-hidden":"true"},[k("span"),k("span"),k("span")],-1)),A.value?(w(),_("span",YR,le(A.value),1)):(w(),_("span",XR,"Thinking"))],10,qR)):ee("",!0),Q.value?(w(),_("div",{key:2,"data-test":"messaging-transient-issue","data-issue-code":Q.value.code,role:"alert",class:V(["chat-live-enter mb-4 flex items-start gap-2 px-2 text-[13px] leading-snug",be.value?"text-theme-600":"text-white/60"])},[Z[25]||(Z[25]=k("i",{class:"i-tabler-alert-circle size-3.5 shrink-0 text-red-500","aria-hidden":"true"},null,-1)),k("span",eU,[k("span",tU,[$t(le(Q.value.message),1),Q.value.help?(w(),_(ge,{key:0},[$t(":")],64)):ee("",!0)]),Q.value.help?(w(),_(ge,{key:0},[Z[24]||(Z[24]=$t(le(" "),-1)),k("span",rU,le(Q.value.help),1)],64)):ee("",!0)]),Q.value.actionUrl&&Q.value.actionLabel?(w(),_("a",{key:0,href:Q.value.actionUrl,class:"shrink-0 underline underline-offset-2",onClick:Z[6]||(Z[6]=Et(()=>{},["stop"]))},le(Q.value.actionLabel),9,nU)):ee("",!0)],10,QR)):ee("",!0)],2)]),_:3},8,["inert","aria-hidden","class"]),k("div",{"data-test":"messaging-composer-footer",inert:te.value,"aria-hidden":te.value?"true":void 0,class:V(["left-0 right-0 z-30 px-3 @lg/chat:px-8 pb-[max(env(safe-area-inset-bottom),1rem)]",[x.value.length===0||e.centered?"relative shrink-0":"absolute bottom-0",e.centered&&x.value.length>0?"pt-0 sm:pb-7":"pt-3",be.value?e.centered?"bg-transparent":"bg-theme-0":"bg-gradient-to-t from-black/90 via-black/60 to-transparent"]])},[fr(F.$slots,"composer",{},()=>[Me.value?(w(),_("div",{key:0,"data-test":"messaging-seat","data-seat-state":je.value,role:"status","aria-live":"polite",class:V(["py-3 text-center text-[14px]",be.value?"text-theme-500":"text-white/70"])},le(Me.value),11,oU)):(w(),_(ge,{key:1},[Cr.value.length>0?(w(),_("div",{key:0,class:V(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",e.centered?"max-w-[640px] @5xl/chat:max-w-[720px] mx-auto":""])},[(w(!0),_(ge,null,st(Cr.value,(G,ot)=>(w(),_("div",{key:ot,class:"relative shrink-0 group"},[G.type==="image"?(w(),_("img",{key:0,src:G.src,alt:G.filename,class:V(["size-14 rounded-xl object-cover border",be.value?"border-black/10":"border-white/20"])},null,10,aU)):(w(),_("div",{key:1,class:V(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border",be.value?"border-black/10 bg-theme-50 text-theme-600":"border-white/20 bg-white/10 text-white/70"])},[Z[26]||(Z[26]=k("i",{class:"i-tabler-file size-4"},null,-1)),k("span",sU,le(G.filename),1)],2)),k("button",{class:"absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] cursor-pointer",onClick:ke=>Gn(ot)},[...Z[27]||(Z[27]=[k("i",{class:"i-tabler-x size-3"},null,-1)])],8,lU)]))),128)),wt.value?(w(),_("div",cU,[ye(pp,{class:"size-5"})])):ee("",!0)],2)):ee("",!0),Tt.value?(w(),_("input",{key:1,ref_key:"fileInput",ref:o,type:"file",accept:"image/*,audio/*,video/*",class:"hidden",onChange:Or},null,544)):ee("",!0),k("div",{"data-test":"messaging-composer","data-composer-action":Nt.value,class:V(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-4 transition-colors duration-200",[e.centered?"mx-auto max-w-[640px] @5xl/chat:max-w-[740px] @5xl/chat:px-5 @5xl/chat:pt-3.5 @5xl/chat:pb-3":"",be.value?"bg-white shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_rgba(15,23,42,0.07)] ring-1 ring-theme-950/20 hover:ring-theme-950/30 focus-within:ring-theme-950/30":"bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25 focus-within:bg-white/15 focus-within:ring-white/25"]]),onClick:ql},[y.value?(w(),_("div",{key:1,"data-test":"messaging-recording-state",class:V(["flex min-w-0 items-center gap-2 py-1",be.value?"text-theme-700":"text-white/80"])},[Z[28]||(Z[28]=k("span",{class:"size-2.5 shrink-0 rounded-full bg-red-500"},null,-1)),k("span",pU,le(O.value),1),k("span",{class:V(["min-w-0 truncate text-sm",be.value?"text-theme-400":"text-white/45"])},le(U.value),3)],2)):jd((w(),_("textarea",{key:0,ref_key:"textarea",ref:r,"onUpdate:modelValue":Z[7]||(Z[7]=G=>Je.value=G),"data-test":"messaging-input",rows:"1",enterkeyhint:"send",inputmode:"text",autocomplete:"off",autocapitalize:"sentences",autocorrect:"on",spellcheck:"true",placeholder:ht.value,disabled:mt.value,style:{fontSize:"16px",resize:"none"},class:V(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",be.value?"text-theme-900 placeholder-theme-400":"text-white placeholder-white/50"]),onKeydown:Za},null,42,dU)),[[Jd,Je.value]]),k("div",fU,[k("button",{class:V(["-ml-2 flex size-8 items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11",[Tt.value?"cursor-pointer":"cursor-default",be.value?"text-theme-500":"text-white/50",wt.value||Fr.value?"opacity-50 pointer-events-none":""]]),disabled:mt.value||wt.value||Fr.value||!Tt.value,"aria-label":Tt.value?"Attach file":"File attachments unavailable",title:Tt.value?"Attach file":"File attachments unavailable",onClick:Z[8]||(Z[8]=G=>Tt.value&&bo())},[wt.value?(w(),_("i",hU)):(w(),_("i",gU)),k("span",vU,le(Tt.value?"Attach file":"File attachments unavailable"),1)],10,mU),Z[32]||(Z[32]=k("div",{class:"flex-1"},null,-1)),k("div",bU,[y.value&&!R.value&&!te.value?(w(),_("button",{key:0,"data-test":"messaging-record-discard-btn",class:V(["flex size-8 cursor-pointer items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11",be.value?"text-theme-400":"text-white/40"]),"aria-label":"Discard recording",title:"Discard recording",onClick:Z[9]||(Z[9]=G=>In({cancelled:!0}))},[...Z[29]||(Z[29]=[k("i",{class:"i-tabler-x size-[18px]","aria-hidden":"true"},null,-1)])],2)):ee("",!0),(T.value||y.value)&&!R.value&&!te.value?(w(),_("button",{key:1,"data-test":"messaging-record-audio-btn",class:V(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] hover:opacity-70 pointer-coarse:size-11",y.value?be.value?"text-theme-900 scale-110":"text-white scale-110":be.value?"text-theme-500":"text-white/60"]),"aria-label":se.value,title:se.value,onPointerdown:Et(Ha,["prevent"]),onPointerup:Et(Yl,["prevent"]),onPointercancel:Et(Ka,["prevent"]),onClick:$i,onKeydown:Z[10]||(Z[10]=Vn(Et(G=>In({cancelled:!0}),["prevent"]),["escape"]))},[k("i",{class:V([y.value?"i-tabler-microphone-filled":"i-tabler-microphone","size-[18px]"])},null,2),k("span",wU,le(se.value),1)],42,yU)):ee("",!0),qe.value?(w(),_("button",{key:2,"data-test":"messaging-voice-start-btn",class:V(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11",[be.value?"bg-theme-900 text-theme-0 hover:bg-theme-800":"bg-theme-0 text-theme-950 hover:bg-theme-100",Xe.value?"cursor-not-allowed opacity-40":"cursor-pointer"]]),disabled:Xe.value,"aria-label":zt.value,title:zt.value,onClick:Z[11]||(Z[11]=G=>St())},[k("span",xU,[(w(),_(ge,null,st([7,13,16,11,14],G=>k("span",{key:G,class:"w-[2px] rounded-full bg-current",style:_e({height:`${G}px`})},null,4)),64))]),Z[30]||(Z[30]=k("span",{class:"sr-only"},"Start voice conversation",-1))],10,kU)):y.value?ee("",!0):(w(),_(ge,{key:3},[er.value?(w(),_("button",{key:0,"data-test":"messaging-secondary-stop-btn",class:V(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11",be.value?"bg-theme-100 text-theme-700 hover:bg-theme-200":"bg-white/10 text-white/70 hover:bg-white/15"]),"aria-label":"Stop work",title:"Stop work",onClick:Z[12]||(Z[12]=G=>e.chatController?.stopChatTurn())},[...Z[31]||(Z[31]=[k("i",{class:"i-tabler-player-stop-filled size-3.5","aria-hidden":"true"},null,-1),k("span",{class:"sr-only"},"Stop work",-1)])],2)):ee("",!0),k("button",{"data-test":"messaging-send-btn","data-composer-action":Nt.value,class:V(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11",Ft.value?be.value?"bg-theme-900 text-theme-0 hover:bg-theme-800 cursor-pointer":"bg-theme-0 text-theme-950 hover:bg-theme-100 cursor-pointer":be.value?"bg-theme-100 text-theme-400":"bg-white/10 text-white/30"]),disabled:!Ft.value,"aria-label":$.value,title:$.value,onClick:Z[13]||(Z[13]=G=>Jl())},[Nt.value==="stop"?(w(),_("i",$U)):(w(),_("i",SU)),k("span",IU,le($.value),1)],10,_U)],64))])])],10,uU),e.centered&&x.value.length>0?(w(),_("p",EU,le(e.bot.displayName.value)+" is AI and can make mistakes. ",1)):ee("",!0)],64))],!0)],10,iU)],2))}}),[["__scopeId","data-v-8c29628e"]]),TU={class:"bot-wrap"},NU={key:0,class:"flex items-center justify-center h-full"},CU={key:2,class:"flex h-full flex-col items-center justify-center gap-4 px-6 text-center",role:"status","aria-live":"polite","data-test":"bot-unavailable"},_p=Ue({__name:"BotWrap",props:{sdk:{},bot:{},handle:{},context:{},clientContext:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},chatOnly:{type:Boolean},bare:{type:Boolean},apiBase:{}},setup(e){let t=ao("BotWrap"),n=e,i=n.sdk||Pl.getInstance({isDev:typeof window<"u"?window.location.hostname==="localhost"||window.location.hostname.includes("127.0.0.1"):!1,...n.apiBase&&{apiBase:n.apiBase}}),r=We(!n.bot),o=We(n.bot),a=We();async function s(){if(n.bot){t.debug("Bot provided via props, skipping fetch",{botId:n.bot.botId.value,handle:n.bot.handle.value}),r.value=!1;return}if(!n.handle){a.value="No handle or bot provided",t.warn("BotWrap mounted without handle or bot",{propsReceived:{handle:n.handle,bot:n.bot,context:n.clientContext??n.context,apiBase:n.apiBase},sdkState:{isDev:i.isDev,apiBase:i.apiBase}}),r.value=!1;return}try{r.value=!0,a.value=void 0,t.debug("Fetching public bot",{handle:n.handle});let l=await i.user.getPublicBot({handle:n.handle});l?(o.value=l,t.debug("Successfully fetched public bot",{botId:l.botId.value,handle:l.handle.value}),l.botId.value&&i.user.track({event:"view_profile",botId:l.botId.value,properties:{viewSource:"widget"}})):(a.value=i.error.value||"Bot not found",t.error("Failed to fetch public bot - no data returned",{handle:n.handle,sdkError:i.error.value,sdkState:{isDev:i.isDev,apiBase:i.apiBase,loading:i.loading.value}}))}catch(l){a.value=l instanceof Error?l.message:"Failed to fetch bot",t.error("Exception while fetching public bot",{handle:n.handle,error:l instanceof Error?{message:l.message,stack:l.stack}:l,sdkState:{isDev:i.isDev,apiBase:i.apiBase,error:i.error.value}})}finally{r.value=!1,o.value||t.debug("BotWrap component will render unavailable state",{state:{loading:r.value,hasBot:!!o.value,error:a.value},props:{handle:n.handle,context:n.clientContext??n.context,apiBase:n.apiBase},sdkState:{isDev:i.isDev,apiBase:i.apiBase,error:i.error.value}})}}return Pt(s),(l,u)=>(w(),_("div",TU,[r.value?(w(),_("div",NU,[k("div",{class:V(["size-6 animate-spin rounded-full border-b-2",n.bare?"border-theme-400":"border-white"])},null,2)])):o.value?fr(l.$slots,"default",{sdk:Ce(i),bot:o.value,context:e.clientContext??e.context,firstMessage:e.firstMessage,buttonText:e.buttonText,buttonIcon:e.buttonIcon,loading:r.value},void 0,void 0,1):a.value?(w(),_("div",CU,[u[0]||(u[0]=k("p",{class:"text-sm font-medium text-theme-600"}," This assistant is unavailable right now. ",-1)),k("button",{type:"button",class:"min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700","data-test":"bot-unavailable-retry",onClick:s}," Try again ")])):ee("",!0)]))}})});function Fa(e){let t=We(e.bot),n=q(e.context),i=q(e.firstMessage),r=q(e.buttonText),o=q(e.buttonIcon);function a(s){s.bot!==void 0&&(t.value=s.bot),s.context!==void 0&&(n.value=s.context),s.firstMessage!==void 0&&(i.value=s.firstMessage),s.buttonText!==void 0&&(r.value=s.buttonText),s.buttonIcon!==void 0&&(o.value=s.buttonIcon)}return{currentBot:t,currentContext:n,currentFirstMessage:i,currentButtonText:r,currentButtonIcon:o,update:a}}var $p=Y(()=>{"use strict";Tn();bn()});var ho,P2=Y(()=>{"use strict";Tn();ho={linkedin:{label:"LinkedIn",icon:"i-simple-icons-linkedin",placeholder:"john-smith",getUrl:e=>`https://linkedin.com/in/${e}`},x:{label:"X",icon:"i-simple-icons-x",placeholder:"johnsmith",getUrl:e=>`https://x.com/${e}`},facebook:{label:"Facebook",icon:"i-simple-icons-facebook",placeholder:"johnsmith",getUrl:e=>`https://facebook.com/${e}`},tiktok:{label:"TikTok",icon:"i-simple-icons-tiktok",placeholder:"johnsmith",getUrl:e=>`https://tiktok.com/@${e}`},youtube:{label:"YouTube",icon:"i-tabler-brand-youtube",placeholder:"johnsmith",getUrl:e=>`https://youtube.com/@${e}`},github:{label:"GitHub",icon:"i-tabler-brand-github",placeholder:"johnsmith",getUrl:e=>`https://github.com/${e}`},instagram:{label:"Instagram",icon:"i-simple-icons-instagram",placeholder:"johnsmith",getUrl:e=>`https://instagram.com/${e}`},threads:{label:"Threads",icon:"i-simple-icons-threads",placeholder:"johnsmith",getUrl:e=>`https://threads.net/@${e}`},email:{label:"Email",icon:"i-tabler-mail",placeholder:"hello@example.com",getUrl:e=>`mailto:${e}`},phone:{label:"Phone",icon:"i-tabler-phone",placeholder:"+1-555-123-4567",getUrl:e=>`tel:${e.replace(/[^0-9+]/g,"")}`},website:{label:"Website",icon:"i-tabler-world",placeholder:"https://example.com",getUrl:e=>e},calendar:{label:"Calendar",icon:"i-tabler-calendar",placeholder:"https://cal.com/username",getUrl:e=>e}}});var U2,zU,OU,AU,DU,PU,RU,UU,jU,R2,MU,LU,VU,FU,BU,ZU,HU,KU,WU,GU,JU,qU,YU,XU,QU,ej,tj,rj,nj,ij,oj,aj,sj,lj,cj,uj,dj,pj,fj,mj,j2,hj,gj,vj,bj,yj,wj,kj,xj,_j,$j,Sj,Ij,Ej,Tj,Nj,Cj,zj,Oj,Aj,Dj,Pj,Rj,Uj,Sp,ny=Y(()=>{"use strict";Tn();P2();ry();Ol();bn();U2=[{mode:"self",label:"Overview",icon:"i-tabler-user-square-rounded"},{mode:"talk",label:"Talk",icon:"i-tabler-phone"},{mode:"chat",label:"Chat",icon:"i-tabler-message-circle"},{mode:"info",label:"About",icon:"i-tabler-user-circle"}],zU=Ue({__name:"EffectTransitionList",props:{disabled:{type:Boolean,default:!1},mode:{default:"block"}},setup(e){return(t,n)=>(w(),Ge(m0,{name:e.disabled?"":"nlist"},{default:_t(()=>[fr(t.$slots,"default")]),_:3},8,["name"]))}}),OU=["data-test-mode"],AU={class:"w-full max-w-xs space-y-12"},DU={key:0,class:"text-xs text-theme-400 text-center"},PU={class:"text-base font-light text-white text-center"},RU={class:"space-y-6 relative"},UU={key:"email-field",class:"w-full"},jU={key:"code-field",class:"w-full"},R2=Ue({__name:"ElAuthGate",props:{sdk:{}},setup(e){let t=q({email:"",code:""}),n=q("email"),i=q(!1),r={email:{title:"Enter Your Email",button:{label:"Continue",disabled:()=>!t.value.email||i.value},action:async()=>{if(!i.value){i.value=!0;try{await e.sdk.auth.requestAuthCode({email:t.value.email})&&(n.value="code")}finally{i.value=!1}}}},code:{title:"Enter Verification Code",button:{label:"Verify",disabled:()=>t.value.code.length!==6||i.value},action:async()=>{if(!i.value){i.value=!0;try{await e.sdk.auth.loginWithCode({email:t.value.email,code:t.value.code})}finally{i.value=!1}}}}},o=P(()=>r[n.value]);return ft(()=>e.sdk.activeUser.value,a=>{a&&n.value==="code"&&console.log("[ElAuthGate] Authentication successful",{email:a.email})}),(a,s)=>(w(),_("div",{"data-test":"auth-form","data-test-mode":n.value,class:"flex flex-col items-center justify-center h-full p-6"},[k("div",AU,[e.sdk.error.value?(w(),_("p",DU,le(e.sdk.error.value),1)):ee("",!0),k("h3",PU,le(o.value.title),1),k("div",RU,[ye(zU,null,{default:_t(()=>[n.value==="email"?(w(),_("div",UU,[ye(wp,{modelValue:t.value.email,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value.email=l),"data-test":"auth-email-input",onKeyup:Vn(o.value.action,["enter"])},null,8,["modelValue","onKeyup"])])):(w(),_("div",jU,[ye(kp,{modelValue:t.value.code,"onUpdate:modelValue":s[1]||(s[1]=l=>t.value.code=l),length:6,"focus-first":!0,"data-test":"auth-code-input",onAutoSubmit:o.value.action},null,8,["modelValue","onAutoSubmit"])])),(w(),_("div",{key:o.value.button.label,class:"space-y-4 w-full"},[ye(La,{theme:"primary",size:"md",class:"w-full","data-test":"auth-submit",loading:e.sdk.loading.value,disabled:o.value.button.disabled()||e.sdk.loading.value,onClick:o.value.action},{default:_t(()=>[$t(le(o.value.button.label),1)]),_:1},8,["loading","disabled","onClick"]),n.value==="code"?(w(),_("button",{key:0,class:"w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",onClick:s[2]||(s[2]=l=>n.value="email")}," Change Email ")):ee("",!0)]))]),_:1})])])],8,OU))}}),MU={class:"flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative"},LU={class:"flex-1 space-y-6 pb-12"},VU={key:0,class:"text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"},FU={class:"text-white/70 leading-relaxed whitespace-pre-wrap"},BU={key:1,class:"space-y-3"},ZU=["href"],HU={key:2,class:"space-y-3"},KU={class:"grid grid-cols-2 gap-3"},WU=["href"],GU=Ue({__name:"ElBotAbout",props:{bot:{},isOnline:{type:Boolean,default:!1}},setup(e){return(t,n)=>(w(),_("div",MU,[ye(xp,{bot:e.bot,"is-online":e.isOnline},null,8,["bot","is-online"]),k("div",LU,[e.bot.summary.value?(w(),_("div",VU,[n[0]||(n[0]=k("h3",{class:"font-medium text-white/50"}," About ",-1)),k("p",FU,le(e.bot.summary.value),1)])):ee("",!0),e.bot.email.value?(w(),_("div",BU,[n[2]||(n[2]=k("h3",{class:"text-sm font-medium text-white/90"}," Contact ",-1)),k("a",{href:`mailto:${e.bot.email.value}`,target:"_blank",rel:"noopener noreferrer",class:"relative inline-flex items-center justify-center gap-2 rounded-full px-4 py-2 font-medium transition-colors duration-200 focus:outline-none active:opacity-80 cursor-pointer bg-white/5 hover:bg-white/10 border border-white/10 text-white/80 text-sm justify-start h-10 w-full"},[...n[1]||(n[1]=[k("span",{class:"i-heroicons-envelope flex items-center size-[1.1em] mt-[-.07em]"},null,-1),$t(" Email ",-1)])],8,ZU)])):ee("",!0),e.bot.accounts.value&&e.bot.accounts.value.length>0?(w(),_("div",HU,[n[3]||(n[3]=k("h3",{class:"text-sm font-medium text-white/90"}," Links ",-1)),k("div",KU,[(w(!0),_(ge,null,st(e.bot.accounts.value,i=>(w(),_("a",{key:`${i.platform}-${i.handle}`,href:Ce(ho)[i.platform].getUrl(i.handle),target:"_blank",rel:"noopener noreferrer",class:"relative inline-flex items-center justify-center gap-2 rounded-full px-4 py-2 font-medium transition-colors duration-200 focus:outline-none active:opacity-80 cursor-pointer bg-white/10 hover:bg-white/20 border border-white/20 text-white/80 text-sm"},[k("span",{class:V(["flex items-center size-[1.1em] mt-[-.07em]",Ce(ho)[i.platform].icon])},null,2),$t(" "+le(Ce(ho)[i.platform].label),1)],8,WU))),128))])])):ee("",!0)])]))}}),JU={class:"flex flex-col items-center text-center gap-4"},qU={class:"relative flex-shrink-0"},YU={class:"w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white"},XU=["src","alt"],QU={class:"absolute top-1.5 right-1.5"},ej={key:1,class:"size-4 bg-theme-400 rounded-full ring-2 ring-white"},tj={class:"min-w-0"},rj={class:"text-3xl font-light text-white mb-2 truncate"},nj={class:"text-base font-light text-white/60 line-clamp-1"},ij=Ue({__name:"ElBotHeader",props:{bot:{},isOnline:{type:Boolean,default:!1}},setup(e){return(t,n)=>(w(),_("div",JU,[k("div",qU,[k("div",YU,[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"w-full h-full object-cover",onError:n[0]||(n[0]=(...i)=>Ce(Bl)&&Ce(Bl)(...i))},null,40,XU)]),k("div",QU,[e.isOnline?(w(),_(ge,{key:0},[n[1]||(n[1]=k("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1)),n[2]||(n[2]=k("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white"},null,-1))],64)):(w(),_("div",ej))])]),k("div",tj,[k("h1",rj,le(e.bot.displayName.value),1),k("p",nj,le(e.bot.title.value),1)])]))}}),oj={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},aj=Ue({name:"SelfSidebarClose",__name:"BotSidebarClose",emits:["click"],setup(e){let t=q(!1);return Pt(()=>{setTimeout(()=>{t.value=!0},100)}),(n,i)=>(w(),_("a",{class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:i[0]||(i[0]=r=>n.$emit("click",r))},[i[1]||(i[1]=k("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),k("span",oj,[k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])]))}}),sj={key:0,class:"px-9 pt-12 pb-4"},lj={class:"text-base font-medium text-theme-400"},cj={key:1,class:"px-4 pb-8 border-b border-white/10"},uj=["disabled","onClick"],dj={class:"flex items-center gap-3"},pj={class:"flex-1"},fj={key:0,class:"text-xs text-white/50 mt-0.5"},mj={class:"p-6"},j2=Ue({name:"ElSidebar",inheritAttrs:!1,__name:"ElSidebar",props:{modelValue:{type:Boolean},items:{},position:{},title:{},widthClasses:{}},emits:["update:modelValue"],setup(e,{emit:t}){let n=e,i=t,r=n.position||"left",o=n.widthClasses||"w-[80%] max-w-[300px]",a=P({get:()=>n.modelValue,set:d=>i("update:modelValue",d)}),s=P(()=>n.items.filter(d=>!d.isHidden));function l(d){d.isDisabled||(d.onClick?d.onClick({item:d,event:new MouseEvent("click")}):d.href&&(d.href.includes("http")?window.open(d.href,d.target||"_self")?.focus():window.location.href=d.href),a.value=!1)}let u=P(()=>r==="left"?{enter:"-translate-x-full",leave:"-translate-x-full",position:"justify-start",closeButton:"-right-16"}:{enter:"translate-x-full",leave:"translate-x-full",position:"justify-end",closeButton:"-left-16"});return(d,p)=>(w(),_(ge,null,[ye(bi,{"enter-active-class":"transition-opacity duration-300 ease-out","leave-active-class":"transition-opacity duration-200 ease-in","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_t(()=>[a.value?(w(),_("div",{key:0,class:"absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:p[0]||(p[0]=f=>a.value=!1)})):ee("",!0)]),_:1}),ye(bi,{"enter-active-class":"transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":u.value.enter,"enter-to-class":"translate-x-0","leave-from-class":"translate-x-0","leave-to-class":u.value.leave},{default:_t(()=>[a.value?(w(),_("div",{key:0,class:V(["absolute inset-0 z-50 flex",u.value.position]),onClick:p[3]||(p[3]=f=>a.value=!1)},[k("div",{class:V(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center",Ce(o)]),onClick:p[2]||(p[2]=Et(()=>{},["stop"]))},[ye(aj,{class:V(["absolute top-4 z-10 text-white",u.value.closeButton]),onClick:p[1]||(p[1]=f=>a.value=!1)},null,8,["class"]),e.title?(w(),_("div",sj,[k("h3",lj,le(e.title),1)])):ee("",!0),d.$slots.header?(w(),_("div",cj,[fr(d.$slots,"header")])):ee("",!0),k("div",{class:V(["flex-1 p-6 space-y-2 overflow-y-auto",{"pt-6":!e.title&&!d.$slots.header,"pt-4":e.title||d.$slots.header}])},[ye(m0,{"enter-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":Ce(r)==="left"?"-translate-x-4 opacity-0":"translate-x-4 opacity-0","enter-to-class":"translate-x-0 opacity-100","leave-from-class":"translate-x-0 opacity-100","leave-to-class":Ce(r)==="left"?"-translate-x-4 opacity-0":"translate-x-4 opacity-0"},{default:_t(()=>[(w(!0),_(ge,null,st(s.value,(f,m)=>(w(),_("button",{key:f.key||f.label||m,style:_e({transitionDelay:`${m*40}ms`}),class:V(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group",[f.isActive?"bg-primary-500/20 border border-primary-500/40":"hover:bg-white/10",f.isDisabled&&"opacity-50 cursor-not-allowed"]]),disabled:f.isDisabled,onClick:h=>l(f)},[k("div",dj,[f.icon?.src?(w(),_("i",{key:0,class:V(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110",[f.icon.src,f.isActive?"text-primary-400":"text-white/70 group-hover:text-white"]])},null,2)):ee("",!0),k("div",pj,[k("div",{class:V(["font-medium text-sm",f.isActive?"text-primary-300":"text-white"])},le(f.label),3),f.subLabel?(w(),_("div",fj,le(f.subLabel),1)):ee("",!0)])])],14,uj))),128))]),_:1},8,["enter-from-class","leave-to-class"])],2),k("div",mj,[fr(d.$slots,"footer")])],2)],2)):ee("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],64))}}),hj=Ue({name:"BotModeSidebar",__name:"ElBotModeSidebar",props:{modelValue:{type:Boolean},chatController:{}},emits:["update:modelValue"],setup(e,{emit:t}){let n=e,i=t,r=P({get:()=>n.modelValue,set:s=>i("update:modelValue",s)}),o=P(()=>n.chatController?.botMode?.value??"self"),a=P(()=>U2.map(s=>({key:s.mode,icon:{src:s.icon},label:s.label,isActive:o.value===s.mode,onClick:()=>{n.chatController?.setMode(s.mode)}})));return(s,l)=>(w(),Ge(j2,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),items:a.value,position:"right",title:"Mode","width-classes":"w-[80%] max-w-[255px]"},null,8,["modelValue","items"]))}}),gj=Ue({name:"BotSidebar",__name:"ElBotSidebar",props:{modelValue:{type:Boolean},bot:{},sdk:{},title:{}},emits:["update:modelValue"],setup(e,{emit:t}){let n=e,i=t,r=P({get:()=>n.modelValue,set:a=>i("update:modelValue",a)}),o=P(()=>{let a=[{key:"share",icon:{src:"i-tabler-share"},label:"Share this assistant",onClick:()=>{let s=`${window.location.origin}/@${n.bot.handle.value||n.bot.botId.value}`;navigator.clipboard.writeText(s).catch(l=>{console.error("ElBotSidebar: clipboard.writeText rejected",l)})}},{key:"profile",icon:{src:"i-tabler-user"},label:"View full profile",onClick:()=>{window.open(`/@${n.bot.handle.value||n.bot.botId.value}`,"_blank")}},{key:"create",icon:{src:"i-tabler-sparkles"},label:"Create your own",onClick:()=>{window.open("/auth","_blank")}}];return n.sdk.activeUser.value&&a.push({key:"logout",icon:{src:"i-tabler-logout"},label:"Logout",onClick:async()=>{await n.sdk.auth.logout()}}),a});return(a,s)=>(w(),Ge(j2,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),items:o.value,position:"left",title:e.title||"Menu"},null,8,["modelValue","items","title"]))}}),vj={key:0,class:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"},bj=["data-quality"],yj={key:0,class:"flex flex-1 items-center gap-3 pl-2"},wj=["src","alt"],kj={class:"text-sm font-medium text-white/90"},xj={key:1,class:"flex justify-end"},_j={class:"text-sm"},$j={key:0,class:"flex-1 basis-0 flex justify-end"},Sj={key:0,class:"h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/bot:px-6 max-w-md mx-auto w-full"},Ij={class:"flex-1 basis-0 flex flex-col justify-start pt-8 gap-7"},Ej={key:0,class:"flex items-center justify-center gap-3"},Tj=["href"],Nj={key:1,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"},Cj={class:"max-w-md mx-auto"},zj={key:2,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/bot:px-6"},Oj={class:"flex-1 min-h-0 max-w-md mx-auto w-full"},Aj={key:2,class:"bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"},Dj={class:"text-center max-w-md space-y-4"},Pj={class:"text-sm text-white/70 leading-relaxed"},Rj={key:3,class:"bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"},Uj=Ue({__name:"BotChat",props:{sdk:{},bot:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean,default:!1},isActive:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},theme:{default:"green"},requireAuth:{type:Boolean,default:!1},chatOnly:{type:Boolean,default:!1},bare:{type:Boolean,default:!1},emptyStateMessage:{},createVoiceClientFn:{type:Function}},emits:["close","error","turnStarted","turnCompleted"],setup(e,{emit:t}){let n=t,i=We(),r=q(!1),o=q(!1),a=q(),s=q(),l=P(()=>i.value?.botMode?.value??"self"),u=P(()=>i.value?.textState.value.isConnected??!1),d=P(()=>e.sdk.activeUser.value!==void 0),p=P(()=>U2.find(E=>E.mode===l.value));function f(){i.value&&i.value.destroy();try{i.value=new Zl({sdk:e.sdk,bot:e.bot,context:e.context,firstMessage:e.firstMessage,...e.createVoiceClientFn?{createVoiceClientFn:e.createVoiceClientFn}:{},onTurnStarted:()=>n("turnStarted"),onTurnCompleted:E=>n("turnCompleted",E)})}catch(E){throw console.error("BotChatController creation failed:",E),E}}try{f()}catch(E){let M=E instanceof Error?E.message:"Couldn't initialize your assistant";a.value=M,n("error",M)}function m(E){if(!s.value)return;let M=GS(E);Object.entries(M).forEach(([z,D])=>{s.value.style.setProperty(`--primary-${z}`,D)})}Pt(()=>{try{m(e.theme),e.chatOnly&&i.value&&i.value.setMode("chat")}catch(E){let M=E instanceof Error?E.message:"Couldn't initialize your assistant";a.value=M,n("error",M)}}),qr(()=>{i.value&&i.value.destroy()}),ft(()=>e.theme,E=>{m(E)}),ft(()=>e.sdk.activeUser.value,(E,M)=>{M&&!E&&i.value&&i.value.setMode("self")});let h=P(()=>!!(e.bot.cover.value?.src&&e.bot.cover.value?.quality==="low")||!!(e.bot.avatar.value?.src&&e.bot.avatar.value?.quality==="low")),v=P(()=>{let E=[h.value?"backdrop-blur-sm":""];return h.value&&l.value==="self"?E.push("from-black/80 via-black/60 to-black/80"):l.value==="self"?E.push("from-black/70 via-black/50 to-black/80"):E.push("from-black/90 via-black/90 to-black/100"),E.join(" ")}),x={phone:"i-heroicons-phone",calendar:"i-heroicons-calendar",question:"i-heroicons-question-mark-circle",message:"i-heroicons-chat-bubble-left-right",sparkles:"i-heroicons-sparkles"},A=P(()=>v2({template:e.buttonText||"Talk to {name}",bot:e.bot.toData()})),I=P(()=>x[e.buttonIcon||"phone"]||x.phone);return(E,M)=>(w(),_("div",{ref_key:"rootElement",ref:s,key:e.bot.avatarUrl.value,class:"pagelines-sdk @container/bot pagelines-bot w-full h-full overflow-hidden relative","data-test":"bot-chat"},[e.loading?(w(),_("div",vj,[ye(pp,{class:"text-white size-8"})])):e.bot&&!a.value?(w(),_("div",{key:1,class:V(["absolute inset-0",e.bare?"":"bg-cover bg-center bg-no-repeat"]),style:_e(e.bare?void 0:{backgroundImage:`url(${e.bot.avatarUrl.value})`}),"data-quality":e.bot.avatar.value?.quality||"none"},[e.bare?ee("",!0):(w(),_("div",{key:0,class:V(["absolute inset-0 bg-gradient-to-br z-0",v.value])},null,2)),k("div",{class:V(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform",e.isActive?"opacity-100 translate-y-0":"opacity-0 translate-y-2"])},[!e.bare||e.hasClose?(w(),_("div",{key:0,class:V(["relative z-30 p-2",!e.bare&&l.value!=="self"?"backdrop-blur-lg":""])},[e.chatOnly?(w(),_("div",{key:0,class:V(["flex items-center",e.bare?"justify-end":""])},[e.bare?ee("",!0):(w(),_("div",yj,[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"size-8 rounded-full object-cover"},null,8,wj),k("span",kj,le(e.bot.displayName.value),1)])),e.hasClose?(w(),_("div",xj,[k("button",{class:V(["flex cursor-pointer items-center rounded-2xl p-3 transition-colors",e.bare?"text-theme-500 hover:bg-theme-50":"text-white/70 hover:bg-white/10"]),onClick:M[0]||(M[0]=Et(z=>n("close","button"),["stop"]))},[...M[7]||(M[7]=[k("i",{class:"size-6 i-tabler-x"},null,-1)])],2)])):ee("",!0)],2)):(w(),_("div",{key:1,class:V(["flex items-center",e.hasClose?"":"justify-between"])},[k("div",{class:V(e.hasClose?"flex-1 basis-0":"")},[k("button",{class:"cursor-pointer p-2 flex items-center gap-2 rounded-2xl text-white/70 hover:bg-white/10 transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-105 active:scale-95",onClick:M[1]||(M[1]=z=>r.value=!0)},[...M[8]||(M[8]=[k("i",{class:"i-tabler-menu size-7"},null,-1)])])],2),k("button",{class:V(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0",{"bg-white/10":o.value}]),onClick:M[2]||(M[2]=z=>o.value=!0)},[k("i",{class:V([p.value?.icon,"size-4 opacity-60"])},null,2),k("span",_j,le(p.value?.label),1),M[9]||(M[9]=k("i",{class:"i-tabler-chevron-down size-4"},null,-1))],2),e.hasClose?(w(),_("div",$j,[k("button",{class:"cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",onClick:M[3]||(M[3]=Et(z=>n("close","button"),["stop"]))},[...M[10]||(M[10]=[k("i",{class:"size-6 i-tabler-x"},null,-1)])])])):ee("",!0)],2))],2)):ee("",!0),e.chatOnly?(w(),_("div",{key:1,class:V(["relative z-20 flex min-h-0 w-full flex-1 flex-col",e.bare?"":"px-4"])},[k("div",{class:V(["min-h-0 w-full flex-1",e.bare?"":"mx-auto max-w-md"])},[ye(mo,{"chat-controller":i.value,bot:e.bot,scope:d.value?"private":"public","empty-state-message":e.emptyStateMessage,variant:e.bare?"light":"dark","show-header":!e.bare,centered:e.bare},e0({_:2},[E.$slots["empty-heading"]?{name:"empty-heading",fn:_t(z=>[fr(E.$slots,"empty-heading",ma(Ia(z)))]),key:"0"}:void 0]),1032,["chat-controller","bot","scope","empty-state-message","variant","show-header","centered"])],2)],2)):(w(),_(ge,{key:2},[l.value==="self"?(w(),_("div",Sj,[M[11]||(M[11]=k("div",{class:"flex-1 basis-0 mb-12"},null,-1)),ye(ij,{bot:e.bot,"is-online":u.value},null,8,["bot","is-online"]),k("div",Ij,[ye(La,{theme:"primary",size:"lg",class:"w-full",icon:I.value,"data-test":"voice-button",onClick:M[4]||(M[4]=z=>i.value?.setMode("talk"))},{default:_t(()=>[$t(le(A.value),1)]),_:1},8,["icon"]),e.bot.accounts.value&&e.bot.accounts.value.length>0?(w(),_("div",Ej,[(w(!0),_(ge,null,st((e.bot.accounts.value||[]).filter(z=>Ce(ho)[z.platform]),z=>(w(),_("a",{key:`${z.platform}-${z.handle}`,href:Ce(ho)[z.platform].getUrl(z.handle),target:"_blank",class:"size-12 rounded-full text-white/60 hover:text-white hover:bg-white/5 border border-white/0 hover:border-white/10 flex items-center justify-center transition-all duration-200 hover:scale-105"},[k("i",{class:V([Ce(ho)[z.platform].icon,"size-5"])},null,2)],8,Tj))),128))])):ee("",!0)])])):l.value==="talk"?(w(),_("div",Nj,[e.requireAuth&&!d.value?(w(),Ge(R2,{key:0,sdk:e.sdk},null,8,["sdk"])):(w(),_(ge,{key:1},[k("div",null,[k("div",Cj,[ye(xp,{bot:e.bot,"is-online":u.value},null,8,["bot","is-online"])])]),ye(mo,{"chat-controller":i.value,bot:e.bot},null,8,["chat-controller","bot"])],64))])):(w(),_("div",zj,[k("div",Oj,[l.value==="chat"?(w(),_(ge,{key:0},[e.requireAuth&&!d.value?(w(),Ge(R2,{key:0,sdk:e.sdk},null,8,["sdk"])):(w(),Ge(mo,{key:1,"chat-controller":i.value,bot:e.bot,"show-header":""},null,8,["chat-controller","bot"]))],64)):l.value==="info"?(w(),Ge(GU,{key:1,bot:e.bot,"is-online":u.value},null,8,["bot","is-online"])):ee("",!0)])]))],64))],2)],14,bj)):a.value?(w(),_("div",Aj,[k("div",Dj,[M[12]||(M[12]=k("div",{class:"flex justify-center"},[k("div",{class:"rounded-full bg-red-500/20 flex items-center justify-center size-10"},[k("i",{class:"i-tabler-alert-circle size-6 text-red-400"})])],-1)),M[13]||(M[13]=k("h3",{class:"text-lg font-medium"}," Bot Error ",-1)),k("p",Pj,le(a.value),1)])])):(w(),_("div",Rj," Couldn't load your assistant. Please try again later. ")),e.chatOnly?ee("",!0):(w(),Ge(gj,{key:4,modelValue:r.value,"onUpdate:modelValue":M[5]||(M[5]=z=>r.value=z),bot:e.bot,sdk:e.sdk,title:e.bot.displayName.value,"data-test":"bot-sidebar"},null,8,["modelValue","bot","sdk","title"])),e.chatOnly?ee("",!0):(w(),Ge(hj,{key:5,modelValue:o.value,"onUpdate:modelValue":M[6]||(M[6]=z=>o.value=z),"chat-controller":i.value,"data-test":"bot-mode-sidebar"},null,8,["modelValue","chat-controller"]))]))}}),Sp=Ue({__name:"BotProvider",props:{sdk:{},bot:{},handle:{},context:{},clientContext:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},chatOnly:{type:Boolean},bare:{type:Boolean},apiBase:{},emptyStateMessage:{}},emits:["close","error","turnStarted","turnCompleted"],setup(e,{emit:t}){let n=e,i=t;return(r,o)=>(w(),Ge(_p,a0(n,{class:"bot-provider size-full relative"}),{default:_t(a=>[ye(Uj,{sdk:a.sdk,bot:a.bot,context:a.context,"first-message":a.firstMessage,"button-text":n.buttonText,"button-icon":n.buttonIcon,"has-close":n.hasClose,"chat-only":n.chatOnly,bare:n.bare,"empty-state-message":n.emptyStateMessage,"is-active":!0,class:"size-full",onClose:o[0]||(o[0]=s=>i("close",s)),onError:o[1]||(o[1]=s=>i("error",s)),onTurnStarted:o[2]||(o[2]=s=>i("turnStarted")),onTurnCompleted:o[3]||(o[3]=s=>i("turnCompleted",s))},e0({_:2},[r.$slots["empty-heading"]?{name:"empty-heading",fn:_t(s=>[fr(r.$slots,"empty-heading",ma(Ia(s)))]),key:"0"}:void 0]),1032,["sdk","bot","context","first-message","button-text","button-icon","has-close","chat-only","bare","empty-state-message"])]),_:3},16))}})});var M2={};Zr(M2,{default:()=>jj});var jj,L2=Y(()=>{"use strict";Tn();ny();$p();bn();jj=Ue({__name:"BotWidgetInline",props:{sdk:{},handle:{},bot:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},chatOnly:{type:Boolean}},setup(e,{expose:t}){let{currentBot:n,currentContext:i,currentFirstMessage:r,currentButtonText:o,currentButtonIcon:a,update:s}=Fa(e);return t({update:s}),(l,u)=>(w(),Ge(Sp,{sdk:e.sdk,handle:e.handle,bot:Ce(n),context:Ce(i),"first-message":Ce(r),"button-text":Ce(o),"button-icon":Ce(a),"chat-only":e.chatOnly},null,8,["sdk","handle","bot","context","first-message","button-text","button-icon","chat-only"]))}})});var V2={};Zr(V2,{default:()=>Kj});var Mj,Lj,Vj,Fj,Bj,Zj,Hj,Kj,F2=Y(()=>{"use strict";Tn();ny();$p();bn();Mj=["aria-label"],Lj={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},Vj=Ue({name:"FClose",__name:"FClose",props:{ariaLabel:{}},emits:["click"],setup(e){let t=q(!1);return Pt(()=>{setTimeout(()=>{t.value=!0},100)}),(n,i)=>(w(),_("button",{type:"button","aria-label":e.ariaLabel||"Close",class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:i[0]||(i[0]=r=>n.$emit("click",r))},[i[1]||(i[1]=k("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),k("span",Lj,[k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])],8,Mj))}}),Fj={class:"flex min-h-full items-center justify-center text-center p-4"},Bj={key:0,class:"text-base p-4 font-semibold"},Zj={key:1,class:"flex items-center gap-2 px-2"},Hj=Ue({inheritAttrs:!1,name:"FModal",__name:"FModal",props:{vis:{type:Boolean,default:!1},modalClass:{},styleClass:{},fullScreen:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!1},title:{default:""},transitionMode:{default:"modal"},teleportTo:{default:"body"},disableTeleport:{type:Boolean,default:!1}},emits:["update:vis","close","escape"],setup(e,{emit:t}){let n=t,i=q(!1);function r(d){let{reason:p}=d;n("update:vis",!1),n("close",!0),p==="escape"&&n("escape",!0)}let o=P(()=>{let d=e.modalClass?[e.modalClass]:["max-w-screen-md p-24"],p=e.styleClass?[e.styleClass]:["bg-theme-0","shadow-xl"];return e.fullScreen?d.push("fixed inset-0"):d.push("rounded-2xl"),["relative","text-left","transform","transition-all","w-full","overflow-hidden",...d,...p]}),a=q(!1),s=[];function l(d){d.key==="Escape"&&e.vis&&r({reason:"escape"})}Pt(async()=>{i.value=!0;let d=ft(()=>e.vis,p=>{p?setTimeout(()=>a.value=!0,300):a.value=!1},{immediate:!0});s.push(d),typeof document<"u"&&(document.addEventListener("keydown",l),s.push(()=>document.removeEventListener("keydown",l)))}),qr(()=>{s.forEach(d=>d())});let u=P(()=>e.transitionMode==="slideUp"?{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 translate-y-full scale-95",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 translate-y-full scale-95"}:{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 scale-75",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 scale-75"});return(d,p)=>i.value?(w(),Ge(S$,{key:0,to:e.teleportTo,disabled:e.disableTeleport},[k("div",{class:V(["fixed inset-0 z-50",e.vis?"":"pointer-events-none"]),"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},[ye(bi,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_t(()=>[e.vis?(w(),_("div",{key:0,class:"fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity",onClick:p[0]||(p[0]=f=>r({reason:"escape"}))})):ee("",!0)]),_:1}),k("div",{class:"fixed inset-0 z-40 overflow-y-auto overscroll-contain no-scrollbar",onClick:p[3]||(p[3]=f=>r({reason:"escape"}))},[k("div",Fj,[ye(bi,ma(Ia(u.value)),{default:_t(()=>[e.vis?(w(),_("div",{key:0,class:V([o.value,"w-full"]),onClick:p[2]||(p[2]=Et(()=>{},["stop"]))},[e.hasClose||e.title||d.$slots.actions?(w(),_("div",{key:0,class:V(!e.title&&(e.hasClose||d.$slots.actions)?"absolute top-0 right-0 z-10":"flex justify-between items-center")},[e.title?(w(),_("h2",Bj,le(e.title),1)):ee("",!0),e.hasClose||d.$slots.actions?(w(),_("div",Zj,[fr(d.$slots,"actions"),e.hasClose?(w(),Ge(Vj,{key:0,class:"relative","data-test-id":"close-modal",onClick:p[1]||(p[1]=Et(f=>r({reason:"escape"}),["stop"]))})):ee("",!0)])):ee("",!0)],2)):ee("",!0),fr(d.$slots,"default")],2)):ee("",!0)]),_:3},16)])])],2)],8,["to","disabled"])):ee("",!0)}}),Kj=Ue({__name:"BotWidgetModal",props:{sdk:{},handle:{},bot:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},chatOnly:{type:Boolean},onClose:{type:Function}},setup(e,{expose:t}){let n=e,{currentBot:i,currentContext:r,currentFirstMessage:o,currentButtonText:a,currentButtonIcon:s,update:l}=Fa(n),u=q(!1);Pt(async()=>{await no(),setTimeout(()=>{u.value=!0},10)});function d(){u.value=!1,setTimeout(()=>{n.onClose&&n.onClose()},300)}function p(){u.value=!0}return t({update:l,close:d,open:p}),(f,m)=>(w(),Ge(Hj,{vis:u.value,"disable-teleport":!0,"modal-class":"max-w-4xl h-[80vh] md:h-[600px]","has-close":!1,"onUpdate:vis":m[0]||(m[0]=h=>u.value=h),onClose:d},{default:_t(()=>[ye(Sp,{sdk:e.sdk,handle:e.handle,bot:Ce(i),context:Ce(r),"first-message":Ce(o),"button-text":Ce(a),"button-icon":Ce(s),"chat-only":e.chatOnly,"has-close":!0,onClose:d},null,8,["sdk","handle","bot","context","first-message","button-text","button-icon","chat-only"])]),_:1},8,["vis"]))}})});Tn();N0();ry();$p();Ol();bn();var Wj=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
163
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono:"DM Mono", "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-amber-500:#f99c00;--color-green-300:#7bf1a8;--color-green-400:#05df72;--color-green-500:#00c758;--color-green-600:#00a544;--color-slate-200:#e2e8f0;--color-slate-950:#020618;--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-md:48rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-light:300;--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--blur-lg:16px;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-theme-0:var(--theme-0,#fff);--color-theme-25:var(--theme-25,#f8fafc);--color-theme-50:var(--theme-50,#f3f4f6);--color-theme-100:var(--theme-100,#e5e7eb);--color-theme-200:var(--theme-200,#d1d5db);--color-theme-300:var(--theme-300,#9ca3af);--color-theme-400:var(--theme-400,#6b7280);--color-theme-500:var(--theme-500,#4b5563);--color-theme-600:var(--theme-600,#374151);--color-theme-700:var(--theme-700,#1f2a44);--color-theme-800:var(--theme-800,#111827);--color-theme-900:var(--theme-900,#0c0a13);--color-theme-950:var(--theme-950,#030712);--color-primary-300:var(--primary-300,#60a5fa);--color-primary-400:var(--primary-400,#3b82f6);--color-primary-500:var(--primary-500,#2563eb);--color-primary-600:var(--primary-600,#1d4ed8)}@supports (color:color(display-p3 0 0 0)){:root,:host{--color-red-300:color(display-p3 .956922 .651886 .645122);--color-red-400:color(display-p3 .933534 .431676 .423491);--color-red-500:color(display-p3 .903738 .262579 .253307);--color-red-600:color(display-p3 .830323 .140383 .133196);--color-amber-500:color(display-p3 .93994 .620584 .0585367);--color-green-300:color(display-p3 .600292 .935514 .68114);--color-green-400:color(display-p3 .399536 .862346 .49324);--color-green-500:color(display-p3 .308734 .774754 .374307);--color-green-600:color(display-p3 .243882 .640824 .294808);--color-slate-200:color(display-p3 .890322 .909405 .939294);--color-slate-950:color(display-p3 .0102437 .0227555 .0878731)}}@supports (color:lab(0% 0 0)){:root,:host{--color-red-300:lab(76.5514% 36.422 15.5335);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-green-300:lab(86.9953% -47.2691 25.0054);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-slate-200:lab(91.7353% -.998765 -4.76968);--color-slate-950:lab(1.76974% 1.32743 -9.28855)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container\\/bot{container:bot/inline-size}.\\@container\\/chat{container:chat/inline-size}.\\@container\\/chat-preview{container:chat-preview/inline-size}.\\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{top:0;bottom:0;left:0;right:0}.inset-x-0{left:0;right:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\.5{top:calc(var(--spacing) * 1.5)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-6{top:calc(var(--spacing) * 6)}.top-\\[5\\%\\]{top:5%}.-right-1\\.5{right:calc(var(--spacing) * -1.5)}.-right-16{right:calc(var(--spacing) * -16)}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-1{right:var(--spacing)}.right-1\\.5{right:calc(var(--spacing) * 1.5)}.right-4{right:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.right-\\[5\\%\\]{right:5%}.-bottom-\\[3\\%\\]{bottom:-3%}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-6{bottom:calc(var(--spacing) * 6)}.-left-16{left:calc(var(--spacing) * -16)}.-left-\\[3\\%\\]{left:-3%}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:calc(var(--spacing) * 4)}.left-6{left:calc(var(--spacing) * 6)}.left-\\[13px\\]{left:13px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.z-\\[999999\\]{z-index:999999}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline-start:auto;margin-inline-end:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-6{margin-block:calc(var(--spacing) * 6)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-\\[-\\.07em\\]{margin-top:-.07em}.-mr-1{margin-right:calc(var(--spacing) * -1)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.mb-12{margin-bottom:calc(var(--spacing) * 12)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-3{margin-left:calc(var(--spacing) * 3)}.i-heroicons-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-chat-bubble-left-right{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193q-.51.041-1.02.072v3.091l-3-3q-2.031 0-4.02-.163a2.1 2.1 0 0 1-.825-.242m9.345-8.334a2 2 0 0 0-.476-.095a48.6 48.6 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.5 48.5 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402c-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235q.865.113 1.74.194V21l4.155-4.155'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-envelope{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.04 12.04 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-question-mark-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.879 7.519c1.172-1.025 3.071-1.025 4.243 0c1.171 1.025 1.171 2.687 0 3.712q-.308.268-.67.442c-.746.361-1.452.999-1.452 1.827v.75M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9 5.25h.008v.008H12z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09m8.445-7.188L18 9.75l-.259-1.035a3.38 3.38 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.38 3.38 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.38 3.38 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.38 3.38 0 0 0-2.456 2.456m-1.365 11.852L16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183l.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394l-1.183.394a2.25 2.25 0 0 0-1.423 1.423'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-facebook{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978c.401 0 .955.042 1.468.103a9 9 0 0 1 1.141.195v3.325a9 9 0 0 0-.653-.036a27 27 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.7 1.7 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103l-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-instagram{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.9 5.9 0 0 0-2.124 1.388a5.9 5.9 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076s-.069 1.688-.063 4.947s.021 3.667.083 4.947c.061 1.277.264 2.149.563 2.911c.308.789.72 1.457 1.388 2.123a5.9 5.9 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552c1.278.056 1.689.069 4.947.063s3.668-.021 4.947-.082c1.28-.06 2.147-.265 2.91-.563a5.9 5.9 0 0 0 2.123-1.388a5.9 5.9 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912c.056-1.28.07-1.69.063-4.948c-.006-3.258-.02-3.667-.081-4.947c-.06-1.28-.264-2.148-.564-2.911a5.9 5.9 0 0 0-1.387-2.123a5.9 5.9 0 0 0-2.128-1.38c-.764-.294-1.636-.496-2.914-.55C15.647.009 15.236-.006 11.977 0S8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.7 3.7 0 0 1-1.382-.895a3.7 3.7 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228c-.06-1.264-.072-1.644-.08-4.848c-.006-3.204.006-3.583.061-4.848c.05-1.169.246-1.805.408-2.228c.216-.561.477-.96.895-1.382a3.7 3.7 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417c1.265-.06 1.644-.072 4.848-.08c3.203-.006 3.583.006 4.85.062c1.168.05 1.804.244 2.227.408c.56.216.96.475 1.382.895s.681.817.9 1.378c.165.422.362 1.056.417 2.227c.06 1.265.074 1.645.08 4.848c.005 3.203-.006 3.583-.061 4.848c-.051 1.17-.245 1.805-.408 2.23c-.216.56-.477.96-.896 1.38a3.7 3.7 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418c-1.266.06-1.645.072-4.85.079s-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442a1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024a6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16A4 4 0 0 1 8 12.008'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-linkedin{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-threads{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M18.263 11.097c-.03-3.486-1.92-5.586-5.111-5.586c-2.13 0-3.922.963-4.863 2.499l2.062 1.438c.535-.843 1.272-1.543 2.628-1.543c1.528 0 2.318.85 2.544 2.431a15 15 0 0 0-2.236-.173c-4.125 0-6.068 1.867-6.068 4.336s1.943 3.99 4.804 3.99c3.139 0 5.013-2.115 5.781-4.735c.798.361 1.348 1.204 1.348 2.47c0 3.387-3.907 5.232-7.22 5.232c-4.885 0-8.077-3.207-8.077-8.424c0-6.392 4.223-10.487 9.9-10.487c3.808 0 5.69 1.671 6.97 3.914l2.108-1.475C21.44 2.078 18.331 0 13.663 0C6.227 0 1.168 5.277 1.168 12.934c0 7 4.953 11.066 10.856 11.066c4.878 0 9.809-2.846 9.809-7.716c0-2.545-1.46-4.231-3.569-5.187m-6.33 4.855c-1.077 0-2.026-.512-2.026-1.453c0-1.483 1.822-1.934 3.606-1.934c.678 0 1.34.045 1.927.173c-.422 1.927-1.671 3.215-3.508 3.214Z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-tiktok{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02c.08 1.53.63 3.09 1.75 4.17c1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97c-.57-.26-1.1-.59-1.62-.93c-.01 2.92.01 5.84-.02 8.75c-.08 1.4-.54 2.79-1.35 3.94c-1.31 1.92-3.58 3.17-5.91 3.21c-1.43.08-2.86-.31-4.08-1.03c-2.02-1.19-3.44-3.37-3.65-5.71c-.02-.5-.03-1-.01-1.49c.18-1.9 1.12-3.72 2.58-4.96c1.66-1.44 3.98-2.13 6.15-1.72c.02 1.48-.04 2.96-.04 4.44c-.99-.32-2.15-.23-3.02.37c-.63.41-1.11 1.04-1.36 1.75c-.21.51-.15 1.07-.14 1.61c.24 1.64 1.82 3.02 3.5 2.87c1.12-.01 2.19-.66 2.77-1.61c.19-.33.4-.67.41-1.06c.1-1.79.06-3.57.07-5.36c.01-4.03-.01-8.05.02-12.07'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-x{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M14.234 10.162L22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299l-.929-1.329L3.076 1.56h3.182l5.965 8.532l.929 1.329l7.754 11.09h-3.182z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-90-ring-with-bg{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='black' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-ring-resize{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg stroke='black'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-alert-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-4v4m0 4h.01'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-arrow-right{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 12h14m-6 6l6-6m-6-6l6 6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-arrow-up{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 5v14m6-8l-6-6m-6 6l6-6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-github{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2c2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2a4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6c-.6.6-.6 1.2-.5 2V21'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-youtube{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2 8a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4z'/%3E%3Cpath d='m10 9l5 3l-5 3z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm12-4v4M8 3v4m-4 4h16m-9 4h1m0 0v3'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-check{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l5 5L20 7'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-chevron-down{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9l6 6l6-6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-chevron-right{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 6l6 6l-6 6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-circle-check{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0'/%3E%3Cpath d='m9 12l2 2l4-4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-clock{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-copy{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z'/%3E%3Cpath d='M4.012 16.737A2 2 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-file{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-flag{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1-7 0a5 5 0 0 0-7 0zm0 16v-7'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-globe{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 9a4 4 0 1 0 8 0a4 4 0 0 0-8 0'/%3E%3Cpath d='M5.75 15A8.015 8.015 0 1 0 15 2m-4 15v4m-4 0h8'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-info-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-3h.01'/%3E%3Cpath d='M11 12h1v4h1'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-lock{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M5 13a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z'/%3E%3Cpath d='M11 16a1 1 0 1 0 2 0a1 1 0 0 0-2 0m-3-5V7a4 4 0 1 1 8 0v4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-logout{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 8V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2'/%3E%3Cpath d='M9 12h12l-3-3m0 6l3-3'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-mail{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='m3 7l9 6l9-6'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-menu{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h16M4 16h16'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-message-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-microphone{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9 5a3 3 0 0 1 3-3a3 3 0 0 1 3 3v5a3 3 0 0 1-3 3a3 3 0 0 1-3-3z'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M8 21h8m-4-4v4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-microphone-filled{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M19 9a1 1 0 0 1 1 1a8 8 0 0 1-6.999 7.938L13 20h3a1 1 0 0 1 0 2H8a1 1 0 0 1 0-2h3v-2.062A8 8 0 0 1 4 10a1 1 0 1 1 2 0a6 6 0 0 0 12 0a1 1 0 0 1 1-1m-7-8a4 4 0 0 1 4 4v5a4 4 0 1 1-8 0V5a4 4 0 0 1 4-4'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-microphone-off{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='m3 3l18 18M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1-.13.874m-2 2A3 3 0 0 1 9 10.002v-1'/%3E%3Cpath d='M5 10a7 7 0 0 0 10.846 5.85m2-2A6.97 6.97 0 0 0 18.998 10M8 21h8m-4-4v4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-player-stop-filled{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M17 4H7a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-plus{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 5v14m-7-7h14'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-share{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m12-6a3 3 0 1 0 6 0a3 3 0 1 0-6 0m0 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-6.3-7.3l6.6-3.4m-6.6 6l6.6 3.4'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2m0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2M9 18a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-tool{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 10h3V7L6.5 3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1-3 3l-6-6a6 6 0 0 1-8-8z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0'/%3E%3Cpath d='M9 10a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-2.832 8.849A4 4 0 0 1 10 16h4a4 4 0 0 1 3.834 2.855'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-square-rounded{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 13a3 3 0 1 0 0-6a3 3 0 0 0 0 6'/%3E%3Cpath d='M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9s-9-1.8-9-9s1.8-9 9-9'/%3E%3Cpath d='M6 20.05V20a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v.05'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-users{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-world{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m.6-3h16.8M3.6 15h16.8'/%3E%3Cpath d='M11.5 3a17 17 0 0 0 0 18m1-18a17 17 0 0 1 0 18'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-x{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-32{width:calc(var(--spacing) * 32);height:calc(var(--spacing) * 32)}.size-\\[1\\.1em\\]{width:1.1em;height:1.1em}.size-\\[9px\\]{width:9px;height:9px}.size-\\[13px\\]{width:13px;height:13px}.size-\\[17px\\]{width:17px;height:17px}.size-\\[18px\\]{width:18px;height:18px}.size-\\[25px\\]{width:25px;height:25px}.size-\\[36\\%\\]{width:36%;height:36%}.size-full{width:100%;height:100%}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-4{height:calc(var(--spacing) * 4)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[17px\\]{height:17px}.h-\\[28px\\]{height:28px}.h-\\[38px\\]{height:38px}.h-\\[60px\\]{height:60px}.h-\\[80px\\]{height:80px}.h-\\[80vh\\]{height:80vh}.h-\\[600px\\]{height:600px}.h-\\[min\\(600px\\,calc\\(100vh-4rem\\)\\)\\]{height:min(600px,100vh - 4rem)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-\\[calc\\(100vh-48px\\)\\]{max-height:calc(100vh - 48px)}.min-h-0{min-height:0}.min-h-5{min-height:calc(var(--spacing) * 5)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\\[20px\\]{min-height:20px}.min-h-full{min-height:100%}.w-0{width:0}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-96{width:calc(var(--spacing) * 96)}.w-\\[2px\\]{width:2px}.w-\\[3px\\]{width:3px}.w-\\[5px\\]{width:5px}.w-\\[28px\\]{width:28px}.w-\\[46ch\\]{width:46ch}.w-\\[60px\\]{width:60px}.w-\\[80\\%\\]{width:80%}.w-\\[80px\\]{width:80px}.w-\\[min\\(400px\\,calc\\(100vw-2rem\\)\\)\\]{width:min(400px,100vw - 2rem)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-4xl{max-width:var(--container-4xl)}.max-w-20{max-width:calc(var(--spacing) * 20)}.max-w-\\[85\\%\\]{max-width:85%}.max-w-\\[88\\%\\]{max-width:88%}.max-w-\\[240px\\]{max-width:240px}.max-w-\\[255px\\]{max-width:255px}.max-w-\\[260px\\]{max-width:260px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[640px\\]{max-width:640px}.max-w-\\[900px\\]{max-width:900px}.max-w-\\[calc\\(100vw-48px\\)\\]{max-width:calc(100vw - 48px)}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-screen-md{max-width:var(--breakpoint-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-0{flex-basis:0}.origin-center{transform-origin:50%}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-4{--tw-translate-x:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-\\[30px\\]{--tw-translate-x:calc(30px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-4{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-\\[30px\\]{--tw-translate-y:calc(30px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[30px\\]{--tw-translate-y:30px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-rotate-45{rotate:-45deg}.rotate-0{rotate:0deg}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform-gpu{transform:translateZ(0) var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.\\[justify-content\\:safe_center\\]{justify-content:safe center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-stretch{justify-content:stretch}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-\\[2px\\]{gap:2px}.gap-\\[5px\\]{gap:5px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 12) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-2\\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-1\\.5{row-gap:calc(var(--spacing) * 1.5)}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[14px\\]{border-radius:14px}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-black\\/10{border-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.border-black\\/10{border-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.border-green-400{border-color:var(--color-green-400)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-500\\/40{border-color:var(--color-primary-500)}@supports (color:color-mix(in lab, red, red)){.border-primary-500\\/40{border-color:color-mix(in oklab, var(--color-primary-500) 40%, transparent)}}.border-red-400{border-color:var(--color-red-400)}.border-slate-200{border-color:var(--color-slate-200)}.border-theme-100{border-color:var(--color-theme-100)}.border-theme-200{border-color:var(--color-theme-200)}.border-theme-300{border-color:var(--color-theme-300)}.border-theme-400{border-color:var(--color-theme-400)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-white\\/0{border-color:#0000}@supports (color:color-mix(in lab, red, red)){.border-white\\/0{border-color:color-mix(in oklab, var(--color-white) 0%, transparent)}}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.border-white\\/10{border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.border-white\\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\\/20{border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.border-white\\/25{border-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.border-white\\/25{border-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.border-t-primary-500{border-top-color:var(--color-primary-500)}.bg-\\[\\#0A1522\\]{background-color:#0a1522}.bg-\\[\\#050F19\\]{background-color:#050f19}.bg-amber-500{background-color:var(--color-amber-500)}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab, red, red)){.bg-black\\/30{background-color:color-mix(in oklab, var(--color-black) 30%, transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-current{background-color:currentColor}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-primary-500,.bg-primary-500\\/20{background-color:var(--color-primary-500)}@supports (color:color-mix(in lab, red, red)){.bg-primary-500\\/20{background-color:color-mix(in oklab, var(--color-primary-500) 20%, transparent)}}.bg-primary-600{background-color:var(--color-primary-600)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.bg-red-500\\/20{background-color:color-mix(in oklab, var(--color-red-500) 20%, transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-950{background-color:var(--color-slate-950)}.bg-theme-0{background-color:var(--color-theme-0)}.bg-theme-50{background-color:var(--color-theme-50)}.bg-theme-100{background-color:var(--color-theme-100)}.bg-theme-200,.bg-theme-200\\/70{background-color:var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.bg-theme-200\\/70{background-color:color-mix(in oklab, var(--color-theme-200) 70%, transparent)}}.bg-theme-300{background-color:var(--color-theme-300)}.bg-theme-400{background-color:var(--color-theme-400)}.bg-theme-500{background-color:var(--color-theme-500)}.bg-theme-800,.bg-theme-800\\/60{background-color:var(--color-theme-800)}@supports (color:color-mix(in lab, red, red)){.bg-theme-800\\/60{background-color:color-mix(in oklab, var(--color-theme-800) 60%, transparent)}}.bg-theme-900{background-color:var(--color-theme-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.bg-white\\/5{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\\/10{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\\/15{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.bg-white\\/55{background-color:#ffffff8c}@supports (color:color-mix(in lab, red, red)){.bg-white\\/55{background-color:color-mix(in oklab, var(--color-white) 55%, transparent)}}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\\[\\#050F19\\]\\/82{--tw-gradient-from:#050f19d1;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}@supports (color:color(display-p3 0 0 0)){.from-\\[\\#050F19\\]\\/82{--tw-gradient-from:color(display-p3 .0270841 .0577423 .0947219/.82)}}@supports (color:lab(0% 0 0)){.from-\\[\\#050F19\\]\\/82{--tw-gradient-from:lab(3.9307% -1.22581 -7.24003/.82)}}.from-black\\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab, red, red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab, var(--color-black) 80%, transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\\/90{--tw-gradient-from:#000000e6}@supports (color:color-mix(in lab, red, red)){.from-black\\/90{--tw-gradient-from:color-mix(in oklab, var(--color-black) 90%, transparent)}}.from-black\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-theme-800{--tw-gradient-from:var(--color-theme-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-\\[\\#050F19\\]\\/90{--tw-gradient-via:#050f19e6;--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}@supports (color:color(display-p3 0 0 0)){.via-\\[\\#050F19\\]\\/90{--tw-gradient-via:color(display-p3 .0270841 .0577423 .0947219/.9)}}@supports (color:lab(0% 0 0)){.via-\\[\\#050F19\\]\\/90{--tw-gradient-via:lab(3.9307% -1.22581 -7.24003/.9)}}.via-black\\/10{--tw-gradient-via:#0000001a}@supports (color:color-mix(in lab, red, red)){.via-black\\/10{--tw-gradient-via:color-mix(in oklab, var(--color-black) 10%, transparent)}}.via-black\\/10{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/50{--tw-gradient-via:#00000080}@supports (color:color-mix(in lab, red, red)){.via-black\\/50{--tw-gradient-via:color-mix(in oklab, var(--color-black) 50%, transparent)}}.via-black\\/50{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/60{--tw-gradient-via:#0009}@supports (color:color-mix(in lab, red, red)){.via-black\\/60{--tw-gradient-via:color-mix(in oklab, var(--color-black) 60%, transparent)}}.via-black\\/60{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/90{--tw-gradient-via:#000000e6}@supports (color:color-mix(in lab, red, red)){.via-black\\/90{--tw-gradient-via:color-mix(in oklab, var(--color-black) 90%, transparent)}}.via-black\\/90{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-\\[\\#050F19\\]\\/99{--tw-gradient-to:#050f19fc;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}@supports (color:color(display-p3 0 0 0)){.to-\\[\\#050F19\\]\\/99{--tw-gradient-to:color(display-p3 .0270841 .0577423 .0947219/.99)}}@supports (color:lab(0% 0 0)){.to-\\[\\#050F19\\]\\/99{--tw-gradient-to:lab(3.9307% -1.22581 -7.24003/.99)}}.to-black\\/40{--tw-gradient-to:#0006}@supports (color:color-mix(in lab, red, red)){.to-black\\/40{--tw-gradient-to:color-mix(in oklab, var(--color-black) 40%, transparent)}}.to-black\\/40{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\\/80{--tw-gradient-to:#000c}@supports (color:color-mix(in lab, red, red)){.to-black\\/80{--tw-gradient-to:color-mix(in oklab, var(--color-black) 80%, transparent)}}.to-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\\/100{--tw-gradient-to:var(--color-black);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-theme-950{--tw-gradient-to:var(--color-theme-950);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.object-cover{object-fit:cover}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-24{padding:calc(var(--spacing) * 24)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-14{padding-inline:calc(var(--spacing) * 14)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3\\.5{padding-bottom:calc(var(--spacing) * 3.5)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pb-\\[120px\\]{padding-bottom:120px}.pb-\\[max\\(3rem\\,env\\(safe-area-inset-bottom\\)\\)\\]{padding-bottom:max(3rem, env(safe-area-inset-bottom))}.pb-\\[max\\(env\\(safe-area-inset-bottom\\)\\,1rem\\)\\]{padding-bottom:max(env(safe-area-inset-bottom), 1rem)}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-\\[22px\\]{padding-left:22px}.pl-\\[30px\\]{padding-left:30px}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.leading-\\[1\\.55\\]{--tw-leading:1.55;line-height:1.55}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\\[0\\.35em\\]{--tw-tracking:.35em;letter-spacing:.35em}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#050F19\\]{color:#050f19}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-slate-950{color:var(--color-slate-950)}.text-theme-0{color:var(--color-theme-0)}.text-theme-300{color:var(--color-theme-300)}.text-theme-400{color:var(--color-theme-400)}.text-theme-500{color:var(--color-theme-500)}.text-theme-600{color:var(--color-theme-600)}.text-theme-700{color:var(--color-theme-700)}.text-theme-800{color:var(--color-theme-800)}.text-theme-900{color:var(--color-theme-900)}.text-theme-950{color:var(--color-theme-950)}.text-white{color:var(--color-white)}.text-white\\/30{color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.text-white\\/30{color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.text-white\\/35{color:#ffffff59}@supports (color:color-mix(in lab, red, red)){.text-white\\/35{color:color-mix(in oklab, var(--color-white) 35%, transparent)}}.text-white\\/40{color:#fff6}@supports (color:color-mix(in lab, red, red)){.text-white\\/40{color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.text-white\\/45{color:#ffffff73}@supports (color:color-mix(in lab, red, red)){.text-white\\/45{color:color-mix(in oklab, var(--color-white) 45%, transparent)}}.text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.text-white\\/50{color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.text-white\\/55{color:#ffffff8c}@supports (color:color-mix(in lab, red, red)){.text-white\\/55{color:color-mix(in oklab, var(--color-white) 55%, transparent)}}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\\/85{color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.text-white\\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.text-white\\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.text-white\\/95{color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.text-white\\/95{color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.placeholder-theme-300::placeholder{color:var(--color-theme-300)}.placeholder-theme-400::placeholder{color:var(--color-theme-400)}.placeholder-theme-500::placeholder{color:var(--color-theme-500)}.placeholder-white\\/50::placeholder{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.placeholder-white\\/50::placeholder{color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_12px_32px_rgba\\(15\\,23\\,42\\,0\\.07\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 12px 32px var(--tw-shadow-color,#0f172a12);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_8px_32px_-4px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 8px 32px -4px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_24px_80px_-12px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\,0_8px_24px_-8px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 24px 80px -12px var(--tw-shadow-color,#0003), 0 8px 24px -8px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-black\\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.ring-theme-200,.ring-theme-200\\/50{--tw-ring-color:var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.ring-theme-200\\/50{--tw-ring-color:color-mix(in oklab, var(--color-theme-200) 50%, transparent)}}.ring-theme-900{--tw-ring-color:var(--color-theme-900)}.ring-theme-950\\/20{--tw-ring-color:var(--color-theme-950)}@supports (color:color-mix(in lab, red, red)){.ring-theme-950\\/20{--tw-ring-color:color-mix(in oklab, var(--color-theme-950) 20%, transparent)}}.ring-white{--tw-ring-color:var(--color-white)}.ring-white\\/10{--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.ring-white\\/10{--tw-ring-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.ring-white\\/15{--tw-ring-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.ring-white\\/15{--tw-ring-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.ring-white\\/20{--tw-ring-color:#fff3}@supports (color:color-mix(in lab, red, red)){.ring-white\\/20{--tw-ring-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.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,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-250{--tw-duration:.25s;transition-duration:.25s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-1000{--tw-duration:1s;transition-duration:1s}.duration-\\[400ms\\]{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\.25\\,1\\,0\\.33\\,1\\)\\]{--tw-ease:cubic-bezier(.25,1,.33,1);transition-timing-function:cubic-bezier(.25,1,.33,1)}.ease-\\[cubic-bezier\\(0\\.52\\,0\\.01\\,0\\.16\\,1\\)\\]{--tw-ease:cubic-bezier(.52,.01,.16,1);transition-timing-function:cubic-bezier(.52,.01,.16,1)}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.\\[-ms-overflow-style\\:none\\]{-ms-overflow-style:none}.\\[animation-duration\\:3s\\]{animation-duration:3s}.\\[overflow-anchor\\:none\\]{overflow-anchor:none}@media (hover:hover){.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\\:opacity-40:is(:where(.group):hover *){opacity:.4}.group-hover\\/msg\\:opacity-100:is(:where(.group\\/msg):hover *){opacity:1}}.focus-within\\:bg-white\\/15:focus-within{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.focus-within\\:bg-white\\/15:focus-within{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.focus-within\\:opacity-100:focus-within{opacity:1}.focus-within\\:ring-theme-950\\/30:focus-within{--tw-ring-color:var(--color-theme-950)}@supports (color:color-mix(in lab, red, red)){.focus-within\\:ring-theme-950\\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-theme-950) 30%, transparent)}}.focus-within\\:ring-white\\/25:focus-within{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.focus-within\\:ring-white\\/25:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}@media (hover:hover){.hover\\:translate-y-\\[-1px\\]:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:rotate-90:hover{rotate:90deg}.hover\\:border-green-300:hover{border-color:var(--color-green-300)}.hover\\:border-primary-300:hover{border-color:var(--color-primary-300)}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:border-theme-200:hover{border-color:var(--color-theme-200)}.hover\\:border-theme-300:hover{border-color:var(--color-theme-300)}.hover\\:border-white\\/10:hover{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\\:border-white\\/10:hover{border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\\:border-white\\/40:hover{border-color:#fff6}@supports (color:color-mix(in lab, red, red)){.hover\\:border-white\\/40:hover{border-color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.hover\\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\\:bg-primary-500:hover{background-color:var(--color-primary-500)}.hover\\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\\:bg-theme-25:hover{background-color:var(--color-theme-25)}.hover\\:bg-theme-50:hover{background-color:var(--color-theme-50)}.hover\\:bg-theme-100:hover{background-color:var(--color-theme-100)}.hover\\:bg-theme-200:hover{background-color:var(--color-theme-200)}.hover\\:bg-theme-700:hover{background-color:var(--color-theme-700)}.hover\\:bg-theme-800:hover{background-color:var(--color-theme-800)}.hover\\:bg-white\\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/5:hover{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/15:hover{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.hover\\:text-primary-600:hover{color:var(--color-primary-600)}.hover\\:text-theme-400:hover{color:var(--color-theme-400)}.hover\\:text-theme-500:hover{color:var(--color-theme-500)}.hover\\:text-theme-600:hover{color:var(--color-theme-600)}.hover\\:text-theme-700:hover{color:var(--color-theme-700)}.hover\\:text-theme-800:hover{color:var(--color-theme-800)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:text-white\\/70:hover{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.hover\\:text-white\\/70:hover{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.hover\\:text-white\\/80:hover{color:#fffc}@supports (color:color-mix(in lab, red, red)){.hover\\:text-white\\/80:hover{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.hover\\:opacity-70:hover{opacity:.7}.hover\\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:ring-theme-950\\/30:hover{--tw-ring-color:var(--color-theme-950)}@supports (color:color-mix(in lab, red, red)){.hover\\:ring-theme-950\\/30:hover{--tw-ring-color:color-mix(in oklab, var(--color-theme-950) 30%, transparent)}}.hover\\:ring-white\\/25:hover{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.hover\\:ring-white\\/25:hover{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);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,)}}.focus\\:border-theme-900:focus{border-color:var(--color-theme-900)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-theme-900:focus-visible{--tw-ring-color:var(--color-theme-900)}.focus-visible\\:ring-white:focus-visible{--tw-ring-color:var(--color-white)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:-translate-y-0\\.5:active{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.active\\:scale-\\[1\\.06\\]:active{scale:1.06}.active\\:bg-theme-800\\/80:active{background-color:var(--color-theme-800)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-theme-800\\/80:active{background-color:color-mix(in oklab, var(--color-theme-800) 80%, transparent)}}.active\\:bg-white\\/25:active{background-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.active\\:bg-white\\/25:active{background-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.active\\:opacity-70:active{opacity:.7}.active\\:opacity-80:active{opacity:.8}.active\\:duration-100:active{--tw-duration:.1s;transition-duration:.1s}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:top-6{top:calc(var(--spacing) * 6)}.sm\\:right-6{right:calc(var(--spacing) * 6)}.sm\\:bottom-6{bottom:calc(var(--spacing) * 6)}.sm\\:left-6{left:calc(var(--spacing) * 6)}.sm\\:size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.sm\\:h-24{height:calc(var(--spacing) * 24)}.sm\\:max-h-\\[620px\\]{max-height:620px}.sm\\:w-24{width:calc(var(--spacing) * 24)}.sm\\:max-w-\\[420px\\]{max-width:420px}.sm\\:flex-none{flex:none}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:rounded-\\[32px\\]{border-radius:32px}.sm\\:bg-\\[\\#050F19\\]\\/45{background-color:#050f1973;background-color:color(display-p3 .0270841 .0577423 .0947219/.45);background-color:lab(3.9307% -1.22581 -7.24003/.45)}.sm\\:p-6{padding:calc(var(--spacing) * 6)}.sm\\:px-12{padding-inline:calc(var(--spacing) * 12)}.sm\\:pb-7{padding-bottom:calc(var(--spacing) * 7)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\\:shadow-\\[0_32px_80px_rgba\\(5\\,15\\,25\\,0\\.45\\)\\]{--tw-shadow:0 32px 80px var(--tw-shadow-color,#050f1973);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}@media (min-width:48rem){.md\\:h-\\[600px\\]{height:600px}}@container bot (width>=480px){.\\@\\[480px\\]\\/bot\\:px-6{padding-inline:calc(var(--spacing) * 6)}}@container chat (width>=24rem){.\\@sm\\/chat\\:ml-\\[2em\\]{margin-left:2em}.\\@sm\\/chat\\:size-24{width:calc(var(--spacing) * 24);height:calc(var(--spacing) * 24)}}@container chat-preview (width>=24rem){.\\@sm\\/chat-preview\\:max-w-\\[78\\%\\]{max-width:78%}}@container chat (width>=24rem){.\\@sm\\/chat\\:max-w-\\[320px\\]{max-width:320px}.\\@sm\\/chat\\:pr-\\[2em\\]{padding-right:2em}.\\@sm\\/chat\\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.\\@sm\\/chat\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.\\@sm\\/chat\\:text-\\[11px\\]{font-size:11px}.\\@sm\\/chat\\:text-\\[15px\\]{font-size:15px}.\\@sm\\/chat\\:leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}}@container chat (width>=28rem){.\\@md\\/chat\\:block{display:block}}@container chat (width>=32rem){.\\@lg\\/chat\\:px-8{padding-inline:calc(var(--spacing) * 8)}}@container chat (width>=64rem){.\\@5xl\\/chat\\:max-w-\\[720px\\]{max-width:720px}.\\@5xl\\/chat\\:max-w-\\[740px\\]{max-width:740px}.\\@5xl\\/chat\\:px-5{padding-inline:calc(var(--spacing) * 5)}.\\@5xl\\/chat\\:pt-3\\.5{padding-top:calc(var(--spacing) * 3.5)}.\\@5xl\\/chat\\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (prefers-color-scheme:dark){.dark\\:bg-theme-600\\/90{background-color:var(--color-theme-600)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-theme-600\\/90{background-color:color-mix(in oklab, var(--color-theme-600) 90%, transparent)}}}@media (pointer:coarse){.pointer-coarse\\:size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.pointer-coarse\\:opacity-100{opacity:1}}.\\[\\&_\\.chat-msg-rich\\]\\:max-w-none .chat-msg-rich{max-width:none}.\\[\\&_\\.chat-msg-rich\\]\\:text-\\[13px\\] .chat-msg-rich{font-size:13px}.\\[\\&_\\.chat-msg-rich\\]\\:leading-\\[1\\.6\\] .chat-msg-rich{--tw-leading:1.6;line-height:1.6}.\\[\\&_\\.chat-msg-rich\\]\\:italic .chat-msg-rich{font-style:italic}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}}.chat-dots{align-items:center;gap:3px;display:inline-flex}.chat-dots>span{background:currentColor;border-radius:9999px;width:5px;height:5px;animation:1.4s cubic-bezier(.25,1,.33,1) infinite chat-dot}.chat-dots>span:nth-child(2){animation-delay:.16s}.chat-dots>span:nth-child(3){animation-delay:.32s}@keyframes chat-dot{0%,52%,to{opacity:.25;transform:translateY(0)}22%{opacity:1;transform:translateY(-1.5px)}}.chat-dots--mini{gap:2.5px}.chat-dots--mini>span{width:3.5px;height:3.5px}.chat-pulse-dot{animation:1.4s cubic-bezier(.25,1,.33,1) infinite chat-pulse-dot}@keyframes chat-pulse-dot{0%,to{opacity:.35;transform:scale(.7)}35%{opacity:1;transform:scale(1)}}.chat-live-enter{animation:.28s cubic-bezier(.25,1,.33,1) both chat-live-enter}@keyframes chat-live-enter{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.chat-dots>span,.chat-pulse-dot{opacity:.55;animation:none}.chat-live-enter{animation:none}}.chat-msg-prose :first-child{margin-top:0}.chat-msg-prose :last-child{margin-bottom:0}.chat-msg-prose+.chat-msg-prose{margin-top:1em}.chat-msg-prose strong{font-weight:600}.chat-msg-prose em{font-style:italic}.chat-msg-prose a{color:var(--color-primary-500);text-underline-offset:3px;text-decoration:underline;-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);text-decoration-color:var(--color-primary-500)}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose a{-webkit-text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent);-webkit-text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent);-webkit-text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent);text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent)}}.chat-msg-prose a{font-weight:500;transition:text-decoration-color .15s}.chat-msg-prose a:hover{-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);text-decoration-color:var(--color-primary-500)}.chat-msg-prose.chat-msg-prose-invert a{color:#fff;text-decoration-color:#ffffff73}.chat-msg-prose.chat-msg-prose-invert a:hover{text-decoration-color:#fff}.chat-msg-prose.chat-msg-prose-invert pre,.chat-msg-prose.chat-msg-prose-invert table{background:#ffffff14;border-color:#ffffff2e}.chat-msg-prose.chat-msg-prose-invert td{border-top-color:#ffffff1f}.chat-msg-prose.chat-msg-prose-invert :not(pre)>code{background:#ffffff24}.chat-msg-prose.chat-msg-prose-invert hr{border-top-color:#ffffff38}.chat-msg-prose p{margin:1em 0;line-height:1.55}.chat-msg-prose h1{letter-spacing:-.012em;margin:1.1em 0 .5em;font-size:1.25em;font-weight:600;line-height:1.3}.chat-msg-prose h2{letter-spacing:-.01em;margin:1.1em 0 .45em;font-size:1.15em;font-weight:600;line-height:1.3}.chat-msg-prose h3{letter-spacing:-.008em;margin:1em 0 .4em;font-size:1.05em;font-weight:600;line-height:1.35}.chat-msg-prose h4,.chat-msg-prose h5,.chat-msg-prose h6{margin:.9em 0 .35em;font-size:1em;font-weight:600;line-height:1.4}.chat-msg-prose ul,.chat-msg-prose ol{margin:.7em 0 .9em;padding-left:1.4em;line-height:1.55}.chat-msg-prose ul{list-style-type:disc}.chat-msg-prose ol{list-style-type:decimal}.chat-msg-prose li{margin-bottom:.35em}.chat-msg-prose li p{margin:0}.chat-msg-prose li::marker{color:currentColor;opacity:.4}.chat-msg-prose li:has(>input[type=checkbox]){margin-left:-1.4em;list-style:none}.chat-msg-prose li>input[type=checkbox]{-webkit-appearance:none;appearance:none;vertical-align:-.06em;border:1px solid var(--color-theme-300);background:0 0;border-radius:.22em;width:.82em;height:.82em;margin:0 .5em 0 .1em}.chat-msg-prose li>input[type=checkbox]:checked{border-color:var(--color-theme-900);background:var(--color-theme-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.8 6.8 9 1.2' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .55em no-repeat}.chat-msg-prose.chat-msg-prose-invert li>input[type=checkbox]{border-color:#fff6}.chat-msg-prose.chat-msg-prose-invert li>input[type=checkbox]:checked{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.8 6.8 9 1.2' fill='none' stroke='%230c0a13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");border-color:#fff}.chat-msg-prose pre{background:var(--color-theme-25);border:1px solid var(--color-theme-200);border-radius:.625rem;margin:1.4em 0;padding:.85em 1em;font-family:SF Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.82em;line-height:1.5;overflow-x:auto}.chat-msg-prose pre code{font-size:inherit;background:0 0;padding:0;font-family:inherit}.chat-msg-prose :not(pre)>code{background:var(--color-theme-200);border-radius:.3rem;padding:.15em .4em;font-size:.85em}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose :not(pre)>code{background:color-mix(in oklch, var(--color-theme-200) 45%, transparent)}}.chat-msg-prose :not(pre)>code{font-family:SF Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.chat-msg-prose blockquote{opacity:.8;margin:1.3em 0;padding:0 0 0 1.1em;font-style:italic}.chat-msg-prose blockquote p{margin:.15em 0}.chat-msg-prose table{background:var(--color-theme-0);border-collapse:separate;border-spacing:0;border:1px solid var(--color-theme-200);border-radius:.625rem;width:100%;margin:1.4em 0;font-size:.9em;line-height:1.45;overflow:hidden}.chat-msg-prose th,.chat-msg-prose td{text-align:left;padding:.65em .8em}.chat-msg-prose th{font-weight:600}.chat-msg-prose td{border-top:1px solid var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose td{border-top:1px solid color-mix(in oklch, var(--color-theme-200) 45%, transparent)}}.chat-msg-prose td{color:currentColor}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose td{color:color-mix(in oklch, currentColor 75%, transparent)}}.chat-msg-prose td:first-child{color:inherit}.chat-msg-prose [align=center]{text-align:center}.chat-msg-prose [align=right]{text-align:right}.chat-msg-prose [align=left]{text-align:left}.chat-msg-prose hr{border:none;border-top:1px solid var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose hr{border-top:1px solid color-mix(in oklch, var(--color-theme-200) 42%, transparent)}}.chat-msg-prose hr{margin:1.2em 0}.chat-msg-prose img{border-radius:.5rem;max-width:100%;height:auto;margin:.6em 0}.chat-msg-prose p+p{margin-top:.65em}.chat-msg-prose p+ul,.chat-msg-prose p+ol{margin-top:.4em}.chat-msg-prose h1+p,.chat-msg-prose h2+p,.chat-msg-prose h3+p{margin-top:.2em}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}`,Gj={"data-test":"auth-panel",class:"flex flex-col justify-end h-full px-5 pb-8 pt-6"},Jj={class:"flex-1 flex flex-col justify-center"},qj={key:0,class:"text-xs text-red-500 mb-4"},Yj={class:"space-y-3"},Xj={key:0},Qj={key:1,class:"space-y-3"},eM={key:2,class:"space-y-3"},tM={class:"text-xs text-theme-400"},rM=Ue({__name:"ElAuthPanel",props:{sdk:{}},setup(e){let t=q(!1),n=q("email"),i=q({email:"",code:""}),r=q(!1);function o(){e.sdk.error.value=null,e.sdk.auth.loginWithGoogle({onError:l=>{e.sdk.error.value=l}})}async function a(){if(!r.value){r.value=!0,e.sdk.error.value=null;try{await e.sdk.auth.requestAuthCode({email:i.value.email})&&(n.value="code")}finally{r.value=!1}}}async function s(){if(!r.value){r.value=!0,e.sdk.error.value=null;try{await e.sdk.auth.loginWithCode({email:i.value.email,code:i.value.code})}finally{r.value=!1}}}return(l,u)=>(w(),_("div",Gj,[k("div",Jj,[u[4]||(u[4]=k("div",{class:"space-y-3 mb-10"},[k("h3",{class:"text-2xl font-light text-theme-900 leading-snug"},[$t(" Your AI assistant,"),k("br"),$t("ready in two minutes. ")]),k("p",{class:"text-sm text-theme-400 leading-relaxed max-w-[260px]"}," Sign in to create and deploy a personal AI that works for you. ")],-1)),e.sdk.error.value?(w(),_("p",qj,le(e.sdk.error.value),1)):ee("",!0)]),k("div",Yj,[k("button",{"data-test":"google-auth-btn",class:"w-full flex items-center justify-center gap-3 px-5 py-3.5 rounded-xl border border-theme-200 bg-theme-0 text-theme-800 font-medium text-sm transition-all duration-150 hover:border-theme-300 hover:bg-theme-25 active:scale-[0.98] cursor-pointer",onClick:o},[...u[5]||(u[5]=[tS('<svg class="size-[18px]" viewBox="0 0 24 24"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"></path><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"></path><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" fill="#FBBC05"></path><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"></path></svg> Continue with Google ',2)])]),u[8]||(u[8]=k("div",{class:"flex items-center gap-3 py-1"},[k("div",{class:"flex-1 h-px bg-theme-100"}),k("span",{class:"text-[11px] text-theme-300 uppercase tracking-widest"},"or"),k("div",{class:"flex-1 h-px bg-theme-100"})],-1)),t.value?ee("",!0):(w(),_("div",Xj,[k("button",{"data-test":"email-auth-link",class:"w-full px-5 py-3 rounded-xl border border-theme-100 text-sm text-theme-500 transition-all duration-150 hover:border-theme-200 hover:text-theme-700 cursor-pointer",onClick:u[0]||(u[0]=d=>t.value=!0)}," Use email instead ")])),t.value&&n.value==="email"?(w(),_("div",Qj,[ye(wp,{modelValue:i.value.email,"onUpdate:modelValue":u[1]||(u[1]=d=>i.value.email=d),"data-test":"auth-email-input",onKeyup:Vn(a,["enter"])},null,8,["modelValue"]),ye(La,{"data-test":"auth-send-code",theme:"dark",size:"md",class:"w-full",loading:r.value,disabled:!i.value.email||r.value,onClick:a},{default:_t(()=>[...u[6]||(u[6]=[$t(" Send verification code ",-1)])]),_:1},8,["loading","disabled"])])):ee("",!0),t.value&&n.value==="code"?(w(),_("div",eM,[k("p",tM," Code sent to "+le(i.value.email),1),ye(kp,{modelValue:i.value.code,"onUpdate:modelValue":u[2]||(u[2]=d=>i.value.code=d),length:6,"focus-first":!0,"data-test":"auth-code-input",onAutoSubmit:s},null,8,["modelValue"]),ye(La,{"data-test":"auth-verify-code",theme:"dark",size:"md",class:"w-full",loading:r.value,disabled:i.value.code.length!==6||r.value,onClick:s},{default:_t(()=>[...u[7]||(u[7]=[$t(" Verify ",-1)])]),_:1},8,["loading","disabled"]),k("button",{class:"w-full text-xs text-theme-300 hover:text-theme-500 transition-colors py-1 cursor-pointer",onClick:u[3]||(u[3]=d=>n.value="email")}," Use a different email ")])):ee("",!0)])]))}}),nM={"data-test":"create-panel",class:"flex flex-col justify-end h-full px-5 pb-8 pt-6"},iM={class:"flex-1 flex flex-col justify-center"},oM={key:0,class:"text-xs text-red-500 mb-4"},aM={class:"space-y-3"},sM=["disabled"],lM=Ue({__name:"ElCreateBot",props:{sdk:{}},emits:["created"],setup(e,{emit:t}){let n=t,i=q(""),r=q(!1),o=q(null);async function a(){if(!r.value&&i.value.trim()){r.value=!0,o.value=null;try{let s=e.sdk.currentOrg.value?.orgId??e.sdk.activeUser.value?.orgs?.[0]?.orgId;if(!s)throw Error("No workspace found. Please sign in again.");let l=await e.sdk.computer.create({orgId:s,primaryBot:{name:i.value.trim()}});n("created",l)}catch(s){o.value=s instanceof Error?s.message:"Failed to create bot"}finally{r.value=!1}}}return(s,l)=>(w(),_("div",nM,[k("div",iM,[l[1]||(l[1]=k("div",{class:"space-y-3 mb-10"},[k("h3",{class:"text-2xl font-light text-theme-900 leading-snug"},[$t(" What should we call"),k("br"),$t("your assistant? ")]),k("p",{class:"text-sm text-theme-400 leading-relaxed max-w-[260px]"}," Pick a name. You can change it later. ")],-1)),o.value?(w(),_("p",oM,le(o.value),1)):ee("",!0)]),k("div",aM,[jd(k("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>i.value=u),"data-test":"bot-name-input",type:"text",placeholder:"e.g. Alex, Casey, Jordan",class:"w-full px-4 py-3 text-theme-900 placeholder-theme-300 bg-theme-0 border border-theme-200 rounded-xl focus:outline-none focus:border-theme-900 transition-colors",style:{"font-size":"16px"},onKeyup:Vn(a,["enter"])},null,544),[[Jd,i.value]]),k("button",{"data-test":"bot-create-btn",class:"w-full px-5 py-3.5 rounded-xl bg-primary-600 text-white text-sm font-medium transition-all duration-150 hover:bg-primary-500 active:scale-[0.98] disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",disabled:!i.value.trim()||r.value,onClick:a},le(r.value?"Creating...":"Create assistant"),9,sM)])]))}}),cM={"data-test":"provisioning-panel",class:"flex flex-col items-center justify-center h-full p-6"},uM={class:"w-full max-w-xs space-y-6 text-center"},dM={class:"text-sm text-theme-500"},pM={class:"text-sm text-red-500"},fM=Ue({__name:"ElProvisioningStatus",props:{sdk:{},computerId:{}},emits:["ready","error"],setup(e,{emit:t}){let n=e,i=t,r=q("Setting up your assistant\u2026"),o=q(!1),a=q(""),s={starting:"Starting your assistant\u2026",running:"Ready!",stopped:"Setting up your assistant\u2026"};async function l(){o.value=!1,a.value="";try{await n.sdk.computer.waitUntilReady({computerId:n.computerId,onStatus:u=>{r.value=s[u]??"Setting up your assistant\u2026"}}),i("ready")}catch(u){o.value=!0,a.value=u instanceof Error?u.message:"Something went wrong",i("error",a.value)}}return Pt(()=>{l()}),(u,d)=>(w(),_("div",cM,[k("div",uM,[o.value?(w(),_(ge,{key:1},[k("p",pM,le(a.value),1),k("button",{"data-test":"provision-retry-btn",class:"px-6 py-2.5 rounded-lg bg-primary-600 text-white text-sm font-medium hover:bg-primary-500 transition-colors cursor-pointer",onClick:l}," Try again ")],64)):(w(),_(ge,{key:0},[d[0]||(d[0]=k("div",{class:"flex justify-center"},[k("div",{class:"animate-spin rounded-full size-6 border-2 border-theme-200 border-t-primary-500"})],-1)),k("p",dM,le(r.value),1)],64))])]))}});function mM(e){return e.hasToken?e.hasBot?e.isNewBot?e.provisionError?"error":e.botReady?"chat":"provisioning":"chat":"create":"auth"}var hM=["data-test-state"],gM={class:"flex items-center justify-between px-4 py-3 border-b border-theme-100"},vM={class:"text-sm font-medium text-theme-800"},bM={class:"flex-1 overflow-hidden"},yM={key:4,class:"flex flex-col items-center justify-center h-full p-6"},wM={class:"w-full max-w-xs space-y-6 text-center"},kM={class:"text-sm text-red-500"},xM={key:0,class:"border-t border-theme-100 px-4 py-2 text-center"},_M=["href"],$M=Ue({__name:"BotWidgetOnboard",props:{sdk:{},onClose:{type:Function}},setup(e){let t=e,n=t.sdk||Pl.getInstance({isDev:typeof window<"u"?window.location.hostname==="localhost"||window.location.hostname.includes("127.0.0.1"):!1}),i=We(),r=q(!1),o=q(),a=q(!1),s=P(()=>i.value??n.currentBot.value),l=We(),u=We();ft(()=>s.value?.botId.value,x=>{if(!x||!s.value){l.value=void 0,u.value=void 0;return}let A=s.value;l.value=A,u.value=new Zl({sdk:n,bot:A,chatStreamFn:async I=>{await n.chat.chatStreamAuthenticated({botId:x,orgId:A.computer.orgId.value,message:I.message,attachments:I.attachments?.map(E=>k0.parse(E)),conversationId:I.conversationId,history:I.history,onDelta:I.onDelta,onDone:I.onDone,onError:I.onError,onStatus:I.onStatus,onToolActivity:I.onToolActivity,onWorkingEnd:I.onWorkingEnd})}})},{immediate:!0});let d=P(()=>mM({hasToken:!!n.token.value,hasBot:!!s.value,isNewBot:a.value,botReady:r.value,provisionError:o.value})),p=P(()=>`${Hn(n.apiBase,n.isDev)}/`);function f(x){i.value=x,o.value=void 0,r.value=!1,a.value=!0}function m(){r.value=!0}function h(x){o.value=x}function v(){o.value=void 0,r.value=!1}return(x,A)=>(w(),_("div",{class:"size-full flex flex-col bg-theme-0","data-test":"onboard-widget","data-test-state":d.value},[k("div",gM,[k("span",vM,le(s.value?.name.value||"PageLines"),1),t.onClose?(w(),_("button",{key:0,class:"text-theme-400 hover:text-theme-600 transition-colors cursor-pointer",onClick:A[0]||(A[0]=I=>t.onClose?.())},[...A[1]||(A[1]=[k("svg",{xmlns:"http://www.w3.org/2000/svg",class:"size-5",viewBox:"0 0 20 20",fill:"currentColor"},[k("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])])):ee("",!0)]),k("div",bM,[d.value==="auth"?(w(),Ge(rM,{key:0,sdk:Ce(n)},null,8,["sdk"])):ee("",!0),d.value==="create"?(w(),Ge(lM,{key:1,sdk:Ce(n),onCreated:f},null,8,["sdk"])):ee("",!0),d.value==="provisioning"&&s.value?(w(),Ge(fM,{key:2,sdk:Ce(n),"computer-id":s.value.computerId.value,onReady:m,onError:h},null,8,["sdk","computer-id"])):ee("",!0),d.value==="chat"&&l.value&&u.value?(w(),Ge(mo,{key:3,"chat-controller":u.value,bot:l.value,variant:"light",class:"size-full"},null,8,["chat-controller","bot"])):ee("",!0),d.value==="error"?(w(),_("div",yM,[k("div",wM,[k("p",kM,le(o.value),1),k("button",{class:"px-6 py-2.5 rounded-lg bg-primary-600 text-white text-sm font-medium hover:bg-primary-500 transition-colors cursor-pointer",onClick:v}," Try again ")])])):ee("",!0)]),d.value==="chat"?(w(),_("div",xM,[k("a",{href:p.value,target:"_blank",class:"text-xs text-theme-400 hover:text-primary-600 transition-colors"}," Go to Dashboard \u2192 ",8,_M)])):ee("",!0)],8,hM))}}),SM={class:"relative size-16 rounded-full overflow-hidden"},IM=["src","alt"],EM={class:"flex items-center shrink-0 border-b border-theme-100 px-4 py-3"},TM={class:"flex items-center gap-3 flex-1 min-w-0"},NM=["src","alt"],CM={class:"min-w-0"},zM={class:"text-sm font-medium text-theme-900 truncate"},OM={class:"flex-1 overflow-hidden"},AM={class:"shrink-0 flex items-center justify-center border-t border-theme-100 py-1.5"},DM=["href"],PM=yp(Ue({__name:"BotWidgetPopup",props:{sdk:{},handle:{},bot:{},context:{},firstMessage:{},position:{},chatController:{}},setup(e,{expose:t}){let n=e,i=q(!1),r=q(!1),o=We(),{currentBot:a,currentContext:s,currentFirstMessage:l,update:u}=Fa(n),d=P(()=>({"bottom-left":"bottom-4 left-4 sm:bottom-6 sm:left-6","top-right":"top-4 right-4 sm:top-6 sm:right-6","top-left":"top-4 left-4 sm:top-6 sm:left-6","bottom-right":"bottom-4 right-4 sm:bottom-6 sm:right-6"})[n.position||"bottom-right"]),p=P(()=>({"bottom-left":"bottom left","top-right":"top right","top-left":"top left","bottom-right":"bottom right"})[n.position||"bottom-right"]),f=P(()=>({"bottom-left":"bottom-0 left-0","top-right":"top-0 right-0","top-left":"top-0 left-0","bottom-right":"bottom-0 right-0"})[n.position||"bottom-right"]);function m(A,I){n.chatController||o.value||(o.value=new Zl({sdk:I,bot:A,context:s.value,firstMessage:l.value}))}ft(i,async A=>{if(!A||r.value)return;r.value=!0;let I=n.chatController||o.value;if(I)try{await I.startTextConversation()}catch(E){console.error("BotWidgetPopup: startTextConversation failed",E)}});function h(){i.value=!i.value}function v(){i.value=!0}function x(){i.value=!1}return t({toggle:h,open:v,close:x,update:u}),(A,I)=>(w(),Ge(_p,{sdk:e.sdk,handle:e.handle,bot:Ce(a),context:Ce(s),"first-message":Ce(l)},{default:_t(({bot:E,sdk:M})=>[E?(w(),_("div",{key:0,ref:()=>m(E,M),class:V(["fixed z-[999999] pointer-events-auto",d.value])},[k("div",{class:V(["widget-container transform-gpu overflow-hidden",i.value?"w-[min(400px,calc(100vw-2rem))] h-[min(600px,calc(100vh-4rem))] shadow-[0_24px_80px_-12px_rgba(0,0,0,0.2),0_8px_24px_-8px_rgba(0,0,0,0.08)]":"w-16 h-16 shadow-[0_8px_32px_-4px_rgba(0,0,0,0.15)] cursor-pointer"]),style:_e({"border-radius":i.value?"16px":"32px","transform-origin":p.value}),onClick:I[0]||(I[0]=z=>i.value?void 0:h())},[k("div",{class:V(["absolute size-16 transition-opacity duration-200",[f.value,i.value?"opacity-0 pointer-events-none":"opacity-100"]])},[k("div",SM,[k("img",{src:Ce(g2)(E.toData()),alt:`${E.name.value} bot`,class:"h-full w-full object-cover pointer-events-none",width:"64",height:"64"},null,8,IM),I[1]||(I[1]=k("div",{class:"absolute inset-0 pointer-events-none bg-gradient-to-br from-transparent via-black/10 to-black/40 opacity-60"},null,-1))])],2),k("div",{class:V(["absolute inset-0 flex flex-col bg-white transition-opacity duration-250",i.value?"opacity-100":"opacity-0 pointer-events-none"])},[k("div",EM,[k("div",TM,[k("img",{src:E.avatarUrl.value,alt:E.name.value,class:"size-8 rounded-full object-cover shrink-0"},null,8,NM),k("div",CM,[k("div",zM,le(E.displayName.value),1),k("div",{class:V(["text-[11px]",E.desiredStatus.value==="active"?"text-green-500":"text-theme-400"])},le(E.desiredStatus.value==="active"?"Online":"Offline"),3)])]),k("button",{class:"cursor-pointer flex items-center justify-center p-2 -mr-1 rounded-xl text-theme-400 hover:text-theme-600 hover:bg-theme-50 transition-colors",onClick:Et(x,["stop"])},[...I[2]||(I[2]=[k("i",{class:"size-5 i-tabler-x"},null,-1)])])]),k("div",OM,[r.value?(w(),Ge(mo,{key:0,"chat-controller":e.chatController||o.value,bot:E,variant:"light","setup-hint":"","empty-state-message":"Send a message to get started"},null,8,["chat-controller","bot"])):ee("",!0)]),k("div",AM,[k("a",{href:Ce(Nl).urls.app,target:"_blank",rel:"noopener",class:"text-[10px] text-theme-300 hover:text-theme-400 transition-colors"}," Learning Bot\u2122 by PageLines ",8,DM)])],2)],6),E.desiredStatus.value==="active"?(w(),_("div",{key:0,class:V(["absolute top-[5%] right-[5%] transition-opacity duration-200 pointer-events-none",i.value?"opacity-0":"opacity-100"])},[...I[3]||(I[3]=[k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"5s"}},null,-1),k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1)])],2)):ee("",!0)],2)):ee("",!0)]),_:1},8,["sdk","handle","bot","context","first-message"]))}}),[["__scopeId","data-v-5674cae2"]]),xn=ao("PLWidget"),Gl=class go{static create(t){return new go(t)}static collectPageContext(){if(typeof window>"u"||typeof document>"u")return"";let t=[],n=window.location.href;n&&t.push(`Page URL: ${n}`);let i=document.title;i&&t.push(`Page title: ${i}`);let r=document.querySelector('meta[name="description"]')?.getAttribute("content");r&&t.push(`Page description: ${r}`);let o=document.querySelector('meta[property="og:title"]')?.getAttribute("content");o&&o!==i&&t.push(`OG title: ${o}`);let a=document.referrer;a&&t.push(`Referrer: ${a}`);let s=window.location.pathname;return s&&s!=="/"&&t.push(`Path: ${s}`),t.join(`
162
+ \`\`\``)}))}else{let ve=zI(ne);if(ve.ok)I.push({kind:"visual",key:`visual-${z}`,result:ve});else{typeof console<"u"&&console.warn("[pl-visual] parse_failed",{reason:ve.reason,message:ve.message,hasFallbackMarkdown:!!ve.fallbackMarkdown,payloadChars:ne.length,...u(ne)});let Le=ve.fallbackMarkdown?s(ve.fallbackMarkdown):"";Le&&I.push({kind:"markdown",key:`visual-${z}`,html:Le})}}M=D.index+D[0].length,z+=1,D=E.exec(x)}let X=x.slice(M),le=A?f.exec(X):null;if(le){let Q=s(X.slice(0,le.index));return Q&&I.push({kind:"markdown",key:`md-${z}`,html:Q}),I.push({kind:"pending-visual",key:`pending-${z}`}),I}let ie=s(X);return ie&&I.push({kind:"markdown",key:`md-${z}`,html:ie}),I}let h=P(()=>{let v=r.value;return v?m({text:v,streaming:!!n.streaming}):[]});return(v,x)=>(w(),_("div",{class:"chat-msg-rich break-words text-[14px] leading-[1.55] @sm/chat:text-[15px] @sm/chat:leading-[1.5]",onErrorCapture:p},[(w(!0),_(ge,null,st(h.value,A=>(w(),_(ge,{key:A.key},[A.kind==="markdown"?(w(),_("div",{key:0,class:V(["chat-msg-prose",e.inverted?"chat-msg-prose-invert":""]),innerHTML:A.html},null,10,VP)):A.kind==="visual"?(w(),Ge(LP,{key:1,result:A.result,inverted:e.inverted},null,8,["result","inverted"])):A.kind==="card"?(w(),Ge(Q5,{key:2,spec:A.spec,inverted:e.inverted,onAction:x[0]||(x[0]=I=>i("action",I))},null,8,["spec","inverted"])):(w(),_("div",{key:3,"data-test":"chat-visual-pending",role:"status",class:"my-6 flex items-center gap-2.5 rounded-[20px] px-4 py-5 text-[12px] font-medium",style:_e({background:e.inverted?"transparent":"var(--color-theme-0)",boxShadow:`inset 0 0 0 1px ${e.inverted?"rgba(255, 255, 255, 0.14)":"color-mix(in oklch, var(--color-theme-900) 8%, transparent)"}`,color:e.inverted?"rgba(255, 255, 255, 0.6)":"var(--color-theme-500)"})},[...x[1]||(x[1]=[k("span",{class:"size-2 shrink-0 animate-pulse rounded-full",style:{background:"currentcolor"}},null,-1),$t(" Preparing chart\u2026 ",-1)])],4))],64))),128))],32))}}),FP=80,BP=600,ZP=Ue({__name:"ChatScroller",setup(e,{expose:t}){let n=q(),i=q(),r=q(!0),o,a,s=0;function l(){let m=n.value;m&&(m.scrollTop=m.scrollHeight)}function u(){let m=n.value;m&&(r.value=m.scrollHeight-m.scrollTop-m.clientHeight<=FP)}function d(){s=Date.now()+BP}function p(){r.value&&Date.now()>s&&l()}function f(){r.value=!0,s=0,l(),requestAnimationFrame(()=>{l(),requestAnimationFrame(l)})}return t({pin:f}),Pt(()=>{requestAnimationFrame(()=>{l(),requestAnimationFrame(l)}),i.value&&(o=new ResizeObserver(p),o.observe(i.value),n.value&&o.observe(n.value),a=new MutationObserver(p),a.observe(i.value,{childList:!0,subtree:!0}))}),Sa(()=>{o?.disconnect(),a?.disconnect()}),(m,h)=>(w(),_("div",{ref_key:"viewport",ref:n,class:V(["overflow-y-auto overscroll-contain overflow-x-hidden min-h-0 flex flex-col [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",r.value?"[overflow-anchor:none]":""]),onScrollPassive:u,onWheelPassive:d,onTouchstartPassive:d},[k("div",{ref_key:"content",ref:i,class:"flex-1 flex flex-col"},[fr(m.$slots,"default")],512)],34))}}),HP={VOICE_MIC_UNAVAILABLE:"I couldn't reach your microphone. Check that this site is allowed to use it, then try again.",VOICE_BOT_UNAVAILABLE:"Your assistant didn't pick up. Give it a moment and start the call again.",VOICE_CONNECT_TIMEOUT:"The call took too long to connect. Try again in a moment.",VOICE_CONNECTION_LOST:"The call dropped. Start it again when you're ready.",VOICE_BUSY:"Your assistant is on another call. Try again in a moment, or keep going by typing.",VOICE_UNAVAILABLE:"Voice isn't available right now. You can keep going by typing.",VOICE_MINT_INVALID:"That call couldn't be started. Refresh the page and try again.",VOICE_PROVIDER_ERROR:"The call ended unexpectedly. Try again, or keep going by typing."},KP="The call ended unexpectedly. Try again, or keep going by typing.";bp=[0,2,4,6,8],D2=5,GP=33,JP=.7,qP=.1,YP=60,XP=320,QP=.55,eR=.1,tR=.32,rR=.9,M0=bp.map(()=>0),nR=bp.map(()=>D2),iR=class{constructor(e=typeof window>"u"?void 0:window){W(this,"browser",void 0),W(this,"heights",We(nR)),W(this,"targetBars",M0),W(this,"displayBars",M0),W(this,"level",{source:"mic",level:0}),W(this,"isMuted",!1),W(this,"usesIdleWave",!1),W(this,"frameId",0),W(this,"lastFrameAt",0),W(this,"easeFrame",t=>{let n=this.browser;if(!n)return;this.frameId=0;let i=Math.min(64,Math.max(0,t-this.lastFrameAt));this.lastFrameAt=t;let r=this.usesIdleWave?bp.map((a,s)=>{let l=t/1e3*QP*2*Math.PI-s*rR;return eR+tR*(Math.sin(l)+1)/2}):this.targetBars;this.displayBars=this.displayBars.map((a,s)=>{let l=r[s]??0,u=l>a?YP:XP;return a+(l-a)*(1-Math.exp(-i/u))}),this.publish();let o=this.displayBars.every((a,s)=>Math.abs((r[s]??0)-a)<=5e-4);(this.usesIdleWave||!o)&&(this.frameId=n.requestAnimationFrame(this.easeFrame))}),this.browser=e}updateLevel(e){this.level=e,this.updateTargets()}setMuted(e){this.isMuted=e,this.updateTargets()}setIdleWave(e){this.usesIdleWave!==e&&(this.usesIdleWave=e,this.start())}stop(){this.frameId&&this.browser?.cancelAnimationFrame(this.frameId),this.frameId=0}updateTargets(){let e=n=>Math.max(0,n-qP)/.9,t=this.isMuted&&this.level.source==="mic";this.targetBars=bp.map(n=>t?0:e(Math.min(1,Math.max(0,this.level.bands?.[n]??this.level.level)))),this.start()}start(){if(!this.browser||this.browser.matchMedia("(prefers-reduced-motion: reduce)").matches){this.displayBars=this.usesIdleWave?M0:this.targetBars,this.publish();return}this.frameId||(this.lastFrameAt=this.browser.performance.now(),this.frameId=this.browser.requestAnimationFrame(this.easeFrame))}publish(){this.heights.value=this.displayBars.map(e=>Math.round((D2+Math.min(1,Math.max(0,e))**JP*GP)*10)/10)}},oR={connecting:{label:"Connecting",tone:"bg-amber-500",waits:!0},listening:{label:"Listening",tone:"bg-green-500",waits:!1},thinking:{label:"Thinking",tone:"bg-amber-500",waits:!0,visibleText:"Thinking"},working:{label:"Working",tone:"bg-primary-500",waits:!0},speaking:{label:"Speaking",tone:"bg-primary-500",waits:!1},error:{label:"Connection problem",tone:"bg-red-500",waits:!1,visibleText:"Connection lost"}};lR=["data-voice-state","data-voice-activity"],cR=["src"],uR={key:1,"data-test":"voice-background-fallback","aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-[#0A1522]"},dR={"data-test":"voice-stage",class:"relative z-10 flex flex-1 flex-col items-center px-8"},pR={"data-voice-assistant-avatar":""},fR={"data-test":"voice-lower-stage",class:"flex flex-1 flex-col items-center pt-10"},mR={"data-test":"voice-histogram","aria-hidden":"true",class:"flex h-[38px] items-center gap-[5px]"},hR={"data-test":"voice-presence-status",role:"status","aria-live":"polite",class:"sr-only"},gR=["data-taking-longer"],vR={class:"absolute inset-x-0 bottom-0 z-20 flex items-center justify-between px-14 pb-[max(3rem,env(safe-area-inset-bottom))] sm:px-12"},bR=["disabled","aria-label","aria-pressed","title"],yR=Ue({__name:"VoiceMode",props:{bot:{},chatController:{},isLight:{type:Boolean},backdropSrc:{}},emits:["end"],setup(e,{expose:t,emit:n}){let i=n,r=We(!1),o=We(!1),a=We({user:!1,bot:!1}),s=We({active:!1}),l=We(!1),u=We(!1),d=We(),p=P(()=>d.value?.state.value??"idle"),f=P(()=>d.value?.isMuted.value??!1),m=new iR,h=m.heights,v=Xb("endButton"),x=Xb("muteButton"),A=!1,I,E,M=P(()=>sR({sessionState:p.value,hadError:r.value,providerThinking:o.value,speaking:a.value,work:s.value,isMuted:f.value,takingLonger:l.value})),z=P(()=>{if(M.value.activity==="thinking")return"thinking";if(M.value.activity==="working")return`working:${s.value.description??""}`});ft(()=>M.value.usesIdleWave,Q=>m.setIdleWave(Q),{immediate:!0}),ft(f,Q=>m.setMuted(Q),{immediate:!0}),ft(z,Q=>{E&&clearTimeout(E),l.value=!1,Q&&(E=setTimeout(()=>{E=void 0,l.value=!0},h2),E.unref?.())},{immediate:!0});async function D(){A=!0,await d.value?.end()}t({end:D});function X(){A||(A=!0,i("end"))}function le(Q){Q.shiftKey&&document.activeElement===v.value?(Q.preventDefault(),x.value?.focus()):!Q.shiftKey&&document.activeElement===x.value&&(Q.preventDefault(),v.value?.focus())}async function ie(){let Q=d.value;Q&&!u.value&&(u.value=!0,await Q.toggleMuted(),u.value=!1)}return Pt(async()=>{v.value?.focus({preventScroll:!0});let Q=e.chatController?.createVoiceClient({onLevel:ae=>m.updateLevel(ae),onStateChange:ae=>{ae==="ended"&&(r.value?I=setTimeout(X,1600):X())},onThinkingChange:ae=>{o.value=ae},onSpeakingChange:ae=>{a.value=ae},onWorkChange:ae=>{s.value=ae},onError:ae=>{r.value=!0,e.chatController?.notify?.(WP(ae.code)),e.chatController?.logger?.warn("voice.session.failed",{code:ae.code,providerMessage:ae.message})},onMetric:ae=>{e.chatController?.logger?.info(ae.name,{durationMs:ae.durationMs})}});if(!Q){X();return}d.value=Q,await Q.start()}),qr(()=>{A=!0,I&&clearTimeout(I),E&&clearTimeout(E),m.stop(),d.value?.end()}),(Q,ae)=>(w(),_("div",{"data-test":"voice-mode","data-voice-state":p.value,"data-voice-activity":M.value.activity,class:"relative flex min-h-0 flex-1 flex-col overflow-hidden bg-[#0A1522] text-white",onKeydown:Vn(le,["tab"])},[e.backdropSrc?(w(),_("img",{key:0,"data-test":"voice-background-image",src:e.backdropSrc,alt:"","aria-hidden":"true",draggable:"false",class:"pointer-events-none absolute inset-0 size-full object-cover"},null,8,cR)):(w(),_("div",uR)),ae[2]||(ae[2]=k("div",{"data-test":"voice-background-overlay","aria-hidden":"true",class:"pointer-events-none absolute inset-0 bg-gradient-to-b from-[#050F19]/82 via-[#050F19]/90 to-[#050F19]/99"},null,-1)),k("div",dR,[ae[0]||(ae[0]=k("div",{"data-test":"voice-stage-spacer","aria-hidden":"true",class:"flex-1"},null,-1)),k("div",pR,[ye(F0,{bot:e.bot,"show-status":!1,"show-owner-mark":!1,"is-light":!1,class:"size-32"},null,8,["bot"])]),k("div",fR,[k("div",mR,[(w(!0),_(ge,null,st(Ce(h),(ne,ve)=>(w(),_("span",{key:ve,"data-test":"voice-histogram-bar",class:V(["w-[5px] rounded-full transition-colors duration-150",M.value.tone]),style:_e({height:`${ne}px`})},null,6))),128))]),k("div",hR,ue(M.value.label),1),k("p",{"data-test":"voice-visible-status","data-taking-longer":M.value.takingLonger||void 0,"aria-hidden":"true",class:"mt-5 min-h-5 text-center text-sm font-medium tracking-wide text-white/80"},ue(M.value.visibleStatus),9,gR)])]),k("div",vR,[k("button",{ref_key:"endButton",ref:v,type:"button","data-test":"voice-end-btn",class:"flex size-16 cursor-pointer items-center justify-center rounded-full bg-white/10 text-white ring-1 ring-white/20 transition-colors hover:bg-white/15 active:bg-white/25","aria-label":"Hang up",title:"Hang up",onClick:X},[...ae[1]||(ae[1]=[k("i",{class:"i-tabler-x size-[25px]","aria-hidden":"true"},null,-1)])],512),k("button",{ref_key:"muteButton",ref:x,type:"button","data-test":"voice-mute-btn",class:V(["flex size-16 items-center justify-center rounded-full ring-1 transition-colors active:opacity-70",[f.value?"bg-white text-[#050F19] ring-white":"bg-white/10 text-white ring-white/20",p.value==="live"&&!u.value?"cursor-pointer":"cursor-default opacity-50"]]),disabled:p.value!=="live"||u.value,"aria-label":f.value?"Unmute microphone":"Mute microphone","aria-pressed":f.value,title:f.value?"Unmute microphone":"Mute microphone",onClick:ie},[k("i",{class:V([f.value?"i-tabler-microphone-off":"i-tabler-microphone","size-[25px]"]),"aria-hidden":"true"},null,2)],10,bR)])],40,lR))}}),wR={key:0,class:"pb-4"},kR={key:1,"data-test":"messaging-sdk-header",class:"shrink-0 border-b border-theme-100 px-4 py-3"},xR={class:"min-w-0 flex-1"},_R={class:"truncate text-base font-semibold leading-tight text-theme-900"},$R={class:"mt-1 truncate text-sm leading-tight text-theme-500"},SR={key:0,class:"shrink-0 rounded-full bg-theme-50 px-2.5 py-1 font-mono text-[11px] font-medium text-theme-500"},IR=["aria-label"],ER={key:0,"data-test":"messaging-empty-state",class:"flex flex-col items-center justify-center px-4"},TR=["title"],NR={key:0,class:"flex items-center gap-3 py-3 px-2"},CR=["data-journal-outcome"],zR=["data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-system-kind","data-issue-code","data-issue-bucket","data-issue-action-label","data-issue-action-url","data-streaming"],OR={class:"flex items-center gap-3"},AR=["href"],DR=["data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-routine-run-id"],PR=["data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-system-kind","data-issue-code","data-issue-bucket","data-streaming"],RR=["data-test","data-message-id","data-message-sender","data-conversation-id","data-message-sequence","data-system-kind","data-streaming","data-queued","aria-label"],UR=["data-routine-run-id"],jR=["src","alt"],MR=["src"],LR=["href"],VR={key:0,"data-test":"messaging-message-text-part"},FR=["src","alt","data-attachment-placement"],BR=["src","data-attachment-placement"],ZR=["href","data-attachment-placement"],HR=["data-actions-reveal"],KR=["data-copied","title","aria-label","onClick"],WR=["onClick"],GR=["data-journal-outcome"],JR=["data-journal-outcome"],qR=["data-test","data-working-description"],YR={key:0,class:"truncate"},XR={key:1,class:"sr-only"},QR=["data-issue-code"],eU={class:"min-w-0 flex-1"},tU={"data-test":"messaging-transient-issue-title",class:"font-medium"},rU={"data-test":"messaging-transient-issue-help"},nU=["href"],iU=["inert","aria-hidden"],oU=["data-seat-state"],aU=["src","alt"],sU={class:"max-w-20 truncate"},lU=["onClick"],cU={key:0,class:"shrink-0 flex items-center justify-center size-14"},uU=["data-composer-action"],dU=["placeholder","disabled"],pU={class:"font-mono text-sm tabular-nums"},fU={class:"mt-2.5 flex items-center"},mU=["disabled","aria-label","title"],hU={key:0,class:"i-svg-spinners-ring-resize size-5"},gU={key:1,class:"i-tabler-plus size-5"},vU={class:"sr-only"},bU={class:"flex items-center gap-2"},yU=["aria-label","title"],wU={class:"sr-only"},kU=["disabled","aria-label","title"],xU={class:"flex h-4 items-center gap-[2px]","aria-hidden":"true"},_U=["data-composer-action","disabled","aria-label","title"],$U={key:0,class:"i-tabler-player-stop-filled size-3.5"},SU={key:1,class:"i-tabler-arrow-up size-[17px]"},IU={class:"sr-only"},EU={key:2,"data-test":"messaging-ai-notice",class:"mx-auto max-w-[640px] @5xl/chat:max-w-[720px] pt-3 text-center text-[11.5px] leading-none text-theme-300"},mo=yp(Ue({__name:"ElBotChat",props:{chatController:{},bot:{},variant:{default:"dark"},scope:{default:"private"},scopeName:{},setupHint:{},emptyStateMessage:{},showHeader:{type:Boolean,default:!1},headerMeta:{},centered:{type:Boolean,default:!1}},setup(e){let t={private:{icon:"i-tabler-lock",label:"Private",tooltip:"Only you can see this conversation"},org:{icon:"i-tabler-users",label:"Workspace",tooltip:"Visible to workspace members"},public:{icon:"i-tabler-globe",label:"Public",tooltip:"Anyone with the link can see this"}},n=P(()=>{let F={...t[e.scope]};return e.scope==="org"&&e.scopeName&&(F.label=e.scopeName,F.tooltip=`Visible to ${e.scopeName} members`),F}),i=q(),r=q(),o=q();function a(F){return F?/\[[^\]]+\]\([^)]+\)/.test(F):!1}function s(F){return F.sender==="system"&&(!!F.issue||F.id===ae.value)}function l(F,Z){let G=F[Z],ot=F[Z+1];return!ot||ot.sender!==G.sender}let u=P(()=>e.chatController?.textState.value),d=P(()=>u.value?.isConnected??!1),p=P(()=>u.value?.isThinking??!1),f=P(()=>u.value?.connectionStatus!=="connected"&&!u.value?.error),m=P(()=>e.chatController?.liveTurnBlocks?.value??[]),h=P(()=>{for(let F=m.value.length-1;F>=0;F--){let Z=m.value[F];if(Z?.kind==="text")return Z.id}}),v=P(()=>e.chatController?.liveStreamMessageId?.value),x=P(()=>{let F=e.chatController?.sharedMessages.value??[];return m.value.length&&v.value?F.filter(Z=>Z.id!==v.value):F}),A=P(()=>{if(!e.chatController?.workJournal?.value)return u.value?.workingDescription?.trim()||void 0}),I=P(()=>e.chatController?.workJournal?.value),E=P(()=>{if(!I.value&&!m.value.length)return;let F=x.value,Z=F[F.length-1];if(Z)return Z.sender==="bot"||Z.sender==="system"?F.length>=2?F[F.length-2].id:void 0:Z.id}),M=P(()=>{let F={};for(let Z of x.value){if(Z.sender==="user"||!Z.toolActivities?.length)continue;let G=e.chatController?.workJournalFor?.({activities:Z.toolActivities,outcome:YD(Z),includeFailureNote:Z.sender!=="system"});G&&(F[Z.id]=G)}return F});function z(F){return M.value[F.id]}function D(F,Z){return F.placement?.kind!=="inline"||!Number.isFinite(F.placement.offset)?null:Math.max(0,Math.min(Z.length,Math.trunc(F.placement.offset)))}function X(F,Z){return F.mediaId||`${F.src}:${Z}`}function le(F){return(F.attachments??[]).map((Z,G)=>({attachment:Z,index:G})).filter(({attachment:Z})=>D(Z,F.text)===null)}function ie(F){let Z=F.text??"";if(F.sender!=="bot")return Z?[{kind:"text",key:`${F.id}:text`,text:Z}]:[];let G=(F.attachments??[]).map((vt,Jn)=>({attachment:vt,index:Jn,offset:D(vt,Z)})).filter(vt=>vt.offset!==null).sort((vt,Jn)=>vt.offset-Jn.offset||vt.index-Jn.index);if(G.length===0)return Z?[{kind:"text",key:`${F.id}:text`,text:Z}]:[];let ot=[],ke=0;for(let vt of G)vt.offset>ke&&ot.push({kind:"text",key:`${F.id}:text:${ke}`,text:Z.slice(ke,vt.offset)}),ot.push({kind:"attachment",key:`${F.id}:attachment:${X(vt.attachment,vt.index)}`,attachment:vt.attachment,placement:"inline"}),ke=vt.offset;return ke<Z.length&&ot.push({kind:"text",key:`${F.id}:text:${ke}`,text:Z.slice(ke)}),ot}let Q=P(()=>u.value?.transientIssue),ae=P(()=>{if(!p.value)return;let F=x.value,Z=F[F.length-1];return Z?.sender==="bot"||Z?.sender==="system"?Z.id:void 0}),ne=P(()=>!p.value||A.value||I.value||m.value.length?!1:ae.value===void 0),ve=P(()=>!!A.value||ne.value),Le=P(()=>u.value?.sendBlockedReason),mt=P(()=>Le.value==="bot_deleted"),ht=P(()=>f.value?"Connecting...":Le.value==="bot_deleted"?"This assistant was deleted":"Send a message"),je=P(()=>iI(e.bot.state.value)),Me=P(()=>{if(te.value||!je.value||je.value==="awake")return;let F=e.bot.displayName.value||e.bot.name.value||"Your assistant";return je.value==="changing"?`${F} will be right back\u2026`:je.value==="stuck"?`${F} needs attention.`:`${F} is ${nI[je.value].toLowerCase()}.`}),Rt=P(()=>e.chatController?.composerState?.value??{text:"",pendingAttachments:[],isUploading:!1}),Je=P({get:()=>Rt.value.text,set:F=>e.chatController?.setComposerText?.({text:F})}),Cr=P(()=>Rt.value.pendingAttachments),wt=P(()=>Rt.value.isUploading),xt=P(()=>e.chatController?.voiceRecorder),Fr=P(()=>xt.value?.isBusy.value??!1),Tt=P(()=>e.chatController?.canAttachFile?.value??!1),Wn=P(()=>e.chatController?.canRecordAudio?.value??!1),Nt=P(()=>e.chatController?.composerAction?.value??"idle"),Ft=P(()=>Nt.value!=="idle"),er=P(()=>e.chatController?.composerShowsSecondaryStop?.value??!1),Ye=P(()=>e.chatController?.queuedMessageIds?.value);function tr(F){return Ye.value?.has(F)??!1}let Ve=q(),zr;function b(F){return F.sender==="bot"&&F.id!==ae.value&&!!F.text?.trim()}let S=P(()=>[...x.value].reverse().find(b)?.id);async function L(F){try{await navigator.clipboard.writeText(F.text),Ve.value=F.id,clearTimeout(zr),zr=setTimeout(()=>{Ve.value=void 0},1500)}catch(Z){console.warn("ElBotChat: copy to clipboard rejected",Z),e.chatController?.notify?.("Could not copy that message.")}}qr(()=>clearTimeout(zr));let J=P(()=>e.chatController?.canReportMessages??!1),$=P(()=>Nt.value==="stop"?"Stop reply":er.value?"Send \u2014 answered after current work":"Send message"),T=P(()=>Wn.value&&!Fr.value&&!!xt.value?.canUseBrowserRecording),y=P(()=>xt.value?.isActive.value??!1),R=P(()=>xt.value?.state.value.phase==="sending"),O=P(()=>xt.value?.elapsedLabel.value??"0:00"),U=P(()=>{let F=xt.value?.state.value.phase;return F==="preparing"||F==="sending"?xt.value?.statusText.value??"Starting microphone":En.value?"Release to send":"Click mic to send"}),se=P(()=>xt.value?.state.value.phase==="sending"?"Sending voice message":y.value?En.value?"Release to send voice message":"Stop and send voice message":"Record voice message"),te=q(!1),pe=q(),he=q(),$e=q(),Te=0,Ne=P(()=>e.chatController?.canStartVoice?.value??!1);ft([()=>e.bot.avatar.value?.src,Ne],([F,Z])=>{let G=++Te;if($e.value=void 0,!Z||!F||typeof Image>"u")return;let ot=new Image;ot.onload=()=>{G===Te&&($e.value=F)},ot.src=F},{immediate:!0});let qe=P(()=>Ne.value&&!te.value&&!y.value&&Nt.value==="idle"),Xe=P(()=>!d.value),zt=P(()=>Xe.value?`Voice available when ${e.bot.displayName.value||e.bot.name.value||"the assistant"} is awake`:"Start voice conversation");function St(){qe.value&&!Xe.value&&(he.value=$e.value,te.value=!0)}async function rr(){if(!te.value)return;let F=pe.value;te.value=!1,he.value=void 0,await no(),await F?.end(),window.matchMedia("(pointer: coarse)").matches||r.value?.focus(),await e.chatController?.refreshMessages()}let be=P(()=>e.variant==="light"),ct=P(()=>be.value?"bg-theme-200/70":"bg-white/15"),it=P(()=>be.value?"text-theme-300":"text-white/30");Pt(async()=>{e.chatController&&!d.value&&await e.chatController.startTextConversation()}),qr(()=>{e.chatController?.voiceRecorder?.teardown()});async function $n(){e.chatController&&Nt.value==="send"&&(r.value&&(r.value.style.height="auto",window.matchMedia("(pointer: coarse)").matches?(r.value.blur(),requestAnimationFrame(()=>{let F=document.activeElement;F&&(F.tagName==="TEXTAREA"||F.tagName==="INPUT")&&F.blur()})):r.value.focus()),i.value?.pin(),await e.chatController.sendComposerMessage())}async function Sn(F){e.chatController&&!mt.value&&(i.value?.pin(),await e.chatController.sendChatMessage(F))}async function Jl(){if(e.chatController){if(Nt.value==="send"){await $n();return}await e.chatController.handleComposerAction()}}async function Za(F){F.isComposing||F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),await $n())}function ql(F){y.value||mt.value||F.target instanceof Element&&F.target.closest("button, a, textarea")||r.value?.focus()}function vo(){r.value&&(r.value.style.height="auto",r.value.style.height=`${Math.min(r.value.scrollHeight,150)}px`)}ft(Je,()=>no(()=>vo()));function bo(){o.value?.click()}async function Or(F){let Z=F.target,G=Z.files?.[0];G&&e.chatController&&!Fr.value&&(await e.chatController.attachFile({file:G}),Z.value="")}function Gn(F){e.chatController?.removeAttachment({index:F})}function yo(){xt.value?.start()}function In(F){xt.value?.finish(F)}let En=We(!1),_i=!1;function Ha(F){F.pointerType==="touch"&&(_i=!0,En.value=!0,F.currentTarget.setPointerCapture?.(F.pointerId),yo())}function Yl(F){F.pointerType==="touch"&&En.value&&(En.value=!1,In({cancelled:!1}))}function Ka(F){F.pointerType==="touch"&&En.value&&(En.value=!1,_i=!1,In({cancelled:!0}))}function Ep(){y.value?In({cancelled:!1}):yo()}function $i(){if(_i){_i=!1;return}Ep()}function Xl(F,Z){if(Z===0){let vt=F[Z];return vt?.timestamp?gt(new Date(vt.timestamp)):null}let G=F[Z-1],ot=F[Z];if(!G?.timestamp||!ot?.timestamp)return null;let ke=new Date(G.timestamp).getTime();return new Date(ot.timestamp).getTime()-ke>36e5?gt(new Date(ot.timestamp)):null}function gt(F){let Z=new Date,G=F.toDateString()===Z.toDateString(),ot=new Date(Z);ot.setDate(ot.getDate()-1);let ke=F.toDateString()===ot.toDateString(),vt=F.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});if(G)return vt;if(ke)return`Yesterday, ${vt}`;let Jn=F.getFullYear()===Z.getFullYear();return`${F.toLocaleDateString("en-US",{weekday:"long",month:"short",day:"numeric",...Jn?{}:{year:"numeric"}})}, ${vt}`}return(F,Z)=>(w(),_("div",{"data-test":"messaging-root",class:V(["@container/chat relative flex h-full flex-col",x.value.length===0?"min-h-0 [justify-content:safe_center] overflow-y-auto":""])},[e.showHeader&&!be.value?(w(),_("div",wR,[ye(xp,{bot:e.bot,"is-online":d.value},null,8,["bot","is-online"])])):e.showHeader?(w(),_("div",kR,[k("div",{class:V(["flex items-center gap-3",e.centered?"max-w-[640px] @5xl/chat:max-w-[720px] mx-auto":""])},[ye(F0,{bot:e.bot,"is-light":be.value,class:"size-10"},null,8,["bot","is-light"]),k("div",xR,[k("div",_R,ue(e.bot.displayName.value),1),k("div",$R,ue(e.bot.title.value||"Assistant"),1)]),e.headerMeta?(w(),_("span",SR,ue(e.headerMeta),1)):ee("",!0)],2)])):ee("",!0),ye(bi,{name:"voice-call"},{default:_t(()=>[te.value?(w(),_("div",{key:0,"data-test":"voice-call-overlay",role:"dialog","aria-modal":"true","aria-label":`Voice conversation with ${e.bot.displayName.value}`,class:"fixed inset-0 z-[100] flex items-stretch justify-stretch bg-[#050F19] sm:items-center sm:justify-center sm:bg-[#050F19]/45 sm:p-6",onKeydown:Z[0]||(Z[0]=Vn(G=>rr(),["esc"]))},[ye(yR,{ref_key:"voiceMode",ref:pe,bot:e.bot,"chat-controller":e.chatController,"backdrop-src":he.value,"is-light":!1,class:"voice-call-card h-full w-full sm:max-h-[620px] sm:max-w-[420px] sm:flex-none sm:rounded-[32px] sm:shadow-[0_32px_80px_rgba(5,15,25,0.45)]",onEnd:rr},null,8,["bot","chat-controller","backdrop-src"])],40,IR)):ee("",!0)]),_:1}),f.value?(w(),_("div",{key:2,class:V(["py-16 flex flex-col items-center justify-center gap-2 text-sm",be.value?"text-theme-400":"text-theme-600"])},[ye(pp,{class:"size-4"})],2)):e.setupHint?(w(),_("div",{key:3,class:V(["flex items-center justify-center gap-1.5 py-2 text-[11px]",it.value])},[Z[14]||(Z[14]=k("i",{class:"i-tabler-tool size-3"},null,-1)),k("span",null,ue(e.setupHint),1)],2)):ee("",!0),ye(ZP,{ref_key:"chatScroller",ref:i,inert:te.value,"aria-hidden":te.value?"true":void 0,class:V(x.value.length===0?"flex-none":"flex-1")},{default:_t(()=>[k("div",{class:V([x.value.length===0?"flex flex-col items-center justify-center px-3 py-4":e.centered?"pt-20 pb-5 px-3 @lg/chat:px-8 space-y-2":"pt-4 pb-[120px] px-3 @lg/chat:px-8 space-y-2",e.centered?x.value.length===0?"max-w-[900px] mx-auto w-full":"max-w-[640px] @5xl/chat:max-w-[720px] mx-auto w-full":""])},[x.value.length===0&&!f.value?(w(),_("div",ER,[fr(F.$slots,"empty-heading",{bot:e.bot,isLight:be.value},()=>[ye(F0,{bot:e.bot,"is-light":be.value,class:"mb-4 size-20 @sm/chat:size-24"},null,8,["bot","is-light"]),k("div",{class:V(["text-base @sm/chat:text-lg font-semibold",be.value?"text-theme-900":"text-white"])},ue(e.bot.displayName.value),3)],!0),e.emptyStateMessage===""?ee("",!0):(w(),_(ge,{key:0},[k("p",{class:V(["mt-1 text-center text-xs @sm/chat:text-sm",it.value])},ue(e.emptyStateMessage||"Type your message to get started."),3),k("div",{class:V(["inline-flex items-center gap-1.5 mt-5 px-2.5 py-1 rounded-full text-[11px]",be.value?"bg-theme-50 border border-theme-100 text-theme-400":"bg-white/10 border border-white/20 text-white/40"]),title:n.value.tooltip},[k("i",{class:V([n.value.icon,"size-3"])},null,2),k("span",null,ue(n.value.label),1)],10,TR)],64))])):ee("",!0),(w(!0),_(ge,null,st(x.value,(G,ot)=>(w(),_(ge,{key:G.id},[Xl(x.value,ot)?(w(),_("div",NR,[k("div",{class:V(["flex-1 h-px",ct.value])},null,2),k("span",{class:V(["text-[10px] @sm/chat:text-[11px] font-medium shrink-0 tracking-widest uppercase",it.value])},ue(Xl(x.value,ot)),3),k("div",{class:V(["flex-1 h-px",ct.value])},null,2)])):ee("",!0),z(G)?(w(),_("div",{key:1,"data-test":"messaging-message-tool-activity","data-journal-outcome":z(G)?.outcome,class:"mb-4 w-full"},[ye(z0,{model:z(G),"is-light":be.value},null,8,["model","is-light"])],8,CR)):ee("",!0),s(G)?(w(),_("section",{key:2,"data-test":"messaging-system-msg","data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-system-kind":G.systemKind,"data-issue-code":G.issue?.code,"data-issue-bucket":G.issue?.bucket,"data-issue-action-label":G.issue?.actionLabel,"data-issue-action-url":G.issue?.actionUrl,"data-streaming":G.id===ae.value?"true":void 0,class:"mb-6 w-full"},[k("div",{class:V(["mb-1.5 text-center text-[10.5px] font-medium",it.value])},"System message",2),k("div",OR,[k("span",{"data-test":"messaging-system-divider-line","aria-hidden":"true",class:V(["hidden h-px flex-1 opacity-60 @md/chat:block",ct.value])},null,2),k("div",{class:V(["w-[46ch] min-w-0 max-w-full rounded-2xl px-5 py-3.5 text-center text-[13px] ring-1 [&_.chat-msg-rich]:max-w-none [&_.chat-msg-rich]:text-[13px] [&_.chat-msg-rich]:italic [&_.chat-msg-rich]:leading-[1.6]",be.value?"text-theme-700 ring-theme-200/50":"text-white/85 ring-white/10"])},[G.text?(w(),Ge(Ml,{key:0,text:G.text,inverted:!be.value,streaming:G.id===ae.value,onClick:Z[1]||(Z[1]=Et(()=>{},["stop"])),onAction:Sn},null,8,["text","inverted","streaming"])):G.issue?.help?(w(),Ge(Ml,{key:1,text:G.issue.help,inverted:!be.value},null,8,["text","inverted"])):ee("",!0),G.issue?.actionUrl&&!a(G.text)?(w(),_("a",{key:2,href:G.issue.actionUrl,"data-test":"messaging-system-msg-action",class:V(["mt-2 text-[12px] font-medium inline-flex items-center gap-1",be.value?"text-theme-900 hover:text-theme-700":"text-white hover:text-white/80"]),onClick:Z[2]||(Z[2]=Et(()=>{},["stop"]))},[$t(ue(G.issue.actionLabel)+" ",1),Z[15]||(Z[15]=k("i",{class:"i-tabler-arrow-right size-3"},null,-1))],10,AR)):ee("",!0)],2),k("span",{"data-test":"messaging-system-divider-line","aria-hidden":"true",class:V(["hidden h-px flex-1 opacity-60 @md/chat:block",ct.value])},null,2)])],8,zR)):G.sender==="system"&&G.systemKind==="routine_completed"?(w(),_("div",{key:3,"data-test":"messaging-routine-receipt","data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-routine-run-id":G.routine?.run.routineRunId,class:V(["mb-6 flex items-start gap-2 pr-3 @sm/chat:pr-[2em] text-[12px] leading-relaxed",be.value?"text-theme-400":"text-white/50"])},[Z[16]||(Z[16]=k("i",{class:"i-tabler-clock size-3.5 mt-0.5 shrink-0","aria-hidden":"true"},null,-1)),k("span",null,ue(G.text),1)],10,DR)):G.sender==="system"?(w(),_("div",{key:4,"data-test":"messaging-system-status-msg","data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-system-kind":G.systemKind,"data-issue-code":G.issue?.code,"data-issue-bucket":G.issue?.bucket,"data-streaming":G.id===ae.value?"true":void 0,class:V(["mb-4 flex w-fit max-w-[85%] items-start gap-2 rounded-2xl px-3 py-2 text-[13px] leading-relaxed ring-1",be.value?"bg-theme-100 text-theme-600 ring-theme-200":"bg-white/10 text-white/70 ring-white/10"])},[Z[17]||(Z[17]=k("i",{class:"i-tabler-info-circle size-4 mt-0.5 shrink-0","aria-hidden":"true"},null,-1)),ye(Ml,{text:G.text,inverted:!be.value,onClick:Z[3]||(Z[3]=Et(()=>{},["stop"]))},null,8,["text","inverted"])],10,PR)):(w(),_("div",{key:5,"data-test":G.sender==="bot"?"messaging-assistant-msg":G.sender==="user"?"messaging-user-msg":void 0,"data-message-id":G.id,"data-message-sender":G.sender,"data-conversation-id":G.conversationId,"data-message-sequence":G.sequence,"data-system-kind":G.systemKind,"data-streaming":G.id===ae.value?"true":void 0,"data-queued":tr(G.id)?"true":void 0,"aria-label":tr(G.id)?"Sent \u2014 will be answered after the current work finishes":void 0,class:V(["group/msg flex gap-2 items-end",{"justify-end":G.sender==="user","justify-start":G.sender==="bot","mb-6":l(x.value,ot),"opacity-70":tr(G.id)}])},[k("div",{"data-test":"messaging-message-body",class:V(G.sender==="user"?"min-w-0 ml-3 @sm/chat:ml-[2em]":"w-full min-w-0 pr-3 @sm/chat:pr-[2em]")},[G.sender==="bot"&&G.routine?(w(),_("div",{key:0,"data-test":"messaging-routine-label","data-routine-run-id":G.routine.run.routineRunId,class:V(["mb-2 flex items-start gap-2 text-[12px] leading-relaxed",be.value?"text-theme-400":"text-white/50"])},[Z[18]||(Z[18]=k("i",{class:"i-tabler-clock size-3.5 mt-0.5 shrink-0","aria-hidden":"true"},null,-1)),k("span",null,"Ran "+ue(G.routine.run.name||G.routine.run.sourceLabel||"a routine"),1)],10,UR)):ee("",!0),le(G).length?(w(),_("div",{key:1,class:V(["mb-1 space-y-1",G.sender==="user"?"flex flex-col items-end":""])},[(w(!0),_(ge,null,st(le(G),({attachment:ke,index:vt})=>(w(),_(ge,{key:X(ke,vt)},[ke.type==="image"?(w(),_("img",{key:0,src:ke.src,alt:ke.filename,"data-test":"messaging-attachment","data-attachment-placement":"block",class:"rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"},null,8,jR)):ke.type==="audio"?(w(),_("audio",{key:1,src:ke.src,controls:"","data-test":"messaging-attachment","data-attachment-placement":"block",class:"max-w-full"},null,8,MR)):(w(),_("a",{key:2,href:ke.src,target:"_blank",rel:"noopener","data-test":"messaging-attachment","data-attachment-placement":"block",class:V(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs",be.value?"bg-theme-100 text-theme-600 hover:bg-theme-200":"bg-white/10 text-white/80 hover:bg-white/20"])},[Z[19]||(Z[19]=k("i",{class:"i-tabler-file size-3.5"},null,-1)),$t(" "+ue(ke.filename),1)],10,LR))],64))),128))],2)):ee("",!0),ie(G).length?(w(),_("div",{key:2,"data-test":"messaging-message-content",class:V(G.sender==="user"?be.value?"rounded-[14px] px-4 py-2.5 bg-theme-50 text-theme-900":"rounded-[14px] px-4 py-2.5 bg-white/10 text-white":be.value?"text-theme-800":"text-white/95")},[(w(!0),_(ge,null,st(ie(G),ke=>(w(),_(ge,{key:ke.key},[ke.kind==="text"&&ke.text?(w(),_("div",VR,[ye(Ml,{text:ke.text,inverted:G.sender==="user"||!be.value,streaming:G.id===ae.value,onClick:Z[4]||(Z[4]=Et(()=>{},["stop"])),onAction:Sn},null,8,["text","inverted","streaming"])])):ke.kind==="attachment"&&ke.attachment.type==="image"?(w(),_("img",{key:1,src:ke.attachment.src,alt:ke.attachment.filename,"data-test":"messaging-attachment","data-attachment-placement":ke.placement,class:"my-2 rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"},null,8,FR)):ke.kind==="attachment"&&ke.attachment.type==="audio"?(w(),_("audio",{key:2,src:ke.attachment.src,controls:"","data-test":"messaging-attachment","data-attachment-placement":ke.placement,class:"my-2 max-w-full"},null,8,BR)):ke.kind==="attachment"?(w(),_("a",{key:3,href:ke.attachment.src,target:"_blank",rel:"noopener","data-test":"messaging-attachment","data-attachment-placement":ke.placement,class:V(["my-2 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs",be.value?"bg-theme-100 text-theme-600 hover:bg-theme-200":"bg-white/10 text-white/80 hover:bg-white/20"])},[Z[20]||(Z[20]=k("i",{class:"i-tabler-file size-3.5"},null,-1)),$t(" "+ue(ke.attachment.filename),1)],10,ZR)):ee("",!0)],64))),128))],2)):ee("",!0),b(G)?(w(),_("div",{key:3,"data-test":"messaging-message-actions","data-actions-reveal":G.id===S.value?"always":"hover",class:V(["-ml-1 flex items-center gap-1 pt-1 transition-opacity",[be.value?"text-theme-300":"text-white/35",G.id===S.value?"":"opacity-0 group-hover/msg:opacity-100 focus-within:opacity-100 pointer-coarse:opacity-100"]])},[k("button",{type:"button","data-test":"messaging-message-copy","data-copied":Ve.value===G.id||void 0,title:Ve.value===G.id?"Copied":"Copy","aria-label":Ve.value===G.id?"Copied":"Copy",class:V(["grid size-6 cursor-pointer place-items-center transition-colors",be.value?"hover:text-theme-800":"hover:text-white"]),onClick:Et(ke=>L(G),["stop"])},[k("i",{class:V(["size-3.5",Ve.value===G.id?"i-tabler-check":"i-tabler-copy"]),"aria-hidden":"true"},null,2)],10,KR),J.value?(w(),_("button",{key:0,type:"button","data-test":"messaging-message-report",title:"Report","aria-label":"Report",class:V(["grid size-6 cursor-pointer place-items-center transition-colors",be.value?"hover:text-theme-800":"hover:text-white"]),onClick:Et(ke=>e.chatController?.reportMessage(G.id),["stop"])},[...Z[21]||(Z[21]=[k("i",{class:"i-tabler-flag size-3.5","aria-hidden":"true"},null,-1)])],10,WR)):ee("",!0)],10,HR)):ee("",!0)],2)],10,RR)),G.id===E.value?(w(),_(ge,{key:6},[m.value.length?(w(!0),_(ge,{key:0},st(m.value,ke=>(w(),_(ge,{key:ke.id},[ke.kind==="work"?(w(),_("div",{key:0,"data-test":"messaging-tool-activity","data-journal-outcome":ke.journal.outcome,class:"chat-live-enter mb-4 w-full"},[ye(z0,{model:ke.journal,"is-light":be.value},null,8,["model","is-light"])],8,GR)):ke.kind==="text"&&ke.content?(w(),_("div",{key:1,"data-test":"messaging-live-text-block",class:V(["mb-4",be.value?"text-theme-800":"text-white/95"])},[ye(Ml,{text:ke.content,inverted:!be.value,streaming:ke.id===h.value,onClick:Z[5]||(Z[5]=Et(()=>{},["stop"])),onAction:Sn},null,8,["text","inverted","streaming"])],2)):(w(),_("div",{key:2,"data-test":"messaging-tool-activity-tail","aria-label":"Assistant is still working",class:V(["chat-live-enter mb-4 grid h-[17px] w-5 place-items-center",be.value?"text-theme-500":"text-white/70"])},[...Z[22]||(Z[22]=[k("span",{class:"chat-dots chat-dots--mini","aria-hidden":"true"},[k("span"),k("span"),k("span")],-1)])],2))],64))),128)):I.value?(w(),_("div",{key:1,"data-test":"messaging-tool-activity","data-journal-outcome":I.value.outcome,class:"chat-live-enter mb-4 w-full"},[ye(z0,{model:I.value,"is-light":be.value},null,8,["model","is-light"])],8,JR)):ee("",!0)],64)):ee("",!0)],64))),128)),ve.value?(w(),_("div",{key:1,"data-test":A.value?"messaging-working-state":"messaging-thinking-indicator","data-working-description":A.value,role:"status","aria-live":"polite",class:V(["chat-live-enter relative mb-4 flex h-[17px] items-center gap-2.5 pl-0.5 text-[13.5px] leading-snug",be.value?"text-theme-500":"text-white/50"])},[Z[23]||(Z[23]=k("span",{"data-test":"messaging-thinking-dots",class:"chat-dots shrink-0","aria-hidden":"true"},[k("span"),k("span"),k("span")],-1)),A.value?(w(),_("span",YR,ue(A.value),1)):(w(),_("span",XR,"Thinking"))],10,qR)):ee("",!0),Q.value?(w(),_("div",{key:2,"data-test":"messaging-transient-issue","data-issue-code":Q.value.code,role:"alert",class:V(["chat-live-enter mb-4 flex items-start gap-2 px-2 text-[13px] leading-snug",be.value?"text-theme-600":"text-white/60"])},[Z[25]||(Z[25]=k("i",{class:"i-tabler-alert-circle size-3.5 shrink-0 text-red-500","aria-hidden":"true"},null,-1)),k("span",eU,[k("span",tU,[$t(ue(Q.value.message),1),Q.value.help?(w(),_(ge,{key:0},[$t(":")],64)):ee("",!0)]),Q.value.help?(w(),_(ge,{key:0},[Z[24]||(Z[24]=$t(ue(" "),-1)),k("span",rU,ue(Q.value.help),1)],64)):ee("",!0)]),Q.value.actionUrl&&Q.value.actionLabel?(w(),_("a",{key:0,href:Q.value.actionUrl,class:"shrink-0 underline underline-offset-2",onClick:Z[6]||(Z[6]=Et(()=>{},["stop"]))},ue(Q.value.actionLabel),9,nU)):ee("",!0)],10,QR)):ee("",!0)],2)]),_:3},8,["inert","aria-hidden","class"]),k("div",{"data-test":"messaging-composer-footer",inert:te.value,"aria-hidden":te.value?"true":void 0,class:V(["left-0 right-0 z-30 px-3 @lg/chat:px-8 pb-[max(env(safe-area-inset-bottom),1rem)]",[x.value.length===0||e.centered?"relative shrink-0":"absolute bottom-0",e.centered&&x.value.length>0?"pt-0 sm:pb-7":"pt-3",be.value?e.centered?"bg-transparent":"bg-theme-0":"bg-gradient-to-t from-black/90 via-black/60 to-transparent"]])},[fr(F.$slots,"composer",{},()=>[Me.value?(w(),_("div",{key:0,"data-test":"messaging-seat","data-seat-state":je.value,role:"status","aria-live":"polite",class:V(["py-3 text-center text-[14px]",be.value?"text-theme-500":"text-white/70"])},ue(Me.value),11,oU)):(w(),_(ge,{key:1},[Cr.value.length>0?(w(),_("div",{key:0,class:V(["flex items-center gap-2 px-2 pb-2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",e.centered?"max-w-[640px] @5xl/chat:max-w-[720px] mx-auto":""])},[(w(!0),_(ge,null,st(Cr.value,(G,ot)=>(w(),_("div",{key:ot,class:"relative shrink-0 group"},[G.type==="image"?(w(),_("img",{key:0,src:G.src,alt:G.filename,class:V(["size-14 rounded-xl object-cover border",be.value?"border-black/10":"border-white/20"])},null,10,aU)):(w(),_("div",{key:1,class:V(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border",be.value?"border-black/10 bg-theme-50 text-theme-600":"border-white/20 bg-white/10 text-white/70"])},[Z[26]||(Z[26]=k("i",{class:"i-tabler-file size-4"},null,-1)),k("span",sU,ue(G.filename),1)],2)),k("button",{class:"absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] cursor-pointer",onClick:ke=>Gn(ot)},[...Z[27]||(Z[27]=[k("i",{class:"i-tabler-x size-3"},null,-1)])],8,lU)]))),128)),wt.value?(w(),_("div",cU,[ye(pp,{class:"size-5"})])):ee("",!0)],2)):ee("",!0),Tt.value?(w(),_("input",{key:1,ref_key:"fileInput",ref:o,type:"file",accept:"image/*,audio/*,video/*",class:"hidden",onChange:Or},null,544)):ee("",!0),k("div",{"data-test":"messaging-composer","data-composer-action":Nt.value,class:V(["w-full cursor-text rounded-2xl px-4 pb-2.5 pt-4 transition-colors duration-200",[e.centered?"mx-auto max-w-[640px] @5xl/chat:max-w-[740px] @5xl/chat:px-5 @5xl/chat:pt-3.5 @5xl/chat:pb-3":"",be.value?"bg-white shadow-[0_1px_2px_rgba(15,23,42,0.04),0_12px_32px_rgba(15,23,42,0.07)] ring-1 ring-theme-950/20 hover:ring-theme-950/30 focus-within:ring-theme-950/30":"bg-white/10 backdrop-blur-xl ring-1 ring-white/15 hover:ring-white/25 focus-within:bg-white/15 focus-within:ring-white/25"]]),onClick:ql},[y.value?(w(),_("div",{key:1,"data-test":"messaging-recording-state",class:V(["flex min-w-0 items-center gap-2 py-1",be.value?"text-theme-700":"text-white/80"])},[Z[28]||(Z[28]=k("span",{class:"size-2.5 shrink-0 rounded-full bg-red-500"},null,-1)),k("span",pU,ue(O.value),1),k("span",{class:V(["min-w-0 truncate text-sm",be.value?"text-theme-400":"text-white/45"])},ue(U.value),3)],2)):jd((w(),_("textarea",{key:0,ref_key:"textarea",ref:r,"onUpdate:modelValue":Z[7]||(Z[7]=G=>Je.value=G),"data-test":"messaging-input",rows:"1",enterkeyhint:"send",inputmode:"text",autocomplete:"off",autocapitalize:"sentences",autocorrect:"on",spellcheck:"true",placeholder:ht.value,disabled:mt.value,style:{fontSize:"16px",resize:"none"},class:V(["block w-full bg-transparent leading-snug focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",be.value?"text-theme-900 placeholder-theme-400":"text-white placeholder-white/50"]),onKeydown:Za},null,42,dU)),[[Jd,Je.value]]),k("div",fU,[k("button",{class:V(["-ml-2 flex size-8 items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11",[Tt.value?"cursor-pointer":"cursor-default",be.value?"text-theme-500":"text-white/50",wt.value||Fr.value?"opacity-50 pointer-events-none":""]]),disabled:mt.value||wt.value||Fr.value||!Tt.value,"aria-label":Tt.value?"Attach file":"File attachments unavailable",title:Tt.value?"Attach file":"File attachments unavailable",onClick:Z[8]||(Z[8]=G=>Tt.value&&bo())},[wt.value?(w(),_("i",hU)):(w(),_("i",gU)),k("span",vU,ue(Tt.value?"Attach file":"File attachments unavailable"),1)],10,mU),Z[32]||(Z[32]=k("div",{class:"flex-1"},null,-1)),k("div",bU,[y.value&&!R.value&&!te.value?(w(),_("button",{key:0,"data-test":"messaging-record-discard-btn",class:V(["flex size-8 cursor-pointer items-center justify-center transition-opacity hover:opacity-70 pointer-coarse:size-11",be.value?"text-theme-400":"text-white/40"]),"aria-label":"Discard recording",title:"Discard recording",onClick:Z[9]||(Z[9]=G=>In({cancelled:!0}))},[...Z[29]||(Z[29]=[k("i",{class:"i-tabler-x size-[18px]","aria-hidden":"true"},null,-1)])],2)):ee("",!0),(T.value||y.value)&&!R.value&&!te.value?(w(),_("button",{key:1,"data-test":"messaging-record-audio-btn",class:V(["flex size-8 cursor-pointer items-center justify-center transition-[opacity,transform] duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] hover:opacity-70 pointer-coarse:size-11",y.value?be.value?"text-theme-900 scale-110":"text-white scale-110":be.value?"text-theme-500":"text-white/60"]),"aria-label":se.value,title:se.value,onPointerdown:Et(Ha,["prevent"]),onPointerup:Et(Yl,["prevent"]),onPointercancel:Et(Ka,["prevent"]),onClick:$i,onKeydown:Z[10]||(Z[10]=Vn(Et(G=>In({cancelled:!0}),["prevent"]),["escape"]))},[k("i",{class:V([y.value?"i-tabler-microphone-filled":"i-tabler-microphone","size-[18px]"])},null,2),k("span",wU,ue(se.value),1)],42,yU)):ee("",!0),qe.value?(w(),_("button",{key:2,"data-test":"messaging-voice-start-btn",class:V(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11",[be.value?"bg-theme-900 text-theme-0 hover:bg-theme-800":"bg-theme-0 text-theme-950 hover:bg-theme-100",Xe.value?"cursor-not-allowed opacity-40":"cursor-pointer"]]),disabled:Xe.value,"aria-label":zt.value,title:zt.value,onClick:Z[11]||(Z[11]=G=>St())},[k("span",xU,[(w(),_(ge,null,st([7,13,16,11,14],G=>k("span",{key:G,class:"w-[2px] rounded-full bg-current",style:_e({height:`${G}px`})},null,4)),64))]),Z[30]||(Z[30]=k("span",{class:"sr-only"},"Start voice conversation",-1))],10,kU)):y.value?ee("",!0):(w(),_(ge,{key:3},[er.value?(w(),_("button",{key:0,"data-test":"messaging-secondary-stop-btn",class:V(["mr-2 flex size-8 cursor-pointer items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11",be.value?"bg-theme-100 text-theme-700 hover:bg-theme-200":"bg-white/10 text-white/70 hover:bg-white/15"]),"aria-label":"Stop work",title:"Stop work",onClick:Z[12]||(Z[12]=G=>e.chatController?.stopChatTurn())},[...Z[31]||(Z[31]=[k("i",{class:"i-tabler-player-stop-filled size-3.5","aria-hidden":"true"},null,-1),k("span",{class:"sr-only"},"Stop work",-1)])],2)):ee("",!0),k("button",{"data-test":"messaging-send-btn","data-composer-action":Nt.value,class:V(["flex size-8 items-center justify-center rounded-full transition-colors duration-150 pointer-coarse:size-11",Ft.value?be.value?"bg-theme-900 text-theme-0 hover:bg-theme-800 cursor-pointer":"bg-theme-0 text-theme-950 hover:bg-theme-100 cursor-pointer":be.value?"bg-theme-100 text-theme-400":"bg-white/10 text-white/30"]),disabled:!Ft.value,"aria-label":$.value,title:$.value,onClick:Z[13]||(Z[13]=G=>Jl())},[Nt.value==="stop"?(w(),_("i",$U)):(w(),_("i",SU)),k("span",IU,ue($.value),1)],10,_U)],64))])])],10,uU),e.centered&&x.value.length>0?(w(),_("p",EU,ue(e.bot.displayName.value)+" is AI and can make mistakes. ",1)):ee("",!0)],64))],!0)],10,iU)],2))}}),[["__scopeId","data-v-96dd7d31"]]),TU={class:"bot-wrap"},NU={key:0,class:"flex items-center justify-center h-full"},CU={key:2,class:"flex h-full flex-col items-center justify-center gap-4 px-6 text-center",role:"status","aria-live":"polite","data-test":"bot-unavailable"},_p=Ue({__name:"BotWrap",props:{sdk:{},bot:{},handle:{},context:{},clientContext:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},chatOnly:{type:Boolean},bare:{type:Boolean},apiBase:{}},setup(e){let t=ao("BotWrap"),n=e,i=n.sdk||Pl.getInstance({isDev:typeof window<"u"?window.location.hostname==="localhost"||window.location.hostname.includes("127.0.0.1"):!1,...n.apiBase&&{apiBase:n.apiBase}}),r=We(!n.bot),o=We(n.bot),a=We();async function s(){if(n.bot){t.debug("Bot provided via props, skipping fetch",{botId:n.bot.botId.value,handle:n.bot.handle.value}),r.value=!1;return}if(!n.handle){a.value="No handle or bot provided",t.warn("BotWrap mounted without handle or bot",{propsReceived:{handle:n.handle,bot:n.bot,context:n.clientContext??n.context,apiBase:n.apiBase},sdkState:{isDev:i.isDev,apiBase:i.apiBase}}),r.value=!1;return}try{r.value=!0,a.value=void 0,t.debug("Fetching public bot",{handle:n.handle});let l=await i.user.getPublicBot({handle:n.handle});l?(o.value=l,t.debug("Successfully fetched public bot",{botId:l.botId.value,handle:l.handle.value}),l.botId.value&&i.user.track({event:"view_profile",botId:l.botId.value,properties:{viewSource:"widget"}})):(a.value=i.error.value||"Bot not found",t.error("Failed to fetch public bot - no data returned",{handle:n.handle,sdkError:i.error.value,sdkState:{isDev:i.isDev,apiBase:i.apiBase,loading:i.loading.value}}))}catch(l){a.value=l instanceof Error?l.message:"Failed to fetch bot",t.error("Exception while fetching public bot",{handle:n.handle,error:l instanceof Error?{message:l.message,stack:l.stack}:l,sdkState:{isDev:i.isDev,apiBase:i.apiBase,error:i.error.value}})}finally{r.value=!1,o.value||t.debug("BotWrap component will render unavailable state",{state:{loading:r.value,hasBot:!!o.value,error:a.value},props:{handle:n.handle,context:n.clientContext??n.context,apiBase:n.apiBase},sdkState:{isDev:i.isDev,apiBase:i.apiBase,error:i.error.value}})}}return Pt(s),(l,u)=>(w(),_("div",TU,[r.value?(w(),_("div",NU,[k("div",{class:V(["size-6 animate-spin rounded-full border-b-2",n.bare?"border-theme-400":"border-white"])},null,2)])):o.value?fr(l.$slots,"default",{sdk:Ce(i),bot:o.value,context:e.clientContext??e.context,firstMessage:e.firstMessage,buttonText:e.buttonText,buttonIcon:e.buttonIcon,loading:r.value},void 0,void 0,1):a.value?(w(),_("div",CU,[u[0]||(u[0]=k("p",{class:"text-sm font-medium text-theme-600"}," This assistant is unavailable right now. ",-1)),k("button",{type:"button",class:"min-h-11 rounded-full bg-theme-900 px-5 text-sm font-semibold text-theme-0 transition-colors hover:bg-theme-700","data-test":"bot-unavailable-retry",onClick:s}," Try again ")])):ee("",!0)]))}})});function Fa(e){let t=We(e.bot),n=q(e.context),i=q(e.firstMessage),r=q(e.buttonText),o=q(e.buttonIcon);function a(s){s.bot!==void 0&&(t.value=s.bot),s.context!==void 0&&(n.value=s.context),s.firstMessage!==void 0&&(i.value=s.firstMessage),s.buttonText!==void 0&&(r.value=s.buttonText),s.buttonIcon!==void 0&&(o.value=s.buttonIcon)}return{currentBot:t,currentContext:n,currentFirstMessage:i,currentButtonText:r,currentButtonIcon:o,update:a}}var $p=Y(()=>{"use strict";Tn();bn()});var ho,P2=Y(()=>{"use strict";Tn();ho={linkedin:{label:"LinkedIn",icon:"i-simple-icons-linkedin",placeholder:"john-smith",getUrl:e=>`https://linkedin.com/in/${e}`},x:{label:"X",icon:"i-simple-icons-x",placeholder:"johnsmith",getUrl:e=>`https://x.com/${e}`},facebook:{label:"Facebook",icon:"i-simple-icons-facebook",placeholder:"johnsmith",getUrl:e=>`https://facebook.com/${e}`},tiktok:{label:"TikTok",icon:"i-simple-icons-tiktok",placeholder:"johnsmith",getUrl:e=>`https://tiktok.com/@${e}`},youtube:{label:"YouTube",icon:"i-tabler-brand-youtube",placeholder:"johnsmith",getUrl:e=>`https://youtube.com/@${e}`},github:{label:"GitHub",icon:"i-tabler-brand-github",placeholder:"johnsmith",getUrl:e=>`https://github.com/${e}`},instagram:{label:"Instagram",icon:"i-simple-icons-instagram",placeholder:"johnsmith",getUrl:e=>`https://instagram.com/${e}`},threads:{label:"Threads",icon:"i-simple-icons-threads",placeholder:"johnsmith",getUrl:e=>`https://threads.net/@${e}`},email:{label:"Email",icon:"i-tabler-mail",placeholder:"hello@example.com",getUrl:e=>`mailto:${e}`},phone:{label:"Phone",icon:"i-tabler-phone",placeholder:"+1-555-123-4567",getUrl:e=>`tel:${e.replace(/[^0-9+]/g,"")}`},website:{label:"Website",icon:"i-tabler-world",placeholder:"https://example.com",getUrl:e=>e},calendar:{label:"Calendar",icon:"i-tabler-calendar",placeholder:"https://cal.com/username",getUrl:e=>e}}});var U2,zU,OU,AU,DU,PU,RU,UU,jU,R2,MU,LU,VU,FU,BU,ZU,HU,KU,WU,GU,JU,qU,YU,XU,QU,ej,tj,rj,nj,ij,oj,aj,sj,lj,cj,uj,dj,pj,fj,mj,j2,hj,gj,vj,bj,yj,wj,kj,xj,_j,$j,Sj,Ij,Ej,Tj,Nj,Cj,zj,Oj,Aj,Dj,Pj,Rj,Uj,Sp,ny=Y(()=>{"use strict";Tn();P2();ry();Ol();bn();U2=[{mode:"self",label:"Overview",icon:"i-tabler-user-square-rounded"},{mode:"talk",label:"Talk",icon:"i-tabler-phone"},{mode:"chat",label:"Chat",icon:"i-tabler-message-circle"},{mode:"info",label:"About",icon:"i-tabler-user-circle"}],zU=Ue({__name:"EffectTransitionList",props:{disabled:{type:Boolean,default:!1},mode:{default:"block"}},setup(e){return(t,n)=>(w(),Ge(m0,{name:e.disabled?"":"nlist"},{default:_t(()=>[fr(t.$slots,"default")]),_:3},8,["name"]))}}),OU=["data-test-mode"],AU={class:"w-full max-w-xs space-y-12"},DU={key:0,class:"text-xs text-theme-400 text-center"},PU={class:"text-base font-light text-white text-center"},RU={class:"space-y-6 relative"},UU={key:"email-field",class:"w-full"},jU={key:"code-field",class:"w-full"},R2=Ue({__name:"ElAuthGate",props:{sdk:{}},setup(e){let t=q({email:"",code:""}),n=q("email"),i=q(!1),r={email:{title:"Enter Your Email",button:{label:"Continue",disabled:()=>!t.value.email||i.value},action:async()=>{if(!i.value){i.value=!0;try{await e.sdk.auth.requestAuthCode({email:t.value.email})&&(n.value="code")}finally{i.value=!1}}}},code:{title:"Enter Verification Code",button:{label:"Verify",disabled:()=>t.value.code.length!==6||i.value},action:async()=>{if(!i.value){i.value=!0;try{await e.sdk.auth.loginWithCode({email:t.value.email,code:t.value.code})}finally{i.value=!1}}}}},o=P(()=>r[n.value]);return ft(()=>e.sdk.activeUser.value,a=>{a&&n.value==="code"&&console.log("[ElAuthGate] Authentication successful",{email:a.email})}),(a,s)=>(w(),_("div",{"data-test":"auth-form","data-test-mode":n.value,class:"flex flex-col items-center justify-center h-full p-6"},[k("div",AU,[e.sdk.error.value?(w(),_("p",DU,ue(e.sdk.error.value),1)):ee("",!0),k("h3",PU,ue(o.value.title),1),k("div",RU,[ye(zU,null,{default:_t(()=>[n.value==="email"?(w(),_("div",UU,[ye(wp,{modelValue:t.value.email,"onUpdate:modelValue":s[0]||(s[0]=l=>t.value.email=l),"data-test":"auth-email-input",onKeyup:Vn(o.value.action,["enter"])},null,8,["modelValue","onKeyup"])])):(w(),_("div",jU,[ye(kp,{modelValue:t.value.code,"onUpdate:modelValue":s[1]||(s[1]=l=>t.value.code=l),length:6,"focus-first":!0,"data-test":"auth-code-input",onAutoSubmit:o.value.action},null,8,["modelValue","onAutoSubmit"])])),(w(),_("div",{key:o.value.button.label,class:"space-y-4 w-full"},[ye(La,{theme:"primary",size:"md",class:"w-full","data-test":"auth-submit",loading:e.sdk.loading.value,disabled:o.value.button.disabled()||e.sdk.loading.value,onClick:o.value.action},{default:_t(()=>[$t(ue(o.value.button.label),1)]),_:1},8,["loading","disabled","onClick"]),n.value==="code"?(w(),_("button",{key:0,class:"w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",onClick:s[2]||(s[2]=l=>n.value="email")}," Change Email ")):ee("",!0)]))]),_:1})])])],8,OU))}}),MU={class:"flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative"},LU={class:"flex-1 space-y-6 pb-12"},VU={key:0,class:"text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"},FU={class:"text-white/70 leading-relaxed whitespace-pre-wrap"},BU={key:1,class:"space-y-3"},ZU=["href"],HU={key:2,class:"space-y-3"},KU={class:"grid grid-cols-2 gap-3"},WU=["href"],GU=Ue({__name:"ElBotAbout",props:{bot:{},isOnline:{type:Boolean,default:!1}},setup(e){return(t,n)=>(w(),_("div",MU,[ye(xp,{bot:e.bot,"is-online":e.isOnline},null,8,["bot","is-online"]),k("div",LU,[e.bot.summary.value?(w(),_("div",VU,[n[0]||(n[0]=k("h3",{class:"font-medium text-white/50"}," About ",-1)),k("p",FU,ue(e.bot.summary.value),1)])):ee("",!0),e.bot.email.value?(w(),_("div",BU,[n[2]||(n[2]=k("h3",{class:"text-sm font-medium text-white/90"}," Contact ",-1)),k("a",{href:`mailto:${e.bot.email.value}`,target:"_blank",rel:"noopener noreferrer",class:"relative inline-flex items-center justify-center gap-2 rounded-full px-4 py-2 font-medium transition-colors duration-200 focus:outline-none active:opacity-80 cursor-pointer bg-white/5 hover:bg-white/10 border border-white/10 text-white/80 text-sm justify-start h-10 w-full"},[...n[1]||(n[1]=[k("span",{class:"i-heroicons-envelope flex items-center size-[1.1em] mt-[-.07em]"},null,-1),$t(" Email ",-1)])],8,ZU)])):ee("",!0),e.bot.accounts.value&&e.bot.accounts.value.length>0?(w(),_("div",HU,[n[3]||(n[3]=k("h3",{class:"text-sm font-medium text-white/90"}," Links ",-1)),k("div",KU,[(w(!0),_(ge,null,st(e.bot.accounts.value,i=>(w(),_("a",{key:`${i.platform}-${i.handle}`,href:Ce(ho)[i.platform].getUrl(i.handle),target:"_blank",rel:"noopener noreferrer",class:"relative inline-flex items-center justify-center gap-2 rounded-full px-4 py-2 font-medium transition-colors duration-200 focus:outline-none active:opacity-80 cursor-pointer bg-white/10 hover:bg-white/20 border border-white/20 text-white/80 text-sm"},[k("span",{class:V(["flex items-center size-[1.1em] mt-[-.07em]",Ce(ho)[i.platform].icon])},null,2),$t(" "+ue(Ce(ho)[i.platform].label),1)],8,WU))),128))])])):ee("",!0)])]))}}),JU={class:"flex flex-col items-center text-center gap-4"},qU={class:"relative flex-shrink-0"},YU={class:"w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white"},XU=["src","alt"],QU={class:"absolute top-1.5 right-1.5"},ej={key:1,class:"size-4 bg-theme-400 rounded-full ring-2 ring-white"},tj={class:"min-w-0"},rj={class:"text-3xl font-light text-white mb-2 truncate"},nj={class:"text-base font-light text-white/60 line-clamp-1"},ij=Ue({__name:"ElBotHeader",props:{bot:{},isOnline:{type:Boolean,default:!1}},setup(e){return(t,n)=>(w(),_("div",JU,[k("div",qU,[k("div",YU,[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"w-full h-full object-cover",onError:n[0]||(n[0]=(...i)=>Ce(Bl)&&Ce(Bl)(...i))},null,40,XU)]),k("div",QU,[e.isOnline?(w(),_(ge,{key:0},[n[1]||(n[1]=k("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"3s"}},null,-1)),n[2]||(n[2]=k("div",{class:"size-4 bg-green-500 rounded-full ring-2 ring-white"},null,-1))],64)):(w(),_("div",ej))])]),k("div",tj,[k("h1",rj,ue(e.bot.displayName.value),1),k("p",nj,ue(e.bot.title.value),1)])]))}}),oj={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},aj=Ue({name:"SelfSidebarClose",__name:"BotSidebarClose",emits:["click"],setup(e){let t=q(!1);return Pt(()=>{setTimeout(()=>{t.value=!0},100)}),(n,i)=>(w(),_("a",{class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:i[0]||(i[0]=r=>n.$emit("click",r))},[i[1]||(i[1]=k("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),k("span",oj,[k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])]))}}),sj={key:0,class:"px-9 pt-12 pb-4"},lj={class:"text-base font-medium text-theme-400"},cj={key:1,class:"px-4 pb-8 border-b border-white/10"},uj=["disabled","onClick"],dj={class:"flex items-center gap-3"},pj={class:"flex-1"},fj={key:0,class:"text-xs text-white/50 mt-0.5"},mj={class:"p-6"},j2=Ue({name:"ElSidebar",inheritAttrs:!1,__name:"ElSidebar",props:{modelValue:{type:Boolean},items:{},position:{},title:{},widthClasses:{}},emits:["update:modelValue"],setup(e,{emit:t}){let n=e,i=t,r=n.position||"left",o=n.widthClasses||"w-[80%] max-w-[300px]",a=P({get:()=>n.modelValue,set:d=>i("update:modelValue",d)}),s=P(()=>n.items.filter(d=>!d.isHidden));function l(d){d.isDisabled||(d.onClick?d.onClick({item:d,event:new MouseEvent("click")}):d.href&&(d.href.includes("http")?window.open(d.href,d.target||"_self")?.focus():window.location.href=d.href),a.value=!1)}let u=P(()=>r==="left"?{enter:"-translate-x-full",leave:"-translate-x-full",position:"justify-start",closeButton:"-right-16"}:{enter:"translate-x-full",leave:"translate-x-full",position:"justify-end",closeButton:"-left-16"});return(d,p)=>(w(),_(ge,null,[ye(bi,{"enter-active-class":"transition-opacity duration-300 ease-out","leave-active-class":"transition-opacity duration-200 ease-in","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_t(()=>[a.value?(w(),_("div",{key:0,class:"absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",onClick:p[0]||(p[0]=f=>a.value=!1)})):ee("",!0)]),_:1}),ye(bi,{"enter-active-class":"transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":u.value.enter,"enter-to-class":"translate-x-0","leave-from-class":"translate-x-0","leave-to-class":u.value.leave},{default:_t(()=>[a.value?(w(),_("div",{key:0,class:V(["absolute inset-0 z-50 flex",u.value.position]),onClick:p[3]||(p[3]=f=>a.value=!1)},[k("div",{class:V(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center",Ce(o)]),onClick:p[2]||(p[2]=Et(()=>{},["stop"]))},[ye(aj,{class:V(["absolute top-4 z-10 text-white",u.value.closeButton]),onClick:p[1]||(p[1]=f=>a.value=!1)},null,8,["class"]),e.title?(w(),_("div",sj,[k("h3",lj,ue(e.title),1)])):ee("",!0),d.$slots.header?(w(),_("div",cj,[fr(d.$slots,"header")])):ee("",!0),k("div",{class:V(["flex-1 p-6 space-y-2 overflow-y-auto",{"pt-6":!e.title&&!d.$slots.header,"pt-4":e.title||d.$slots.header}])},[ye(m0,{"enter-active-class":"transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]","leave-active-class":"transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]","enter-from-class":Ce(r)==="left"?"-translate-x-4 opacity-0":"translate-x-4 opacity-0","enter-to-class":"translate-x-0 opacity-100","leave-from-class":"translate-x-0 opacity-100","leave-to-class":Ce(r)==="left"?"-translate-x-4 opacity-0":"translate-x-4 opacity-0"},{default:_t(()=>[(w(!0),_(ge,null,st(s.value,(f,m)=>(w(),_("button",{key:f.key||f.label||m,style:_e({transitionDelay:`${m*40}ms`}),class:V(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group",[f.isActive?"bg-primary-500/20 border border-primary-500/40":"hover:bg-white/10",f.isDisabled&&"opacity-50 cursor-not-allowed"]]),disabled:f.isDisabled,onClick:h=>l(f)},[k("div",dj,[f.icon?.src?(w(),_("i",{key:0,class:V(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110",[f.icon.src,f.isActive?"text-primary-400":"text-white/70 group-hover:text-white"]])},null,2)):ee("",!0),k("div",pj,[k("div",{class:V(["font-medium text-sm",f.isActive?"text-primary-300":"text-white"])},ue(f.label),3),f.subLabel?(w(),_("div",fj,ue(f.subLabel),1)):ee("",!0)])])],14,uj))),128))]),_:1},8,["enter-from-class","leave-to-class"])],2),k("div",mj,[fr(d.$slots,"footer")])],2)],2)):ee("",!0)]),_:3},8,["enter-from-class","leave-to-class"])],64))}}),hj=Ue({name:"BotModeSidebar",__name:"ElBotModeSidebar",props:{modelValue:{type:Boolean},chatController:{}},emits:["update:modelValue"],setup(e,{emit:t}){let n=e,i=t,r=P({get:()=>n.modelValue,set:s=>i("update:modelValue",s)}),o=P(()=>n.chatController?.botMode?.value??"self"),a=P(()=>U2.map(s=>({key:s.mode,icon:{src:s.icon},label:s.label,isActive:o.value===s.mode,onClick:()=>{n.chatController?.setMode(s.mode)}})));return(s,l)=>(w(),Ge(j2,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),items:a.value,position:"right",title:"Mode","width-classes":"w-[80%] max-w-[255px]"},null,8,["modelValue","items"]))}}),gj=Ue({name:"BotSidebar",__name:"ElBotSidebar",props:{modelValue:{type:Boolean},bot:{},sdk:{},title:{}},emits:["update:modelValue"],setup(e,{emit:t}){let n=e,i=t,r=P({get:()=>n.modelValue,set:a=>i("update:modelValue",a)}),o=P(()=>{let a=[{key:"share",icon:{src:"i-tabler-share"},label:"Share this assistant",onClick:()=>{let s=`${window.location.origin}/@${n.bot.handle.value||n.bot.botId.value}`;navigator.clipboard.writeText(s).catch(l=>{console.error("ElBotSidebar: clipboard.writeText rejected",l)})}},{key:"profile",icon:{src:"i-tabler-user"},label:"View full profile",onClick:()=>{window.open(`/@${n.bot.handle.value||n.bot.botId.value}`,"_blank")}},{key:"create",icon:{src:"i-tabler-sparkles"},label:"Create your own",onClick:()=>{window.open("/auth","_blank")}}];return n.sdk.activeUser.value&&a.push({key:"logout",icon:{src:"i-tabler-logout"},label:"Logout",onClick:async()=>{await n.sdk.auth.logout()}}),a});return(a,s)=>(w(),Ge(j2,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),items:o.value,position:"left",title:e.title||"Menu"},null,8,["modelValue","items","title"]))}}),vj={key:0,class:"absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"},bj=["data-quality"],yj={key:0,class:"flex flex-1 items-center gap-3 pl-2"},wj=["src","alt"],kj={class:"text-sm font-medium text-white/90"},xj={key:1,class:"flex justify-end"},_j={class:"text-sm"},$j={key:0,class:"flex-1 basis-0 flex justify-end"},Sj={key:0,class:"h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/bot:px-6 max-w-md mx-auto w-full"},Ij={class:"flex-1 basis-0 flex flex-col justify-start pt-8 gap-7"},Ej={key:0,class:"flex items-center justify-center gap-3"},Tj=["href"],Nj={key:1,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"},Cj={class:"max-w-md mx-auto"},zj={key:2,class:"flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/bot:px-6"},Oj={class:"flex-1 min-h-0 max-w-md mx-auto w-full"},Aj={key:2,class:"bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"},Dj={class:"text-center max-w-md space-y-4"},Pj={class:"text-sm text-white/70 leading-relaxed"},Rj={key:3,class:"bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"},Uj=Ue({__name:"BotChat",props:{sdk:{},bot:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean,default:!1},isActive:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},theme:{default:"green"},requireAuth:{type:Boolean,default:!1},chatOnly:{type:Boolean,default:!1},bare:{type:Boolean,default:!1},emptyStateMessage:{},createVoiceClientFn:{type:Function}},emits:["close","error","turnStarted","turnCompleted"],setup(e,{emit:t}){let n=t,i=We(),r=q(!1),o=q(!1),a=q(),s=q(),l=P(()=>i.value?.botMode?.value??"self"),u=P(()=>i.value?.textState.value.isConnected??!1),d=P(()=>e.sdk.activeUser.value!==void 0),p=P(()=>U2.find(E=>E.mode===l.value));function f(){i.value&&i.value.destroy();try{i.value=new Zl({sdk:e.sdk,bot:e.bot,context:e.context,firstMessage:e.firstMessage,...e.createVoiceClientFn?{createVoiceClientFn:e.createVoiceClientFn}:{},onTurnStarted:()=>n("turnStarted"),onTurnCompleted:E=>n("turnCompleted",E)})}catch(E){throw console.error("BotChatController creation failed:",E),E}}try{f()}catch(E){let M=E instanceof Error?E.message:"Couldn't initialize your assistant";a.value=M,n("error",M)}function m(E){if(!s.value)return;let M=GS(E);Object.entries(M).forEach(([z,D])=>{s.value.style.setProperty(`--primary-${z}`,D)})}Pt(()=>{try{m(e.theme),e.chatOnly&&i.value&&i.value.setMode("chat")}catch(E){let M=E instanceof Error?E.message:"Couldn't initialize your assistant";a.value=M,n("error",M)}}),qr(()=>{i.value&&i.value.destroy()}),ft(()=>e.theme,E=>{m(E)}),ft(()=>e.sdk.activeUser.value,(E,M)=>{M&&!E&&i.value&&i.value.setMode("self")});let h=P(()=>!!(e.bot.cover.value?.src&&e.bot.cover.value?.quality==="low")||!!(e.bot.avatar.value?.src&&e.bot.avatar.value?.quality==="low")),v=P(()=>{let E=[h.value?"backdrop-blur-sm":""];return h.value&&l.value==="self"?E.push("from-black/80 via-black/60 to-black/80"):l.value==="self"?E.push("from-black/70 via-black/50 to-black/80"):E.push("from-black/90 via-black/90 to-black/100"),E.join(" ")}),x={phone:"i-heroicons-phone",calendar:"i-heroicons-calendar",question:"i-heroicons-question-mark-circle",message:"i-heroicons-chat-bubble-left-right",sparkles:"i-heroicons-sparkles"},A=P(()=>v2({template:e.buttonText||"Talk to {name}",bot:e.bot.toData()})),I=P(()=>x[e.buttonIcon||"phone"]||x.phone);return(E,M)=>(w(),_("div",{ref_key:"rootElement",ref:s,key:e.bot.avatarUrl.value,class:"pagelines-sdk @container/bot pagelines-bot w-full h-full overflow-hidden relative","data-test":"bot-chat"},[e.loading?(w(),_("div",vj,[ye(pp,{class:"text-white size-8"})])):e.bot&&!a.value?(w(),_("div",{key:1,class:V(["absolute inset-0",e.bare?"":"bg-cover bg-center bg-no-repeat"]),style:_e(e.bare?void 0:{backgroundImage:`url(${e.bot.avatarUrl.value})`}),"data-quality":e.bot.avatar.value?.quality||"none"},[e.bare?ee("",!0):(w(),_("div",{key:0,class:V(["absolute inset-0 bg-gradient-to-br z-0",v.value])},null,2)),k("div",{class:V(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform",e.isActive?"opacity-100 translate-y-0":"opacity-0 translate-y-2"])},[!e.bare||e.hasClose?(w(),_("div",{key:0,class:V(["relative z-30 p-2",!e.bare&&l.value!=="self"?"backdrop-blur-lg":""])},[e.chatOnly?(w(),_("div",{key:0,class:V(["flex items-center",e.bare?"justify-end":""])},[e.bare?ee("",!0):(w(),_("div",yj,[k("img",{src:e.bot.avatarUrl.value,alt:e.bot.displayName.value,class:"size-8 rounded-full object-cover"},null,8,wj),k("span",kj,ue(e.bot.displayName.value),1)])),e.hasClose?(w(),_("div",xj,[k("button",{class:V(["flex cursor-pointer items-center rounded-2xl p-3 transition-colors",e.bare?"text-theme-500 hover:bg-theme-50":"text-white/70 hover:bg-white/10"]),onClick:M[0]||(M[0]=Et(z=>n("close","button"),["stop"]))},[...M[7]||(M[7]=[k("i",{class:"size-6 i-tabler-x"},null,-1)])],2)])):ee("",!0)],2)):(w(),_("div",{key:1,class:V(["flex items-center",e.hasClose?"":"justify-between"])},[k("div",{class:V(e.hasClose?"flex-1 basis-0":"")},[k("button",{class:"cursor-pointer p-2 flex items-center gap-2 rounded-2xl text-white/70 hover:bg-white/10 transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-105 active:scale-95",onClick:M[1]||(M[1]=z=>r.value=!0)},[...M[8]||(M[8]=[k("i",{class:"i-tabler-menu size-7"},null,-1)])])],2),k("button",{class:V(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0",{"bg-white/10":o.value}]),onClick:M[2]||(M[2]=z=>o.value=!0)},[k("i",{class:V([p.value?.icon,"size-4 opacity-60"])},null,2),k("span",_j,ue(p.value?.label),1),M[9]||(M[9]=k("i",{class:"i-tabler-chevron-down size-4"},null,-1))],2),e.hasClose?(w(),_("div",$j,[k("button",{class:"cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",onClick:M[3]||(M[3]=Et(z=>n("close","button"),["stop"]))},[...M[10]||(M[10]=[k("i",{class:"size-6 i-tabler-x"},null,-1)])])])):ee("",!0)],2))],2)):ee("",!0),e.chatOnly?(w(),_("div",{key:1,class:V(["relative z-20 flex min-h-0 w-full flex-1 flex-col",e.bare?"":"px-4"])},[k("div",{class:V(["min-h-0 w-full flex-1",e.bare?"":"mx-auto max-w-md"])},[ye(mo,{"chat-controller":i.value,bot:e.bot,scope:d.value?"private":"public","empty-state-message":e.emptyStateMessage,variant:e.bare?"light":"dark","show-header":!e.bare,centered:e.bare},e0({_:2},[E.$slots["empty-heading"]?{name:"empty-heading",fn:_t(z=>[fr(E.$slots,"empty-heading",ma(Ia(z)))]),key:"0"}:void 0]),1032,["chat-controller","bot","scope","empty-state-message","variant","show-header","centered"])],2)],2)):(w(),_(ge,{key:2},[l.value==="self"?(w(),_("div",Sj,[M[11]||(M[11]=k("div",{class:"flex-1 basis-0 mb-12"},null,-1)),ye(ij,{bot:e.bot,"is-online":u.value},null,8,["bot","is-online"]),k("div",Ij,[ye(La,{theme:"primary",size:"lg",class:"w-full",icon:I.value,"data-test":"voice-button",onClick:M[4]||(M[4]=z=>i.value?.setMode("talk"))},{default:_t(()=>[$t(ue(A.value),1)]),_:1},8,["icon"]),e.bot.accounts.value&&e.bot.accounts.value.length>0?(w(),_("div",Ej,[(w(!0),_(ge,null,st((e.bot.accounts.value||[]).filter(z=>Ce(ho)[z.platform]),z=>(w(),_("a",{key:`${z.platform}-${z.handle}`,href:Ce(ho)[z.platform].getUrl(z.handle),target:"_blank",class:"size-12 rounded-full text-white/60 hover:text-white hover:bg-white/5 border border-white/0 hover:border-white/10 flex items-center justify-center transition-all duration-200 hover:scale-105"},[k("i",{class:V([Ce(ho)[z.platform].icon,"size-5"])},null,2)],8,Tj))),128))])):ee("",!0)])])):l.value==="talk"?(w(),_("div",Nj,[e.requireAuth&&!d.value?(w(),Ge(R2,{key:0,sdk:e.sdk},null,8,["sdk"])):(w(),_(ge,{key:1},[k("div",null,[k("div",Cj,[ye(xp,{bot:e.bot,"is-online":u.value},null,8,["bot","is-online"])])]),ye(mo,{"chat-controller":i.value,bot:e.bot},null,8,["chat-controller","bot"])],64))])):(w(),_("div",zj,[k("div",Oj,[l.value==="chat"?(w(),_(ge,{key:0},[e.requireAuth&&!d.value?(w(),Ge(R2,{key:0,sdk:e.sdk},null,8,["sdk"])):(w(),Ge(mo,{key:1,"chat-controller":i.value,bot:e.bot,"show-header":""},null,8,["chat-controller","bot"]))],64)):l.value==="info"?(w(),Ge(GU,{key:1,bot:e.bot,"is-online":u.value},null,8,["bot","is-online"])):ee("",!0)])]))],64))],2)],14,bj)):a.value?(w(),_("div",Aj,[k("div",Dj,[M[12]||(M[12]=k("div",{class:"flex justify-center"},[k("div",{class:"rounded-full bg-red-500/20 flex items-center justify-center size-10"},[k("i",{class:"i-tabler-alert-circle size-6 text-red-400"})])],-1)),M[13]||(M[13]=k("h3",{class:"text-lg font-medium"}," Bot Error ",-1)),k("p",Pj,ue(a.value),1)])])):(w(),_("div",Rj," Couldn't load your assistant. Please try again later. ")),e.chatOnly?ee("",!0):(w(),Ge(gj,{key:4,modelValue:r.value,"onUpdate:modelValue":M[5]||(M[5]=z=>r.value=z),bot:e.bot,sdk:e.sdk,title:e.bot.displayName.value,"data-test":"bot-sidebar"},null,8,["modelValue","bot","sdk","title"])),e.chatOnly?ee("",!0):(w(),Ge(hj,{key:5,modelValue:o.value,"onUpdate:modelValue":M[6]||(M[6]=z=>o.value=z),"chat-controller":i.value,"data-test":"bot-mode-sidebar"},null,8,["modelValue","chat-controller"]))]))}}),Sp=Ue({__name:"BotProvider",props:{sdk:{},bot:{},handle:{},context:{},clientContext:{},firstMessage:{},buttonText:{},buttonIcon:{},hasClose:{type:Boolean},chatOnly:{type:Boolean},bare:{type:Boolean},apiBase:{},emptyStateMessage:{}},emits:["close","error","turnStarted","turnCompleted"],setup(e,{emit:t}){let n=e,i=t;return(r,o)=>(w(),Ge(_p,a0(n,{class:"bot-provider size-full relative"}),{default:_t(a=>[ye(Uj,{sdk:a.sdk,bot:a.bot,context:a.context,"first-message":a.firstMessage,"button-text":n.buttonText,"button-icon":n.buttonIcon,"has-close":n.hasClose,"chat-only":n.chatOnly,bare:n.bare,"empty-state-message":n.emptyStateMessage,"is-active":!0,class:"size-full",onClose:o[0]||(o[0]=s=>i("close",s)),onError:o[1]||(o[1]=s=>i("error",s)),onTurnStarted:o[2]||(o[2]=s=>i("turnStarted")),onTurnCompleted:o[3]||(o[3]=s=>i("turnCompleted",s))},e0({_:2},[r.$slots["empty-heading"]?{name:"empty-heading",fn:_t(s=>[fr(r.$slots,"empty-heading",ma(Ia(s)))]),key:"0"}:void 0]),1032,["sdk","bot","context","first-message","button-text","button-icon","has-close","chat-only","bare","empty-state-message"])]),_:3},16))}})});var M2={};Zr(M2,{default:()=>jj});var jj,L2=Y(()=>{"use strict";Tn();ny();$p();bn();jj=Ue({__name:"BotWidgetInline",props:{sdk:{},handle:{},bot:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},chatOnly:{type:Boolean}},setup(e,{expose:t}){let{currentBot:n,currentContext:i,currentFirstMessage:r,currentButtonText:o,currentButtonIcon:a,update:s}=Fa(e);return t({update:s}),(l,u)=>(w(),Ge(Sp,{sdk:e.sdk,handle:e.handle,bot:Ce(n),context:Ce(i),"first-message":Ce(r),"button-text":Ce(o),"button-icon":Ce(a),"chat-only":e.chatOnly},null,8,["sdk","handle","bot","context","first-message","button-text","button-icon","chat-only"]))}})});var V2={};Zr(V2,{default:()=>Kj});var Mj,Lj,Vj,Fj,Bj,Zj,Hj,Kj,F2=Y(()=>{"use strict";Tn();ny();$p();bn();Mj=["aria-label"],Lj={class:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden"},Vj=Ue({name:"FClose",__name:"FClose",props:{ariaLabel:{}},emits:["click"],setup(e){let t=q(!1);return Pt(()=>{setTimeout(()=>{t.value=!0},100)}),(n,i)=>(w(),_("button",{type:"button","aria-label":e.ariaLabel||"Close",class:"close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",onClick:i[0]||(i[0]=r=>n.$emit("click",r))},[i[1]||(i[1]=k("span",{class:"absolute inset-0 rounded-full transition-all"},null,-1)),k("span",Lj,[k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 rotate-45":"translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.15s"}},null,2),k("span",{class:V(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]",t.value?"translate-y-0 translate-x-0 -rotate-45":"-translate-y-[30px] -translate-x-[30px] rotate-0"]),style:{"background-color":"currentColor","transition-delay":"0.45s"}},null,2)])],8,Mj))}}),Fj={class:"flex min-h-full items-center justify-center text-center p-4"},Bj={key:0,class:"text-base p-4 font-semibold"},Zj={key:1,class:"flex items-center gap-2 px-2"},Hj=Ue({inheritAttrs:!1,name:"FModal",__name:"FModal",props:{vis:{type:Boolean,default:!1},modalClass:{},styleClass:{},fullScreen:{type:Boolean,default:!1},hasClose:{type:Boolean,default:!1},title:{default:""},transitionMode:{default:"modal"},teleportTo:{default:"body"},disableTeleport:{type:Boolean,default:!1}},emits:["update:vis","close","escape"],setup(e,{emit:t}){let n=t,i=q(!1);function r(d){let{reason:p}=d;n("update:vis",!1),n("close",!0),p==="escape"&&n("escape",!0)}let o=P(()=>{let d=e.modalClass?[e.modalClass]:["max-w-screen-md p-24"],p=e.styleClass?[e.styleClass]:["bg-theme-0","shadow-xl"];return e.fullScreen?d.push("fixed inset-0"):d.push("rounded-2xl"),["relative","text-left","transform","transition-all","w-full","overflow-hidden",...d,...p]}),a=q(!1),s=[];function l(d){d.key==="Escape"&&e.vis&&r({reason:"escape"})}Pt(async()=>{i.value=!0;let d=ft(()=>e.vis,p=>{p?setTimeout(()=>a.value=!0,300):a.value=!1},{immediate:!0});s.push(d),typeof document<"u"&&(document.addEventListener("keydown",l),s.push(()=>document.removeEventListener("keydown",l)))}),qr(()=>{s.forEach(d=>d())});let u=P(()=>e.transitionMode==="slideUp"?{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 translate-y-full scale-95",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 translate-y-full scale-95"}:{enterActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",enterFromClass:"opacity-0 scale-75",enterToClass:"opacity-100 translate-y-0 scale-100",leaveActiveClass:"ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",leaveFromClass:"opacity-100 translate-y-0 scale-100",leaveToClass:"opacity-0 scale-75"});return(d,p)=>i.value?(w(),Ge(S$,{key:0,to:e.teleportTo,disabled:e.disableTeleport},[k("div",{class:V(["fixed inset-0 z-50",e.vis?"":"pointer-events-none"]),"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},[ye(bi,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:_t(()=>[e.vis?(w(),_("div",{key:0,class:"fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity",onClick:p[0]||(p[0]=f=>r({reason:"escape"}))})):ee("",!0)]),_:1}),k("div",{class:"fixed inset-0 z-40 overflow-y-auto overscroll-contain no-scrollbar",onClick:p[3]||(p[3]=f=>r({reason:"escape"}))},[k("div",Fj,[ye(bi,ma(Ia(u.value)),{default:_t(()=>[e.vis?(w(),_("div",{key:0,class:V([o.value,"w-full"]),onClick:p[2]||(p[2]=Et(()=>{},["stop"]))},[e.hasClose||e.title||d.$slots.actions?(w(),_("div",{key:0,class:V(!e.title&&(e.hasClose||d.$slots.actions)?"absolute top-0 right-0 z-10":"flex justify-between items-center")},[e.title?(w(),_("h2",Bj,ue(e.title),1)):ee("",!0),e.hasClose||d.$slots.actions?(w(),_("div",Zj,[fr(d.$slots,"actions"),e.hasClose?(w(),Ge(Vj,{key:0,class:"relative","data-test-id":"close-modal",onClick:p[1]||(p[1]=Et(f=>r({reason:"escape"}),["stop"]))})):ee("",!0)])):ee("",!0)],2)):ee("",!0),fr(d.$slots,"default")],2)):ee("",!0)]),_:3},16)])])],2)],8,["to","disabled"])):ee("",!0)}}),Kj=Ue({__name:"BotWidgetModal",props:{sdk:{},handle:{},bot:{},context:{},firstMessage:{},buttonText:{},buttonIcon:{},chatOnly:{type:Boolean},onClose:{type:Function}},setup(e,{expose:t}){let n=e,{currentBot:i,currentContext:r,currentFirstMessage:o,currentButtonText:a,currentButtonIcon:s,update:l}=Fa(n),u=q(!1);Pt(async()=>{await no(),setTimeout(()=>{u.value=!0},10)});function d(){u.value=!1,setTimeout(()=>{n.onClose&&n.onClose()},300)}function p(){u.value=!0}return t({update:l,close:d,open:p}),(f,m)=>(w(),Ge(Hj,{vis:u.value,"disable-teleport":!0,"modal-class":"max-w-4xl h-[80vh] md:h-[600px]","has-close":!1,"onUpdate:vis":m[0]||(m[0]=h=>u.value=h),onClose:d},{default:_t(()=>[ye(Sp,{sdk:e.sdk,handle:e.handle,bot:Ce(i),context:Ce(r),"first-message":Ce(o),"button-text":Ce(a),"button-icon":Ce(s),"chat-only":e.chatOnly,"has-close":!0,onClose:d},null,8,["sdk","handle","bot","context","first-message","button-text","button-icon","chat-only"])]),_:1},8,["vis"]))}})});Tn();N0();ry();$p();Ol();bn();var Wj=`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
163
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono:"DM Mono", "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-amber-500:#f99c00;--color-green-300:#7bf1a8;--color-green-400:#05df72;--color-green-500:#00c758;--color-green-600:#00a544;--color-slate-200:#e2e8f0;--color-slate-950:#020618;--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-md:48rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--font-weight-light:300;--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--blur-lg:16px;--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-theme-0:var(--theme-0,#fff);--color-theme-25:var(--theme-25,#f8fafc);--color-theme-50:var(--theme-50,#f3f4f6);--color-theme-100:var(--theme-100,#e5e7eb);--color-theme-200:var(--theme-200,#d1d5db);--color-theme-300:var(--theme-300,#9ca3af);--color-theme-400:var(--theme-400,#6b7280);--color-theme-500:var(--theme-500,#4b5563);--color-theme-600:var(--theme-600,#374151);--color-theme-700:var(--theme-700,#1f2a44);--color-theme-800:var(--theme-800,#111827);--color-theme-900:var(--theme-900,#0c0a13);--color-theme-950:var(--theme-950,#030712);--color-primary-300:var(--primary-300,#60a5fa);--color-primary-400:var(--primary-400,#3b82f6);--color-primary-500:var(--primary-500,#2563eb);--color-primary-600:var(--primary-600,#1d4ed8)}@supports (color:color(display-p3 0 0 0)){:root,:host{--color-red-300:color(display-p3 .956922 .651886 .645122);--color-red-400:color(display-p3 .933534 .431676 .423491);--color-red-500:color(display-p3 .903738 .262579 .253307);--color-red-600:color(display-p3 .830323 .140383 .133196);--color-amber-500:color(display-p3 .93994 .620584 .0585367);--color-green-300:color(display-p3 .600292 .935514 .68114);--color-green-400:color(display-p3 .399536 .862346 .49324);--color-green-500:color(display-p3 .308734 .774754 .374307);--color-green-600:color(display-p3 .243882 .640824 .294808);--color-slate-200:color(display-p3 .890322 .909405 .939294);--color-slate-950:color(display-p3 .0102437 .0227555 .0878731)}}@supports (color:lab(0% 0 0)){:root,:host{--color-red-300:lab(76.5514% 36.422 15.5335);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-green-300:lab(86.9953% -47.2691 25.0054);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-slate-200:lab(91.7353% -.998765 -4.76968);--color-slate-950:lab(1.76974% 1.32743 -9.28855)}}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::-webkit-file-upload-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::-webkit-file-upload-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:-webkit-any([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:-webkit-any([multiple],[size])) optgroup option{padding-inline-start:20px}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::-webkit-file-upload-button{margin-inline-end:4px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-year-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-month-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-day-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-hour-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-minute-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-second-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-millisecond-field{padding-block-start:0;padding-block-end:0}::-webkit-datetime-edit-meridiem-field{padding-block-start:0;padding-block-end:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button{-webkit-appearance:button;appearance:button}input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\\@container\\/bot{container:bot/inline-size}.\\@container\\/chat{container:chat/inline-size}.\\@container\\/chat-preview{container:chat-preview/inline-size}.\\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{top:0;bottom:0;left:0;right:0}.inset-x-0{left:0;right:0}.-top-1\\.5{top:calc(var(--spacing) * -1.5)}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\.5{top:calc(var(--spacing) * 1.5)}.top-1\\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-6{top:calc(var(--spacing) * 6)}.top-\\[5\\%\\]{top:5%}.-right-1\\.5{right:calc(var(--spacing) * -1.5)}.-right-16{right:calc(var(--spacing) * -16)}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-1{right:var(--spacing)}.right-1\\.5{right:calc(var(--spacing) * 1.5)}.right-4{right:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.right-\\[5\\%\\]{right:5%}.-bottom-\\[3\\%\\]{bottom:-3%}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-6{bottom:calc(var(--spacing) * 6)}.-left-16{left:calc(var(--spacing) * -16)}.-left-\\[3\\%\\]{left:-3%}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:calc(var(--spacing) * 4)}.left-6{left:calc(var(--spacing) * 6)}.left-\\[13px\\]{left:13px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.z-\\[999999\\]{z-index:999999}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline-start:auto;margin-inline-end:auto}.my-2{margin-block:calc(var(--spacing) * 2)}.my-6{margin-block:calc(var(--spacing) * 6)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-\\[-\\.07em\\]{margin-top:-.07em}.-mr-1{margin-right:calc(var(--spacing) * -1)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.mb-12{margin-bottom:calc(var(--spacing) * 12)}.-ml-1{margin-left:calc(var(--spacing) * -1)}.-ml-2{margin-left:calc(var(--spacing) * -2)}.ml-1\\.5{margin-left:calc(var(--spacing) * 1.5)}.ml-3{margin-left:calc(var(--spacing) * 3)}.i-heroicons-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-chat-bubble-left-right{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193q-.51.041-1.02.072v3.091l-3-3q-2.031 0-4.02-.163a2.1 2.1 0 0 1-.825-.242m9.345-8.334a2 2 0 0 0-.476-.095a48.6 48.6 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.5 48.5 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402c-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235q.865.113 1.74.194V21l4.155-4.155'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-envelope{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.04 12.04 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-question-mark-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.879 7.519c1.172-1.025 3.071-1.025 4.243 0c1.171 1.025 1.171 2.687 0 3.712q-.308.268-.67.442c-.746.361-1.452.999-1.452 1.827v.75M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0m-9 5.25h.008v.008H12z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-heroicons-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09m8.445-7.188L18 9.75l-.259-1.035a3.38 3.38 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.38 3.38 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.38 3.38 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.38 3.38 0 0 0-2.456 2.456m-1.365 11.852L16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183l.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394l-1.183.394a2.25 2.25 0 0 0-1.423 1.423'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-facebook{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978c.401 0 .955.042 1.468.103a9 9 0 0 1 1.141.195v3.325a9 9 0 0 0-.653-.036a27 27 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.7 1.7 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103l-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-instagram{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.9 5.9 0 0 0-2.124 1.388a5.9 5.9 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076s-.069 1.688-.063 4.947s.021 3.667.083 4.947c.061 1.277.264 2.149.563 2.911c.308.789.72 1.457 1.388 2.123a5.9 5.9 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552c1.278.056 1.689.069 4.947.063s3.668-.021 4.947-.082c1.28-.06 2.147-.265 2.91-.563a5.9 5.9 0 0 0 2.123-1.388a5.9 5.9 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912c.056-1.28.07-1.69.063-4.948c-.006-3.258-.02-3.667-.081-4.947c-.06-1.28-.264-2.148-.564-2.911a5.9 5.9 0 0 0-1.387-2.123a5.9 5.9 0 0 0-2.128-1.38c-.764-.294-1.636-.496-2.914-.55C15.647.009 15.236-.006 11.977 0S8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.7 3.7 0 0 1-1.382-.895a3.7 3.7 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228c-.06-1.264-.072-1.644-.08-4.848c-.006-3.204.006-3.583.061-4.848c.05-1.169.246-1.805.408-2.228c.216-.561.477-.96.895-1.382a3.7 3.7 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417c1.265-.06 1.644-.072 4.848-.08c3.203-.006 3.583.006 4.85.062c1.168.05 1.804.244 2.227.408c.56.216.96.475 1.382.895s.681.817.9 1.378c.165.422.362 1.056.417 2.227c.06 1.265.074 1.645.08 4.848c.005 3.203-.006 3.583-.061 4.848c-.051 1.17-.245 1.805-.408 2.23c-.216.56-.477.96-.896 1.38a3.7 3.7 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418c-1.266.06-1.645.072-4.85.079s-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442a1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024a6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16A4 4 0 0 1 8 12.008'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-linkedin{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037c-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85c3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.06 2.06 0 0 1-2.063-2.065a2.064 2.064 0 1 1 2.063 2.065m1.782 13.019H3.555V9h3.564zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-threads{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M18.263 11.097c-.03-3.486-1.92-5.586-5.111-5.586c-2.13 0-3.922.963-4.863 2.499l2.062 1.438c.535-.843 1.272-1.543 2.628-1.543c1.528 0 2.318.85 2.544 2.431a15 15 0 0 0-2.236-.173c-4.125 0-6.068 1.867-6.068 4.336s1.943 3.99 4.804 3.99c3.139 0 5.013-2.115 5.781-4.735c.798.361 1.348 1.204 1.348 2.47c0 3.387-3.907 5.232-7.22 5.232c-4.885 0-8.077-3.207-8.077-8.424c0-6.392 4.223-10.487 9.9-10.487c3.808 0 5.69 1.671 6.97 3.914l2.108-1.475C21.44 2.078 18.331 0 13.663 0C6.227 0 1.168 5.277 1.168 12.934c0 7 4.953 11.066 10.856 11.066c4.878 0 9.809-2.846 9.809-7.716c0-2.545-1.46-4.231-3.569-5.187m-6.33 4.855c-1.077 0-2.026-.512-2.026-1.453c0-1.483 1.822-1.934 3.606-1.934c.678 0 1.34.045 1.927.173c-.422 1.927-1.671 3.215-3.508 3.214Z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-tiktok{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02c.08 1.53.63 3.09 1.75 4.17c1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97c-.57-.26-1.1-.59-1.62-.93c-.01 2.92.01 5.84-.02 8.75c-.08 1.4-.54 2.79-1.35 3.94c-1.31 1.92-3.58 3.17-5.91 3.21c-1.43.08-2.86-.31-4.08-1.03c-2.02-1.19-3.44-3.37-3.65-5.71c-.02-.5-.03-1-.01-1.49c.18-1.9 1.12-3.72 2.58-4.96c1.66-1.44 3.98-2.13 6.15-1.72c.02 1.48-.04 2.96-.04 4.44c-.99-.32-2.15-.23-3.02.37c-.63.41-1.11 1.04-1.36 1.75c-.21.51-.15 1.07-.14 1.61c.24 1.64 1.82 3.02 3.5 2.87c1.12-.01 2.19-.66 2.77-1.61c.19-.33.4-.67.41-1.06c.1-1.79.06-3.57.07-5.36c.01-4.03-.01-8.05.02-12.07'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-simple-icons-x{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M14.234 10.162L22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299l-.929-1.329L3.076 1.56h3.182l5.965 8.532l.929 1.329l7.754 11.09h-3.182z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-90-ring-with-bg{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='black' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-svg-spinners-ring-resize{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg stroke='black'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-alert-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-4v4m0 4h.01'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-arrow-right{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 12h14m-6 6l6-6m-6-6l6 6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-arrow-up{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 5v14m6-8l-6-6m-6 6l6-6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-github{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2c2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2a4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6c-.6.6-.6 1.2-.5 2V21'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-brand-youtube{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M2 8a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4z'/%3E%3Cpath d='m10 9l5 3l-5 3z'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-calendar{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm12-4v4M8 3v4m-4 4h16m-9 4h1m0 0v3'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-check{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 12l5 5L20 7'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-chevron-down{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9l6 6l6-6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-chevron-right{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m9 6l6 6l-6 6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-circle-check{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0'/%3E%3Cpath d='m9 12l2 2l4-4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-clock{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-copy{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 9.667A2.667 2.667 0 0 1 9.667 7h8.666A2.667 2.667 0 0 1 21 9.667v8.666A2.667 2.667 0 0 1 18.333 21H9.667A2.667 2.667 0 0 1 7 18.333z'/%3E%3Cpath d='M4.012 16.737A2 2 0 0 1 3 15V5c0-1.1.9-2 2-2h10c.75 0 1.158.385 1.5 1'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-file{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-flag{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 5a5 5 0 0 1 7 0a5 5 0 0 0 7 0v9a5 5 0 0 1-7 0a5 5 0 0 0-7 0zm0 16v-7'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-globe{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M7 9a4 4 0 1 0 8 0a4 4 0 0 0-8 0'/%3E%3Cpath d='M5.75 15A8.015 8.015 0 1 0 15 2m-4 15v4m-4 0h8'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-info-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-3h.01'/%3E%3Cpath d='M11 12h1v4h1'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-lock{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M5 13a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z'/%3E%3Cpath d='M11 16a1 1 0 1 0 2 0a1 1 0 0 0-2 0m-3-5V7a4 4 0 1 1 8 0v4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-logout{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 8V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2'/%3E%3Cpath d='M9 12h12l-3-3m0 6l3-3'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-mail{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='m3 7l9 6l9-6'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-menu{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h16M4 16h16'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-message-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-microphone{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M9 5a3 3 0 0 1 3-3a3 3 0 0 1 3 3v5a3 3 0 0 1-3 3a3 3 0 0 1-3-3z'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0M8 21h8m-4-4v4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-microphone-filled{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M19 9a1 1 0 0 1 1 1a8 8 0 0 1-6.999 7.938L13 20h3a1 1 0 0 1 0 2H8a1 1 0 0 1 0-2h3v-2.062A8 8 0 0 1 4 10a1 1 0 1 1 2 0a6 6 0 0 0 12 0a1 1 0 0 1 1-1m-7-8a4 4 0 0 1 4 4v5a4 4 0 1 1-8 0V5a4 4 0 0 1 4-4'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-microphone-off{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='m3 3l18 18M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1-.13.874m-2 2A3 3 0 0 1 9 10.002v-1'/%3E%3Cpath d='M5 10a7 7 0 0 0 10.846 5.85m2-2A6.97 6.97 0 0 0 18.998 10M8 21h8m-4-4v4'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-phone{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-player-stop-filled{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M17 4H7a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-plus{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 5v14m-7-7h14'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-share{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m12-6a3 3 0 1 0 6 0a3 3 0 1 0-6 0m0 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-6.3-7.3l6.6-3.4m-6.6 6l6.6 3.4'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-sparkles{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2m0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2M9 18a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-tool{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 10h3V7L6.5 3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1-3 3l-6-6a6 6 0 0 1-8-8z'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-circle{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0'/%3E%3Cpath d='M9 10a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-2.832 8.849A4 4 0 0 1 10 16h4a4 4 0 0 1 3.834 2.855'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-user-square-rounded{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 13a3 3 0 1 0 0-6a3 3 0 0 0 0 6'/%3E%3Cpath d='M12 3c7.2 0 9 1.8 9 9s-1.8 9-9 9s-9-1.8-9-9s1.8-9 9-9'/%3E%3Cpath d='M6 20.05V20a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v.05'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-users{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-world{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m.6-3h16.8M3.6 15h16.8'/%3E%3Cpath d='M11.5 3a17 17 0 0 0 0 18m1-18a17 17 0 0 1 0 18'/%3E%3C/g%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.i-tabler-x{width:1em;height:1em;-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-3\\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-32{width:calc(var(--spacing) * 32);height:calc(var(--spacing) * 32)}.size-\\[1\\.1em\\]{width:1.1em;height:1.1em}.size-\\[9px\\]{width:9px;height:9px}.size-\\[13px\\]{width:13px;height:13px}.size-\\[17px\\]{width:17px;height:17px}.size-\\[18px\\]{width:18px;height:18px}.size-\\[25px\\]{width:25px;height:25px}.size-\\[36\\%\\]{width:36%;height:36%}.size-full{width:100%;height:100%}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-4{height:calc(var(--spacing) * 4)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-20{height:calc(var(--spacing) * 20)}.h-\\[17px\\]{height:17px}.h-\\[28px\\]{height:28px}.h-\\[38px\\]{height:38px}.h-\\[60px\\]{height:60px}.h-\\[80px\\]{height:80px}.h-\\[80vh\\]{height:80vh}.h-\\[600px\\]{height:600px}.h-\\[min\\(600px\\,calc\\(100vh-4rem\\)\\)\\]{height:min(600px,100vh - 4rem)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-\\[calc\\(100vh-48px\\)\\]{max-height:calc(100vh - 48px)}.min-h-0{min-height:0}.min-h-5{min-height:calc(var(--spacing) * 5)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-\\[20px\\]{min-height:20px}.min-h-full{min-height:100%}.w-0{width:0}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-20{width:calc(var(--spacing) * 20)}.w-96{width:calc(var(--spacing) * 96)}.w-\\[2px\\]{width:2px}.w-\\[3px\\]{width:3px}.w-\\[5px\\]{width:5px}.w-\\[28px\\]{width:28px}.w-\\[46ch\\]{width:46ch}.w-\\[60px\\]{width:60px}.w-\\[80\\%\\]{width:80%}.w-\\[80px\\]{width:80px}.w-\\[min\\(400px\\,calc\\(100vw-2rem\\)\\)\\]{width:min(400px,100vw - 2rem)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-4xl{max-width:var(--container-4xl)}.max-w-20{max-width:calc(var(--spacing) * 20)}.max-w-\\[85\\%\\]{max-width:85%}.max-w-\\[88\\%\\]{max-width:88%}.max-w-\\[240px\\]{max-width:240px}.max-w-\\[255px\\]{max-width:255px}.max-w-\\[260px\\]{max-width:260px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[640px\\]{max-width:640px}.max-w-\\[900px\\]{max-width:900px}.max-w-\\[calc\\(100vw-48px\\)\\]{max-width:calc(100vw - 48px)}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-screen-md{max-width:var(--breakpoint-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-0{flex-basis:0}.origin-center{transform-origin:50%}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-4{--tw-translate-x:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-\\[30px\\]{--tw-translate-x:calc(30px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-4{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-\\[30px\\]{--tw-translate-y:calc(30px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\\[30px\\]{--tw-translate-y:30px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.-rotate-45{rotate:-45deg}.rotate-0{rotate:0deg}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform-gpu{transform:translateZ(0) var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-ping{animation:var(--animate-ping)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.\\[scrollbar-width\\:none\\]{scrollbar-width:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.\\[justify-content\\:safe_center\\]{justify-content:safe center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-stretch{justify-content:stretch}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-\\[2px\\]{gap:2px}.gap-\\[5px\\]{gap:5px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-12>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 12) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 12) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-2\\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-1\\.5{row-gap:calc(var(--spacing) * 1.5)}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[14px\\]{border-radius:14px}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-black\\/10{border-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.border-black\\/10{border-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.border-green-400{border-color:var(--color-green-400)}.border-primary-400{border-color:var(--color-primary-400)}.border-primary-500\\/40{border-color:var(--color-primary-500)}@supports (color:color-mix(in lab, red, red)){.border-primary-500\\/40{border-color:color-mix(in oklab, var(--color-primary-500) 40%, transparent)}}.border-red-400{border-color:var(--color-red-400)}.border-slate-200{border-color:var(--color-slate-200)}.border-theme-100{border-color:var(--color-theme-100)}.border-theme-200{border-color:var(--color-theme-200)}.border-theme-300{border-color:var(--color-theme-300)}.border-theme-400{border-color:var(--color-theme-400)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-white\\/0{border-color:#0000}@supports (color:color-mix(in lab, red, red)){.border-white\\/0{border-color:color-mix(in oklab, var(--color-white) 0%, transparent)}}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.border-white\\/10{border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.border-white\\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\\/20{border-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.border-white\\/25{border-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.border-white\\/25{border-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.border-t-primary-500{border-top-color:var(--color-primary-500)}.bg-\\[\\#0A1522\\]{background-color:#0a1522}.bg-\\[\\#050F19\\]{background-color:#050f19}.bg-amber-500{background-color:var(--color-amber-500)}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab, red, red)){.bg-black\\/30{background-color:color-mix(in oklab, var(--color-black) 30%, transparent)}}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-current{background-color:currentColor}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-primary-500,.bg-primary-500\\/20{background-color:var(--color-primary-500)}@supports (color:color-mix(in lab, red, red)){.bg-primary-500\\/20{background-color:color-mix(in oklab, var(--color-primary-500) 20%, transparent)}}.bg-primary-600{background-color:var(--color-primary-600)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.bg-red-500\\/20{background-color:color-mix(in oklab, var(--color-red-500) 20%, transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-950{background-color:var(--color-slate-950)}.bg-theme-0{background-color:var(--color-theme-0)}.bg-theme-50{background-color:var(--color-theme-50)}.bg-theme-100{background-color:var(--color-theme-100)}.bg-theme-200,.bg-theme-200\\/70{background-color:var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.bg-theme-200\\/70{background-color:color-mix(in oklab, var(--color-theme-200) 70%, transparent)}}.bg-theme-300{background-color:var(--color-theme-300)}.bg-theme-400{background-color:var(--color-theme-400)}.bg-theme-800,.bg-theme-800\\/60{background-color:var(--color-theme-800)}@supports (color:color-mix(in lab, red, red)){.bg-theme-800\\/60{background-color:color-mix(in oklab, var(--color-theme-800) 60%, transparent)}}.bg-theme-900{background-color:var(--color-theme-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.bg-white\\/5{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.bg-white\\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\\/10{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.bg-white\\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\\/15{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.bg-white\\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\\/50{background-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-\\[\\#050F19\\]\\/82{--tw-gradient-from:#050f19d1;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}@supports (color:color(display-p3 0 0 0)){.from-\\[\\#050F19\\]\\/82{--tw-gradient-from:color(display-p3 .0270841 .0577423 .0947219/.82)}}@supports (color:lab(0% 0 0)){.from-\\[\\#050F19\\]\\/82{--tw-gradient-from:lab(3.9307% -1.22581 -7.24003/.82)}}.from-black\\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\\/70{--tw-gradient-from:color-mix(in oklab, var(--color-black) 70%, transparent)}}.from-black\\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\\/80{--tw-gradient-from:#000c}@supports (color:color-mix(in lab, red, red)){.from-black\\/80{--tw-gradient-from:color-mix(in oklab, var(--color-black) 80%, transparent)}}.from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-black\\/90{--tw-gradient-from:#000000e6}@supports (color:color-mix(in lab, red, red)){.from-black\\/90{--tw-gradient-from:color-mix(in oklab, var(--color-black) 90%, transparent)}}.from-black\\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-theme-800{--tw-gradient-from:var(--color-theme-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-transparent{--tw-gradient-from:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.via-\\[\\#050F19\\]\\/90{--tw-gradient-via:#050f19e6;--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}@supports (color:color(display-p3 0 0 0)){.via-\\[\\#050F19\\]\\/90{--tw-gradient-via:color(display-p3 .0270841 .0577423 .0947219/.9)}}@supports (color:lab(0% 0 0)){.via-\\[\\#050F19\\]\\/90{--tw-gradient-via:lab(3.9307% -1.22581 -7.24003/.9)}}.via-black\\/10{--tw-gradient-via:#0000001a}@supports (color:color-mix(in lab, red, red)){.via-black\\/10{--tw-gradient-via:color-mix(in oklab, var(--color-black) 10%, transparent)}}.via-black\\/10{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/50{--tw-gradient-via:#00000080}@supports (color:color-mix(in lab, red, red)){.via-black\\/50{--tw-gradient-via:color-mix(in oklab, var(--color-black) 50%, transparent)}}.via-black\\/50{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/60{--tw-gradient-via:#0009}@supports (color:color-mix(in lab, red, red)){.via-black\\/60{--tw-gradient-via:color-mix(in oklab, var(--color-black) 60%, transparent)}}.via-black\\/60{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-black\\/90{--tw-gradient-via:#000000e6}@supports (color:color-mix(in lab, red, red)){.via-black\\/90{--tw-gradient-via:color-mix(in oklab, var(--color-black) 90%, transparent)}}.via-black\\/90{--tw-gradient-via-stops:var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-\\[\\#050F19\\]\\/99{--tw-gradient-to:#050f19fc;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}@supports (color:color(display-p3 0 0 0)){.to-\\[\\#050F19\\]\\/99{--tw-gradient-to:color(display-p3 .0270841 .0577423 .0947219/.99)}}@supports (color:lab(0% 0 0)){.to-\\[\\#050F19\\]\\/99{--tw-gradient-to:lab(3.9307% -1.22581 -7.24003/.99)}}.to-black\\/40{--tw-gradient-to:#0006}@supports (color:color-mix(in lab, red, red)){.to-black\\/40{--tw-gradient-to:color-mix(in oklab, var(--color-black) 40%, transparent)}}.to-black\\/40{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\\/80{--tw-gradient-to:#000c}@supports (color:color-mix(in lab, red, red)){.to-black\\/80{--tw-gradient-to:color-mix(in oklab, var(--color-black) 80%, transparent)}}.to-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-black\\/100{--tw-gradient-to:var(--color-black);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-theme-950{--tw-gradient-to:var(--color-theme-950);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.bg-cover{background-size:cover}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.object-cover{object-fit:cover}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-24{padding:calc(var(--spacing) * 24)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-9{padding-inline:calc(var(--spacing) * 9)}.px-14{padding-inline:calc(var(--spacing) * 14)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-10{padding-top:calc(var(--spacing) * 10)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-20{padding-top:calc(var(--spacing) * 20)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-2\\.5{padding-bottom:calc(var(--spacing) * 2.5)}.pb-3\\.5{padding-bottom:calc(var(--spacing) * 3.5)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-5{padding-bottom:calc(var(--spacing) * 5)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pb-\\[120px\\]{padding-bottom:120px}.pb-\\[max\\(3rem\\,env\\(safe-area-inset-bottom\\)\\)\\]{padding-bottom:max(3rem, env(safe-area-inset-bottom))}.pb-\\[max\\(env\\(safe-area-inset-bottom\\)\\,1rem\\)\\]{padding-bottom:max(env(safe-area-inset-bottom), 1rem)}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-\\[22px\\]{padding-left:22px}.pl-\\[30px\\]{padding-left:30px}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.leading-\\[1\\.55\\]{--tw-leading:1.55;line-height:1.55}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\\[0\\.35em\\]{--tw-tracking:.35em;letter-spacing:.35em}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[\\#050F19\\]{color:#050f19}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-primary-300{color:var(--color-primary-300)}.text-primary-400{color:var(--color-primary-400)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-slate-950{color:var(--color-slate-950)}.text-theme-0{color:var(--color-theme-0)}.text-theme-300{color:var(--color-theme-300)}.text-theme-400{color:var(--color-theme-400)}.text-theme-500{color:var(--color-theme-500)}.text-theme-600{color:var(--color-theme-600)}.text-theme-700{color:var(--color-theme-700)}.text-theme-800{color:var(--color-theme-800)}.text-theme-900{color:var(--color-theme-900)}.text-theme-950{color:var(--color-theme-950)}.text-white{color:var(--color-white)}.text-white\\/30{color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.text-white\\/30{color:color-mix(in oklab, var(--color-white) 30%, transparent)}}.text-white\\/35{color:#ffffff59}@supports (color:color-mix(in lab, red, red)){.text-white\\/35{color:color-mix(in oklab, var(--color-white) 35%, transparent)}}.text-white\\/40{color:#fff6}@supports (color:color-mix(in lab, red, red)){.text-white\\/40{color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.text-white\\/45{color:#ffffff73}@supports (color:color-mix(in lab, red, red)){.text-white\\/45{color:color-mix(in oklab, var(--color-white) 45%, transparent)}}.text-white\\/50{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.text-white\\/50{color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.text-white\\/55{color:#ffffff8c}@supports (color:color-mix(in lab, red, red)){.text-white\\/55{color:color-mix(in oklab, var(--color-white) 55%, transparent)}}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\\/60{color:color-mix(in oklab, var(--color-white) 60%, transparent)}}.text-white\\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\\/70{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.text-white\\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\\/85{color:#ffffffd9}@supports (color:color-mix(in lab, red, red)){.text-white\\/85{color:color-mix(in oklab, var(--color-white) 85%, transparent)}}.text-white\\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\\/90{color:color-mix(in oklab, var(--color-white) 90%, transparent)}}.text-white\\/95{color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.text-white\\/95{color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.placeholder-theme-300::placeholder{color:var(--color-theme-300)}.placeholder-theme-400::placeholder{color:var(--color-theme-400)}.placeholder-theme-500::placeholder{color:var(--color-theme-500)}.placeholder-white\\/50::placeholder{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.placeholder-white\\/50::placeholder{color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_1px_2px_rgba\\(15\\,23\\,42\\,0\\.04\\)\\,0_12px_32px_rgba\\(15\\,23\\,42\\,0\\.07\\)\\]{--tw-shadow:0 1px 2px var(--tw-shadow-color,#0f172a0a), 0 12px 32px var(--tw-shadow-color,#0f172a12);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_8px_32px_-4px_rgba\\(0\\,0\\,0\\,0\\.15\\)\\]{--tw-shadow:0 8px 32px -4px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\\[0_24px_80px_-12px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\,0_8px_24px_-8px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-shadow:0 24px 80px -12px var(--tw-shadow-color,#0003), 0 8px 24px -8px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-black\\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.ring-theme-200,.ring-theme-200\\/50{--tw-ring-color:var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.ring-theme-200\\/50{--tw-ring-color:color-mix(in oklab, var(--color-theme-200) 50%, transparent)}}.ring-theme-900{--tw-ring-color:var(--color-theme-900)}.ring-theme-950\\/20{--tw-ring-color:var(--color-theme-950)}@supports (color:color-mix(in lab, red, red)){.ring-theme-950\\/20{--tw-ring-color:color-mix(in oklab, var(--color-theme-950) 20%, transparent)}}.ring-white{--tw-ring-color:var(--color-white)}.ring-white\\/10{--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.ring-white\\/10{--tw-ring-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.ring-white\\/15{--tw-ring-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.ring-white\\/15{--tw-ring-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.ring-white\\/20{--tw-ring-color:#fff3}@supports (color:color-mix(in lab, red, red)){.ring-white\\/20{--tw-ring-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.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,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-250{--tw-duration:.25s;transition-duration:.25s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-1000{--tw-duration:1s;transition-duration:1s}.duration-\\[400ms\\]{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\.25\\,1\\,0\\.33\\,1\\)\\]{--tw-ease:cubic-bezier(.25,1,.33,1);transition-timing-function:cubic-bezier(.25,1,.33,1)}.ease-\\[cubic-bezier\\(0\\.52\\,0\\.01\\,0\\.16\\,1\\)\\]{--tw-ease:cubic-bezier(.52,.01,.16,1);transition-timing-function:cubic-bezier(.52,.01,.16,1)}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-transform{will-change:transform}.\\[-ms-overflow-style\\:none\\]{-ms-overflow-style:none}.\\[animation-duration\\:3s\\]{animation-duration:3s}.\\[overflow-anchor\\:none\\]{overflow-anchor:none}@media (hover:hover){.group-hover\\:scale-100:is(:where(.group):hover *){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.group-hover\\:text-white:is(:where(.group):hover *){color:var(--color-white)}.group-hover\\:opacity-40:is(:where(.group):hover *){opacity:.4}.group-hover\\/msg\\:opacity-100:is(:where(.group\\/msg):hover *){opacity:1}}.focus-within\\:bg-white\\/15:focus-within{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.focus-within\\:bg-white\\/15:focus-within{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.focus-within\\:opacity-100:focus-within{opacity:1}.focus-within\\:ring-theme-950\\/30:focus-within{--tw-ring-color:var(--color-theme-950)}@supports (color:color-mix(in lab, red, red)){.focus-within\\:ring-theme-950\\/30:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-theme-950) 30%, transparent)}}.focus-within\\:ring-white\\/25:focus-within{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.focus-within\\:ring-white\\/25:focus-within{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}@media (hover:hover){.hover\\:translate-y-\\[-1px\\]:hover{--tw-translate-y:-1px;translate:var(--tw-translate-x) var(--tw-translate-y)}.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\\:rotate-90:hover{rotate:90deg}.hover\\:border-green-300:hover{border-color:var(--color-green-300)}.hover\\:border-primary-300:hover{border-color:var(--color-primary-300)}.hover\\:border-red-300:hover{border-color:var(--color-red-300)}.hover\\:border-theme-200:hover{border-color:var(--color-theme-200)}.hover\\:border-theme-300:hover{border-color:var(--color-theme-300)}.hover\\:border-white\\/10:hover{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\\:border-white\\/10:hover{border-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\\:border-white\\/40:hover{border-color:#fff6}@supports (color:color-mix(in lab, red, red)){.hover\\:border-white\\/40:hover{border-color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.hover\\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\\:bg-primary-500:hover{background-color:var(--color-primary-500)}.hover\\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\\:bg-theme-25:hover{background-color:var(--color-theme-25)}.hover\\:bg-theme-50:hover{background-color:var(--color-theme-50)}.hover\\:bg-theme-100:hover{background-color:var(--color-theme-100)}.hover\\:bg-theme-200:hover{background-color:var(--color-theme-200)}.hover\\:bg-theme-700:hover{background-color:var(--color-theme-700)}.hover\\:bg-theme-800:hover{background-color:var(--color-theme-800)}.hover\\:bg-white\\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/5:hover{background-color:color-mix(in oklab, var(--color-white) 5%, transparent)}}.hover\\:bg-white\\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/10:hover{background-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/15:hover{background-color:color-mix(in oklab, var(--color-white) 15%, transparent)}}.hover\\:bg-white\\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-white\\/20:hover{background-color:color-mix(in oklab, var(--color-white) 20%, transparent)}}.hover\\:text-primary-600:hover{color:var(--color-primary-600)}.hover\\:text-theme-400:hover{color:var(--color-theme-400)}.hover\\:text-theme-500:hover{color:var(--color-theme-500)}.hover\\:text-theme-600:hover{color:var(--color-theme-600)}.hover\\:text-theme-700:hover{color:var(--color-theme-700)}.hover\\:text-theme-800:hover{color:var(--color-theme-800)}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:text-white\\/70:hover{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.hover\\:text-white\\/70:hover{color:color-mix(in oklab, var(--color-white) 70%, transparent)}}.hover\\:text-white\\/80:hover{color:#fffc}@supports (color:color-mix(in lab, red, red)){.hover\\:text-white\\/80:hover{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.hover\\:opacity-70:hover{opacity:.7}.hover\\:shadow-2xl:hover{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hover\\:ring-theme-950\\/30:hover{--tw-ring-color:var(--color-theme-950)}@supports (color:color-mix(in lab, red, red)){.hover\\:ring-theme-950\\/30:hover{--tw-ring-color:color-mix(in oklab, var(--color-theme-950) 30%, transparent)}}.hover\\:ring-white\\/25:hover{--tw-ring-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.hover\\:ring-white\\/25:hover{--tw-ring-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.hover\\:brightness-110:hover{--tw-brightness:brightness(110%);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,)}}.focus\\:border-theme-900:focus{border-color:var(--color-theme-900)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\\:ring-theme-900:focus-visible{--tw-ring-color:var(--color-theme-900)}.focus-visible\\:ring-white:focus-visible{--tw-ring-color:var(--color-white)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\\:-translate-y-0\\.5:active{--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}.active\\:scale-90:active{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:scale-\\[0\\.98\\]:active{scale:.98}.active\\:scale-\\[1\\.06\\]:active{scale:1.06}.active\\:bg-theme-800\\/80:active{background-color:var(--color-theme-800)}@supports (color:color-mix(in lab, red, red)){.active\\:bg-theme-800\\/80:active{background-color:color-mix(in oklab, var(--color-theme-800) 80%, transparent)}}.active\\:bg-white\\/25:active{background-color:#ffffff40}@supports (color:color-mix(in lab, red, red)){.active\\:bg-white\\/25:active{background-color:color-mix(in oklab, var(--color-white) 25%, transparent)}}.active\\:opacity-70:active{opacity:.7}.active\\:opacity-80:active{opacity:.8}.active\\:duration-100:active{--tw-duration:.1s;transition-duration:.1s}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\\:top-6{top:calc(var(--spacing) * 6)}.sm\\:right-6{right:calc(var(--spacing) * 6)}.sm\\:bottom-6{bottom:calc(var(--spacing) * 6)}.sm\\:left-6{left:calc(var(--spacing) * 6)}.sm\\:size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.sm\\:h-24{height:calc(var(--spacing) * 24)}.sm\\:max-h-\\[620px\\]{max-height:620px}.sm\\:w-24{width:calc(var(--spacing) * 24)}.sm\\:max-w-\\[420px\\]{max-width:420px}.sm\\:flex-none{flex:none}.sm\\:items-center{align-items:center}.sm\\:justify-center{justify-content:center}.sm\\:rounded-\\[32px\\]{border-radius:32px}.sm\\:bg-\\[\\#050F19\\]\\/45{background-color:#050f1973;background-color:color(display-p3 .0270841 .0577423 .0947219/.45);background-color:lab(3.9307% -1.22581 -7.24003/.45)}.sm\\:p-6{padding:calc(var(--spacing) * 6)}.sm\\:px-12{padding-inline:calc(var(--spacing) * 12)}.sm\\:pb-7{padding-bottom:calc(var(--spacing) * 7)}.sm\\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\\:shadow-\\[0_32px_80px_rgba\\(5\\,15\\,25\\,0\\.45\\)\\]{--tw-shadow:0 32px 80px var(--tw-shadow-color,#050f1973);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}@media (min-width:48rem){.md\\:h-\\[600px\\]{height:600px}}@container bot (width>=480px){.\\@\\[480px\\]\\/bot\\:px-6{padding-inline:calc(var(--spacing) * 6)}}@container chat (width>=24rem){.\\@sm\\/chat\\:ml-\\[2em\\]{margin-left:2em}.\\@sm\\/chat\\:size-24{width:calc(var(--spacing) * 24);height:calc(var(--spacing) * 24)}}@container chat-preview (width>=24rem){.\\@sm\\/chat-preview\\:max-w-\\[78\\%\\]{max-width:78%}}@container chat (width>=24rem){.\\@sm\\/chat\\:max-w-\\[320px\\]{max-width:320px}.\\@sm\\/chat\\:pr-\\[2em\\]{padding-right:2em}.\\@sm\\/chat\\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.\\@sm\\/chat\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.\\@sm\\/chat\\:text-\\[11px\\]{font-size:11px}.\\@sm\\/chat\\:text-\\[15px\\]{font-size:15px}.\\@sm\\/chat\\:leading-\\[1\\.5\\]{--tw-leading:1.5;line-height:1.5}}@container chat (width>=28rem){.\\@md\\/chat\\:block{display:block}}@container chat (width>=32rem){.\\@lg\\/chat\\:px-8{padding-inline:calc(var(--spacing) * 8)}}@container chat (width>=64rem){.\\@5xl\\/chat\\:max-w-\\[720px\\]{max-width:720px}.\\@5xl\\/chat\\:max-w-\\[740px\\]{max-width:740px}.\\@5xl\\/chat\\:px-5{padding-inline:calc(var(--spacing) * 5)}.\\@5xl\\/chat\\:pt-3\\.5{padding-top:calc(var(--spacing) * 3.5)}.\\@5xl\\/chat\\:pb-3{padding-bottom:calc(var(--spacing) * 3)}}@media (prefers-color-scheme:dark){.dark\\:bg-theme-600\\/90{background-color:var(--color-theme-600)}@supports (color:color-mix(in lab, red, red)){.dark\\:bg-theme-600\\/90{background-color:color-mix(in oklab, var(--color-theme-600) 90%, transparent)}}}@media (pointer:coarse){.pointer-coarse\\:size-11{width:calc(var(--spacing) * 11);height:calc(var(--spacing) * 11)}.pointer-coarse\\:opacity-100{opacity:1}}.\\[\\&_\\.chat-msg-rich\\]\\:max-w-none .chat-msg-rich{max-width:none}.\\[\\&_\\.chat-msg-rich\\]\\:text-\\[13px\\] .chat-msg-rich{font-size:13px}.\\[\\&_\\.chat-msg-rich\\]\\:leading-\\[1\\.6\\] .chat-msg-rich{--tw-leading:1.6;line-height:1.6}.\\[\\&_\\.chat-msg-rich\\]\\:italic .chat-msg-rich{font-style:italic}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:hidden::-webkit-scrollbar{display:none}}.chat-dots{align-items:center;gap:3px;display:inline-flex}.chat-dots>span{background:currentColor;border-radius:9999px;width:5px;height:5px;animation:1.4s cubic-bezier(.25,1,.33,1) infinite chat-dot}.chat-dots>span:nth-child(2){animation-delay:.16s}.chat-dots>span:nth-child(3){animation-delay:.32s}@keyframes chat-dot{0%,52%,to{opacity:.25;transform:translateY(0)}22%{opacity:1;transform:translateY(-1.5px)}}.chat-dots--mini{gap:2.5px}.chat-dots--mini>span{width:3.5px;height:3.5px}.chat-pulse-dot{animation:1.4s cubic-bezier(.25,1,.33,1) infinite chat-pulse-dot}@keyframes chat-pulse-dot{0%,to{opacity:.35;transform:scale(.7)}35%{opacity:1;transform:scale(1)}}.chat-live-enter{animation:.28s cubic-bezier(.25,1,.33,1) both chat-live-enter}@keyframes chat-live-enter{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.chat-dots>span,.chat-pulse-dot{opacity:.55;animation:none}.chat-live-enter{animation:none}}.chat-msg-prose :first-child{margin-top:0}.chat-msg-prose :last-child{margin-bottom:0}.chat-msg-prose+.chat-msg-prose{margin-top:1em}.chat-msg-prose strong{font-weight:600}.chat-msg-prose em{font-style:italic}.chat-msg-prose a{color:var(--color-primary-500);text-underline-offset:3px;text-decoration:underline;-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);text-decoration-color:var(--color-primary-500)}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose a{-webkit-text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent);-webkit-text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent);-webkit-text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent);text-decoration-color:color-mix(in oklch, var(--color-primary-500) 40%, transparent)}}.chat-msg-prose a{font-weight:500;transition:text-decoration-color .15s}.chat-msg-prose a:hover{-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);-webkit-text-decoration-color:var(--color-primary-500);text-decoration-color:var(--color-primary-500)}.chat-msg-prose.chat-msg-prose-invert a{color:#fff;text-decoration-color:#ffffff73}.chat-msg-prose.chat-msg-prose-invert a:hover{text-decoration-color:#fff}.chat-msg-prose.chat-msg-prose-invert pre,.chat-msg-prose.chat-msg-prose-invert table{background:#ffffff14;border-color:#ffffff2e}.chat-msg-prose.chat-msg-prose-invert td{border-top-color:#ffffff1f}.chat-msg-prose.chat-msg-prose-invert :not(pre)>code{background:#ffffff24}.chat-msg-prose.chat-msg-prose-invert hr{border-top-color:#ffffff38}.chat-msg-prose p{margin:1em 0;line-height:1.55}.chat-msg-prose h1{letter-spacing:-.012em;margin:1.1em 0 .5em;font-size:1.25em;font-weight:600;line-height:1.3}.chat-msg-prose h2{letter-spacing:-.01em;margin:1.1em 0 .45em;font-size:1.15em;font-weight:600;line-height:1.3}.chat-msg-prose h3{letter-spacing:-.008em;margin:1em 0 .4em;font-size:1.05em;font-weight:600;line-height:1.35}.chat-msg-prose h4,.chat-msg-prose h5,.chat-msg-prose h6{margin:.9em 0 .35em;font-size:1em;font-weight:600;line-height:1.4}.chat-msg-prose ul,.chat-msg-prose ol{margin:.7em 0 .9em;padding-left:1.4em;line-height:1.55}.chat-msg-prose ul{list-style-type:disc}.chat-msg-prose ol{list-style-type:decimal}.chat-msg-prose li{margin-bottom:.35em}.chat-msg-prose li p{margin:0}.chat-msg-prose li::marker{color:currentColor;opacity:.4}.chat-msg-prose li:has(>input[type=checkbox]){margin-left:-1.4em;list-style:none}.chat-msg-prose li>input[type=checkbox]{-webkit-appearance:none;appearance:none;vertical-align:-.06em;border:1px solid var(--color-theme-300);background:0 0;border-radius:.22em;width:.82em;height:.82em;margin:0 .5em 0 .1em}.chat-msg-prose li>input[type=checkbox]:checked{border-color:var(--color-theme-900);background:var(--color-theme-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.8 6.8 9 1.2' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .55em no-repeat}.chat-msg-prose.chat-msg-prose-invert li>input[type=checkbox]{border-color:#fff6}.chat-msg-prose.chat-msg-prose-invert li>input[type=checkbox]:checked{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.8 6.8 9 1.2' fill='none' stroke='%230c0a13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");border-color:#fff}.chat-msg-prose pre{background:var(--color-theme-25);border:1px solid var(--color-theme-200);border-radius:.625rem;margin:1.4em 0;padding:.85em 1em;font-family:SF Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.82em;line-height:1.5;overflow-x:auto}.chat-msg-prose pre code{font-size:inherit;background:0 0;padding:0;font-family:inherit}.chat-msg-prose :not(pre)>code{background:var(--color-theme-200);border-radius:.3rem;padding:.15em .4em;font-size:.85em}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose :not(pre)>code{background:color-mix(in oklch, var(--color-theme-200) 45%, transparent)}}.chat-msg-prose :not(pre)>code{font-family:SF Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.chat-msg-prose blockquote{opacity:.8;margin:1.3em 0;padding:0 0 0 1.1em;font-style:italic}.chat-msg-prose blockquote p{margin:.15em 0}.chat-msg-prose table{background:var(--color-theme-0);border-collapse:separate;border-spacing:0;border:1px solid var(--color-theme-200);border-radius:.625rem;width:100%;margin:1.4em 0;font-size:.9em;line-height:1.45;overflow:hidden}.chat-msg-prose th,.chat-msg-prose td{text-align:left;padding:.65em .8em}.chat-msg-prose th{font-weight:600}.chat-msg-prose td{border-top:1px solid var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose td{border-top:1px solid color-mix(in oklch, var(--color-theme-200) 45%, transparent)}}.chat-msg-prose td{color:currentColor}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose td{color:color-mix(in oklch, currentColor 75%, transparent)}}.chat-msg-prose td:first-child{color:inherit}.chat-msg-prose [align=center]{text-align:center}.chat-msg-prose [align=right]{text-align:right}.chat-msg-prose [align=left]{text-align:left}.chat-msg-prose hr{border:none;border-top:1px solid var(--color-theme-200)}@supports (color:color-mix(in lab, red, red)){.chat-msg-prose hr{border-top:1px solid color-mix(in oklch, var(--color-theme-200) 42%, transparent)}}.chat-msg-prose hr{margin:1.2em 0}.chat-msg-prose img{border-radius:.5rem;max-width:100%;height:auto;margin:.6em 0}.chat-msg-prose p+p{margin-top:.65em}.chat-msg-prose p+ul,.chat-msg-prose p+ol{margin-top:.4em}.chat-msg-prose h1+p,.chat-msg-prose h2+p,.chat-msg-prose h3+p{margin-top:.2em}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}`,Gj={"data-test":"auth-panel",class:"flex flex-col justify-end h-full px-5 pb-8 pt-6"},Jj={class:"flex-1 flex flex-col justify-center"},qj={key:0,class:"text-xs text-red-500 mb-4"},Yj={class:"space-y-3"},Xj={key:0},Qj={key:1,class:"space-y-3"},eM={key:2,class:"space-y-3"},tM={class:"text-xs text-theme-400"},rM=Ue({__name:"ElAuthPanel",props:{sdk:{}},setup(e){let t=q(!1),n=q("email"),i=q({email:"",code:""}),r=q(!1);function o(){e.sdk.error.value=null,e.sdk.auth.loginWithGoogle({onError:l=>{e.sdk.error.value=l}})}async function a(){if(!r.value){r.value=!0,e.sdk.error.value=null;try{await e.sdk.auth.requestAuthCode({email:i.value.email})&&(n.value="code")}finally{r.value=!1}}}async function s(){if(!r.value){r.value=!0,e.sdk.error.value=null;try{await e.sdk.auth.loginWithCode({email:i.value.email,code:i.value.code})}finally{r.value=!1}}}return(l,u)=>(w(),_("div",Gj,[k("div",Jj,[u[4]||(u[4]=k("div",{class:"space-y-3 mb-10"},[k("h3",{class:"text-2xl font-light text-theme-900 leading-snug"},[$t(" Your AI assistant,"),k("br"),$t("ready in two minutes. ")]),k("p",{class:"text-sm text-theme-400 leading-relaxed max-w-[260px]"}," Sign in to create and deploy a personal AI that works for you. ")],-1)),e.sdk.error.value?(w(),_("p",qj,ue(e.sdk.error.value),1)):ee("",!0)]),k("div",Yj,[k("button",{"data-test":"google-auth-btn",class:"w-full flex items-center justify-center gap-3 px-5 py-3.5 rounded-xl border border-theme-200 bg-theme-0 text-theme-800 font-medium text-sm transition-all duration-150 hover:border-theme-300 hover:bg-theme-25 active:scale-[0.98] cursor-pointer",onClick:o},[...u[5]||(u[5]=[tS('<svg class="size-[18px]" viewBox="0 0 24 24"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"></path><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"></path><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" fill="#FBBC05"></path><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"></path></svg> Continue with Google ',2)])]),u[8]||(u[8]=k("div",{class:"flex items-center gap-3 py-1"},[k("div",{class:"flex-1 h-px bg-theme-100"}),k("span",{class:"text-[11px] text-theme-300 uppercase tracking-widest"},"or"),k("div",{class:"flex-1 h-px bg-theme-100"})],-1)),t.value?ee("",!0):(w(),_("div",Xj,[k("button",{"data-test":"email-auth-link",class:"w-full px-5 py-3 rounded-xl border border-theme-100 text-sm text-theme-500 transition-all duration-150 hover:border-theme-200 hover:text-theme-700 cursor-pointer",onClick:u[0]||(u[0]=d=>t.value=!0)}," Use email instead ")])),t.value&&n.value==="email"?(w(),_("div",Qj,[ye(wp,{modelValue:i.value.email,"onUpdate:modelValue":u[1]||(u[1]=d=>i.value.email=d),"data-test":"auth-email-input",onKeyup:Vn(a,["enter"])},null,8,["modelValue"]),ye(La,{"data-test":"auth-send-code",theme:"dark",size:"md",class:"w-full",loading:r.value,disabled:!i.value.email||r.value,onClick:a},{default:_t(()=>[...u[6]||(u[6]=[$t(" Send verification code ",-1)])]),_:1},8,["loading","disabled"])])):ee("",!0),t.value&&n.value==="code"?(w(),_("div",eM,[k("p",tM," Code sent to "+ue(i.value.email),1),ye(kp,{modelValue:i.value.code,"onUpdate:modelValue":u[2]||(u[2]=d=>i.value.code=d),length:6,"focus-first":!0,"data-test":"auth-code-input",onAutoSubmit:s},null,8,["modelValue"]),ye(La,{"data-test":"auth-verify-code",theme:"dark",size:"md",class:"w-full",loading:r.value,disabled:i.value.code.length!==6||r.value,onClick:s},{default:_t(()=>[...u[7]||(u[7]=[$t(" Verify ",-1)])]),_:1},8,["loading","disabled"]),k("button",{class:"w-full text-xs text-theme-300 hover:text-theme-500 transition-colors py-1 cursor-pointer",onClick:u[3]||(u[3]=d=>n.value="email")}," Use a different email ")])):ee("",!0)])]))}}),nM={"data-test":"create-panel",class:"flex flex-col justify-end h-full px-5 pb-8 pt-6"},iM={class:"flex-1 flex flex-col justify-center"},oM={key:0,class:"text-xs text-red-500 mb-4"},aM={class:"space-y-3"},sM=["disabled"],lM=Ue({__name:"ElCreateBot",props:{sdk:{}},emits:["created"],setup(e,{emit:t}){let n=t,i=q(""),r=q(!1),o=q(null);async function a(){if(!r.value&&i.value.trim()){r.value=!0,o.value=null;try{let s=e.sdk.currentOrg.value?.orgId??e.sdk.activeUser.value?.orgs?.[0]?.orgId;if(!s)throw Error("No workspace found. Please sign in again.");let l=await e.sdk.computer.create({orgId:s,primaryBot:{name:i.value.trim()}});n("created",l)}catch(s){o.value=s instanceof Error?s.message:"Failed to create bot"}finally{r.value=!1}}}return(s,l)=>(w(),_("div",nM,[k("div",iM,[l[1]||(l[1]=k("div",{class:"space-y-3 mb-10"},[k("h3",{class:"text-2xl font-light text-theme-900 leading-snug"},[$t(" What should we call"),k("br"),$t("your assistant? ")]),k("p",{class:"text-sm text-theme-400 leading-relaxed max-w-[260px]"}," Pick a name. You can change it later. ")],-1)),o.value?(w(),_("p",oM,ue(o.value),1)):ee("",!0)]),k("div",aM,[jd(k("input",{"onUpdate:modelValue":l[0]||(l[0]=u=>i.value=u),"data-test":"bot-name-input",type:"text",placeholder:"e.g. Alex, Casey, Jordan",class:"w-full px-4 py-3 text-theme-900 placeholder-theme-300 bg-theme-0 border border-theme-200 rounded-xl focus:outline-none focus:border-theme-900 transition-colors",style:{"font-size":"16px"},onKeyup:Vn(a,["enter"])},null,544),[[Jd,i.value]]),k("button",{"data-test":"bot-create-btn",class:"w-full px-5 py-3.5 rounded-xl bg-primary-600 text-white text-sm font-medium transition-all duration-150 hover:bg-primary-500 active:scale-[0.98] disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",disabled:!i.value.trim()||r.value,onClick:a},ue(r.value?"Creating...":"Create assistant"),9,sM)])]))}}),cM={"data-test":"provisioning-panel",class:"flex flex-col items-center justify-center h-full p-6"},uM={class:"w-full max-w-xs space-y-6 text-center"},dM={class:"text-sm text-theme-500"},pM={class:"text-sm text-red-500"},fM=Ue({__name:"ElProvisioningStatus",props:{sdk:{},computerId:{}},emits:["ready","error"],setup(e,{emit:t}){let n=e,i=t,r=q("Setting up your assistant\u2026"),o=q(!1),a=q(""),s={starting:"Starting your assistant\u2026",running:"Ready!",stopped:"Setting up your assistant\u2026"};async function l(){o.value=!1,a.value="";try{await n.sdk.computer.waitUntilReady({computerId:n.computerId,onStatus:u=>{r.value=s[u]??"Setting up your assistant\u2026"}}),i("ready")}catch(u){o.value=!0,a.value=u instanceof Error?u.message:"Something went wrong",i("error",a.value)}}return Pt(()=>{l()}),(u,d)=>(w(),_("div",cM,[k("div",uM,[o.value?(w(),_(ge,{key:1},[k("p",pM,ue(a.value),1),k("button",{"data-test":"provision-retry-btn",class:"px-6 py-2.5 rounded-lg bg-primary-600 text-white text-sm font-medium hover:bg-primary-500 transition-colors cursor-pointer",onClick:l}," Try again ")],64)):(w(),_(ge,{key:0},[d[0]||(d[0]=k("div",{class:"flex justify-center"},[k("div",{class:"animate-spin rounded-full size-6 border-2 border-theme-200 border-t-primary-500"})],-1)),k("p",dM,ue(r.value),1)],64))])]))}});function mM(e){return e.hasToken?e.hasBot?e.isNewBot?e.provisionError?"error":e.botReady?"chat":"provisioning":"chat":"create":"auth"}var hM=["data-test-state"],gM={class:"flex items-center justify-between px-4 py-3 border-b border-theme-100"},vM={class:"text-sm font-medium text-theme-800"},bM={class:"flex-1 overflow-hidden"},yM={key:4,class:"flex flex-col items-center justify-center h-full p-6"},wM={class:"w-full max-w-xs space-y-6 text-center"},kM={class:"text-sm text-red-500"},xM={key:0,class:"border-t border-theme-100 px-4 py-2 text-center"},_M=["href"],$M=Ue({__name:"BotWidgetOnboard",props:{sdk:{},onClose:{type:Function}},setup(e){let t=e,n=t.sdk||Pl.getInstance({isDev:typeof window<"u"?window.location.hostname==="localhost"||window.location.hostname.includes("127.0.0.1"):!1}),i=We(),r=q(!1),o=q(),a=q(!1),s=P(()=>i.value??n.currentBot.value),l=We(),u=We();ft(()=>s.value?.botId.value,x=>{if(!x||!s.value){l.value=void 0,u.value=void 0;return}let A=s.value;l.value=A,u.value=new Zl({sdk:n,bot:A,chatStreamFn:async I=>{await n.chat.chatStreamAuthenticated({botId:x,orgId:A.computer.orgId.value,message:I.message,attachments:I.attachments?.map(E=>k0.parse(E)),conversationId:I.conversationId,history:I.history,onDelta:I.onDelta,onDone:I.onDone,onError:I.onError,onStatus:I.onStatus,onToolActivity:I.onToolActivity,onWorkingEnd:I.onWorkingEnd})}})},{immediate:!0});let d=P(()=>mM({hasToken:!!n.token.value,hasBot:!!s.value,isNewBot:a.value,botReady:r.value,provisionError:o.value})),p=P(()=>`${Hn(n.apiBase,n.isDev)}/`);function f(x){i.value=x,o.value=void 0,r.value=!1,a.value=!0}function m(){r.value=!0}function h(x){o.value=x}function v(){o.value=void 0,r.value=!1}return(x,A)=>(w(),_("div",{class:"size-full flex flex-col bg-theme-0","data-test":"onboard-widget","data-test-state":d.value},[k("div",gM,[k("span",vM,ue(s.value?.name.value||"PageLines"),1),t.onClose?(w(),_("button",{key:0,class:"text-theme-400 hover:text-theme-600 transition-colors cursor-pointer",onClick:A[0]||(A[0]=I=>t.onClose?.())},[...A[1]||(A[1]=[k("svg",{xmlns:"http://www.w3.org/2000/svg",class:"size-5",viewBox:"0 0 20 20",fill:"currentColor"},[k("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])])):ee("",!0)]),k("div",bM,[d.value==="auth"?(w(),Ge(rM,{key:0,sdk:Ce(n)},null,8,["sdk"])):ee("",!0),d.value==="create"?(w(),Ge(lM,{key:1,sdk:Ce(n),onCreated:f},null,8,["sdk"])):ee("",!0),d.value==="provisioning"&&s.value?(w(),Ge(fM,{key:2,sdk:Ce(n),"computer-id":s.value.computerId.value,onReady:m,onError:h},null,8,["sdk","computer-id"])):ee("",!0),d.value==="chat"&&l.value&&u.value?(w(),Ge(mo,{key:3,"chat-controller":u.value,bot:l.value,variant:"light",class:"size-full"},null,8,["chat-controller","bot"])):ee("",!0),d.value==="error"?(w(),_("div",yM,[k("div",wM,[k("p",kM,ue(o.value),1),k("button",{class:"px-6 py-2.5 rounded-lg bg-primary-600 text-white text-sm font-medium hover:bg-primary-500 transition-colors cursor-pointer",onClick:v}," Try again ")])])):ee("",!0)]),d.value==="chat"?(w(),_("div",xM,[k("a",{href:p.value,target:"_blank",class:"text-xs text-theme-400 hover:text-primary-600 transition-colors"}," Go to Dashboard \u2192 ",8,_M)])):ee("",!0)],8,hM))}}),SM={class:"relative size-16 rounded-full overflow-hidden"},IM=["src","alt"],EM={class:"flex items-center shrink-0 border-b border-theme-100 px-4 py-3"},TM={class:"flex items-center gap-3 flex-1 min-w-0"},NM=["src","alt"],CM={class:"min-w-0"},zM={class:"text-sm font-medium text-theme-900 truncate"},OM={class:"flex-1 overflow-hidden"},AM={class:"shrink-0 flex items-center justify-center border-t border-theme-100 py-1.5"},DM=["href"],PM=yp(Ue({__name:"BotWidgetPopup",props:{sdk:{},handle:{},bot:{},context:{},firstMessage:{},position:{},chatController:{}},setup(e,{expose:t}){let n=e,i=q(!1),r=q(!1),o=We(),{currentBot:a,currentContext:s,currentFirstMessage:l,update:u}=Fa(n),d=P(()=>({"bottom-left":"bottom-4 left-4 sm:bottom-6 sm:left-6","top-right":"top-4 right-4 sm:top-6 sm:right-6","top-left":"top-4 left-4 sm:top-6 sm:left-6","bottom-right":"bottom-4 right-4 sm:bottom-6 sm:right-6"})[n.position||"bottom-right"]),p=P(()=>({"bottom-left":"bottom left","top-right":"top right","top-left":"top left","bottom-right":"bottom right"})[n.position||"bottom-right"]),f=P(()=>({"bottom-left":"bottom-0 left-0","top-right":"top-0 right-0","top-left":"top-0 left-0","bottom-right":"bottom-0 right-0"})[n.position||"bottom-right"]);function m(A,I){n.chatController||o.value||(o.value=new Zl({sdk:I,bot:A,context:s.value,firstMessage:l.value}))}ft(i,async A=>{if(!A||r.value)return;r.value=!0;let I=n.chatController||o.value;if(I)try{await I.startTextConversation()}catch(E){console.error("BotWidgetPopup: startTextConversation failed",E)}});function h(){i.value=!i.value}function v(){i.value=!0}function x(){i.value=!1}return t({toggle:h,open:v,close:x,update:u}),(A,I)=>(w(),Ge(_p,{sdk:e.sdk,handle:e.handle,bot:Ce(a),context:Ce(s),"first-message":Ce(l)},{default:_t(({bot:E,sdk:M})=>[E?(w(),_("div",{key:0,ref:()=>m(E,M),class:V(["fixed z-[999999] pointer-events-auto",d.value])},[k("div",{class:V(["widget-container transform-gpu overflow-hidden",i.value?"w-[min(400px,calc(100vw-2rem))] h-[min(600px,calc(100vh-4rem))] shadow-[0_24px_80px_-12px_rgba(0,0,0,0.2),0_8px_24px_-8px_rgba(0,0,0,0.08)]":"w-16 h-16 shadow-[0_8px_32px_-4px_rgba(0,0,0,0.15)] cursor-pointer"]),style:_e({"border-radius":i.value?"16px":"32px","transform-origin":p.value}),onClick:I[0]||(I[0]=z=>i.value?void 0:h())},[k("div",{class:V(["absolute size-16 transition-opacity duration-200",[f.value,i.value?"opacity-0 pointer-events-none":"opacity-100"]])},[k("div",SM,[k("img",{src:Ce(g2)(E.toData()),alt:`${E.name.value} bot`,class:"h-full w-full object-cover pointer-events-none",width:"64",height:"64"},null,8,IM),I[1]||(I[1]=k("div",{class:"absolute inset-0 pointer-events-none bg-gradient-to-br from-transparent via-black/10 to-black/40 opacity-60"},null,-1))])],2),k("div",{class:V(["absolute inset-0 flex flex-col bg-white transition-opacity duration-250",i.value?"opacity-100":"opacity-0 pointer-events-none"])},[k("div",EM,[k("div",TM,[k("img",{src:E.avatarUrl.value,alt:E.name.value,class:"size-8 rounded-full object-cover shrink-0"},null,8,NM),k("div",CM,[k("div",zM,ue(E.displayName.value),1),k("div",{class:V(["text-[11px]",E.desiredStatus.value==="active"?"text-green-500":"text-theme-400"])},ue(E.desiredStatus.value==="active"?"Online":"Offline"),3)])]),k("button",{class:"cursor-pointer flex items-center justify-center p-2 -mr-1 rounded-xl text-theme-400 hover:text-theme-600 hover:bg-theme-50 transition-colors",onClick:Et(x,["stop"])},[...I[2]||(I[2]=[k("i",{class:"size-5 i-tabler-x"},null,-1)])])]),k("div",OM,[r.value?(w(),Ge(mo,{key:0,"chat-controller":e.chatController||o.value,bot:E,variant:"light","setup-hint":"","empty-state-message":"Send a message to get started"},null,8,["chat-controller","bot"])):ee("",!0)]),k("div",AM,[k("a",{href:Ce(Nl).urls.app,target:"_blank",rel:"noopener",class:"text-[10px] text-theme-300 hover:text-theme-400 transition-colors"}," Learning Bot\u2122 by PageLines ",8,DM)])],2)],6),E.desiredStatus.value==="active"?(w(),_("div",{key:0,class:V(["absolute top-[5%] right-[5%] transition-opacity duration-200 pointer-events-none",i.value?"opacity-0":"opacity-100"])},[...I[3]||(I[3]=[k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",style:{"animation-duration":"5s"}},null,-1),k("div",{class:"size-3 bg-green-500 rounded-full ring-2 ring-white"},null,-1)])],2)):ee("",!0)],2)):ee("",!0)]),_:1},8,["sdk","handle","bot","context","first-message"]))}}),[["__scopeId","data-v-5674cae2"]]),xn=ao("PLWidget"),Gl=class go{static create(t){return new go(t)}static collectPageContext(){if(typeof window>"u"||typeof document>"u")return"";let t=[],n=window.location.href;n&&t.push(`Page URL: ${n}`);let i=document.title;i&&t.push(`Page title: ${i}`);let r=document.querySelector('meta[name="description"]')?.getAttribute("content");r&&t.push(`Page description: ${r}`);let o=document.querySelector('meta[property="og:title"]')?.getAttribute("content");o&&o!==i&&t.push(`OG title: ${o}`);let a=document.referrer;a&&t.push(`Referrer: ${a}`);let s=window.location.pathname;return s&&s!=="/"&&t.push(`Path: ${s}`),t.join(`
164
164
  `)}constructor(t){W(this,"app",null),W(this,"shadowRoot",null),W(this,"widgetInstance",null),W(this,"config",void 0),W(this,"sdk",void 0),W(this,"container",null);let n=[go.collectPageContext(),t.context||""].filter(Boolean).join(`
165
165
 
166
166
  `);if(this.config={...t,context:n||void 0},!t.mode)throw Error("PLWidget: mode is required");if(!t.handle&&!t.bot&&t.mode!=="onboard")throw Error("PLWidget: either handle or bot is required");if(t.mode!=="modal"&&t.mode!=="button"&&t.mode!=="onboard"&&!t.el)throw Error(`PLWidget: el (HTMLElement) is required for ${t.mode} mode`);if(t.mode==="modal"||t.mode==="onboard"){let r=t.handle||t.bot?.botId.value||"default",o=go.modalInstances.get(r);o&&(xn.warn(`Destroying existing modal widget for: ${r}`),o.destroy()),go.modalInstances.set(r,this)}let i=typeof window<"u"?window.location.hostname==="localhost"||window.location.hostname.includes("127.0.0.1"):!1;this.sdk=Pl.getInstance({isDev:i,...t.apiBase&&{apiBase:t.apiBase}}),xn.info(`Initializing ${t.mode} mode for @${t.handle||t.bot?.handle} (isDev: ${i})`),this.init().catch(r=>{xn.error("PLWidget init failed",{error:r})})}async init(){if(this.config.mode==="button"){await this.mountMode(this.config.el);return}this.config.mode==="modal"||this.config.mode==="onboard"?(this.container=document.createElement("div"),this.container.id=`pagelines-modal-${this.config.handle||this.config.bot?.botId.value||"widget"}`,this.container.style.cssText="position: fixed; inset: 0; z-index: 9999;",document.body.appendChild(this.container),this.shadowRoot=this.container.attachShadow({mode:"open"})):this.shadowRoot=this.config.el.attachShadow({mode:"open"});let t=document.createElement("style");t.textContent=Wj,this.shadowRoot.appendChild(t);let n=document.createElement("div");n.id="pagelines-widget-root",n.style.cssText="width: 100%; height: 100%;",this.shadowRoot.appendChild(n),await this.mountMode(n)}async mountMode(t){let{mode:n}=this.config;if(n==="inline"){let{default:i}=await Promise.resolve().then(()=>(L2(),M2));this.app=El(i,{sdk:this.sdk,handle:this.config.handle,bot:this.config.bot,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,chatOnly:this.config.chatOnly}),this.widgetInstance=this.app.mount(t)}else if(n==="button"){if(!this.config.el)throw Error("PLWidget: el is required for button mode");let i=this.config.el;i.style.cursor="pointer";let r=()=>{go.create({mode:"modal",handle:this.config.handle,bot:this.config.bot,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,chatOnly:this.config.chatOnly,onClose:this.config.onClose})};i.addEventListener("click",r),this.destroy=()=>{i.removeEventListener("click",r),xn.info(`Button mode widget destroyed for handle: ${this.config.handle}`)}}else if(n==="popup")this.app=El(PM,{sdk:this.sdk,handle:this.config.handle,bot:this.config.bot,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,position:this.config.position||"bottom-right",chatOnly:this.config.chatOnly,chatController:this.config.chatController}),this.widgetInstance=this.app.mount(t);else if(n==="modal"){let{default:i}=await Promise.resolve().then(()=>(F2(),V2));this.app=El(i,{sdk:this.sdk,handle:this.config.handle,bot:this.config.bot,context:this.config.context,firstMessage:this.config.firstMessage,buttonText:this.config.buttonText,buttonIcon:this.config.buttonIcon,chatOnly:this.config.chatOnly,onClose:()=>{this.config.onClose&&this.config.onClose(),this.destroy()}}),this.widgetInstance=this.app.mount(t)}else if(n==="onboard")this.app=El($M,{sdk:this.sdk,onClose:()=>{this.config.onClose&&this.config.onClose(),this.destroy()}}),this.widgetInstance=this.app.mount(t);else throw Error("PLWidget: unsupported mode")}update(t){this.widgetInstance?.update?(this.widgetInstance.update(t),xn.info(`Widget updated: ${Object.keys(t).join(", ")}`)):xn.warn("Widget instance does not support update()")}toggle(){this.widgetInstance?.toggle?this.widgetInstance.toggle():xn.warn("Widget mode does not support toggle()")}open(){this.widgetInstance?.open?this.widgetInstance.open():xn.warn("Widget mode does not support open()")}close(){this.widgetInstance?.close?this.widgetInstance.close():xn.warn("Widget mode does not support close()")}destroy(){if(this.app&&(this.app.unmount(),this.app=null),this.shadowRoot&&(this.shadowRoot.innerHTML="",this.shadowRoot=null),this.config.mode==="modal"||this.config.mode==="onboard"){this.container&&(this.container.remove(),this.container=null);let t=this.config.handle||this.config.bot?.botId.value||"default";go.modalInstances.delete(t)}this.widgetInstance=null,xn.info(`Widget destroyed for handle: ${this.config.handle||this.config.bot?.handle}`)}};W(Gl,"modalInstances",new Map);var Vr={info:(...e)=>console.log("[PLWidget]",...e),error:(...e)=>console.error("[PLWidget]",...e)},_n=new Map,Z2=!0,Ba=null;function Ip(e){if(_n.has(e))return _n.get(e)||null;let t=e.getAttribute("data-pagelines-bot"),n=e.getAttribute("data-mode");if(!t)return Vr.error("data-pagelines-bot requires a bot handle as its value"),null;if(!n||!["inline","button","popup","modal"].includes(n))return Vr.error("Invalid or missing data-mode. Must be: inline|button|popup|modal"),null;try{let i={el:e,mode:n,handle:t,context:e.getAttribute("data-context")||void 0,firstMessage:e.getAttribute("data-first-message")||void 0,buttonText:e.getAttribute("data-button-text")||void 0,buttonIcon:e.getAttribute("data-button-icon")||void 0,position:e.getAttribute("data-position")||"bottom-right",chatOnly:e.hasAttribute("data-chat-only"),apiBase:e.getAttribute("data-api-base")||void 0},r=new Gl(i);return _n.set(e,r),Vr.info(` \u2713 Initialized ${n} widget for @${t}`),r}catch(i){return Vr.error(`Failed to initialize widget: ${i instanceof Error?i.message:String(i)}`),null}}function RM(){let e=document.querySelectorAll("[data-pagelines-bot]");e.length!==0&&(Vr.info(`Found ${e.length} data-pagelines-bot element(s)`),e.forEach(t=>{Ip(t)}))}function UM(e,t){let n=_n.get(e);if(n){if(t==="data-pagelines-bot"){Vr.info("Handle changed, reinitializing widget"),n.destroy(),_n.delete(e),Ip(e);return}if(t==="data-context"||t==="data-first-message"||t==="data-button-text"||t==="data-button-icon"){let i=e.getAttribute("data-context")||void 0,r=e.getAttribute("data-first-message")||void 0,o=e.getAttribute("data-button-text")||void 0,a=e.getAttribute("data-button-icon")||void 0;n.update({context:i,firstMessage:r,buttonText:o,buttonIcon:a}),Vr.info(`Updated widget: ${t}`)}}}function jM(){!Z2||Ba||(Ba=new MutationObserver(e=>{e.forEach(t=>{if(t.type==="childList"&&(t.addedNodes.forEach(n=>{if(n.nodeType===Node.ELEMENT_NODE){let i=n;i.hasAttribute("data-pagelines-bot")&&Ip(i),i.querySelectorAll("[data-pagelines-bot]").forEach(o=>{Ip(o)})}}),t.removedNodes.forEach(n=>{if(n.nodeType===Node.ELEMENT_NODE){let i=n;_n.has(i)&&(_n.get(i)?.destroy(),_n.delete(i),Vr.info("Widget removed from DOM, destroyed")),i.querySelectorAll("[data-pagelines-bot]").forEach(o=>{let a=_n.get(o);a&&(a.destroy(),_n.delete(o),Vr.info("Widget removed from DOM, destroyed"))})}})),t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let n=t.target;n.hasAttribute("data-pagelines-bot")&&t.attributeName&&UM(n,t.attributeName)}})}),Ba.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-pagelines-bot","data-context","data-first-message","data-button-text","data-button-icon"]}),Vr.info("MutationObserver enabled for dynamic widget detection"))}function B2(){Z2=!1,Ba&&(Ba.disconnect(),Ba=null,Vr.info("Auto-detection disabled"))}if(typeof window<"u"){window.PLWidget=Gl,window.PLWidgetAPI={disableAutoDetect:B2};let e=()=>{if(document.querySelector('script[src*="@pagelines/widget"]')?.getAttribute("data-pagelines-auto-detect")==="false"){B2(),Vr.info("Auto-detection disabled via script tag attribute");return}RM(),jM()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}var zZ=Gl;})();