pagepilot-visual-editor 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/render.cjs CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),Fl=require("react-dom/server"),F=require("react");var Tr;function E(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=a.prototype,u=Object.keys(c);for(let g=0;g<u.length;g++){const d=u[g];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class Nt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ca extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Tr=globalThis).__zod_globalConfig??(Tr.__zod_globalConfig={});const ur=globalThis.__zod_globalConfig;function Qe(e){return ur}function ua(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function Eo(e,t){return typeof t=="bigint"?t.toString():t}function zn(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function dr(e){return e==null}function hr(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Gl(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Or=Symbol("evaluating");function q(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Or)return o===void 0&&(o=Or,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function vt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ut(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Lr(e){return JSON.stringify(e)}function Ul(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const da="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Zl=zn(()=>{var e;if(ur.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Rt(e){if(Jt(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Jt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ha(e){return Rt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Wl=new Set(["string","number","symbol"]);function It(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function j(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Vl(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const ql={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Yl(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=ut(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return vt(this,"shape",a),a},checks:[]});return dt(e,i)}function Kl(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=ut(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return vt(this,"shape",a),a},checks:[]});return dt(e,i)}function Jl(e,t){if(!Rt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=ut(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return vt(this,"shape",i),i}});return dt(e,r)}function Xl(e,t){if(!Rt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ut(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return vt(this,"shape",o),o}});return dt(e,n)}function Ql(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=ut(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return vt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return dt(e,n)}function es(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=ut(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(const c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return vt(this,"shape",s),s},checks:[]});return dt(t,a)}function ts(e,t,n){const o=ut(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return vt(this,"shape",i),i}});return dt(t,o)}function $t(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function ns(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function st(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function fn(e){return typeof e=="string"?e:e==null?void 0:e.message}function et(e,t,n){var s,c,u,g,d,h;const o=e.message?e.message:fn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??fn((g=t==null?void 0:t.error)==null?void 0:g.call(t,e))??fn((d=n.customError)==null?void 0:d.call(n,e))??fn((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function fr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Xt(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const fa=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Eo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ma=E("$ZodError",fa),ga=E("$ZodError",fa,{Parent:Error});function os(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function rs(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{const l=[...i,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const mr=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Nt;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>et(s,i,Qe())));throw da(l,r==null?void 0:r.callee),l}return a.value},gr=e=>async(t,n,o,r)=>{const i=o?{...o,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>et(s,i,Qe())));throw da(l,r==null?void 0:r.callee),l}return a.value},Bn=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Nt;return i.issues.length?{success:!1,error:new(e??ma)(i.issues.map(a=>et(a,r,Qe())))}:{success:!0,data:i.value}},is=Bn(ga),jn=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>et(a,r,Qe())))}:{success:!0,data:i.value}},as=jn(ga),ls=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return mr(e)(t,n,r)},ss=e=>(t,n,o)=>mr(e)(t,n,o),cs=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return gr(e)(t,n,r)},us=e=>async(t,n,o)=>gr(e)(t,n,o),ds=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Bn(e)(t,n,r)},hs=e=>(t,n,o)=>Bn(e)(t,n,o),fs=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return jn(e)(t,n,r)},ms=e=>async(t,n,o)=>jn(e)(t,n,o),gs=/^[cC][0-9a-z]{6,}$/,ps=/^[0-9a-z]+$/,bs=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,vs=/^[0-9a-vA-V]{20}$/,xs=/^[A-Za-z0-9]{27}$/,Ss=/^[a-zA-Z0-9_-]{21}$/,_s=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ws=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,zr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ks=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Cs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function $s(){return new RegExp(Cs,"u")}const As=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ys=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ns=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Es=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pa=/^[A-Za-z0-9_-]*$/,Is=/^https?$/,Ps=/^\+[1-9]\d{6,14}$/,ba="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ms=new RegExp(`^${ba}$`);function va(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ts(e){return new RegExp(`^${va(e)}$`)}function Os(e){const t=va({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${ba}T(?:${o})$`)}const Ls=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},zs=/^-?\d+$/,xa=/^-?\d+(?:\.\d+)?$/,Bs=/^(?:true|false)$/i,js=/^[^A-Z]*$/,Ds=/^[^a-z]*$/,Ae=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Sa={number:"number",bigint:"bigint",object:"date"},_a=E("$ZodCheckLessThan",(e,t)=>{Ae.init(e,t);const n=Sa[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wa=E("$ZodCheckGreaterThan",(e,t)=>{Ae.init(e,t);const n=Sa[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Hs=E("$ZodCheckMultipleOf",(e,t)=>{Ae.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Gl(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Fs=E("$ZodCheckNumberFormat",(e,t)=>{var a;Ae.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=ql[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=zs)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Gs=E("$ZodCheckMaxLength",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!dr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=fr(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Us=E("$ZodCheckMinLength",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!dr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=fr(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Zs=E("$ZodCheckLengthEquals",(e,t)=>{var n;Ae.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!dr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=fr(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Dn=E("$ZodCheckStringFormat",(e,t)=>{var n,o;Ae.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Ws=E("$ZodCheckRegex",(e,t)=>{Dn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vs=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=js),Dn.init(e,t)}),qs=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ds),Dn.init(e,t)}),Ys=E("$ZodCheckIncludes",(e,t)=>{Ae.init(e,t);const n=It(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Ks=E("$ZodCheckStartsWith",(e,t)=>{Ae.init(e,t);const n=new RegExp(`^${It(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Js=E("$ZodCheckEndsWith",(e,t)=>{Ae.init(e,t);const n=new RegExp(`.*${It(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Xs=E("$ZodCheckOverwrite",(e,t)=>{Ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Qs{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),Vl=require("react-dom/server"),G=require("react");var jr;function E(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=a.prototype,u=Object.keys(c);for(let m=0;m<u.length;m++){const d=u[m];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class Nt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ga extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(jr=globalThis).__zod_globalConfig??(jr.__zod_globalConfig={});const fr=globalThis.__zod_globalConfig;function Qe(e){return fr}function pa(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function Io(e,t){return typeof t=="bigint"?t.toString():t}function jn(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function mr(e){return e==null}function gr(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ql(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Br=Symbol("evaluating");function K(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Br)return o===void 0&&(o=Br,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function vt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ut(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Dr(e){return JSON.stringify(e)}function Yl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ba="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Xt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Kl=jn(()=>{var e;if(fr.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Rt(e){if(Xt(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Xt(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function va(e){return Rt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Jl=new Set(["string","number","symbol"]);function It(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function dt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function j(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Xl(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Ql={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function es(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=ut(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return vt(this,"shape",a),a},checks:[]});return dt(e,i)}function ts(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=ut(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return vt(this,"shape",a),a},checks:[]});return dt(e,i)}function ns(e,t){if(!Rt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=ut(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return vt(this,"shape",i),i}});return dt(e,r)}function os(e,t){if(!Rt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=ut(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return vt(this,"shape",o),o}});return dt(e,n)}function rs(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=ut(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return vt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return dt(e,n)}function is(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=ut(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(const c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return vt(this,"shape",s),s},checks:[]});return dt(t,a)}function as(e,t,n){const o=ut(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return vt(this,"shape",i),i}});return dt(t,o)}function Ct(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function ls(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function st(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function fn(e){return typeof e=="string"?e:e==null?void 0:e.message}function et(e,t,n){var s,c,u,m,d,h;const o=e.message?e.message:fn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??fn((m=t==null?void 0:t.error)==null?void 0:m.call(t,e))??fn((d=n.customError)==null?void 0:d.call(n,e))??fn((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function pr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Qt(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const xa=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Io,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Sa=E("$ZodError",xa),_a=E("$ZodError",xa,{Parent:Error});function ss(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function cs(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{const l=[...i,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const br=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Nt;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>et(s,i,Qe())));throw ba(l,r==null?void 0:r.callee),l}return a.value},vr=e=>async(t,n,o,r)=>{const i=o?{...o,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>et(s,i,Qe())));throw ba(l,r==null?void 0:r.callee),l}return a.value},Bn=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Nt;return i.issues.length?{success:!1,error:new(e??Sa)(i.issues.map(a=>et(a,r,Qe())))}:{success:!0,data:i.value}},us=Bn(_a),Dn=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>et(a,r,Qe())))}:{success:!0,data:i.value}},ds=Dn(_a),hs=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return br(e)(t,n,r)},fs=e=>(t,n,o)=>br(e)(t,n,o),ms=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return vr(e)(t,n,r)},gs=e=>async(t,n,o)=>vr(e)(t,n,o),ps=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Bn(e)(t,n,r)},bs=e=>(t,n,o)=>Bn(e)(t,n,o),vs=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Dn(e)(t,n,r)},xs=e=>async(t,n,o)=>Dn(e)(t,n,o),Ss=/^[cC][0-9a-z]{6,}$/,_s=/^[0-9a-z]+$/,ks=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ws=/^[0-9a-vA-V]{20}$/,$s=/^[A-Za-z0-9]{27}$/,Cs=/^[a-zA-Z0-9_-]{21}$/,As=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ys=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Hr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ns=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Es="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Rs(){return new RegExp(Es,"u")}const Is=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ms=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ps=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ts=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Os=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ka=/^[A-Za-z0-9_-]*$/,Ls=/^https?$/,zs=/^\+[1-9]\d{6,14}$/,wa="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",js=new RegExp(`^${wa}$`);function $a(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bs(e){return new RegExp(`^${$a(e)}$`)}function Ds(e){const t=$a({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${wa}T(?:${o})$`)}const Hs=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Fs=/^-?\d+$/,Ca=/^-?\d+(?:\.\d+)?$/,Gs=/^(?:true|false)$/i,Us=/^[^A-Z]*$/,Zs=/^[^a-z]*$/,ye=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Aa={number:"number",bigint:"bigint",object:"date"},ya=E("$ZodCheckLessThan",(e,t)=>{ye.init(e,t);const n=Aa[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Na=E("$ZodCheckGreaterThan",(e,t)=>{ye.init(e,t);const n=Aa[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ws=E("$ZodCheckMultipleOf",(e,t)=>{ye.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):ql(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Vs=E("$ZodCheckNumberFormat",(e,t)=>{var a;ye.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=Ql[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=Fs)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),qs=E("$ZodCheckMaxLength",(e,t)=>{var n;ye.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!mr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=pr(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ys=E("$ZodCheckMinLength",(e,t)=>{var n;ye.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!mr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=pr(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ks=E("$ZodCheckLengthEquals",(e,t)=>{var n;ye.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!mr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=pr(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Hn=E("$ZodCheckStringFormat",(e,t)=>{var n,o;ye.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Js=E("$ZodCheckRegex",(e,t)=>{Hn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Xs=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Us),Hn.init(e,t)}),Qs=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Zs),Hn.init(e,t)}),ec=E("$ZodCheckIncludes",(e,t)=>{ye.init(e,t);const n=It(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),tc=E("$ZodCheckStartsWith",(e,t)=>{ye.init(e,t);const n=new RegExp(`^${It(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),nc=E("$ZodCheckEndsWith",(e,t)=>{ye.init(e,t);const n=new RegExp(`.*${It(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),oc=E("$ZodCheckOverwrite",(e,t)=>{ye.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class rc{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
2
2
  `).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
3
- `))}}const ec={major:4,minor:4,patch:3},ie=E("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ec;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=$t(l),g;for(const d of s){if(d._zod.def.when){if(ns(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,f=d._zod.check(l);if(f instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Nt;if(g||f instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await f,l.issues.length!==h&&(u||(u=$t(l,h)))});else{if(l.issues.length===h)continue;u||(u=$t(l,h))}}return g?g.then(()=>l):l},a=(l,s,c)=>{if($t(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Nt;return u.then(g=>e._zod.parse(g,c))}return e._zod.parse(u,c)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const u=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(g=>a(g,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Nt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}q(e,"~standard",()=>({validate:i=>{var a;try{const l=is(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return as(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),pr=E("$ZodString",(e,t)=>{var n;ie.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Ls(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),de=E("$ZodStringFormat",(e,t)=>{Dn.init(e,t),pr.init(e,t)}),tc=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ws),de.init(e,t)}),nc=E("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=zr(o))}else t.pattern??(t.pattern=zr());de.init(e,t)}),oc=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ks),de.init(e,t)}),rc=E("$ZodURL",(e,t)=>{de.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===Is.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ic=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=$s()),de.init(e,t)}),ac=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Ss),de.init(e,t)}),lc=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=gs),de.init(e,t)}),sc=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ps),de.init(e,t)}),cc=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=bs),de.init(e,t)}),uc=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=vs),de.init(e,t)}),dc=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=xs),de.init(e,t)}),hc=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Os(t)),de.init(e,t)}),fc=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ms),de.init(e,t)}),mc=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ts(t)),de.init(e,t)}),gc=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=_s),de.init(e,t)}),pc=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=As),de.init(e,t),e._zod.bag.format="ipv4"}),bc=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ys),de.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),vc=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ns),de.init(e,t)}),xc=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Es),de.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ka(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Sc=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Rs),de.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{ka(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function _c(e){if(!pa.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ka(n)}const wc=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=pa),de.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{_c(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),kc=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ps),de.init(e,t)});function Cc(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const $c=E("$ZodJWT",(e,t)=>{de.init(e,t),e._zod.check=n=>{Cc(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ca=E("$ZodNumber",(e,t)=>{ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??xa,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),Ac=E("$ZodNumberFormat",(e,t)=>{Fs.init(e,t),Ca.init(e,t)}),yc=E("$ZodBoolean",(e,t)=>{ie.init(e,t),e._zod.pattern=Bs,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Nc=E("$ZodAny",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),Ec=E("$ZodUnknown",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),Rc=E("$ZodNever",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Br(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}const Ic=E("$ZodArray",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Br(c,n,a))):Br(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function Nn(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...st(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function $a(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Vl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Aa(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",g=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const h=s.run({value:t[d],issues:[]},o);h instanceof Promise?e.push(h.then(f=>Nn(f,n,d,t,u,g))):Nn(h,n,d,t,u,g)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Pc=E("$ZodObject",(e,t)=>{ie.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const o=zn(()=>$a(t));q(e._zod,"propValues",()=>{const l=t.shape,s={};for(const c in l){const u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(const g of u.values)s[c].add(g)}}return s});const r=Jt,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],g=a.shape;for(const d of a.keys){const h=g[d],f=h._zod.optin==="optional",b=h._zod.optout==="optional",v=h._zod.run({value:c[d],issues:[]},s);v instanceof Promise?u.push(v.then(S=>Nn(S,l,d,c,f,b))):Nn(v,l,d,c,f,b)}return i?Aa(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),Mc=E("$ZodObjectJIT",(e,t)=>{Pc.init(e,t);const n=e._zod.parse,o=zn(()=>$a(t)),r=d=>{var $,x;const h=new Qs(["shape","payload","ctx"]),f=o.value,b=k=>{const N=Lr(k);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let S=0;for(const k of f.keys)v[k]=`key_${S++}`;h.write("const newResult = {};");for(const k of f.keys){const N=v[k],A=Lr(k),y=d[k],I=(($=y==null?void 0:y._zod)==null?void 0:$.optin)==="optional",M=((x=y==null?void 0:y._zod)==null?void 0:x.optout)==="optional";h.write(`const ${N} = ${b(k)};`),I&&M?h.write(`
3
+ `))}}const ic={major:4,minor:4,patch:3},le=E("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ic;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Ct(l),m;for(const d of s){if(d._zod.def.when){if(ls(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,f=d._zod.check(l);if(f instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Nt;if(m||f instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await f,l.issues.length!==h&&(u||(u=Ct(l,h)))});else{if(l.issues.length===h)continue;u||(u=Ct(l,h))}}return m?m.then(()=>l):l},a=(l,s,c)=>{if(Ct(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Nt;return u.then(m=>e._zod.parse(m,c))}return e._zod.parse(u,c)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const u=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(m=>a(m,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Nt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}K(e,"~standard",()=>({validate:i=>{var a;try{const l=us(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return ds(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),xr=E("$ZodString",(e,t)=>{var n;le.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Hs(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),fe=E("$ZodStringFormat",(e,t)=>{Hn.init(e,t),xr.init(e,t)}),ac=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ys),fe.init(e,t)}),lc=E("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Hr(o))}else t.pattern??(t.pattern=Hr());fe.init(e,t)}),sc=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ns),fe.init(e,t)}),cc=E("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===Ls.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),uc=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Rs()),fe.init(e,t)}),dc=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Cs),fe.init(e,t)}),hc=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ss),fe.init(e,t)}),fc=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_s),fe.init(e,t)}),mc=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ks),fe.init(e,t)}),gc=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ws),fe.init(e,t)}),pc=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=$s),fe.init(e,t)}),bc=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ds(t)),fe.init(e,t)}),vc=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=js),fe.init(e,t)}),xc=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Bs(t)),fe.init(e,t)}),Sc=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=As),fe.init(e,t)}),_c=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Is),fe.init(e,t),e._zod.bag.format="ipv4"}),kc=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ms),fe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),wc=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ps),fe.init(e,t)}),$c=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ts),fe.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ea(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Cc=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Os),fe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ea(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Ac(e){if(!ka.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ea(n)}const yc=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ka),fe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Ac(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Nc=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=zs),fe.init(e,t)});function Ec(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const Rc=E("$ZodJWT",(e,t)=>{fe.init(e,t),e._zod.check=n=>{Ec(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ra=E("$ZodNumber",(e,t)=>{le.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ca,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),Ic=E("$ZodNumberFormat",(e,t)=>{Vs.init(e,t),Ra.init(e,t)}),Mc=E("$ZodBoolean",(e,t)=>{le.init(e,t),e._zod.pattern=Gs,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Pc=E("$ZodAny",(e,t)=>{le.init(e,t),e._zod.parse=n=>n}),Tc=E("$ZodUnknown",(e,t)=>{le.init(e,t),e._zod.parse=n=>n}),Oc=E("$ZodNever",(e,t)=>{le.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Fr(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}const Lc=E("$ZodArray",(e,t)=>{le.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Fr(c,n,a))):Fr(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function Nn(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...st(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function Ia(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Xl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ma(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",m=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const h=s.run({value:t[d],issues:[]},o);h instanceof Promise?e.push(h.then(f=>Nn(f,n,d,t,u,m))):Nn(h,n,d,t,u,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const zc=E("$ZodObject",(e,t)=>{le.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const o=jn(()=>Ia(t));K(e._zod,"propValues",()=>{const l=t.shape,s={};for(const c in l){const u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(const m of u.values)s[c].add(m)}}return s});const r=Xt,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],m=a.shape;for(const d of a.keys){const h=m[d],f=h._zod.optin==="optional",b=h._zod.optout==="optional",v=h._zod.run({value:c[d],issues:[]},s);v instanceof Promise?u.push(v.then(S=>Nn(S,l,d,c,f,b))):Nn(v,l,d,c,f,b)}return i?Ma(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),jc=E("$ZodObjectJIT",(e,t)=>{zc.init(e,t);const n=e._zod.parse,o=jn(()=>Ia(t)),r=d=>{var C,x;const h=new rc(["shape","payload","ctx"]),f=o.value,b=w=>{const N=Dr(w);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let S=0;for(const w of f.keys)v[w]=`key_${S++}`;h.write("const newResult = {};");for(const w of f.keys){const N=v[w],A=Dr(w),y=d[w],I=((C=y==null?void 0:y._zod)==null?void 0:C.optin)==="optional",M=((x=y==null?void 0:y._zod)==null?void 0:x.optout)==="optional";h.write(`const ${N} = ${b(w)};`),I&&M?h.write(`
4
4
  if (${N}.issues.length) {
5
5
  if (${A} in input) {
6
6
  payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
@@ -59,73 +59,73 @@
59
59
  }
60
60
  }
61
61
 
62
- `)}h.write("payload.value = newResult;"),h.write("return payload;");const _=h.compile();return(k,N)=>_(d,k,N)};let i;const a=Jt,l=!ur.jitless,c=l&&Zl.value,u=t.catchall;let g;e._zod.parse=(d,h)=>{g??(g=o.value);const f=d.value;return a(f)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=r(t.shape)),d=i(d,h),u?Aa([],f,d,h,g,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),d)}});function jr(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!$t(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>et(a,o,Qe())))}),t)}const ya=E("$ZodUnion",(e,t)=>{ie.init(e,t),q(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),q(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),q(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),q(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>hr(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>jr(l,o,e,r)):jr(a,o,e,r)}}),Tc=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ya.init(e,t);const n=e._zod.parse;q(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(a)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=zn(()=>{var a;const r=t.options,i=new Map;for(const l of r){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!Jt(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Oc=E("$ZodIntersection",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Dr(n,s,c)):Dr(n,i,a)}});function Ro(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Rt(e)&&Rt(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=Ro(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=Ro(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Dr(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),$t(e))return e;const a=Ro(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Lc=E("$ZodTuple",(e,t)=>{ie.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Hr(n,"optin"),s=Hr(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}const c=new Array(n.length);for(let u=0;u<n.length;u++){const g=n[u]._zod.run({value:i[u],issues:[]},r);g instanceof Promise?a.push(g.then(d=>{c[u]=d})):c[u]=g}if(t.rest){let u=n.length-1;const g=i.slice(n.length);for(const d of g){u++;const h=t.rest._zod.run({value:d,issues:[]},r);h instanceof Promise?a.push(h.then(f=>Fr(f,o,u))):Fr(h,o,u)}}return a.length?Promise.all(a).then(()=>Gr(c,o,n,i,s)):Gr(c,o,n,i,s)}});function Hr(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Fr(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}function Gr(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...st(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const zc=E("$ZodRecord",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Rt(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>et(h,o,Qe())),input:c,path:[c],inst:e});continue}const g=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...st(c,h.issues)),n.value[g]=h.value})):(d.issues.length&&n.issues.push(...st(c,d.issues)),n.value[g]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&xa.test(l)&&s.issues.length){const g=t.keyType._zod.run({value:Number(l),issues:[]},o);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");g.issues.length===0&&(s=g)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(g=>et(g,o,Qe())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(g=>{g.issues.length&&n.issues.push(...st(l,g.issues)),n.value[s.value]=g.value})):(u.issues.length&&n.issues.push(...st(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Bc=E("$ZodEnum",(e,t)=>{ie.init(e,t);const n=ua(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Wl.has(typeof r)).map(r=>typeof r=="string"?It(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),jc=E("$ZodLiteral",(e,t)=>{if(ie.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?It(o):o?It(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Dc=E("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ca(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Nt;return n.value=r,n.fallback=!0,n}});function Ur(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Na=E("$ZodOptional",(e,t)=>{ie.init(e,t),e._zod.optin="optional",e._zod.optout="optional",q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${hr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>Ur(a,r)):Ur(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Hc=E("$ZodExactOptional",(e,t)=>{Na.init(e,t),q(e._zod,"values",()=>t.innerType._zod.values),q(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Fc=E("$ZodNullable",(e,t)=>{ie.init(e,t),q(e._zod,"optin",()=>t.innerType._zod.optin),q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${hr(n.source)}|null)$`):void 0}),q(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Gc=E("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Zr(i,t)):Zr(r,t)}});function Zr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Uc=E("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="optional",q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Zc=E("$ZodNonOptional",(e,t)=>{ie.init(e,t),q(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Wr(i,e)):Wr(r,e)}});function Wr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Wc=E("$ZodCatch",(e,t)=>{ie.init(e,t),e._zod.optin="optional",q(e._zod,"optout",()=>t.innerType._zod.optout),q(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>et(a,o,Qe()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>et(i,o,Qe()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Vc=E("$ZodPipe",(e,t)=>{ie.init(e,t),q(e._zod,"values",()=>t.in._zod.values),q(e._zod,"optin",()=>t.in._zod.optin),q(e._zod,"optout",()=>t.out._zod.optout),q(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>mn(a,t.in,o)):mn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>mn(i,t.out,o)):mn(r,t.out,o)}});function mn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const qc=E("$ZodReadonly",(e,t)=>{ie.init(e,t),q(e._zod,"propValues",()=>t.innerType._zod.propValues),q(e._zod,"values",()=>t.innerType._zod.values),q(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),q(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(Vr):Vr(r)}});function Vr(e){return e.value=Object.freeze(e.value),e}const Yc=E("$ZodLazy",(e,t)=>{ie.init(e,t),q(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),q(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),q(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),q(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),q(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),Kc=E("$ZodCustom",(e,t)=>{Ae.init(e,t),ie.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>qr(i,n,o,e));qr(r,n,o,e)}});function qr(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(Xt(r))}}var Yr;class Jc{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Xc(){return new Jc}(Yr=globalThis).__zod_globalRegistry??(Yr.__zod_globalRegistry=Xc());const Vt=globalThis.__zod_globalRegistry;function Qc(e,t){return new e({type:"string",...j(t)})}function eu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function Kr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function tu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function nu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function ou(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function ru(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function iu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function au(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function lu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function su(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function cu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function uu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function du(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function hu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function fu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function mu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function gu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function pu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function bu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function vu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function xu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function Su(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}function _u(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function wu(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function ku(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function Cu(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function $u(e,t){return new e({type:"number",checks:[],...j(t)})}function Au(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}function yu(e,t){return new e({type:"boolean",...j(t)})}function Nu(e){return new e({type:"any"})}function Eu(e){return new e({type:"unknown"})}function Ru(e,t){return new e({type:"never",...j(t)})}function Jr(e,t){return new _a({check:"less_than",...j(t),value:e,inclusive:!1})}function qn(e,t){return new _a({check:"less_than",...j(t),value:e,inclusive:!0})}function Xr(e,t){return new wa({check:"greater_than",...j(t),value:e,inclusive:!1})}function Yn(e,t){return new wa({check:"greater_than",...j(t),value:e,inclusive:!0})}function Qr(e,t){return new Hs({check:"multiple_of",...j(t),value:e})}function Ea(e,t){return new Gs({check:"max_length",...j(t),maximum:e})}function En(e,t){return new Us({check:"min_length",...j(t),minimum:e})}function Ra(e,t){return new Zs({check:"length_equals",...j(t),length:e})}function Iu(e,t){return new Ws({check:"string_format",format:"regex",...j(t),pattern:e})}function Pu(e){return new Vs({check:"string_format",format:"lowercase",...j(e)})}function Mu(e){return new qs({check:"string_format",format:"uppercase",...j(e)})}function Tu(e,t){return new Ys({check:"string_format",format:"includes",...j(t),includes:e})}function Ou(e,t){return new Ks({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Lu(e,t){return new Js({check:"string_format",format:"ends_with",...j(t),suffix:e})}function Ot(e){return new Xs({check:"overwrite",tx:e})}function zu(e){return Ot(t=>t.normalize(e))}function Bu(){return Ot(e=>e.trim())}function ju(){return Ot(e=>e.toLowerCase())}function Du(){return Ot(e=>e.toUpperCase())}function Hu(){return Ot(e=>Ul(e))}function Fu(e,t,n){return new e({type:"array",element:t,...j(n)})}function Gu(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function Uu(e,t){const n=Zu(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(Xt(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Xt(i))}},e(o.value,o)),t);return n}function Zu(e,t){const n=new Ae({check:"custom",...j(t)});return n._zod.check=e,n}function Ia(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Vt,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function he(e,t,n={path:[],schemaPath:[]}){var u,g;var o;const r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(g=(u=e._zod).toJSONSchema)==null?void 0:g.call(u);if(l)a.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{const f=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,f,d)}const h=e._zod.parent;h&&(a.ref||(a.ref=h),he(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&Ce(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Pa(e,t){var a,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const g=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(g){const d=o.get(g);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${g}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(g,u[0])}}const r=u=>{var b;const g=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(b=e.external.registry.get(u[0]))==null?void 0:b.id,S=e.external.uri??($=>$);if(v)return{ref:S(v)};const _=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=_,{defId:_,ref:`${S("__shared")}#/${g}/${_}`}}if(u[1]===n)return{ref:"#"};const h=`#/${g}/`,f=u[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:h+f}},i=u=>{if(u[1].schema.$ref)return;const g=u[1],{ref:d,defId:h}=r(u);g.def={...g.schema},h&&(g.defId=h);const f=g.schema;for(const b in f)delete f[b];f.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const g=u[1];if(g.cycle)throw new Error(`Cycle detected: #/${(l=g.cycle)==null?void 0:l.join("/")}/<root>
62
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");const _=h.compile();return(w,N)=>_(d,w,N)};let i;const a=Xt,l=!fr.jitless,c=l&&Kl.value,u=t.catchall;let m;e._zod.parse=(d,h)=>{m??(m=o.value);const f=d.value;return a(f)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=r(t.shape)),d=i(d,h),u?Ma([],f,d,h,m,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),d)}});function Gr(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!Ct(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>et(a,o,Qe())))}),t)}const Pa=E("$ZodUnion",(e,t)=>{le.init(e,t),K(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),K(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),K(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),K(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>gr(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Gr(l,o,e,r)):Gr(a,o,e,r)}}),Bc=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Pa.init(e,t);const n=e._zod.parse;K(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(a)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=jn(()=>{var a;const r=t.options,i=new Map;for(const l of r){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!Xt(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Dc=E("$ZodIntersection",(e,t)=>{le.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Ur(n,s,c)):Ur(n,i,a)}});function Mo(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Rt(e)&&Rt(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=Mo(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=Mo(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ur(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),Ct(e))return e;const a=Mo(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Hc=E("$ZodTuple",(e,t)=>{le.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Zr(n,"optin"),s=Zr(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}const c=new Array(n.length);for(let u=0;u<n.length;u++){const m=n[u]._zod.run({value:i[u],issues:[]},r);m instanceof Promise?a.push(m.then(d=>{c[u]=d})):c[u]=m}if(t.rest){let u=n.length-1;const m=i.slice(n.length);for(const d of m){u++;const h=t.rest._zod.run({value:d,issues:[]},r);h instanceof Promise?a.push(h.then(f=>Wr(f,o,u))):Wr(h,o,u)}}return a.length?Promise.all(a).then(()=>Vr(c,o,n,i,s)):Vr(c,o,n,i,s)}});function Zr(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Wr(e,t,n){e.issues.length&&t.issues.push(...st(n,e.issues)),t.value[n]=e.value}function Vr(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...st(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const Fc=E("$ZodRecord",(e,t)=>{le.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Rt(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>et(h,o,Qe())),input:c,path:[c],inst:e});continue}const m=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...st(c,h.issues)),n.value[m]=h.value})):(d.issues.length&&n.issues.push(...st(c,d.issues)),n.value[m]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Ca.test(l)&&s.issues.length){const m=t.keyType._zod.run({value:Number(l),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(s=m)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(m=>et(m,o,Qe())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(m=>{m.issues.length&&n.issues.push(...st(l,m.issues)),n.value[s.value]=m.value})):(u.issues.length&&n.issues.push(...st(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Gc=E("$ZodEnum",(e,t)=>{le.init(e,t);const n=pa(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Jl.has(typeof r)).map(r=>typeof r=="string"?It(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Uc=E("$ZodLiteral",(e,t)=>{if(le.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?It(o):o?It(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Zc=E("$ZodTransform",(e,t)=>{le.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ga(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Nt;return n.value=r,n.fallback=!0,n}});function qr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Ta=E("$ZodOptional",(e,t)=>{le.init(e,t),e._zod.optin="optional",e._zod.optout="optional",K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gr(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>qr(a,r)):qr(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Wc=E("$ZodExactOptional",(e,t)=>{Ta.init(e,t),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Vc=E("$ZodNullable",(e,t)=>{le.init(e,t),K(e._zod,"optin",()=>t.innerType._zod.optin),K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${gr(n.source)}|null)$`):void 0}),K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),qc=E("$ZodDefault",(e,t)=>{le.init(e,t),e._zod.optin="optional",K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Yr(i,t)):Yr(r,t)}});function Yr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Yc=E("$ZodPrefault",(e,t)=>{le.init(e,t),e._zod.optin="optional",K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Kc=E("$ZodNonOptional",(e,t)=>{le.init(e,t),K(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Kr(i,e)):Kr(r,e)}});function Kr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Jc=E("$ZodCatch",(e,t)=>{le.init(e,t),e._zod.optin="optional",K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>et(a,o,Qe()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>et(i,o,Qe()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Xc=E("$ZodPipe",(e,t)=>{le.init(e,t),K(e._zod,"values",()=>t.in._zod.values),K(e._zod,"optin",()=>t.in._zod.optin),K(e._zod,"optout",()=>t.out._zod.optout),K(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>mn(a,t.in,o)):mn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>mn(i,t.out,o)):mn(r,t.out,o)}});function mn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Qc=E("$ZodReadonly",(e,t)=>{le.init(e,t),K(e._zod,"propValues",()=>t.innerType._zod.propValues),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),K(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(Jr):Jr(r)}});function Jr(e){return e.value=Object.freeze(e.value),e}const eu=E("$ZodLazy",(e,t)=>{le.init(e,t),K(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),K(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),K(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),K(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),K(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),tu=E("$ZodCustom",(e,t)=>{ye.init(e,t),le.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>Xr(i,n,o,e));Xr(r,n,o,e)}});function Xr(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(Qt(r))}}var Qr;class nu{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ou(){return new nu}(Qr=globalThis).__zod_globalRegistry??(Qr.__zod_globalRegistry=ou());const qt=globalThis.__zod_globalRegistry;function ru(e,t){return new e({type:"string",...j(t)})}function iu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...j(t)})}function ei(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...j(t)})}function au(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...j(t)})}function lu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...j(t)})}function su(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...j(t)})}function cu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...j(t)})}function uu(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...j(t)})}function du(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...j(t)})}function hu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...j(t)})}function fu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...j(t)})}function mu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...j(t)})}function gu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...j(t)})}function pu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...j(t)})}function bu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...j(t)})}function vu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...j(t)})}function xu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...j(t)})}function Su(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...j(t)})}function _u(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...j(t)})}function ku(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...j(t)})}function wu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...j(t)})}function $u(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...j(t)})}function Cu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...j(t)})}function Au(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...j(t)})}function yu(e,t){return new e({type:"string",format:"date",check:"string_format",...j(t)})}function Nu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...j(t)})}function Eu(e,t){return new e({type:"string",format:"duration",check:"string_format",...j(t)})}function Ru(e,t){return new e({type:"number",checks:[],...j(t)})}function Iu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...j(t)})}function Mu(e,t){return new e({type:"boolean",...j(t)})}function Pu(e){return new e({type:"any"})}function Tu(e){return new e({type:"unknown"})}function Ou(e,t){return new e({type:"never",...j(t)})}function ti(e,t){return new ya({check:"less_than",...j(t),value:e,inclusive:!1})}function Yn(e,t){return new ya({check:"less_than",...j(t),value:e,inclusive:!0})}function ni(e,t){return new Na({check:"greater_than",...j(t),value:e,inclusive:!1})}function Kn(e,t){return new Na({check:"greater_than",...j(t),value:e,inclusive:!0})}function oi(e,t){return new Ws({check:"multiple_of",...j(t),value:e})}function Oa(e,t){return new qs({check:"max_length",...j(t),maximum:e})}function En(e,t){return new Ys({check:"min_length",...j(t),minimum:e})}function La(e,t){return new Ks({check:"length_equals",...j(t),length:e})}function Lu(e,t){return new Js({check:"string_format",format:"regex",...j(t),pattern:e})}function zu(e){return new Xs({check:"string_format",format:"lowercase",...j(e)})}function ju(e){return new Qs({check:"string_format",format:"uppercase",...j(e)})}function Bu(e,t){return new ec({check:"string_format",format:"includes",...j(t),includes:e})}function Du(e,t){return new tc({check:"string_format",format:"starts_with",...j(t),prefix:e})}function Hu(e,t){return new nc({check:"string_format",format:"ends_with",...j(t),suffix:e})}function Ot(e){return new oc({check:"overwrite",tx:e})}function Fu(e){return Ot(t=>t.normalize(e))}function Gu(){return Ot(e=>e.trim())}function Uu(){return Ot(e=>e.toLowerCase())}function Zu(){return Ot(e=>e.toUpperCase())}function Wu(){return Ot(e=>Yl(e))}function Vu(e,t,n){return new e({type:"array",element:t,...j(n)})}function qu(e,t,n){return new e({type:"custom",check:"custom",fn:t,...j(n)})}function Yu(e,t){const n=Ku(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(Qt(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Qt(i))}},e(o.value,o)),t);return n}function Ku(e,t){const n=new ye({check:"custom",...j(t)});return n._zod.check=e,n}function za(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??qt,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function ge(e,t,n={path:[],schemaPath:[]}){var u,m;var o;const r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(m=(u=e._zod).toJSONSchema)==null?void 0:m.call(u);if(l)a.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{const f=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,f,d)}const h=e._zod.parent;h&&(a.ref||(a.ref=h),ge(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&Ce(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function ja(e,t){var a,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const m=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(m){const d=o.get(m);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${m}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(m,u[0])}}const r=u=>{var b;const m=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(b=e.external.registry.get(u[0]))==null?void 0:b.id,S=e.external.uri??(C=>C);if(v)return{ref:S(v)};const _=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=_,{defId:_,ref:`${S("__shared")}#/${m}/${_}`}}if(u[1]===n)return{ref:"#"};const h=`#/${m}/`,f=u[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:h+f}},i=u=>{if(u[1].schema.$ref)return;const m=u[1],{ref:d,defId:h}=r(u);m.def={...m.schema},h&&(m.defId=h);const f=m.schema;for(const b in f)delete f[b];f.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const m=u[1];if(m.cycle)throw new Error(`Cycle detected: #/${(l=m.cycle)==null?void 0:l.join("/")}/<root>
63
63
 
64
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const g=u[1];if(t===u[0]){i(u);continue}if(e.external){const h=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&h){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(g.cycle){i(u);continue}if(g.count>1&&e.reused==="ref"){i(u);continue}}}function Ma(e,t){var l,s,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=g=>{const d=e.seen.get(g);if(d.ref===null)return;const h=d.def??d.schema,f={...h},b=d.ref;if(d.ref=null,b){o(b);const S=e.seen.get(b),_=S.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(_)):Object.assign(h,_),Object.assign(h,f),g._zod.parent===b)for(const x in h)x==="$ref"||x==="allOf"||x in f||delete h[x];if(_.$ref&&S.def)for(const x in h)x==="$ref"||x==="allOf"||x in S.def&&JSON.stringify(h[x])===JSON.stringify(S.def[x])&&delete h[x]}const v=g._zod.parent;if(v&&v!==b){o(v);const S=e.seen.get(v);if(S!=null&&S.schema.$ref&&(h.$ref=S.schema.$ref,S.def))for(const _ in h)_==="$ref"||_==="allOf"||_ in S.def&&JSON.stringify(h[_])===JSON.stringify(S.def[_])&&delete h[_]}e.override({zodSchema:g,jsonSchema:h,path:d.path??[]})};for(const g of[...e.seen.entries()].reverse())o(g[0]);const 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,(l=e.external)!=null&&l.uri){const g=(s=e.external.registry.get(t))==null?void 0:s.id;if(!g)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(g)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const g of e.seen.entries()){const d=g[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,a[d.defId]=d.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{const g=JSON.parse(JSON.stringify(r));return Object.defineProperty(g,"~standard",{value:{...t["~standard"],jsonSchema:{input:Rn(t,"input",e.processors),output:Rn(t,"output",e.processors)}},enumerable:!1,writable:!1}),g}catch{throw new Error("Error converting schema to JSON.")}}function Ce(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ce(o.element,n);if(o.type==="set")return Ce(o.valueType,n);if(o.type==="lazy")return Ce(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ce(o.innerType,n);if(o.type==="intersection")return Ce(o.left,n)||Ce(o.right,n);if(o.type==="record"||o.type==="map")return Ce(o.keyType,n)||Ce(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ce(o.in,n)||Ce(o.out,n);if(o.type==="object"){for(const r in o.shape)if(Ce(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(Ce(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(Ce(r,n))return!0;return!!(o.rest&&Ce(o.rest,n))}return!1}const Wu=(e,t={})=>n=>{const o=Ia({...n,processors:t});return he(e,o),Pa(o,e),Ma(o,e)},Rn=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=Ia({...r??{},target:i,io:t,processors:n});return he(e,a),Pa(a,e),Ma(a,e)},Vu={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},qu=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=Vu[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(g=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:g.source}))])}},Yu=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const g=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";g?h?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?h?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},Ku=(e,t,n,o)=>{n.type="boolean"},Ju=(e,t,n,o)=>{n.not={}},Xu=(e,t,n,o)=>{},Qu=(e,t,n,o)=>{},ed=(e,t,n,o)=>{const r=e._zod.def,i=ua(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},td=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},nd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},od=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},rd=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=he(i.element,t,{...o,path:[...o.path,"items"]})},id=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=he(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const g=i.shape[u]._zod;return t.io==="input"?g.optin===void 0:g.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=he(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},ad=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>he(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},ld=(e,t,n,o)=>{const r=e._zod.def,i=he(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=he(r.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];n.allOf=s},sd=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,h)=>he(d,t,{...o,path:[...o.path,a,h]})),c=i.rest?he(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:g}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof g=="number"&&(r.maxItems=g)},cd=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="object";const a=i.keyType,l=a._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=he(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const g of s)r.patternProperties[g.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=he(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=he(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(g=>typeof g=="string"||typeof g=="number");u.length>0&&(r.required=u)}},ud=(e,t,n,o)=>{const r=e._zod.def,i=he(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},dd=(e,t,n,o)=>{const r=e._zod.def;he(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},hd=(e,t,n,o)=>{const r=e._zod.def;he(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},fd=(e,t,n,o)=>{const r=e._zod.def;he(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},md=(e,t,n,o)=>{const r=e._zod.def;he(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},gd=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;he(a,t,o);const l=t.seen.get(e);l.ref=a},pd=(e,t,n,o)=>{const r=e._zod.def;he(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},Ta=(e,t,n,o)=>{const r=e._zod.def;he(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},bd=(e,t,n,o)=>{const r=e._zod.innerType;he(r,t,o);const i=t.seen.get(e);i.ref=r},vd=E("ZodISODateTime",(e,t)=>{hc.init(e,t),fe.init(e,t)});function xd(e){return _u(vd,e)}const Sd=E("ZodISODate",(e,t)=>{fc.init(e,t),fe.init(e,t)});function _d(e){return wu(Sd,e)}const wd=E("ZodISOTime",(e,t)=>{mc.init(e,t),fe.init(e,t)});function kd(e){return ku(wd,e)}const Cd=E("ZodISODuration",(e,t)=>{gc.init(e,t),fe.init(e,t)});function $d(e){return Cu(Cd,e)}const Ad=(e,t)=>{ma.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>rs(e,n)},flatten:{value:n=>os(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Eo,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Eo,2)}},isEmpty:{get(){return e.issues.length===0}}})},Pe=E("ZodError",Ad,{Parent:Error}),yd=mr(Pe),Nd=gr(Pe),Ed=Bn(Pe),Rd=jn(Pe),Id=ls(Pe),Pd=ss(Pe),Md=cs(Pe),Td=us(Pe),Od=ds(Pe),Ld=hs(Pe),zd=fs(Pe),Bd=ms(Pe),ei=new WeakMap;function on(e,t,n){const o=Object.getPrototypeOf(e);let r=ei.get(o);if(r||(r=new Set,ei.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const le=E("ZodType",(e,t)=>(ie.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Rn(e,"input"),output:Rn(e,"output")}}),e.toJSONSchema=Wu(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>yd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Ed(e,n,o),e.parseAsync=async(n,o)=>Nd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Rd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Id(e,n,o),e.decode=(n,o)=>Pd(e,n,o),e.encodeAsync=async(n,o)=>Md(e,n,o),e.decodeAsync=async(n,o)=>Td(e,n,o),e.safeEncode=(n,o)=>Od(e,n,o),e.safeDecode=(n,o)=>Ld(e,n,o),e.safeEncodeAsync=async(n,o)=>zd(e,n,o),e.safeDecodeAsync=async(n,o)=>Bd(e,n,o),on(e,"ZodType",{check(...n){const o=this.def;return this.clone(ut(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return dt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Oh(n,o))},superRefine(n,o){return this.check(Lh(n,o))},overwrite(n){return this.check(Ot(n))},optional(){return ii(this)},exactOptional(){return Sh(this)},nullable(){return ai(this)},nullish(){return ii(ai(this))},nonoptional(n){return Ah(this,n)},array(){return W(this)},or(n){return D([this,n])},and(n){return mh(this,n)},transform(n){return li(this,vh(n))},default(n){return kh(this,n)},prefault(n){return $h(this,n)},catch(n){return Nh(this,n)},pipe(n){return li(this,n)},readonly(){return Ih(this)},describe(n){const o=this.clone();return Vt.add(o,{description:n}),o},meta(...n){if(n.length===0)return Vt.get(this);const o=this.clone();return Vt.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=Vt.get(e))==null?void 0:n.description},configurable:!0}),e)),Oa=E("_ZodString",(e,t)=>{pr.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>qu(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,on(e,"_ZodString",{regex(...o){return this.check(Iu(...o))},includes(...o){return this.check(Tu(...o))},startsWith(...o){return this.check(Ou(...o))},endsWith(...o){return this.check(Lu(...o))},min(...o){return this.check(En(...o))},max(...o){return this.check(Ea(...o))},length(...o){return this.check(Ra(...o))},nonempty(...o){return this.check(En(1,...o))},lowercase(o){return this.check(Pu(o))},uppercase(o){return this.check(Mu(o))},trim(){return this.check(Bu())},normalize(...o){return this.check(zu(...o))},toLowerCase(){return this.check(ju())},toUpperCase(){return this.check(Du())},slugify(){return this.check(Hu())}})}),jd=E("ZodString",(e,t)=>{pr.init(e,t),Oa.init(e,t),e.email=n=>e.check(eu(Dd,n)),e.url=n=>e.check(iu(Hd,n)),e.jwt=n=>e.check(Su(nh,n)),e.emoji=n=>e.check(au(Fd,n)),e.guid=n=>e.check(Kr(ti,n)),e.uuid=n=>e.check(tu(gn,n)),e.uuidv4=n=>e.check(nu(gn,n)),e.uuidv6=n=>e.check(ou(gn,n)),e.uuidv7=n=>e.check(ru(gn,n)),e.nanoid=n=>e.check(lu(Gd,n)),e.guid=n=>e.check(Kr(ti,n)),e.cuid=n=>e.check(su(Ud,n)),e.cuid2=n=>e.check(cu(Zd,n)),e.ulid=n=>e.check(uu(Wd,n)),e.base64=n=>e.check(bu(Qd,n)),e.base64url=n=>e.check(vu(eh,n)),e.xid=n=>e.check(du(Vd,n)),e.ksuid=n=>e.check(hu(qd,n)),e.ipv4=n=>e.check(fu(Yd,n)),e.ipv6=n=>e.check(mu(Kd,n)),e.cidrv4=n=>e.check(gu(Jd,n)),e.cidrv6=n=>e.check(pu(Xd,n)),e.e164=n=>e.check(xu(th,n)),e.datetime=n=>e.check(xd(n)),e.date=n=>e.check(_d(n)),e.time=n=>e.check(kd(n)),e.duration=n=>e.check($d(n))});function w(e){return Qc(jd,e)}const fe=E("ZodStringFormat",(e,t)=>{de.init(e,t),Oa.init(e,t)}),Dd=E("ZodEmail",(e,t)=>{oc.init(e,t),fe.init(e,t)}),ti=E("ZodGUID",(e,t)=>{tc.init(e,t),fe.init(e,t)}),gn=E("ZodUUID",(e,t)=>{nc.init(e,t),fe.init(e,t)}),Hd=E("ZodURL",(e,t)=>{rc.init(e,t),fe.init(e,t)}),Fd=E("ZodEmoji",(e,t)=>{ic.init(e,t),fe.init(e,t)}),Gd=E("ZodNanoID",(e,t)=>{ac.init(e,t),fe.init(e,t)}),Ud=E("ZodCUID",(e,t)=>{lc.init(e,t),fe.init(e,t)}),Zd=E("ZodCUID2",(e,t)=>{sc.init(e,t),fe.init(e,t)}),Wd=E("ZodULID",(e,t)=>{cc.init(e,t),fe.init(e,t)}),Vd=E("ZodXID",(e,t)=>{uc.init(e,t),fe.init(e,t)}),qd=E("ZodKSUID",(e,t)=>{dc.init(e,t),fe.init(e,t)}),Yd=E("ZodIPv4",(e,t)=>{pc.init(e,t),fe.init(e,t)}),Kd=E("ZodIPv6",(e,t)=>{bc.init(e,t),fe.init(e,t)}),Jd=E("ZodCIDRv4",(e,t)=>{vc.init(e,t),fe.init(e,t)}),Xd=E("ZodCIDRv6",(e,t)=>{xc.init(e,t),fe.init(e,t)}),Qd=E("ZodBase64",(e,t)=>{Sc.init(e,t),fe.init(e,t)}),eh=E("ZodBase64URL",(e,t)=>{wc.init(e,t),fe.init(e,t)}),th=E("ZodE164",(e,t)=>{kc.init(e,t),fe.init(e,t)}),nh=E("ZodJWT",(e,t)=>{$c.init(e,t),fe.init(e,t)}),La=E("ZodNumber",(e,t)=>{Ca.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Yu(e,o,r),on(e,"ZodNumber",{gt(o,r){return this.check(Xr(o,r))},gte(o,r){return this.check(Yn(o,r))},min(o,r){return this.check(Yn(o,r))},lt(o,r){return this.check(Jr(o,r))},lte(o,r){return this.check(qn(o,r))},max(o,r){return this.check(qn(o,r))},int(o){return this.check(ni(o))},safe(o){return this.check(ni(o))},positive(o){return this.check(Xr(0,o))},nonnegative(o){return this.check(Yn(0,o))},negative(o){return this.check(Jr(0,o))},nonpositive(o){return this.check(qn(0,o))},multipleOf(o,r){return this.check(Qr(o,r))},step(o,r){return this.check(Qr(o,r))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function m(e){return $u(La,e)}const oh=E("ZodNumberFormat",(e,t)=>{Ac.init(e,t),La.init(e,t)});function ni(e){return Au(oh,e)}const rh=E("ZodBoolean",(e,t)=>{yc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ku(e,n,o)});function z(e){return yu(rh,e)}const ih=E("ZodAny",(e,t)=>{Nc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xu()});function Qt(){return Nu(ih)}const ah=E("ZodUnknown",(e,t)=>{Ec.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qu()});function oi(){return Eu(ah)}const lh=E("ZodNever",(e,t)=>{Rc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ju(e,n,o)});function sh(e){return Ru(lh,e)}const ch=E("ZodArray",(e,t)=>{Ic.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd(e,n,o,r),e.element=t.element,on(e,"ZodArray",{min(n,o){return this.check(En(n,o))},nonempty(n){return this.check(En(1,n))},max(n,o){return this.check(Ea(n,o))},length(n,o){return this.check(Ra(n,o))},unwrap(){return this.element}})});function W(e,t){return Fu(ch,e,t)}const uh=E("ZodObject",(e,t)=>{Mc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>id(e,n,o,r),q(e,"shape",()=>t.shape),on(e,"ZodObject",{keyof(){return R(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:oi()})},loose(){return this.clone({...this._zod.def,catchall:oi()})},strict(){return this.clone({...this._zod.def,catchall:sh()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Jl(this,n)},safeExtend(n){return Xl(this,n)},merge(n){return Ql(this,n)},pick(n){return Yl(this,n)},omit(n){return Kl(this,n)},partial(...n){return es(ja,this,n[0])},required(...n){return ts(Da,this,n[0])}})});function C(e,t){const n={type:"object",shape:e??{},...j(t)};return new uh(n)}const za=E("ZodUnion",(e,t)=>{ya.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o,r),e.options=t.options});function D(e,t){return new za({type:"union",options:e,...j(t)})}const dh=E("ZodDiscriminatedUnion",(e,t)=>{za.init(e,t),Tc.init(e,t)});function hh(e,t,n){return new dh({type:"union",options:t,discriminator:e,...j(n)})}const fh=E("ZodIntersection",(e,t)=>{Oc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ld(e,n,o,r)});function mh(e,t){return new fh({type:"intersection",left:e,right:t})}const gh=E("ZodTuple",(e,t)=>{Lc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sd(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Ba(e,t,n){const o=t instanceof ie,r=o?n:t,i=o?t:null;return new gh({type:"tuple",items:e,rest:i,...j(r)})}const ri=E("ZodRecord",(e,t)=>{zc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function Pt(e,t,n){return!t||!t._zod?new ri({type:"record",keyType:w(),valueType:e,...j(t)}):new ri({type:"record",keyType:e,valueType:t,...j(n)})}const Io=E("ZodEnum",(e,t)=>{Bc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>ed(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Io({...t,checks:[],...j(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Io({...t,checks:[],...j(r),entries:i})}});function R(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Io({type:"enum",entries:n,...j(t)})}const ph=E("ZodLiteral",(e,t)=>{jc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(e,n,o),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]}})});function ne(e,t){return new ph({type:"literal",values:Array.isArray(e)?e:[e],...j(t)})}const bh=E("ZodTransform",(e,t)=>{Dc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>od(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ca(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(Xt(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Xt(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function vh(e){return new bh({type:"transform",transform:e})}const ja=E("ZodOptional",(e,t)=>{Na.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ta(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ii(e){return new ja({type:"optional",innerType:e})}const xh=E("ZodExactOptional",(e,t)=>{Hc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ta(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Sh(e){return new xh({type:"optional",innerType:e})}const _h=E("ZodNullable",(e,t)=>{Fc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ai(e){return new _h({type:"nullable",innerType:e})}const wh=E("ZodDefault",(e,t)=>{Gc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kh(e,t){return new wh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ha(t)}})}const Ch=E("ZodPrefault",(e,t)=>{Uc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function $h(e,t){return new Ch({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ha(t)}})}const Da=E("ZodNonOptional",(e,t)=>{Zc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ah(e,t){return new Da({type:"nonoptional",innerType:e,...j(t)})}const yh=E("ZodCatch",(e,t)=>{Wc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>md(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Nh(e,t){return new yh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Eh=E("ZodPipe",(e,t)=>{Vc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gd(e,n,o,r),e.in=t.in,e.out=t.out});function li(e,t){return new Eh({type:"pipe",in:e,out:t})}const Rh=E("ZodReadonly",(e,t)=>{qc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>pd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ih(e){return new Rh({type:"readonly",innerType:e})}const Ph=E("ZodLazy",(e,t)=>{Yc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bd(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Mh(e){return new Ph({type:"lazy",getter:e})}const Th=E("ZodCustom",(e,t)=>{Kc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nd(e,n)});function Oh(e,t={}){return Gu(Th,e,t)}function Lh(e,t){return Uu(e,t)}var zh=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Bh=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,si=C({style:C({textAlign:R(["left","center","right"]).optional().nullable(),padding:zh}).optional().nullable(),props:C({size:m().gt(0).optional().nullable(),shape:R(["circle","square","rounded"]).optional().nullable(),imageUrl:w().optional().nullable(),alt:w().optional().nullable()}).optional().nullable()});function jh(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var pn={size:64,imageUrl:"",alt:"",shape:"square"};function ci({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:pn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:pn.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:pn.alt,u=(i=t==null?void 0:t.shape)!=null?i:pn.shape,g={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:Bh(e==null?void 0:e.padding)};return F.createElement("div",{style:g},F.createElement("img",{alt:c,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:jh(u,l)}}))}const rn=C({type:R(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:R(["load","scroll","hover","click"]),speed:R(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:z().optional().nullable()}).optional().nullable(),Dh=si.extend({props:si.shape.props.unwrap().unwrap().extend({decorative:z().optional().nullable(),animation:rn}).optional().nullable()}),qt={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},br=Object.values(qt);function Ha(){return"desktop"}const Me=1024,De=640,qe=`@media (max-width: ${Me}px)`,Re=`@media (max-width: ${De}px)`,Fa=`@media (min-width: ${De+1}px) and (max-width: ${Me}px)`,Hn=C({color:w().optional().nullable(),offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:z().default(!1)}).partial().optional().nullable();function Hh(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Fn(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Hh(t)}`}}const Fh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Gh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Uh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Zh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Wh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Vh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},qh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Yh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Kh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ef=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},nf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},of=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},af=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:p.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function at(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return p.jsx(Fh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return p.jsx(Wh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return p.jsx(Jh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return p.jsx(Vh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return p.jsx(Gh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return p.jsx(Uh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return p.jsx(Zh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return p.jsx(qh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return p.jsx(Yh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return p.jsx(Kh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return p.jsx(ef,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return p.jsx(nf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return p.jsx(rf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return p.jsx(Xh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return p.jsx(tf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return p.jsx(of,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return p.jsx(af,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return p.jsx(Qh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const lf=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Kn(e){if(!e)return"inherit";switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}return"inherit"}const sf=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),cf=w().regex(/^rgba?\([^\)]+\)$/i),uf=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),df=ne("transparent"),wt=D([sf,cf,uf,df]).nullable().optional(),hf=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ff=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),mf=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),gf=D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),pf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,bf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vf=C({style:C({backgroundColor:wt,fontSize:m().min(0).optional().nullable(),fontFamily:lf,fontWeight:R(["bold","normal",...br]).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),buttonTextAlign:R(["left","center","right"]).optional().nullable(),padding:hf,margin:ff}).optional().nullable(),props:C({buttonBackground:wt,hoverBackground:wt,hoverTextColor:wt,borderRadius:gf,borderWidth:mf,borderColor:wt,buttonTextColor:wt,fullWidth:z().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:R(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:R(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),size:R(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:R(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:R(["x-small","small","large","medium"]).optional().nullable(),text:w().optional().nullable(),url:w().optional().nullable(),action:R(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:z().optional().nullable(),customAction:w().optional().nullable(),actionPayload:Pt(w(),Qt()).optional().nullable(),iconEnabled:z().optional().nullable(),iconName:w().optional().nullable(),iconAlignment:R(["left","right"]).optional().nullable(),ariaLabel:w().optional().nullable(),goToStep:w().optional().nullable(),postMessageEvent:w().optional().nullable(),animation:rn,boxShadow:Hn}).optional().nullable()});function ui(e){switch(e){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];case"medium":default:return[12,20]}}const pe={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",buttonTextColor:"",buttonBackground:"",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:"",boxShadow:null};function xf({style:e,props:t}){const o=`bh-${F.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??pe.text,i=(t==null?void 0:t.url)??pe.url,a=(t==null?void 0:t.fullWidth)??pe.fullWidth,l=(t==null?void 0:t.widthType)??pe.widthType,s=(t==null?void 0:t.width)??pe.width,c=(t==null?void 0:t.widthUnit)??pe.widthUnit,u=(t==null?void 0:t.widthTablet)??null,g=(t==null?void 0:t.widthMobile)??null,d=u??s,h=g??d,f=(t==null?void 0:t.widthTypeTablet)??l,b=(t==null?void 0:t.widthTypeMobile)??f,v=(t==null?void 0:t.size)??pe.size,S=(t==null?void 0:t.sizeTablet)??v,_=(t==null?void 0:t.sizeMobile)??S,$=l,x=s,k=(t==null?void 0:t.buttonTextColor)??pe.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??pe.buttonBackground,A=(t==null?void 0:t.iconEnabled)??pe.iconEnabled,y=(t==null?void 0:t.iconName)??pe.iconName,I=(t==null?void 0:t.iconAlignment)??pe.iconAlignment,M=(t==null?void 0:t.ariaLabel)??null,P=typeof r=="string"&&r.trim().length>0,L=M&&M.trim().length>0?M:!P&&A&&y?y:void 0,H=(t==null?void 0:t.action)??pe.action,T=(t==null?void 0:t.openInNewTab)??pe.openInNewTab,B=((t==null?void 0:t.customAction)??pe.customAction)||H,G=(t==null?void 0:t.actionPayload)??pe.actionPayload,oe=(t==null?void 0:t.goToStep)??pe.goToStep,te=(t==null?void 0:t.postMessageEvent)??pe.postMessageEvent,me=G||(B==="goToStep"?{goToStep:oe||""}:null)||(B==="postMessageEvent"?{postMessageEvent:te||""}:null),ae=me?JSON.stringify(me):void 0,Y=(t==null?void 0:t.borderRadius)??pe.borderRadius,K=(t==null?void 0:t.borderWidth)??pe.borderWidth,ce=(t==null?void 0:t.borderColor)??pe.borderColor,ze=(t==null?void 0:t.boxShadow)??pe.boxShadow,xe=Fn(ze),ge=(t==null?void 0:t.hoverBackground)??null,Z=(t==null?void 0:t.hoverTextColor)??null,Q=ui(v),U=we=>typeof we=="number"?`${we}px`:`${we.topLeft}px ${we.topRight}px ${we.bottomRight}px ${we.bottomLeft}px`,J=(we,it)=>{if(typeof we=="number")return`${Math.max(0,we-it)}px`;const Wn=Math.max(0,(we.topLeft||0)-it),Vn=Math.max(0,(we.topRight||0)-it),St=Math.max(0,(we.bottomRight||0)-it),_t=Math.max(0,(we.bottomLeft||0)-it);return`${Wn}px ${Vn}px ${St}px ${_t}px`},_e=ce&&(ce.includes("linear-gradient")||ce.includes("radial-gradient")||ce.includes("repeating-linear-gradient")),X=K&&((K.top??0)>0||(K.right??0)>0||(K.bottom??0)>0||(K.left??0)>0),ee={top:(K==null?void 0:K.top)??0,right:(K==null?void 0:K.right)??0,bottom:(K==null?void 0:K.bottom)??0,left:(K==null?void 0:K.left)??0},Ne=(()=>{if(a)return"100%";switch($){case"fill":return"100%";case"fixed":return`${x}${c}`;case"fit":default:return"auto"}})(),Ee=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",nt=Ee==="center"?"center":Ee==="right"?"flex-end":"flex-start",ft=()=>!ce||ce==="transparent"||!X?{border:"none"}:_e?{borderTop:`${ee.top}px solid transparent`,borderRight:`${ee.right}px solid transparent`,borderBottom:`${ee.bottom}px solid transparent`,borderLeft:`${ee.left}px solid transparent`,borderImage:`${ce} `,borderRadius:"0px"}:{borderTop:`${ee.top}px solid ${ce}`,borderRight:`${ee.right}px solid ${ce}`,borderBottom:`${ee.bottom}px solid ${ce}`,borderLeft:`${ee.left}px solid ${ce}`},$e=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),Se=k&&(k.includes("linear-gradient")||k.includes("radial-gradient")||k.includes("repeating-linear-gradient")),re=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),ue={backgroundColor:re?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:re?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:pf(e==null?void 0:e.padding),margin:bf(e==null?void 0:e.margin)},ye=ft(),Ye=Se?{backgroundImage:k,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:k||void 0},ot=Se?"transparent":$e?void 0:N,rt=Se?void 0:$e?N:void 0,V=(e==null?void 0:e.fontSize)??16,Ke=`${V}px`,Fe={fontSize:Ke,fontFamily:Kn(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??qt.REGULAR,backgroundColor:ot,backgroundImage:rt,borderRadius:_e?"0px":U(Y),...ye,..._e&&X?{}:xe,display:Ne==="100%"?"block":"inline-block",width:Ne,padding:`${Q[0]}px ${Q[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:nt,lineHeight:"normal"},Zn=_e&&X?p.jsx("div",{style:{display:Ne==="100%"?"block":"inline-block",padding:`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`,background:ce,borderRadius:U(Y),width:Ne,boxSizing:"border-box",...xe},children:p.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:J(Y,Math.max(ee.top,ee.right,ee.bottom,ee.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??qt.REGULAR,fontFamily:Kn(e==null?void 0:e.fontFamily),backgroundImage:rt??($e?N:"#fffff"),backgroundColor:ot??($e?"#ffffff":N),textAlign:Ee,textDecoration:"none",fontSize:Ke,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":B,"data-action-payload":ae,"data-goto-step":B==="goToStep"&&oe?oe:void 0,"data-post-message-event":B==="postMessageEvent"&&te?te:void 0,type:"button","aria-label":L,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},"data-action":B,children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null]})}):p.jsxs("button",{style:{cursor:"pointer",...ye,...xe,borderRadius:U(Y),width:Ne,fontWeight:(e==null?void 0:e.fontWeight)??qt.REGULAR,fontFamily:Kn(e==null?void 0:e.fontFamily),backgroundColor:ot??($e?"":N),backgroundImage:rt??($e?N:""),textAlign:Ee,textDecoration:"none",fontSize:Ke,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":B,"data-action-payload":ae,"data-goto-step":B==="goToStep"&&oe?oe:void 0,"data-post-message-event":B==="postMessageEvent"&&te?te:void 0,type:"button","aria-label":L,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},"data-action":B,children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null]}),mt=[];ge&&mt.push(`background-color: ${ge} !important; background-image: none !important;`),Z&&mt.push(`color: ${Z} !important;`);const dn=mt.length>0?`#${o} a:hover, #${o} button:hover { ${mt.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${Z?`color: ${Z} !important; -webkit-text-fill-color: ${Z} !important;`:""} }`:null,Rr=(we,it,Wn,Vn)=>{const St=[],_t=a||it==="fill"?"100%":it==="fixed"?`${Wn}${c}`:"auto";St.push(`width: ${_t} !important;`,"max-width: 100% !important;"),St.push(`display: ${_t==="100%"?"block":"inline-block"} !important;`);const[Mr,Hl]=ui(Vn);return St.push(`padding: ${Mr}px ${Hl}px !important;`),`${we} { #${o} a, #${o} button { ${St.join(" ")} } #${o} > div { width: ${_t} !important; max-width: 100% !important; display: ${_t==="100%"?"block":"inline-block"} !important; } }`},Ir=f!==l||S!==v||f==="fixed"&&d!==s,Pr=b!==l||_!==v||b==="fixed"&&h!==s,hn=Ir||Pr?[Ir?Rr(qe,f,d,S):"",Pr?Rr(Re,b,h,_):""].filter(Boolean).join(`
65
- `):null;if(H!=="link")return p.jsxs("div",{id:o,className:"button-block",style:ue,children:[dn&&p.jsx("style",{children:dn}),hn&&p.jsx("style",{children:hn}),Zn]});const Dl=_e&&X?p.jsx("div",{style:{display:Ne==="100%"?"block":"inline-block",padding:`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`,background:ce,borderRadius:U(Y),width:Ne,boxSizing:"border-box",...xe},children:p.jsxs("a",{href:i,style:{...Fe,border:"none",borderRadius:J(Y,Math.max(ee.top,ee.right,ee.bottom,ee.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:nt},target:T?"_blank":void 0,rel:T?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null]})}):p.jsxs("a",{href:i,style:{...Fe,borderRadius:U(Y),display:"inline-flex",alignItems:"center",justifyContent:nt},target:T?"_blank":void 0,rel:T?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:Se?void 0:k,fontSize:V})}):null]});return p.jsxs("div",{id:o,className:"button-block",style:ue,children:[dn&&p.jsx("style",{children:dn}),hn&&p.jsx("style",{children:hn}),Dl]})}const Sf=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_f=w().regex(/^rgba?\([^\)]+\)$/i),wf=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),kf=ne("transparent"),di=D([Sf,_f,wf,kf]).nullable().optional(),Cf=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),$f=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Af=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,yf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Nf=C({style:C({backgroundColor:di,padding:Cf,margin:$f}).optional().nullable(),props:C({lineColor:di,lineHeight:m().optional().nullable()}).optional().nullable()}),hi={lineHeight:1,lineColor:"#333333"};function Ef({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??hi.lineHeight,o=(t==null?void 0:t.lineColor)??hi.lineColor,r={padding:Af(e==null?void 0:e.padding),margin:yf(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return p.jsx("div",{className:"divider-block",style:r,children:p.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Rf=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),If=w().regex(/^rgba?\([^\)]+\)$/i),Pf=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Mf=ne("transparent"),Jn=D([Rf,If,Pf,Mf]).nullable().optional(),Tf=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Of=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Lf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Bf=R(["inherit","MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function jf(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const Df=C({props:C({text:w().optional().nullable(),level:R(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:R(["text","link"]).optional().nullable(),url:w().optional().nullable(),openInNewTab:z().optional().nullable()}).optional().nullable(),style:C({color:Jn,textColor:Jn,backgroundColor:Jn,fontFamily:Bf,fontSize:m().optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontWeight:R(["bold","normal",...br]).optional().nullable(),fontStyle:R(["italic","normal"]).optional().nullable(),textDecoration:R(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),padding:Tf,margin:Of}).optional().nullable()}),jt={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function Hf({props:e,style:t}){const n=(e==null?void 0:e.level)??jt.level,o=(e==null?void 0:e.text)??jt.text,r=(e==null?void 0:e.linkType)??jt.linkType,i=(e==null?void 0:e.url)??jt.url,a=(e==null?void 0:e.openInNewTab)??jt.openInNewTab,l=r==="link"&&i,s=(t==null?void 0:t.fontSize)??Ff(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),u=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),g=t==null?void 0:t.lineClamp,d=g&&g>0?{display:"-webkit-box",WebkitLineClamp:g,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},h={fontWeight:(t==null?void 0:t.fontWeight)??qt.REGULAR,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:(t==null?void 0:t.textDecoration)??"none",margin:0,fontFamily:jf(t==null?void 0:t.fontFamily),fontSize:s,...d},f=u?{backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:c??void 0},b=(t==null?void 0:t.backgroundColor)??void 0,v=typeof b=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(b),S={padding:Lf(t==null?void 0:t.padding),margin:zf(t==null?void 0:t.margin),display:"block",width:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...v?{backgroundImage:b,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:b}},_=n,$=p.jsx(_,{className:"heading-block",style:h,children:p.jsx("span",{style:f,children:o})});return p.jsx("div",{className:"heading-block-wrapper",style:S,children:l?p.jsx("a",{href:i,target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!u&&c?c:void 0},children:$}):$})}function Ff(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 20;case"h4":return 18;case"h5":return 16;case"h6":return 14}}var Ga="comm",Ua="rule",Za="decl",Gf="@import",Uf="@namespace",Zf="@keyframes",Wf="@layer",Vf=Math.abs,Yt=String.fromCharCode;function Wa(e){return e.trim()}function Po(e,t,n){return e.replace(t,n)}function Et(e,t){return e.charCodeAt(t)|0}function Mt(e,t,n){return e.slice(t,n)}function Ve(e){return e.length}function qf(e){return e.length}function bn(e,t){return t.push(e),e}var Gn=1,Tt=1,Va=0,Ie=0,ve=0,Lt="";function vr(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Gn,column:Tt,length:a,return:"",siblings:l}}function Yf(){return ve}function Kf(){return ve=Ie>0?Et(Lt,--Ie):0,Tt--,ve===10&&(Tt=1,Gn--),ve}function je(){return ve=Ie<Va?Et(Lt,Ie++):0,Tt++,ve===10&&(Tt=1,Gn++),ve}function ct(){return Et(Lt,Ie)}function kn(){return Ie}function Un(e,t){return Mt(Lt,e,t)}function en(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jf(e){return Gn=Tt=1,Va=Ve(Lt=e),Ie=0,[]}function Xf(e){return Lt="",e}function Xn(e){return Wa(Un(Ie-1,Mo(e===91?e+2:e===40?e+1:e)))}function Qf(e){for(;(ve=ct())&&ve<33;)je();return en(e)>2||en(ve)>3?"":" "}function em(e,t){for(;--t&&je()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Un(e,kn()+(t<6&&ct()==32&&je()==32))}function Mo(e){for(;je();)switch(ve){case e:return Ie;case 34:case 39:e!==34&&e!==39&&Mo(ve);break;case 40:e===41&&Mo(e);break;case 92:je();break}return Ie}function tm(e,t){for(;je()&&e+ve!==57;)if(e+ve===84&&ct()===47)break;return"/*"+Un(t,Ie-1)+"*"+Yt(e===47?e:je())}function nm(e){for(;!en(ct());)je();return Un(e,Ie)}function om(e){return Xf(Cn("",null,null,null,[""],e=Jf(e),0,[0],e))}function Cn(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,g=a,d=0,h=0,f=0,b=1,v=1,S=1,_=0,$=0,x="",k=r,N=i,A=o,y=x;v;)switch(f=$,$=je()){case 40:f!=108&&Et(y,g-1)==58?(_++,y+="("):y+=Xn($);break;case 41:_--,y+=")";break;case 34:case 39:case 91:y+=Xn($);break;case 9:case 10:case 13:case 32:if(_>0){y+=Yt($);break}y+=Qf(f);break;case 92:y+=em(kn()-1,7);continue;case 47:switch(ct()){case 42:case 47:bn(rm(tm(je(),kn()),t,n,s),s),(en(f||1)==5||en(ct()||1)==5)&&Ve(y)&&Mt(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*b:l[c++]=Ve(y)*S;case 125*b:case 59:case 0:if(_>0&&$){y+=Yt($);break}switch($){case 0:case 125:v=0;case 59+u:S==-1&&(y=Po(y,/\f/g,"")),h>0&&(Ve(y)-g||b===0)&&bn(h>32?mi(y+";",o,n,g-1,s):mi(Po(y," ","")+";",o,n,g-2,s),s);break;case 59:y+=";";default:if(bn(A=fi(y,t,n,c,u,r,l,x,k=[],N=[],g,i),i),$===123)if(u===0)Cn(y,t,A,A,k,i,g,l,N);else{switch(d){case 99:if(Et(y,3)===110)break;case 108:if(Et(y,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Cn(e,A,A,o&&bn(fi(e,A,A,0,0,r,l,x,r,k=[],g,N),N),r,N,g,l,o?k:N):Cn(y,A,A,A,[""],N,0,l,N)}}c=u=h=0,b=S=1,x=y="",g=a;break;case 58:g=1+Ve(y),h=f;default:if(b<1){if($==123)--b;else if($==125&&b++==0&&Kf()==125)continue}switch(y+=Yt($),$*b){case 38:S=u>0?1:(y+="\f",-1);break;case 44:if(_>0)break;l[c++]=(Ve(y)-1)*S,S=1;break;case 64:ct()===45&&(y+=Xn(je())),d=ct(),u=g=Ve(x=y+=nm(kn())),$++;break;case 45:f===45&&Ve(y)==2&&(b=0)}}return i}function fi(e,t,n,o,r,i,a,l,s,c,u,g){for(var d=r-1,h=r===0?i:[""],f=qf(h),b=0,v=0,S=0;b<o;++b)for(var _=0,$=Mt(e,d+1,d=Vf(v=a[b])),x=e;_<f;++_)(x=Wa(v>0?h[_]+" "+$:Po($,/&\f/g,h[_])))&&(s[S++]=x);return vr(e,t,n,r===0?Ua:l,s,c,u,g)}function rm(e,t,n,o){return vr(e,t,n,Ga,Yt(Yf()),Mt(e,2,-2),0,o)}function mi(e,t,n,o,r){return vr(e,t,n,Za,Mt(e,0,o),Mt(e,o+1,-1),o,r)}function To(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function im(e,t,n,o){switch(e.type){case Wf:if(e.children.length)break;case Gf:case Uf:case Za:return e.return=e.return||e.value;case Ga:return"";case Zf:return e.return=e.value+"{"+To(e.children,o)+"}";case Ua:if(!Ve(e.value=e.props.join(",")))return""}return Ve(n=To(e.children,o))?e.return=e.value+"{"+n+"}":""}const am=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),lm=w().regex(/^rgba?\([^\)]+\)$/i),sm=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),cm=ne("transparent"),gi=D([am,lm,sm,cm]).nullable().optional(),um=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),dm=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),hm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,fm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,mm=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function gm(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const pm=C({style:C({color:gi,backgroundColor:gi,fontFamily:mm,fontSize:m().min(0).optional().nullable(),textAlign:R(["left","right","center"]).optional().nullable(),padding:um,margin:dm}).optional().nullable(),props:C({contents:w().optional().nullable()}).optional().nullable()}),bm=/<style[^>]*>([\s\S]*?)<\/style>/gi;function vm(e,t){let n="";const o=e.replace(bm,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=To(om(`[${t}]{${n}}`),im);return{markup:o,css:r}}function xm({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=F.useState(!1),a=`data-html-scope-${F.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=F.useMemo(()=>n?vm(n,a):{markup:"",css:""},[n,a]),c={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:gm(e==null?void 0:e.fontFamily),fontSize:(e==null?void 0:e.fontSize)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:hm(e==null?void 0:e.padding),margin:fm(e==null?void 0:e.margin)},u=F.useRef(null);F.useEffect(()=>{const f=u.current;if(!f)return;f.querySelectorAll("iframe").forEach(v=>{try{v.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const g=f=>{o||r(!0)},d=()=>{r(!1)};if(!n)return p.jsx("div",{ref:u,className:"html-block",style:c});const h=s?`<style>${s}</style>${l}`:l;return p.jsx("div",{ref:u,className:"html-block",style:c,onClick:g,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:h}})}const xr=C({enabled:z(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:R(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable(),Sm=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_m=w().regex(/^rgba?\([^\)]+\)$/i),wm=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),km=ne("transparent"),Cm=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),$m=D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Qn=D([Sm,_m,wm,km]).nullable().optional(),Am=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ym=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Nm(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Em(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const Rm=C({style:C({padding:Cm,backgroundColor:Qn.default(null),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:m().optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),height:m().optional().nullable(),heightTablet:m().positive().optional().nullable(),heightMobile:m().positive().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),url:w().optional().nullable(),urlTablet:w().optional().nullable(),urlMobile:w().optional().nullable(),alt:w().optional().nullable(),decorative:z().optional().nullable(),linkHref:w().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),borderRadius:$m,borderColor:Qn.default(null),borderWidth:Am,rotation:m().min(0).max(360).optional().nullable(),rotationTablet:m().min(0).max(360).optional().nullable(),rotationMobile:m().min(0).max(360).optional().nullable(),iconName:w().optional().nullable(),iconFillColor:Qn.default(null),animation:rn,hoverEffect:xr,boxShadow:Hn}).optional().nullable()}),ke={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"},boxShadow:null};let Im=0;function Pm({style:e,props:t}){const n=F.useMemo(()=>`ahd-img-${++Im}`,[]),o=(e==null?void 0:e.textAlign)??void 0,r=o==="center"?"center":o==="right"?"flex-end":"flex-start",i={padding:ym(e==null?void 0:e.padding),...Nm(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:r,width:"100%",boxSizing:"border-box"},a=(t==null?void 0:t.linkHref)??ke.linkHref,l=(t==null?void 0:t.widthType)??ke.widthType,s=(t==null?void 0:t.width)??ke.width,c=(t==null?void 0:t.widthUnit)??ke.widthUnit,u=(t==null?void 0:t.widthTablet)??null,g=(t==null?void 0:t.widthMobile)??null,d=u??s,h=g??d,f=(t==null?void 0:t.height)??ke.height,b=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,S=b??f,_=v??S,$=f,x=(t==null?void 0:t.url)??ke.url,k=(t==null?void 0:t.urlTablet)??null,N=(t==null?void 0:t.urlMobile)??null,A=!a&&((t==null?void 0:t.decorative)??ke.decorative),y=A?"":(t==null?void 0:t.alt)??ke.alt,I=A?{role:"presentation","aria-hidden":!0}:{},M=(t==null?void 0:t.contentAlignment)??ke.contentAlignment,P=(t==null?void 0:t.borderRadius)??ke.borderRadius,L=(t==null?void 0:t.borderColor)??ke.borderColor,H=(t==null?void 0:t.borderWidth)??ke.borderWidth,T=(t==null?void 0:t.boxShadow)??ke.boxShadow,O=Fn(T),B=(t==null?void 0:t.rotation)??ke.rotation,G=(t==null?void 0:t.rotationTablet)??null,oe=(t==null?void 0:t.rotationMobile)??null,te=G??B,me=oe??te,ae=re=>{const ue=re*Math.PI/180,ye=re%180!==0?1/(Math.abs(Math.cos(ue))+Math.abs(Math.sin(ue))):1;return`rotate(${re}deg) scale(${ye})`},Y=B,K=Y?{transform:ae(Y),transformOrigin:"center"}:{},ze=G!=null||oe!=null?`
66
- ${qe} { .${n} img, .${n} > div { transform: ${ae(te)} !important; transform-origin: center !important; } }
67
- ${Re} { .${n} img, .${n} > div { transform: ${ae(me)} !important; transform-origin: center !important; } }
68
- `.trim():null,xe=Em(L,H),ge=re=>typeof re=="number"?`${re}px`:`${re.topLeft}px ${re.topRight}px ${re.bottomRight}px ${re.bottomLeft}px`,Z=(re,ue)=>{const ye=Math.max((ue==null?void 0:ue.top)||0,(ue==null?void 0:ue.right)||0,(ue==null?void 0:ue.bottom)||0,(ue==null?void 0:ue.left)||0);if(typeof re=="number")return`${Math.max(0,re-ye)}px`;const Bt=Math.max(0,(re.topLeft||0)-ye),Ye=Math.max(0,(re.topRight||0)-ye),ot=Math.max(0,(re.bottomRight||0)-ye),rt=Math.max(0,(re.bottomLeft||0)-ye);return`${Bt}px ${Ye}px ${ot}px ${rt}px`},U=(()=>{switch(l){case"fill":return"100%";case"fixed":return s;case"fit":default:return}})(),J=l==="fixed"?`${s}${c}`:void 0,_e=x,X=l==="fixed"?`
64
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const m=u[1];if(t===u[0]){i(u);continue}if(e.external){const h=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&h){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(m.cycle){i(u);continue}if(m.count>1&&e.reused==="ref"){i(u);continue}}}function Ba(e,t){var l,s,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=m=>{const d=e.seen.get(m);if(d.ref===null)return;const h=d.def??d.schema,f={...h},b=d.ref;if(d.ref=null,b){o(b);const S=e.seen.get(b),_=S.schema;if(_.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(_)):Object.assign(h,_),Object.assign(h,f),m._zod.parent===b)for(const x in h)x==="$ref"||x==="allOf"||x in f||delete h[x];if(_.$ref&&S.def)for(const x in h)x==="$ref"||x==="allOf"||x in S.def&&JSON.stringify(h[x])===JSON.stringify(S.def[x])&&delete h[x]}const v=m._zod.parent;if(v&&v!==b){o(v);const S=e.seen.get(v);if(S!=null&&S.schema.$ref&&(h.$ref=S.schema.$ref,S.def))for(const _ in h)_==="$ref"||_==="allOf"||_ in S.def&&JSON.stringify(h[_])===JSON.stringify(S.def[_])&&delete h[_]}e.override({zodSchema:m,jsonSchema:h,path:d.path??[]})};for(const m of[...e.seen.entries()].reverse())o(m[0]);const 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,(l=e.external)!=null&&l.uri){const m=(s=e.external.registry.get(t))==null?void 0:s.id;if(!m)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(m)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const m of e.seen.entries()){const d=m[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,a[d.defId]=d.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{const m=JSON.parse(JSON.stringify(r));return Object.defineProperty(m,"~standard",{value:{...t["~standard"],jsonSchema:{input:Rn(t,"input",e.processors),output:Rn(t,"output",e.processors)}},enumerable:!1,writable:!1}),m}catch{throw new Error("Error converting schema to JSON.")}}function Ce(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ce(o.element,n);if(o.type==="set")return Ce(o.valueType,n);if(o.type==="lazy")return Ce(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ce(o.innerType,n);if(o.type==="intersection")return Ce(o.left,n)||Ce(o.right,n);if(o.type==="record"||o.type==="map")return Ce(o.keyType,n)||Ce(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ce(o.in,n)||Ce(o.out,n);if(o.type==="object"){for(const r in o.shape)if(Ce(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(Ce(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(Ce(r,n))return!0;return!!(o.rest&&Ce(o.rest,n))}return!1}const Ju=(e,t={})=>n=>{const o=za({...n,processors:t});return ge(e,o),ja(o,e),Ba(o,e)},Rn=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=za({...r??{},target:i,io:t,processors:n});return ge(e,a),ja(a,e),Ba(a,e)},Xu={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Qu=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=Xu[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},ed=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const m=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";m?h?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?h?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},td=(e,t,n,o)=>{n.type="boolean"},nd=(e,t,n,o)=>{n.not={}},od=(e,t,n,o)=>{},rd=(e,t,n,o)=>{},id=(e,t,n,o)=>{const r=e._zod.def,i=pa(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},ad=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},ld=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},sd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},cd=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=ge(i.element,t,{...o,path:[...o.path,"items"]})},ud=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=ge(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const m=i.shape[u]._zod;return t.io==="input"?m.optin===void 0:m.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=ge(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},dd=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>ge(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},hd=(e,t,n,o)=>{const r=e._zod.def,i=ge(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=ge(r.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];n.allOf=s},fd=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,h)=>ge(d,t,{...o,path:[...o.path,a,h]})),c=i.rest?ge(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:m}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof m=="number"&&(r.maxItems=m)},md=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="object";const a=i.keyType,l=a._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=ge(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const m of s)r.patternProperties[m.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=ge(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=ge(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(m=>typeof m=="string"||typeof m=="number");u.length>0&&(r.required=u)}},gd=(e,t,n,o)=>{const r=e._zod.def,i=ge(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},pd=(e,t,n,o)=>{const r=e._zod.def;ge(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},bd=(e,t,n,o)=>{const r=e._zod.def;ge(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},vd=(e,t,n,o)=>{const r=e._zod.def;ge(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},xd=(e,t,n,o)=>{const r=e._zod.def;ge(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Sd=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;ge(a,t,o);const l=t.seen.get(e);l.ref=a},_d=(e,t,n,o)=>{const r=e._zod.def;ge(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},Da=(e,t,n,o)=>{const r=e._zod.def;ge(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},kd=(e,t,n,o)=>{const r=e._zod.innerType;ge(r,t,o);const i=t.seen.get(e);i.ref=r},wd=E("ZodISODateTime",(e,t)=>{bc.init(e,t),pe.init(e,t)});function $d(e){return Au(wd,e)}const Cd=E("ZodISODate",(e,t)=>{vc.init(e,t),pe.init(e,t)});function Ad(e){return yu(Cd,e)}const yd=E("ZodISOTime",(e,t)=>{xc.init(e,t),pe.init(e,t)});function Nd(e){return Nu(yd,e)}const Ed=E("ZodISODuration",(e,t)=>{Sc.init(e,t),pe.init(e,t)});function Rd(e){return Eu(Ed,e)}const Id=(e,t)=>{Sa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cs(e,n)},flatten:{value:n=>ss(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Io,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Io,2)}},isEmpty:{get(){return e.issues.length===0}}})},Te=E("ZodError",Id,{Parent:Error}),Md=br(Te),Pd=vr(Te),Td=Bn(Te),Od=Dn(Te),Ld=hs(Te),zd=fs(Te),jd=ms(Te),Bd=gs(Te),Dd=ps(Te),Hd=bs(Te),Fd=vs(Te),Gd=xs(Te),ri=new WeakMap;function rn(e,t,n){const o=Object.getPrototypeOf(e);let r=ri.get(o);if(r||(r=new Set,ri.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const ce=E("ZodType",(e,t)=>(le.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Rn(e,"input"),output:Rn(e,"output")}}),e.toJSONSchema=Ju(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Md(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Td(e,n,o),e.parseAsync=async(n,o)=>Pd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Od(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Ld(e,n,o),e.decode=(n,o)=>zd(e,n,o),e.encodeAsync=async(n,o)=>jd(e,n,o),e.decodeAsync=async(n,o)=>Bd(e,n,o),e.safeEncode=(n,o)=>Dd(e,n,o),e.safeDecode=(n,o)=>Hd(e,n,o),e.safeEncodeAsync=async(n,o)=>Fd(e,n,o),e.safeDecodeAsync=async(n,o)=>Gd(e,n,o),rn(e,"ZodType",{check(...n){const o=this.def;return this.clone(ut(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return dt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Dh(n,o))},superRefine(n,o){return this.check(Hh(n,o))},overwrite(n){return this.check(Ot(n))},optional(){return ci(this)},exactOptional(){return Ch(this)},nullable(){return ui(this)},nullish(){return ci(ui(this))},nonoptional(n){return Ih(this,n)},array(){return V(this)},or(n){return D([this,n])},and(n){return xh(this,n)},transform(n){return di(this,wh(n))},default(n){return Nh(this,n)},prefault(n){return Rh(this,n)},catch(n){return Ph(this,n)},pipe(n){return di(this,n)},readonly(){return Lh(this)},describe(n){const o=this.clone();return qt.add(o,{description:n}),o},meta(...n){if(n.length===0)return qt.get(this);const o=this.clone();return qt.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=qt.get(e))==null?void 0:n.description},configurable:!0}),e)),Ha=E("_ZodString",(e,t)=>{xr.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Qu(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,rn(e,"_ZodString",{regex(...o){return this.check(Lu(...o))},includes(...o){return this.check(Bu(...o))},startsWith(...o){return this.check(Du(...o))},endsWith(...o){return this.check(Hu(...o))},min(...o){return this.check(En(...o))},max(...o){return this.check(Oa(...o))},length(...o){return this.check(La(...o))},nonempty(...o){return this.check(En(1,...o))},lowercase(o){return this.check(zu(o))},uppercase(o){return this.check(ju(o))},trim(){return this.check(Gu())},normalize(...o){return this.check(Fu(...o))},toLowerCase(){return this.check(Uu())},toUpperCase(){return this.check(Zu())},slugify(){return this.check(Wu())}})}),Ud=E("ZodString",(e,t)=>{xr.init(e,t),Ha.init(e,t),e.email=n=>e.check(iu(Zd,n)),e.url=n=>e.check(uu(Wd,n)),e.jwt=n=>e.check(Cu(lh,n)),e.emoji=n=>e.check(du(Vd,n)),e.guid=n=>e.check(ei(ii,n)),e.uuid=n=>e.check(au(gn,n)),e.uuidv4=n=>e.check(lu(gn,n)),e.uuidv6=n=>e.check(su(gn,n)),e.uuidv7=n=>e.check(cu(gn,n)),e.nanoid=n=>e.check(hu(qd,n)),e.guid=n=>e.check(ei(ii,n)),e.cuid=n=>e.check(fu(Yd,n)),e.cuid2=n=>e.check(mu(Kd,n)),e.ulid=n=>e.check(gu(Jd,n)),e.base64=n=>e.check(ku(rh,n)),e.base64url=n=>e.check(wu(ih,n)),e.xid=n=>e.check(pu(Xd,n)),e.ksuid=n=>e.check(bu(Qd,n)),e.ipv4=n=>e.check(vu(eh,n)),e.ipv6=n=>e.check(xu(th,n)),e.cidrv4=n=>e.check(Su(nh,n)),e.cidrv6=n=>e.check(_u(oh,n)),e.e164=n=>e.check($u(ah,n)),e.datetime=n=>e.check($d(n)),e.date=n=>e.check(Ad(n)),e.time=n=>e.check(Nd(n)),e.duration=n=>e.check(Rd(n))});function k(e){return ru(Ud,e)}const pe=E("ZodStringFormat",(e,t)=>{fe.init(e,t),Ha.init(e,t)}),Zd=E("ZodEmail",(e,t)=>{sc.init(e,t),pe.init(e,t)}),ii=E("ZodGUID",(e,t)=>{ac.init(e,t),pe.init(e,t)}),gn=E("ZodUUID",(e,t)=>{lc.init(e,t),pe.init(e,t)}),Wd=E("ZodURL",(e,t)=>{cc.init(e,t),pe.init(e,t)}),Vd=E("ZodEmoji",(e,t)=>{uc.init(e,t),pe.init(e,t)}),qd=E("ZodNanoID",(e,t)=>{dc.init(e,t),pe.init(e,t)}),Yd=E("ZodCUID",(e,t)=>{hc.init(e,t),pe.init(e,t)}),Kd=E("ZodCUID2",(e,t)=>{fc.init(e,t),pe.init(e,t)}),Jd=E("ZodULID",(e,t)=>{mc.init(e,t),pe.init(e,t)}),Xd=E("ZodXID",(e,t)=>{gc.init(e,t),pe.init(e,t)}),Qd=E("ZodKSUID",(e,t)=>{pc.init(e,t),pe.init(e,t)}),eh=E("ZodIPv4",(e,t)=>{_c.init(e,t),pe.init(e,t)}),th=E("ZodIPv6",(e,t)=>{kc.init(e,t),pe.init(e,t)}),nh=E("ZodCIDRv4",(e,t)=>{wc.init(e,t),pe.init(e,t)}),oh=E("ZodCIDRv6",(e,t)=>{$c.init(e,t),pe.init(e,t)}),rh=E("ZodBase64",(e,t)=>{Cc.init(e,t),pe.init(e,t)}),ih=E("ZodBase64URL",(e,t)=>{yc.init(e,t),pe.init(e,t)}),ah=E("ZodE164",(e,t)=>{Nc.init(e,t),pe.init(e,t)}),lh=E("ZodJWT",(e,t)=>{Rc.init(e,t),pe.init(e,t)}),Fa=E("ZodNumber",(e,t)=>{Ra.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,r,i)=>ed(e,o,r),rn(e,"ZodNumber",{gt(o,r){return this.check(ni(o,r))},gte(o,r){return this.check(Kn(o,r))},min(o,r){return this.check(Kn(o,r))},lt(o,r){return this.check(ti(o,r))},lte(o,r){return this.check(Yn(o,r))},max(o,r){return this.check(Yn(o,r))},int(o){return this.check(ai(o))},safe(o){return this.check(ai(o))},positive(o){return this.check(ni(0,o))},nonnegative(o){return this.check(Kn(0,o))},negative(o){return this.check(ti(0,o))},nonpositive(o){return this.check(Yn(0,o))},multipleOf(o,r){return this.check(oi(o,r))},step(o,r){return this.check(oi(o,r))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function g(e){return Ru(Fa,e)}const sh=E("ZodNumberFormat",(e,t)=>{Ic.init(e,t),Fa.init(e,t)});function ai(e){return Iu(sh,e)}const ch=E("ZodBoolean",(e,t)=>{Mc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>td(e,n,o)});function L(e){return Mu(ch,e)}const uh=E("ZodAny",(e,t)=>{Pc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>od()});function en(){return Pu(uh)}const dh=E("ZodUnknown",(e,t)=>{Tc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rd()});function li(){return Tu(dh)}const hh=E("ZodNever",(e,t)=>{Oc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nd(e,n,o)});function fh(e){return Ou(hh,e)}const mh=E("ZodArray",(e,t)=>{Lc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>cd(e,n,o,r),e.element=t.element,rn(e,"ZodArray",{min(n,o){return this.check(En(n,o))},nonempty(n){return this.check(En(1,n))},max(n,o){return this.check(Oa(n,o))},length(n,o){return this.check(La(n,o))},unwrap(){return this.element}})});function V(e,t){return Vu(mh,e,t)}const gh=E("ZodObject",(e,t)=>{jc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ud(e,n,o,r),K(e,"shape",()=>t.shape),rn(e,"ZodObject",{keyof(){return R(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:li()})},loose(){return this.clone({...this._zod.def,catchall:li()})},strict(){return this.clone({...this._zod.def,catchall:fh()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return ns(this,n)},safeExtend(n){return os(this,n)},merge(n){return rs(this,n)},pick(n){return es(this,n)},omit(n){return ts(this,n)},partial(...n){return is(Za,this,n[0])},required(...n){return as(Wa,this,n[0])}})});function $(e,t){const n={type:"object",shape:e??{},...j(t)};return new gh(n)}const Ga=E("ZodUnion",(e,t)=>{Pa.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dd(e,n,o,r),e.options=t.options});function D(e,t){return new Ga({type:"union",options:e,...j(t)})}const ph=E("ZodDiscriminatedUnion",(e,t)=>{Ga.init(e,t),Bc.init(e,t)});function bh(e,t,n){return new ph({type:"union",options:t,discriminator:e,...j(n)})}const vh=E("ZodIntersection",(e,t)=>{Dc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hd(e,n,o,r)});function xh(e,t){return new vh({type:"intersection",left:e,right:t})}const Sh=E("ZodTuple",(e,t)=>{Hc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fd(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Ua(e,t,n){const o=t instanceof le,r=o?n:t,i=o?t:null;return new Sh({type:"tuple",items:e,rest:i,...j(r)})}const si=E("ZodRecord",(e,t)=>{Fc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>md(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function Mt(e,t,n){return!t||!t._zod?new si({type:"record",keyType:k(),valueType:e,...j(t)}):new si({type:"record",keyType:e,valueType:t,...j(n)})}const Po=E("ZodEnum",(e,t)=>{Gc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,r,i)=>id(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Po({...t,checks:[],...j(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Po({...t,checks:[],...j(r),entries:i})}});function R(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Po({type:"enum",entries:n,...j(t)})}const _h=E("ZodLiteral",(e,t)=>{Uc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ad(e,n,o),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]}})});function oe(e,t){return new _h({type:"literal",values:Array.isArray(e)?e:[e],...j(t)})}const kh=E("ZodTransform",(e,t)=>{Zc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sd(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ga(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(Qt(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(Qt(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function wh(e){return new kh({type:"transform",transform:e})}const Za=E("ZodOptional",(e,t)=>{Ta.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Da(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ci(e){return new Za({type:"optional",innerType:e})}const $h=E("ZodExactOptional",(e,t)=>{Wc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Da(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ch(e){return new $h({type:"optional",innerType:e})}const Ah=E("ZodNullable",(e,t)=>{Vc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ui(e){return new Ah({type:"nullable",innerType:e})}const yh=E("ZodDefault",(e,t)=>{qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nh(e,t){return new yh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():va(t)}})}const Eh=E("ZodPrefault",(e,t)=>{Yc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Rh(e,t){return new Eh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():va(t)}})}const Wa=E("ZodNonOptional",(e,t)=>{Kc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>pd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ih(e,t){return new Wa({type:"nonoptional",innerType:e,...j(t)})}const Mh=E("ZodCatch",(e,t)=>{Jc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xd(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ph(e,t){return new Mh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Th=E("ZodPipe",(e,t)=>{Xc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Sd(e,n,o,r),e.in=t.in,e.out=t.out});function di(e,t){return new Th({type:"pipe",in:e,out:t})}const Oh=E("ZodReadonly",(e,t)=>{Qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_d(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Lh(e){return new Oh({type:"readonly",innerType:e})}const zh=E("ZodLazy",(e,t)=>{eu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>kd(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function jh(e){return new zh({type:"lazy",getter:e})}const Bh=E("ZodCustom",(e,t)=>{tu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ld(e,n)});function Dh(e,t={}){return qu(Bh,e,t)}function Hh(e,t){return Yu(e,t)}var Fh=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Gh=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hi=$({style:$({textAlign:R(["left","center","right"]).optional().nullable(),padding:Fh}).optional().nullable(),props:$({size:g().gt(0).optional().nullable(),shape:R(["circle","square","rounded"]).optional().nullable(),imageUrl:k().optional().nullable(),alt:k().optional().nullable()}).optional().nullable()});function Uh(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var pn={size:64,imageUrl:"",alt:"",shape:"square"};function fi({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:pn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:pn.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:pn.alt,u=(i=t==null?void 0:t.shape)!=null?i:pn.shape,m={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:Gh(e==null?void 0:e.padding)};return G.createElement("div",{style:m},G.createElement("img",{alt:c,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:Uh(u,l)}}))}const an=$({type:R(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:R(["load","scroll","hover","click"]),speed:R(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),Zh=hi.extend({props:hi.shape.props.unwrap().unwrap().extend({decorative:L().optional().nullable(),animation:an}).optional().nullable()}),Yt={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},Sr=Object.values(Yt);function Va(){return"desktop"}const Re=1024,Ne=640,qe=`@media (max-width: ${Re}px)`,Be=`@media (max-width: ${Ne}px)`,_r=`@media (min-width: ${Ne+1}px) and (max-width: ${Re}px)`,Fn=$({color:k().optional().nullable(),offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function Wh(e){if(!(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")))return e;const n=e.match(/#([0-9a-fA-F]{3,8})|rgba?\([^)]+\)/);return(n==null?void 0:n[0])??"#000000"}function Gn(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Wh(t)}`}}const Vh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},qh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Yh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Kh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qh=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ef=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},nf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},of=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},af=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},uf=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:p.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},df=e=>{const t=e.strokeColor||"black";return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:p.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function at(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return p.jsx(Vh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return p.jsx(Jh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return p.jsx(nf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return p.jsx(Xh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return p.jsx(qh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return p.jsx(Yh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return p.jsx(Kh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return p.jsx(Qh,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return p.jsx(ef,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return p.jsx(tf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return p.jsx(af,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return p.jsx(sf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return p.jsx(uf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return p.jsx(of,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return p.jsx(lf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return p.jsx(cf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return p.jsx(df,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return p.jsx(rf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const hf=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Jn(e){if(!e)return"inherit";switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}return"inherit"}const ff=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),mf=k().regex(/^rgba?\([^\)]+\)$/i),gf=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),pf=oe("transparent"),kt=D([ff,mf,gf,pf]).nullable().optional(),bf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),vf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),xf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Sf=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),_f=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,kf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,wf=$({style:$({backgroundColor:kt,fontSize:g().min(0).optional().nullable(),fontFamily:hf,fontWeight:R(["bold","normal",...Sr]).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),buttonTextAlign:R(["left","center","right"]).optional().nullable(),padding:bf,margin:vf}).optional().nullable(),props:$({buttonBackground:kt,hoverBackground:kt,hoverTextColor:kt,borderRadius:Sf,borderWidth:xf,borderColor:kt,buttonTextColor:kt,fullWidth:L().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:R(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:R(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:R(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:R(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:R(["x-small","small","large","medium"]).optional().nullable(),text:k().optional().nullable(),url:k().optional().nullable(),action:R(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:L().optional().nullable(),customAction:k().optional().nullable(),actionPayload:Mt(k(),en()).optional().nullable(),iconEnabled:L().optional().nullable(),iconName:k().optional().nullable(),iconAlignment:R(["left","right"]).optional().nullable(),ariaLabel:k().optional().nullable(),goToStep:k().optional().nullable(),postMessageEvent:k().optional().nullable(),animation:an,boxShadow:Fn}).optional().nullable()});function mi(e){switch(e){case"x-small":return[4,8];case"small":return[8,12];case"large":return[16,32];case"medium":default:return[12,20]}}const be={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",buttonTextColor:"",buttonBackground:"",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:"",boxShadow:null};function $f({style:e,props:t}){const o=`bh-${G.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??be.text,i=(t==null?void 0:t.url)??be.url,a=(t==null?void 0:t.fullWidth)??be.fullWidth,l=(t==null?void 0:t.widthType)??be.widthType,s=(t==null?void 0:t.width)??be.width,c=(t==null?void 0:t.widthUnit)??be.widthUnit,u=(t==null?void 0:t.widthTablet)??null,m=(t==null?void 0:t.widthMobile)??null,d=u??s,h=m??d,f=(t==null?void 0:t.widthTypeTablet)??l,b=(t==null?void 0:t.widthTypeMobile)??f,v=(t==null?void 0:t.size)??be.size,S=(t==null?void 0:t.sizeTablet)??v,_=(t==null?void 0:t.sizeMobile)??S,C=l,x=s,w=(t==null?void 0:t.buttonTextColor)??be.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??be.buttonBackground,A=(t==null?void 0:t.iconEnabled)??be.iconEnabled,y=(t==null?void 0:t.iconName)??be.iconName,I=(t==null?void 0:t.iconAlignment)??be.iconAlignment,M=(t==null?void 0:t.ariaLabel)??null,P=typeof r=="string"&&r.trim().length>0,z=M&&M.trim().length>0?M:!P&&A&&y?y:void 0,H=(t==null?void 0:t.action)??be.action,T=(t==null?void 0:t.openInNewTab)??be.openInNewTab,B=((t==null?void 0:t.customAction)??be.customAction)||H,U=(t==null?void 0:t.actionPayload)??be.actionPayload,q=(t==null?void 0:t.goToStep)??be.goToStep,J=(t==null?void 0:t.postMessageEvent)??be.postMessageEvent,me=U||(B==="goToStep"?{goToStep:q||""}:null)||(B==="postMessageEvent"?{postMessageEvent:J||""}:null),ae=me?JSON.stringify(me):void 0,ne=(t==null?void 0:t.borderRadius)??be.borderRadius,Z=(t==null?void 0:t.borderWidth)??be.borderWidth,ie=(t==null?void 0:t.borderColor)??be.borderColor,Se=(t==null?void 0:t.boxShadow)??be.boxShadow,se=Gn(Se),de=(t==null?void 0:t.hoverBackground)??null,F=(t==null?void 0:t.hoverTextColor)??null,ee=mi(v),W=we=>typeof we=="number"?`${we}px`:`${we.topLeft}px ${we.topRight}px ${we.bottomRight}px ${we.bottomLeft}px`,X=(we,it)=>{if(typeof we=="number")return`${Math.max(0,we-it)}px`;const Vn=Math.max(0,(we.topLeft||0)-it),qn=Math.max(0,(we.topRight||0)-it),St=Math.max(0,(we.bottomRight||0)-it),_t=Math.max(0,(we.bottomLeft||0)-it);return`${Vn}px ${qn}px ${St}px ${_t}px`},ke=ie&&(ie.includes("linear-gradient")||ie.includes("radial-gradient")||ie.includes("repeating-linear-gradient")),Q=Z&&((Z.top??0)>0||(Z.right??0)>0||(Z.bottom??0)>0||(Z.left??0)>0),te={top:(Z==null?void 0:Z.top)??0,right:(Z==null?void 0:Z.right)??0,bottom:(Z==null?void 0:Z.bottom)??0,left:(Z==null?void 0:Z.left)??0},Ie=(()=>{if(a)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${x}${c}`;case"fit":default:return"auto"}})(),Me=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",nt=Me==="center"?"center":Me==="right"?"flex-end":"flex-start",ft=()=>!ie||ie==="transparent"||!Q?{border:"none"}:ke?{borderTop:`${te.top}px solid transparent`,borderRight:`${te.right}px solid transparent`,borderBottom:`${te.bottom}px solid transparent`,borderLeft:`${te.left}px solid transparent`,borderImage:`${ie} `,borderRadius:"0px"}:{borderTop:`${te.top}px solid ${ie}`,borderRight:`${te.right}px solid ${ie}`,borderBottom:`${te.bottom}px solid ${ie}`,borderLeft:`${te.left}px solid ${ie}`},Ae=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),_e=w&&(w.includes("linear-gradient")||w.includes("radial-gradient")||w.includes("repeating-linear-gradient")),re=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),he={backgroundColor:re?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:re?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:_f(e==null?void 0:e.padding),margin:kf(e==null?void 0:e.margin)},Ee=ft(),Ye=_e?{backgroundImage:w,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:w||void 0},ot=_e?"transparent":Ae?void 0:N,rt=_e?void 0:Ae?N:void 0,Y=(e==null?void 0:e.fontSize)??16,Ke=`${Y}px`,Fe={fontSize:Ke,fontFamily:Jn(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Yt.REGULAR,backgroundColor:ot,backgroundImage:rt,borderRadius:ke?"0px":W(ne),...Ee,...ke&&Q?{}:se,display:Ie==="100%"?"block":"inline-block",width:Ie,padding:`${ee[0]}px ${ee[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:nt,lineHeight:"normal"},Wn=ke&&Q?p.jsx("div",{style:{display:Ie==="100%"?"block":"inline-block",padding:`${te.top}px ${te.right}px ${te.bottom}px ${te.left}px`,background:ie,borderRadius:W(ne),width:Ie,boxSizing:"border-box",...se},children:p.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:X(ne,Math.max(te.top,te.right,te.bottom,te.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Yt.REGULAR,fontFamily:Jn(e==null?void 0:e.fontFamily),backgroundImage:rt??(Ae?N:"#fffff"),backgroundColor:ot??(Ae?"#ffffff":N),textAlign:Me,textDecoration:"none",fontSize:Ke,padding:`${ee[0]}px ${ee[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":B,"data-action-payload":ae,"data-goto-step":B==="goToStep"&&q?q:void 0,"data-post-message-event":B==="postMessageEvent"&&J?J:void 0,type:"button","aria-label":z,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},"data-action":B,children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null]})}):p.jsxs("button",{style:{cursor:"pointer",...Ee,...se,borderRadius:W(ne),width:Ie,fontWeight:(e==null?void 0:e.fontWeight)??Yt.REGULAR,fontFamily:Jn(e==null?void 0:e.fontFamily),backgroundColor:ot??(Ae?"":N),backgroundImage:rt??(Ae?N:""),textAlign:Me,textDecoration:"none",fontSize:Ke,padding:`${ee[0]}px ${ee[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":B,"data-action-payload":ae,"data-goto-step":B==="goToStep"&&q?q:void 0,"data-post-message-event":B==="postMessageEvent"&&J?J:void 0,type:"button","aria-label":z,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},"data-action":B,children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":B,children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null]}),mt=[];de&&mt.push(`background-color: ${de} !important; background-image: none !important;`),F&&mt.push(`color: ${F} !important;`);const dn=mt.length>0?`#${o} a:hover, #${o} button:hover { ${mt.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${F?`color: ${F} !important; -webkit-text-fill-color: ${F} !important;`:""} }`:null,Tr=(we,it,Vn,qn)=>{const St=[],_t=a||it==="fill"?"100%":it==="fixed"?`${Vn}${c}`:"auto";St.push(`width: ${_t} !important;`,"max-width: 100% !important;"),St.push(`display: ${_t==="100%"?"block":"inline-block"} !important;`);const[zr,Wl]=mi(qn);return St.push(`padding: ${zr}px ${Wl}px !important;`),`${we} { #${o} a, #${o} button { ${St.join(" ")} } #${o} > div { width: ${_t} !important; max-width: 100% !important; display: ${_t==="100%"?"block":"inline-block"} !important; } }`},Or=f!==l||S!==v||f==="fixed"&&d!==s,Lr=b!==l||_!==v||b==="fixed"&&h!==s,hn=Or||Lr?[Or?Tr(qe,f,d,S):"",Lr?Tr(Be,b,h,_):""].filter(Boolean).join(`
65
+ `):null;if(H!=="link")return p.jsxs("div",{id:o,className:"button-block",style:he,children:[dn&&p.jsx("style",{children:dn}),hn&&p.jsx("style",{children:hn}),Wn]});const Zl=ke&&Q?p.jsx("div",{style:{display:Ie==="100%"?"block":"inline-block",padding:`${te.top}px ${te.right}px ${te.bottom}px ${te.left}px`,background:ie,borderRadius:W(ne),width:Ie,boxSizing:"border-box",...se},children:p.jsxs("a",{href:i,style:{...Fe,border:"none",borderRadius:X(ne,Math.max(te.top,te.right,te.bottom,te.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:nt},target:T?"_blank":void 0,rel:T?"noopener noreferrer":void 0,"aria-label":z,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null]})}):p.jsxs("a",{href:i,style:{...Fe,borderRadius:W(ne),display:"inline-flex",alignItems:"center",justifyContent:nt},target:T?"_blank":void 0,rel:T?"noopener noreferrer":void 0,"aria-label":z,children:[A&&y&&I==="left"?p.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null,p.jsx("span",{style:{...Ye,pointerEvents:"none"},children:r}),A&&y&&I==="right"?p.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:at(y,{strokeColor:_e?void 0:w,fontSize:Y})}):null]});return p.jsxs("div",{id:o,className:"button-block",style:he,children:[dn&&p.jsx("style",{children:dn}),hn&&p.jsx("style",{children:hn}),Zl]})}const Cf=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Af=k().regex(/^rgba?\([^\)]+\)$/i),yf=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Nf=oe("transparent"),gi=D([Cf,Af,yf,Nf]).nullable().optional(),Ef=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Rf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),If=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Mf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Pf=$({style:$({backgroundColor:gi,padding:Ef,margin:Rf}).optional().nullable(),props:$({lineColor:gi,lineHeight:g().optional().nullable()}).optional().nullable()}),pi={lineHeight:1,lineColor:"#333333"};function Tf({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??pi.lineHeight,o=(t==null?void 0:t.lineColor)??pi.lineColor,r={padding:If(e==null?void 0:e.padding),margin:Mf(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return p.jsx("div",{className:"divider-block",style:r,children:p.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Of=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Lf=k().regex(/^rgba?\([^\)]+\)$/i),zf=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),jf=oe("transparent"),Xn=D([Of,Lf,zf,jf]).nullable().optional(),Bf=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Df=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ff=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Gf=R(["inherit","MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Uf(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const Zf=$({props:$({text:k().optional().nullable(),level:R(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:R(["text","link"]).optional().nullable(),url:k().optional().nullable(),openInNewTab:L().optional().nullable()}).optional().nullable(),style:$({color:Xn,textColor:Xn,backgroundColor:Xn,fontFamily:Gf,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:R(["bold","normal",...Sr]).optional().nullable(),fontStyle:R(["italic","normal"]).optional().nullable(),textDecoration:R(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),padding:Bf,margin:Df}).optional().nullable()}),Dt={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function Wf({props:e,style:t}){const n=(e==null?void 0:e.level)??Dt.level,o=(e==null?void 0:e.text)??Dt.text,r=(e==null?void 0:e.linkType)??Dt.linkType,i=(e==null?void 0:e.url)??Dt.url,a=(e==null?void 0:e.openInNewTab)??Dt.openInNewTab,l=r==="link"&&i,s=(t==null?void 0:t.fontSize)??Vf(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),u=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),m=t==null?void 0:t.lineClamp,d=m&&m>0?{display:"-webkit-box",WebkitLineClamp:m,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},h={fontWeight:(t==null?void 0:t.fontWeight)??Yt.REGULAR,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:(t==null?void 0:t.textDecoration)??"none",margin:0,fontFamily:Uf(t==null?void 0:t.fontFamily),fontSize:s,...d},f=u?{backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:c??void 0},b=(t==null?void 0:t.backgroundColor)??void 0,v=typeof b=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(b),S={padding:Hf(t==null?void 0:t.padding),margin:Ff(t==null?void 0:t.margin),display:"block",width:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...v?{backgroundImage:b,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:b}},_=n,C=p.jsx(_,{className:"heading-block",style:h,children:p.jsx("span",{style:f,children:o})});return p.jsx("div",{className:"heading-block-wrapper",style:S,children:l?p.jsx("a",{href:i,target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!u&&c?c:void 0},children:C}):C})}function Vf(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 20;case"h4":return 18;case"h5":return 16;case"h6":return 14}}var qa="comm",Ya="rule",Ka="decl",qf="@import",Yf="@namespace",Kf="@keyframes",Jf="@layer",Xf=Math.abs,Kt=String.fromCharCode;function Ja(e){return e.trim()}function To(e,t,n){return e.replace(t,n)}function Et(e,t){return e.charCodeAt(t)|0}function Pt(e,t,n){return e.slice(t,n)}function Ve(e){return e.length}function Qf(e){return e.length}function bn(e,t){return t.push(e),e}var Un=1,Tt=1,Xa=0,Pe=0,xe=0,Lt="";function kr(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Un,column:Tt,length:a,return:"",siblings:l}}function em(){return xe}function tm(){return xe=Pe>0?Et(Lt,--Pe):0,Tt--,xe===10&&(Tt=1,Un--),xe}function De(){return xe=Pe<Xa?Et(Lt,Pe++):0,Tt++,xe===10&&(Tt=1,Un++),xe}function ct(){return Et(Lt,Pe)}function wn(){return Pe}function Zn(e,t){return Pt(Lt,e,t)}function tn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function nm(e){return Un=Tt=1,Xa=Ve(Lt=e),Pe=0,[]}function om(e){return Lt="",e}function Qn(e){return Ja(Zn(Pe-1,Oo(e===91?e+2:e===40?e+1:e)))}function rm(e){for(;(xe=ct())&&xe<33;)De();return tn(e)>2||tn(xe)>3?"":" "}function im(e,t){for(;--t&&De()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Zn(e,wn()+(t<6&&ct()==32&&De()==32))}function Oo(e){for(;De();)switch(xe){case e:return Pe;case 34:case 39:e!==34&&e!==39&&Oo(xe);break;case 40:e===41&&Oo(e);break;case 92:De();break}return Pe}function am(e,t){for(;De()&&e+xe!==57;)if(e+xe===84&&ct()===47)break;return"/*"+Zn(t,Pe-1)+"*"+Kt(e===47?e:De())}function lm(e){for(;!tn(ct());)De();return Zn(e,Pe)}function sm(e){return om($n("",null,null,null,[""],e=nm(e),0,[0],e))}function $n(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,m=a,d=0,h=0,f=0,b=1,v=1,S=1,_=0,C=0,x="",w=r,N=i,A=o,y=x;v;)switch(f=C,C=De()){case 40:f!=108&&Et(y,m-1)==58?(_++,y+="("):y+=Qn(C);break;case 41:_--,y+=")";break;case 34:case 39:case 91:y+=Qn(C);break;case 9:case 10:case 13:case 32:if(_>0){y+=Kt(C);break}y+=rm(f);break;case 92:y+=im(wn()-1,7);continue;case 47:switch(ct()){case 42:case 47:bn(cm(am(De(),wn()),t,n,s),s),(tn(f||1)==5||tn(ct()||1)==5)&&Ve(y)&&Pt(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*b:l[c++]=Ve(y)*S;case 125*b:case 59:case 0:if(_>0&&C){y+=Kt(C);break}switch(C){case 0:case 125:v=0;case 59+u:S==-1&&(y=To(y,/\f/g,"")),h>0&&(Ve(y)-m||b===0)&&bn(h>32?vi(y+";",o,n,m-1,s):vi(To(y," ","")+";",o,n,m-2,s),s);break;case 59:y+=";";default:if(bn(A=bi(y,t,n,c,u,r,l,x,w=[],N=[],m,i),i),C===123)if(u===0)$n(y,t,A,A,w,i,m,l,N);else{switch(d){case 99:if(Et(y,3)===110)break;case 108:if(Et(y,2)===97)break;default:u=0;case 100:case 109:case 115:}u?$n(e,A,A,o&&bn(bi(e,A,A,0,0,r,l,x,r,w=[],m,N),N),r,N,m,l,o?w:N):$n(y,A,A,A,[""],N,0,l,N)}}c=u=h=0,b=S=1,x=y="",m=a;break;case 58:m=1+Ve(y),h=f;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&tm()==125)continue}switch(y+=Kt(C),C*b){case 38:S=u>0?1:(y+="\f",-1);break;case 44:if(_>0)break;l[c++]=(Ve(y)-1)*S,S=1;break;case 64:ct()===45&&(y+=Qn(De())),d=ct(),u=m=Ve(x=y+=lm(wn())),C++;break;case 45:f===45&&Ve(y)==2&&(b=0)}}return i}function bi(e,t,n,o,r,i,a,l,s,c,u,m){for(var d=r-1,h=r===0?i:[""],f=Qf(h),b=0,v=0,S=0;b<o;++b)for(var _=0,C=Pt(e,d+1,d=Xf(v=a[b])),x=e;_<f;++_)(x=Ja(v>0?h[_]+" "+C:To(C,/&\f/g,h[_])))&&(s[S++]=x);return kr(e,t,n,r===0?Ya:l,s,c,u,m)}function cm(e,t,n,o){return kr(e,t,n,qa,Kt(em()),Pt(e,2,-2),0,o)}function vi(e,t,n,o,r){return kr(e,t,n,Ka,Pt(e,0,o),Pt(e,o+1,-1),o,r)}function Lo(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function um(e,t,n,o){switch(e.type){case Jf:if(e.children.length)break;case qf:case Yf:case Ka:return e.return=e.return||e.value;case qa:return"";case Kf:return e.return=e.value+"{"+Lo(e.children,o)+"}";case Ya:if(!Ve(e.value=e.props.join(",")))return""}return Ve(n=Lo(e.children,o))?e.return=e.value+"{"+n+"}":""}const dm=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),hm=k().regex(/^rgba?\([^\)]+\)$/i),fm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),mm=oe("transparent"),xi=D([dm,hm,fm,mm]).nullable().optional(),gm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),pm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,vm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,xm=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Sm(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const _m=$({style:$({color:xi,backgroundColor:xi,fontFamily:xm,fontSize:g().min(0).optional().nullable(),textAlign:R(["left","right","center"]).optional().nullable(),padding:gm,margin:pm}).optional().nullable(),props:$({contents:k().optional().nullable()}).optional().nullable()}),km=/<style[^>]*>([\s\S]*?)<\/style>/gi;function wm(e,t){let n="";const o=e.replace(km,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=Lo(sm(`[${t}]{${n}}`),um);return{markup:o,css:r}}function $m({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=G.useState(!1),a=`data-html-scope-${G.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=G.useMemo(()=>n?wm(n,a):{markup:"",css:""},[n,a]),c={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:Sm(e==null?void 0:e.fontFamily),fontSize:(e==null?void 0:e.fontSize)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:bm(e==null?void 0:e.padding),margin:vm(e==null?void 0:e.margin)},u=G.useRef(null);G.useEffect(()=>{const f=u.current;if(!f)return;f.querySelectorAll("iframe").forEach(v=>{try{v.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const m=f=>{o||r(!0)},d=()=>{r(!1)};if(!n)return p.jsx("div",{ref:u,className:"html-block",style:c});const h=s?`<style>${s}</style>${l}`:l;return p.jsx("div",{ref:u,className:"html-block",style:c,onClick:m,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:h}})}const wr=$({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:R(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable(),Cm=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Am=k().regex(/^rgba?\([^\)]+\)$/i),ym=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Nm=oe("transparent"),Em=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Rm=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),eo=D([Cm,Am,ym,Nm]).nullable().optional(),Im=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Mm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Pm(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Tm(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const Om=$({style:$({padding:Em,backgroundColor:eo.default(null),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({width:g().optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),height:g().optional().nullable(),heightTablet:g().positive().optional().nullable(),heightMobile:g().positive().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),url:k().optional().nullable(),urlTablet:k().optional().nullable(),urlMobile:k().optional().nullable(),alt:k().optional().nullable(),decorative:L().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),borderRadius:Rm,borderColor:eo.default(null),borderWidth:Im,rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),iconName:k().optional().nullable(),iconFillColor:eo.default(null),animation:an,hoverEffect:wr,boxShadow:Fn}).optional().nullable()}),$e={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"},boxShadow:null};let Lm=0;function zm({style:e,props:t}){const n=G.useMemo(()=>`ahd-img-${++Lm}`,[]),o=(e==null?void 0:e.textAlign)??void 0,r=o==="center"?"center":o==="right"?"flex-end":"flex-start",i={padding:Mm(e==null?void 0:e.padding),...Pm(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:r,width:"100%",boxSizing:"border-box"},a=(t==null?void 0:t.linkHref)??$e.linkHref,l=(t==null?void 0:t.widthType)??$e.widthType,s=(t==null?void 0:t.width)??$e.width,c=(t==null?void 0:t.widthUnit)??$e.widthUnit,u=(t==null?void 0:t.widthTablet)??null,m=(t==null?void 0:t.widthMobile)??null,d=u??s,h=m??d,f=(t==null?void 0:t.height)??$e.height,b=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,S=b??f,_=v??S,C=f,x=(t==null?void 0:t.url)??$e.url,w=(t==null?void 0:t.urlTablet)??null,N=(t==null?void 0:t.urlMobile)??null,A=!a&&((t==null?void 0:t.decorative)??$e.decorative),y=A?"":(t==null?void 0:t.alt)??$e.alt,I=A?{role:"presentation","aria-hidden":!0}:{},M=(t==null?void 0:t.contentAlignment)??$e.contentAlignment,P=(t==null?void 0:t.borderRadius)??$e.borderRadius,z=(t==null?void 0:t.borderColor)??$e.borderColor,H=(t==null?void 0:t.borderWidth)??$e.borderWidth,T=(t==null?void 0:t.boxShadow)??$e.boxShadow,O=Gn(T),B=(t==null?void 0:t.rotation)??$e.rotation,U=(t==null?void 0:t.rotationTablet)??null,q=(t==null?void 0:t.rotationMobile)??null,J=U??B,me=q??J,ae=re=>{const he=re*Math.PI/180,Ee=re%180!==0?1/(Math.abs(Math.cos(he))+Math.abs(Math.sin(he))):1;return`rotate(${re}deg) scale(${Ee})`},ne=B,Z=ne?{transform:ae(ne),transformOrigin:"center"}:{},Se=U!=null||q!=null?`
66
+ ${qe} { .${n} img, .${n} > div { transform: ${ae(J)} !important; transform-origin: center !important; } }
67
+ ${Be} { .${n} img, .${n} > div { transform: ${ae(me)} !important; transform-origin: center !important; } }
68
+ `.trim():null,se=Tm(z,H),de=re=>typeof re=="number"?`${re}px`:`${re.topLeft}px ${re.topRight}px ${re.bottomRight}px ${re.bottomLeft}px`,F=(re,he)=>{const Ee=Math.max((he==null?void 0:he.top)||0,(he==null?void 0:he.right)||0,(he==null?void 0:he.bottom)||0,(he==null?void 0:he.left)||0);if(typeof re=="number")return`${Math.max(0,re-Ee)}px`;const Bt=Math.max(0,(re.topLeft||0)-Ee),Ye=Math.max(0,(re.topRight||0)-Ee),ot=Math.max(0,(re.bottomRight||0)-Ee),rt=Math.max(0,(re.bottomLeft||0)-Ee);return`${Bt}px ${Ye}px ${ot}px ${rt}px`},W=(()=>{switch(l){case"fill":return"100%";case"fixed":return s;case"fit":default:return}})(),X=l==="fixed"?`${s}${c}`:void 0,ke=x,Q=l==="fixed"?`
69
69
  ${qe} { .${n} img { width: ${d}${c} !important; max-width: 100% !important; } }
70
- ${Re} { .${n} img { width: ${h}${c} !important; max-width: 100% !important; } }
71
- `.trim():null,ee=b!=null||v!=null?`
70
+ ${Be} { .${n} img { width: ${h}${c} !important; max-width: 100% !important; } }
71
+ `.trim():null,te=b!=null||v!=null?`
72
72
  ${qe} { .${n} img { height: ${S?`${S}px`:"auto"} !important; } }
73
- ${Re} { .${n} img { height: ${_?`${_}px`:"auto"} !important; } }
74
- `.trim():null,He=(t==null?void 0:t.hoverEffect)??ke.hoverEffect,Ne=He!=null&&He.enabled?`
73
+ ${Be} { .${n} img { height: ${_?`${_}px`:"auto"} !important; } }
74
+ `.trim():null,He=(t==null?void 0:t.hoverEffect)??$e.hoverEffect,Ie=He!=null&&He.enabled?`
75
75
  .${n} picture { display: inline-block; transition: transform ${He.duration??500}ms ${He.easing??"ease-in-out"}; }
76
76
  .${n}:hover picture { transform: scale(${He.scale??1.05}); }
77
- `.trim():null,Ee=[X,ee,ze,Ne].filter(Boolean).join(`
78
- `)||null,nt=L&&(L.includes("linear-gradient")||L.includes("radial-gradient")||L.includes("repeating-linear-gradient")),ft=(N||k)&&p.jsxs(p.Fragment,{children:[N&&p.jsx("source",{media:Re.replace("@media ",""),srcSet:N}),(k??N)&&p.jsx("source",{media:qe.replace("@media ",""),srcSet:k??N??x})]}),$e=p.jsxs("picture",{children:[ft,p.jsx("img",{alt:y,...I,src:_e,width:typeof U=="number"&&c==="px"?U:void 0,height:$!==null?$:void 0,style:{width:J??(U==="100%"?"100%":typeof U=="number"?`${U}${c}`:"auto"),height:$?`${$}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:M,display:l==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:P?ge(P):void 0}})]}),Se=nt?p.jsx("div",{style:{borderRadius:P?ge(P):void 0,...xe,...O,...K},children:p.jsxs("picture",{children:[ft,p.jsx("img",{alt:y,...I,src:_e,width:typeof U=="number"&&c==="px"?U:void 0,height:$!==null?$:void 0,style:{width:"100%",height:$?`${$}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:M,display:"block",maxWidth:J??(typeof U=="number"?`${U}${c}`:"auto"),boxSizing:"border-box",borderRadius:P?Z(P,H):void 0}})]})}):L?p.jsx("div",{style:{borderRadius:P?ge(P):void 0,...xe,...O,...K},children:$e}):O.boxShadow?p.jsx("div",{style:{borderRadius:P?ge(P):void 0,...O,...K},children:$e}):F.cloneElement($e,{children:F.Children.map($e.props.children,re=>(re==null?void 0:re.type)==="img"?F.cloneElement(re,{style:{...re.props.style,...K}}):re)});return a?p.jsxs("div",{className:`image-block ${n}`,style:i,children:[Ee&&p.jsx("style",{dangerouslySetInnerHTML:{__html:Ee}}),p.jsx("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:Se})]}):p.jsxs("div",{className:`image-block ${n}`,style:i,children:[Ee&&p.jsx("style",{dangerouslySetInnerHTML:{__html:Ee}}),Se]})}const Mm=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Tm=w().regex(/^rgba?\([^\)]+\)$/i),Om=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Lm=ne("transparent"),Dt=D([Mm,Tm,Om,Lm]).nullable().optional(),zm=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Bm=D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),jm=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Dm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Hm(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Fm(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}}const eo=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,Gm=C({style:C({padding:zm,backgroundColor:Dt.default(null),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({url:w().optional().nullable(),urlTablet:w().optional().nullable(),urlMobile:w().optional().nullable(),alt:w().optional().nullable(),decorative:z().optional().nullable(),showLink:z().optional().nullable(),linkHref:w().optional().nullable(),linkTarget:R(["_self","_blank"]).optional().nullable(),width:m().positive().optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),borderRadius:Bm,borderColor:Dt.default(null),borderWidth:jm,iconName:w().optional().nullable(),iconNameTablet:w().optional().nullable(),iconNameMobile:w().optional().nullable(),iconFillColor:Dt.default(null),iconFillColorTablet:Dt.default(null),iconFillColorMobile:Dt.default(null),animation:rn,boxShadow:Hn}).optional().nullable()}),Be={url:"",alt:"Logo",decorative:!1,showLink:!0,linkHref:"https://pagepilot.fabbuilder.com/",linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let Um=0;function Zm({style:e,props:t}){const n=(t==null?void 0:t.url)??Be.url,o=(t==null?void 0:t.urlTablet)??null,r=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.showLink)??Be.showLink,a=(t==null?void 0:t.linkHref)??Be.linkHref,l=i&&a?a:null,s=(t==null?void 0:t.linkTarget)??Be.linkTarget,c=!l&&((t==null?void 0:t.decorative)??Be.decorative),u=c?"":(t==null?void 0:t.alt)??Be.alt,g=c?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??Be.width,h=(t==null?void 0:t.widthTablet)??null,f=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??Be.borderRadius,v=(t==null?void 0:t.borderColor)??Be.borderColor,S=(t==null?void 0:t.borderWidth)??Be.borderWidth,_=(t==null?void 0:t.boxShadow)??Be.boxShadow,$=Fn(_),x=h??d,k=f??x,N=d,A=n,y=`ahd-logo-${++Um}`,I=`
77
+ `.trim():null,Me=[Q,te,Se,Ie].filter(Boolean).join(`
78
+ `)||null,nt=z&&(z.includes("linear-gradient")||z.includes("radial-gradient")||z.includes("repeating-linear-gradient")),ft=(N||w)&&p.jsxs(p.Fragment,{children:[N&&p.jsx("source",{media:Be.replace("@media ",""),srcSet:N}),(w??N)&&p.jsx("source",{media:qe.replace("@media ",""),srcSet:w??N??x})]}),Ae=p.jsxs("picture",{children:[ft,p.jsx("img",{alt:y,...I,src:ke,width:typeof W=="number"&&c==="px"?W:void 0,height:C!==null?C:void 0,style:{width:X??(W==="100%"?"100%":typeof W=="number"?`${W}${c}`:"auto"),height:C?`${C}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:M,display:l==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:P?de(P):void 0}})]}),_e=nt?p.jsx("div",{style:{borderRadius:P?de(P):void 0,...se,...O,...Z},children:p.jsxs("picture",{children:[ft,p.jsx("img",{alt:y,...I,src:ke,width:typeof W=="number"&&c==="px"?W:void 0,height:C!==null?C:void 0,style:{width:"100%",height:C?`${C}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:M,display:"block",maxWidth:X??(typeof W=="number"?`${W}${c}`:"auto"),boxSizing:"border-box",borderRadius:P?F(P,H):void 0}})]})}):z?p.jsx("div",{style:{borderRadius:P?de(P):void 0,...se,...O,...Z},children:Ae}):O.boxShadow?p.jsx("div",{style:{borderRadius:P?de(P):void 0,...O,...Z},children:Ae}):G.cloneElement(Ae,{children:G.Children.map(Ae.props.children,re=>(re==null?void 0:re.type)==="img"?G.cloneElement(re,{style:{...re.props.style,...Z}}):re)});return a?p.jsxs("div",{className:`image-block ${n}`,style:i,children:[Me&&p.jsx("style",{dangerouslySetInnerHTML:{__html:Me}}),p.jsx("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:_e})]}):p.jsxs("div",{className:`image-block ${n}`,style:i,children:[Me&&p.jsx("style",{dangerouslySetInnerHTML:{__html:Me}}),_e]})}const jm=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bm=k().regex(/^rgba?\([^\)]+\)$/i),Dm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Hm=oe("transparent"),Ht=D([jm,Bm,Dm,Hm]).nullable().optional(),Fm=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Gm=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Um=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Zm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Wm(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Vm(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}}const to=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,qm=$({style:$({padding:Fm,backgroundColor:Ht.default(null),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({url:k().optional().nullable(),urlTablet:k().optional().nullable(),urlMobile:k().optional().nullable(),alt:k().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:R(["_self","_blank"]).optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:Gm,borderColor:Ht.default(null),borderWidth:Um,iconName:k().optional().nullable(),iconNameTablet:k().optional().nullable(),iconNameMobile:k().optional().nullable(),iconFillColor:Ht.default(null),iconFillColorTablet:Ht.default(null),iconFillColorMobile:Ht.default(null),animation:an,boxShadow:Fn}).optional().nullable()}),je={url:"",alt:"Logo",decorative:!1,showLink:!0,linkHref:"https://pagepilot.fabbuilder.com/",linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let Ym=0;function Km({style:e,props:t}){const n=(t==null?void 0:t.url)??je.url,o=(t==null?void 0:t.urlTablet)??null,r=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.showLink)??je.showLink,a=(t==null?void 0:t.linkHref)??je.linkHref,l=i&&a?a:null,s=(t==null?void 0:t.linkTarget)??je.linkTarget,c=!l&&((t==null?void 0:t.decorative)??je.decorative),u=c?"":(t==null?void 0:t.alt)??je.alt,m=c?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??je.width,h=(t==null?void 0:t.widthTablet)??null,f=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??je.borderRadius,v=(t==null?void 0:t.borderColor)??je.borderColor,S=(t==null?void 0:t.borderWidth)??je.borderWidth,_=(t==null?void 0:t.boxShadow)??je.boxShadow,C=Gn(_),x=h??d,w=f??x,N=d,A=n,y=`ahd-logo-${++Ym}`,I=`
79
79
  ${qe} { .${y} img { width: ${x}px !important; max-width: 100% !important; } }
80
- ${Re} { .${y} img { width: ${k}px !important; max-width: 100% !important; } }
81
- `.trim(),M={padding:Dm(e==null?void 0:e.padding),...Hm(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},P={width:`${N}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?eo(b):void 0},L=p.jsxs("picture",{children:[r&&p.jsx("source",{media:Re.replace("@media ",""),srcSet:r}),o&&p.jsx("source",{media:qe.replace("@media ",""),srcSet:o}),p.jsx("img",{alt:u,...g,src:A,width:N,style:P})]}),H=v&&v!=="transparent"?p.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?eo(b):void 0,...Fm(v,S),...$},children:L}):$.boxShadow?p.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?eo(b):void 0,...$},children:L}):L;return l?p.jsxs("div",{className:`logo-block ${y}`,style:M,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),p.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":c?"Logo":u||"Logo",children:H})]}):p.jsxs("div",{className:`logo-block ${y}`,style:M,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),H]})}const Wm=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vm=w().regex(/^rgba?\([^\)]+\)$/i),qm=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ym=ne("transparent"),Km=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Jm=D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Xm=D([Wm,Vm,qm,Ym]).nullable().optional(),Qm=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),eg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function tg(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function ng(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const og=C({style:C({padding:Km,backgroundColor:w().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:D([m(),w()]).optional().nullable(),height:D([m(),w()]).optional().nullable(),widthTablet:D([m(),w()]).optional().nullable(),widthMobile:D([m(),w()]).optional().nullable(),heightTablet:D([m(),w()]).optional().nullable(),heightMobile:D([m(),w()]).optional().nullable(),url:w().optional().nullable(),alt:w().optional().nullable(),linkHref:w().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),name:w().optional().nullable(),borderRadius:Jm,borderColor:Xm.default(null),borderWidth:Qm}).optional().nullable()});function rg(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function ig(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="youtu.be"?`https://www.youtube.com/embed/${t.pathname.slice(1)}`:t.hostname.includes("youtube.com")&&t.searchParams.get("v")?`https://www.youtube.com/embed/${t.searchParams.get("v")}`:t.pathname.startsWith("/embed/")?e:null}catch{return null}}let ag=0;function lg({style:e,props:t}){const n=`ahd-video-${++ag}`,o=(e==null?void 0:e.textAlign)??"left",r={padding:eg(e==null?void 0:e.padding),...tg(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:rg(o),textAlign:o},i=(t==null?void 0:t.width)??"inherit",a=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,g=l??i,d=s??g,h=c??a,f=u??h,b=i,v=a,S=T=>T==null?void 0:typeof T=="number"?`${T}px`:T,_=`
82
- ${qe} { .${n} video, .${n} iframe { ${S(g)?`width: ${S(g)} !important;`:""} ${S(h)?`height: ${S(h)} !important;`:""} max-width: 100% !important; } }
83
- ${Re} { .${n} video, .${n} iframe { ${S(d)?`width: ${S(d)} !important;`:""} ${S(f)?`height: ${S(f)} !important;`:""} max-width: 100% !important; } }
84
- `.trim(),$=(t==null?void 0:t.linkHref)??null,x=(t==null?void 0:t.borderRadius)??0,k=T=>typeof T=="number"?`${T}px`:`${T.topLeft}px ${T.topRight}px ${T.bottomRight}px ${T.bottomLeft}px`,N=(T,O)=>{const B=Math.max((O==null?void 0:O.top)||0,(O==null?void 0:O.right)||0,(O==null?void 0:O.bottom)||0,(O==null?void 0:O.left)||0);if(typeof T=="number")return`${Math.max(0,T-B)}px`;const G=Math.max(0,(T.topLeft||0)-B),oe=Math.max(0,(T.topRight||0)-B),te=Math.max(0,(T.bottomRight||0)-B),me=Math.max(0,(T.bottomLeft||0)-B);return`${G}px ${oe}px ${te}px ${me}px`},A=(t==null?void 0:t.borderColor)??null,y=(t==null?void 0:t.borderWidth)??null,I=ng(A,y),M=A&&(A.includes("linear-gradient")||A.includes("radial-gradient")||A.includes("repeating-linear-gradient")),P=ig(t==null?void 0:t.url),L=P?p.jsx("iframe",{width:b,height:v,src:P,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:k(x)}},P):p.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??(t==null?void 0:t.name)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:k(x),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),H=M?p.jsx("div",{style:{borderRadius:x?k(x):void 0,...I},children:P?p.jsx("iframe",{width:b,height:v,src:P,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:N(x,y)}},P):p.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:N(x,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):A?p.jsx("div",{style:{borderRadius:x?k(x):void 0,...I},children:L}):L;return $?p.jsxs("div",{className:`video-block ${n}`,style:r,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("a",{href:$,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:H})]}):p.jsxs("div",{className:`video-block ${n}`,style:r,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),H]})}var sg=C({props:C({height:m().gte(0).optional().nullish()}).optional().nullable()}),cg={height:16};function ug({props:e}){var t;const n={height:(t=e==null?void 0:e.height)!=null?t:cg.height};return F.createElement("div",{style:n})}const dg=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function hg(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const fg=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),mg=w().regex(/^rgba?\([^\)]+\)$/i),gg=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),pg=ne("transparent"),pi=D([fg,mg,gg,pg]).nullable().optional(),bg=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),vg=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),xg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Sg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_g=C({style:C({color:pi,backgroundColor:pi,fontSize:m().gte(0).optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontFamily:dg,fontWeight:R(["bold","normal",...br]).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),padding:bg,margin:vg}).optional().nullable(),props:C({text:w().optional().nullable(),editorType:R(["summernote","quill"]).optional().nullable()}).optional().nullable()}),wg={text:""};function kg({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},r={color:(e==null?void 0:e.color)??void 0,background:(e==null?void 0:e.backgroundColor)??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:hg(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:xg(e==null?void 0:e.padding),margin:Sg(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word",...o},i=(t==null?void 0:t.text)??wg.text;return p.jsxs("div",{className:"text-block",style:r,children:[p.jsx("style",{children:".text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}"}),p.jsx("div",{dangerouslySetInnerHTML:{__html:i}})]})}const Cg=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),$g=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ag=C({style:C({padding:Cg,backgroundColor:w().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:m().optional().nullable(),height:m().optional().nullable(),widthTablet:D([m(),w()]).optional().nullable(),widthMobile:D([m(),w()]).optional().nullable(),heightTablet:D([m(),w()]).optional().nullable(),heightMobile:D([m(),w()]).optional().nullable(),url:w().optional().nullable(),alt:w().optional().nullable(),linkHref:w().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let yg=0;function Ng({style:e,props:t}){const n=`ahd-youtube-url-${++yg}`,o={padding:$g(e==null?void 0:e.padding),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0},r=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,a=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,g=l??i,d=s??g,h=c??a,f=u??h,b=i,v=a,S=x=>x==null?void 0:typeof x=="number"?`${x}px`:x,_=`
85
- ${qe} { .${n} video { ${S(g)?`width: ${S(g)} !important;`:""} ${S(h)?`height: ${S(h)} !important;`:""} max-width: 100% !important; } }
86
- ${Re} { .${n} video { ${S(d)?`width: ${S(d)} !important;`:""} ${S(f)?`height: ${S(f)} !important;`:""} max-width: 100% !important; } }
87
- `.trim(),$=p.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{width:b,height:v,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return r?p.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:$})]}):p.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),$]})}const Eg=["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","lineHeight","textAlign","buttonTextAlign","padding","margin","marginBottom","width","height","borderRadius","activeFontSize","showActiveBorder","tabGap","contentGap","starSize","starGap","itemGap","arrowSize","dotSize","slideGap","buttonSize","buttonGap","buttonRadius","controlGap","backgroundImage","backgroundSize","backgroundRepeat"],tt=C({tablet:Pt(w(),Qt()).optional().nullable(),mobile:Pt(w(),Qt()).optional().nullable()}).optional().nullable(),Rg=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ig=C({responsive:tt,style:C({padding:Rg,textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:w().optional().nullable(),width:w().optional().nullable(),height:w().optional().nullable(),title:w().optional().nullable(),allowFullscreen:z().optional().nullable()}).optional().nullable()}),Pg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Mg({style:e,props:t}){const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",r=t==null?void 0:t.height,i=!r||/^\s*(0|0px|100vh)\s*$/i.test(r)?"800px":r,a=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=F.useRef(null),c={padding:Pg(e==null?void 0:e.padding),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"},u={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?p.jsx("div",{className:"iframe-block",style:c,children:p.jsx("iframe",{ref:s,src:n,title:a,style:u,allowFullScreen:l})}):p.jsx("div",{className:"iframe-block",style:{...c,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const Tg=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Og=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Lg=C({responsive:tt,style:C({padding:Tg,margin:Og,textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:w().optional().nullable(),width:w().optional().nullable(),height:w().optional().nullable(),title:w().optional().nullable(),allowFullscreen:z().optional().nullable()}).optional().nullable()}),zg=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},Bg=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},jg=({props:e,style:t})=>{var u,g;const{src:n,width:o,height:r,title:i,allowFullscreen:a=!0}=e??{};if(!n)return p.jsx(p.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((g=t==null?void 0:t.margin)==null?void 0:g.right)??0),s=t??{},c={width:l>0?`calc(100% - ${l}px)`:"100%",padding:zg(s.padding),margin:Bg(s.margin),textAlign:s.textAlign||void 0};return p.jsx("div",{className:"calendly-block",style:c,children:p.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:a??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${r||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var Dg=Object.defineProperty,bi=Object.getOwnPropertySymbols,Hg=Object.prototype.hasOwnProperty,Fg=Object.prototype.propertyIsEnumerable,vi=(e,t,n)=>t in e?Dg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gg=(e,t)=>{for(var n in t||(t={}))Hg.call(t,n)&&vi(e,n,t[n]);if(bi)for(var n of bi(t))Fg.call(t,n)&&vi(e,n,t[n]);return e};function Ug(e){return function({type:n,data:o}){const r=e[n].Component;return F.createElement(r,Gg({},o))}}function Zg(e){const t=Object.keys(e).map(n=>C({type:ne(n),data:e[n].schema}));return hh("type",t).transform(n=>n)}const Wg=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vg=w().regex(/^rgba?\([^\)]+\)$/i),qg=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yg=ne("transparent"),Kg=D([Wg,Vg,qg,Yg]).nullable().optional(),Jg=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Xg=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),to=Ba([m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish()]).optional().nullable(),no=R(["fixed","fill","fit"]).optional().nullable(),Qg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ep=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,qa=C({style:C({backgroundColor:Kg,padding:Jg,margin:Xg}).optional().nullable(),props:C({widthType:no,widthTypeTablet:no,widthTypeMobile:no,fixedWidths:to,fixedWidthsTablet:to,fixedWidthsMobile:to,columnsCount:D([ne(2),ne(3),ne(4),ne(5)]).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),columnsDirection:R(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:R(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:R(["horizontal","vertical"]).optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:R(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:R(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),bt={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function xi(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
80
+ ${Be} { .${y} img { width: ${w}px !important; max-width: 100% !important; } }
81
+ `.trim(),M={padding:Zm(e==null?void 0:e.padding),...Wm(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},P={width:`${N}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?to(b):void 0},z=p.jsxs("picture",{children:[r&&p.jsx("source",{media:Be.replace("@media ",""),srcSet:r}),o&&p.jsx("source",{media:qe.replace("@media ",""),srcSet:o}),p.jsx("img",{alt:u,...m,src:A,width:N,style:P})]}),H=v&&v!=="transparent"?p.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?to(b):void 0,...Vm(v,S),...C},children:z}):C.boxShadow?p.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?to(b):void 0,...C},children:z}):z;return l?p.jsxs("div",{className:`logo-block ${y}`,style:M,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),p.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":c?"Logo":u||"Logo",children:H})]}):p.jsxs("div",{className:`logo-block ${y}`,style:M,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),H]})}const Jm=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Xm=k().regex(/^rgba?\([^\)]+\)$/i),Qm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),eg=oe("transparent"),tg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ng=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),og=D([Jm,Xm,Qm,eg]).nullable().optional(),rg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ig=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ag(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function lg(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const sg=$({style:$({padding:tg,backgroundColor:k().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({width:D([g(),k()]).optional().nullable(),height:D([g(),k()]).optional().nullable(),widthTablet:D([g(),k()]).optional().nullable(),widthMobile:D([g(),k()]).optional().nullable(),heightTablet:D([g(),k()]).optional().nullable(),heightMobile:D([g(),k()]).optional().nullable(),url:k().optional().nullable(),alt:k().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),name:k().optional().nullable(),borderRadius:ng,borderColor:og.default(null),borderWidth:rg}).optional().nullable()});function cg(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function ug(e){if(!e)return null;try{const t=new URL(e);return t.hostname==="youtu.be"?`https://www.youtube.com/embed/${t.pathname.slice(1)}`:t.hostname.includes("youtube.com")&&t.searchParams.get("v")?`https://www.youtube.com/embed/${t.searchParams.get("v")}`:t.pathname.startsWith("/embed/")?e:null}catch{return null}}let dg=0;function hg({style:e,props:t}){const n=`ahd-video-${++dg}`,o=(e==null?void 0:e.textAlign)??"left",r={padding:ig(e==null?void 0:e.padding),...ag(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:cg(o),textAlign:o},i=(t==null?void 0:t.width)??"inherit",a=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,m=l??i,d=s??m,h=c??a,f=u??h,b=i,v=a,S=T=>T==null?void 0:typeof T=="number"?`${T}px`:T,_=`
82
+ ${qe} { .${n} video, .${n} iframe { ${S(m)?`width: ${S(m)} !important;`:""} ${S(h)?`height: ${S(h)} !important;`:""} max-width: 100% !important; } }
83
+ ${Be} { .${n} video, .${n} iframe { ${S(d)?`width: ${S(d)} !important;`:""} ${S(f)?`height: ${S(f)} !important;`:""} max-width: 100% !important; } }
84
+ `.trim(),C=(t==null?void 0:t.linkHref)??null,x=(t==null?void 0:t.borderRadius)??0,w=T=>typeof T=="number"?`${T}px`:`${T.topLeft}px ${T.topRight}px ${T.bottomRight}px ${T.bottomLeft}px`,N=(T,O)=>{const B=Math.max((O==null?void 0:O.top)||0,(O==null?void 0:O.right)||0,(O==null?void 0:O.bottom)||0,(O==null?void 0:O.left)||0);if(typeof T=="number")return`${Math.max(0,T-B)}px`;const U=Math.max(0,(T.topLeft||0)-B),q=Math.max(0,(T.topRight||0)-B),J=Math.max(0,(T.bottomRight||0)-B),me=Math.max(0,(T.bottomLeft||0)-B);return`${U}px ${q}px ${J}px ${me}px`},A=(t==null?void 0:t.borderColor)??null,y=(t==null?void 0:t.borderWidth)??null,I=lg(A,y),M=A&&(A.includes("linear-gradient")||A.includes("radial-gradient")||A.includes("repeating-linear-gradient")),P=ug(t==null?void 0:t.url),z=P?p.jsx("iframe",{width:b,height:v,src:P,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:w(x)}},P):p.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??(t==null?void 0:t.name)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:w(x),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),H=M?p.jsx("div",{style:{borderRadius:x?w(x):void 0,...I},children:P?p.jsx("iframe",{width:b,height:v,src:P,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:N(x,y)}},P):p.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:N(x,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):A?p.jsx("div",{style:{borderRadius:x?w(x):void 0,...I},children:z}):z;return C?p.jsxs("div",{className:`video-block ${n}`,style:r,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:H})]}):p.jsxs("div",{className:`video-block ${n}`,style:r,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),H]})}var fg=$({props:$({height:g().gte(0).optional().nullish()}).optional().nullable()}),mg={height:16};function gg({props:e}){var t;const n={height:(t=e==null?void 0:e.height)!=null?t:mg.height};return G.createElement("div",{style:n})}const pg=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function bg(e){switch(e){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}const vg=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),xg=k().regex(/^rgba?\([^\)]+\)$/i),Sg=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_g=oe("transparent"),Si=D([vg,xg,Sg,_g]).nullable().optional(),kg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),wg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$g=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Cg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ag=$({style:$({color:Si,backgroundColor:Si,fontSize:g().gte(0).optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontFamily:pg,fontWeight:R(["bold","normal",...Sr]).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),padding:kg,margin:wg}).optional().nullable(),props:$({text:k().optional().nullable(),editorType:R(["summernote","quill"]).optional().nullable()}).optional().nullable()}),yg={text:""};function Ng({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},r={color:(e==null?void 0:e.color)??void 0,background:(e==null?void 0:e.backgroundColor)??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:bg(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:$g(e==null?void 0:e.padding),margin:Cg(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word",...o},i=(t==null?void 0:t.text)??yg.text;return p.jsxs("div",{className:"text-block",style:r,children:[p.jsx("style",{children:".text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}"}),p.jsx("div",{dangerouslySetInnerHTML:{__html:i}})]})}const Eg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Rg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ig=$({style:$({padding:Eg,backgroundColor:k().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:R(["center","left","right"]).optional().nullable()}).optional().nullable(),props:$({width:g().optional().nullable(),height:g().optional().nullable(),widthTablet:D([g(),k()]).optional().nullable(),widthMobile:D([g(),k()]).optional().nullable(),heightTablet:D([g(),k()]).optional().nullable(),heightMobile:D([g(),k()]).optional().nullable(),url:k().optional().nullable(),alt:k().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let Mg=0;function Pg({style:e,props:t}){const n=`ahd-youtube-url-${++Mg}`,o={padding:Rg(e==null?void 0:e.padding),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0},r=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,a=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,m=l??i,d=s??m,h=c??a,f=u??h,b=i,v=a,S=x=>x==null?void 0:typeof x=="number"?`${x}px`:x,_=`
85
+ ${qe} { .${n} video { ${S(m)?`width: ${S(m)} !important;`:""} ${S(h)?`height: ${S(h)} !important;`:""} max-width: 100% !important; } }
86
+ ${Be} { .${n} video { ${S(d)?`width: ${S(d)} !important;`:""} ${S(f)?`height: ${S(f)} !important;`:""} max-width: 100% !important; } }
87
+ `.trim(),C=p.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{width:b,height:v,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return r?p.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:C})]}):p.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[_&&p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),C]})}const tt=$({tablet:Mt(k(),en()).optional().nullable(),mobile:Mt(k(),en()).optional().nullable()}).optional().nullable(),Tg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Og=$({responsive:tt,style:$({padding:Tg,textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({src:k().optional().nullable(),width:k().optional().nullable(),height:k().optional().nullable(),title:k().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),Lg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function zg({style:e,props:t}){const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",r=t==null?void 0:t.height,i=!r||/^\s*(0|0px|100vh)\s*$/i.test(r)?"800px":r,a=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=G.useRef(null),c={padding:Lg(e==null?void 0:e.padding),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"},u={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?p.jsx("div",{className:"iframe-block",style:c,children:p.jsx("iframe",{ref:s,src:n,title:a,style:u,allowFullScreen:l})}):p.jsx("div",{className:"iframe-block",style:{...c,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const jg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Bg=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Dg=$({responsive:tt,style:$({padding:jg,margin:Bg,textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({src:k().optional().nullable(),width:k().optional().nullable(),height:k().optional().nullable(),title:k().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),Hg=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},Fg=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},Gg=({props:e,style:t})=>{var u,m;const{src:n,width:o,height:r,title:i,allowFullscreen:a=!0}=e??{};if(!n)return p.jsx(p.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((m=t==null?void 0:t.margin)==null?void 0:m.right)??0),s=t??{},c={width:l>0?`calc(100% - ${l}px)`:"100%",padding:Hg(s.padding),margin:Fg(s.margin),textAlign:s.textAlign||void 0};return p.jsx("div",{className:"calendly-block",style:c,children:p.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:a??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${r||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var Ug=Object.defineProperty,_i=Object.getOwnPropertySymbols,Zg=Object.prototype.hasOwnProperty,Wg=Object.prototype.propertyIsEnumerable,ki=(e,t,n)=>t in e?Ug(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vg=(e,t)=>{for(var n in t||(t={}))Zg.call(t,n)&&ki(e,n,t[n]);if(_i)for(var n of _i(t))Wg.call(t,n)&&ki(e,n,t[n]);return e};function qg(e){return function({type:n,data:o}){const r=e[n].Component;return G.createElement(r,Vg({},o))}}function Yg(e){const t=Object.keys(e).map(n=>$({type:oe(n),data:e[n].schema}));return bh("type",t).transform(n=>n)}const Kg=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Jg=k().regex(/^rgba?\([^\)]+\)$/i),Xg=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Qg=oe("transparent"),ep=D([Kg,Jg,Xg,Qg]).nullable().optional(),tp=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),np=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),no=Ua([g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish()]).optional().nullable(),oo=R(["fixed","fill","fit"]).optional().nullable(),op=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qa=$({style:$({backgroundColor:ep,padding:tp,margin:np}).optional().nullable(),props:$({widthType:oo,widthTypeTablet:oo,widthTypeMobile:oo,fixedWidths:no,fixedWidthsTablet:no,fixedWidthsMobile:no,columnsCount:D([oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),columnsDirection:R(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:R(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:R(["horizontal","vertical"]).optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:R(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:R(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),bt={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function wi(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
88
88
  ${e} table { table-layout: auto !important; }
89
89
  ${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
90
- ${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function Si(e){return`${e} table { display: table !important; table-layout: fixed !important; }
90
+ ${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function $i(e){return`${e} table { display: table !important; table-layout: fixed !important; }
91
91
  ${e} tbody { display: table-row-group !important; }
92
92
  ${e} tr { display: table-row !important; width: auto !important; }
93
93
  ${e} td { display: table-cell !important; width: auto !important; }
94
- ${e} td + td { margin-top: 0 !important; }`}function _i(e,t,n,o,r,i){const a=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,c=l===0?0:n/2,u=l===t-1?0:n/2,g=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];o==="fixed"&&(r==null?void 0:r[l])!=null?g.push(`width: ${r[l]}px !important`):g.push("width: auto !important"),a.push(`${s} { ${g.join("; ")}; }`)}return a.join(`
95
- `)}function tp(e,t){const n=`.${e}.columns-container`,o=(r,i)=>!i&&r?`${n} td { vertical-align: ${r} !important; }`:"";return`
96
- @media (max-width: ${Me}px) {
94
+ ${e} td + td { margin-top: 0 !important; }`}function Ci(e,t,n,o,r,i){const a=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,c=l===0?0:n/2,u=l===t-1?0:n/2,m=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];o==="fixed"&&(r==null?void 0:r[l])!=null?m.push(`width: ${r[l]}px !important`):m.push("width: auto !important"),a.push(`${s} { ${m.join("; ")}; }`)}return a.join(`
95
+ `)}function ip(e,t){const n=`.${e}.columns-container`,o=(r,i)=>!i&&r?`${n} td { vertical-align: ${r} !important; }`:"";return`
96
+ @media (max-width: ${Re}px) {
97
97
  ${n} { --columns-gap: ${t.tabletGap}px; }
98
- ${t.tabletVertical?xi(n):Si(n)}
99
- ${t.tabletVertical?"":_i(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
98
+ ${t.tabletVertical?wi(n):$i(n)}
99
+ ${t.tabletVertical?"":Ci(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
100
100
  ${o(t.tabletAlign,t.tabletVertical)}
101
101
  }
102
- @media (max-width: ${De}px) {
102
+ @media (max-width: ${Ne}px) {
103
103
  ${n} { --columns-gap: ${t.mobileGap}px; }
104
- ${t.mobileVertical?xi(n):Si(n)}
105
- ${t.mobileVertical?"":_i(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
104
+ ${t.mobileVertical?wi(n):$i(n)}
105
+ ${t.mobileVertical?"":Ci(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
106
106
  ${o(t.mobileAlign,t.mobileVertical)}
107
107
  }
108
- `.trim()}let np=0;function op({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??bt.widthType,r=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??r,a=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??a,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??bt.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,g=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??bt.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,f=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??bt.contentAlignment,v=(n==null?void 0:n.contentAlignmentTablet)??b,S=(n==null?void 0:n.contentAlignmentMobile)??v,_=(n==null?void 0:n.columnsCount)??bt.columnsCount,$=o,x=a,k=c,N=d,y={widthType:$,columnsCount:_,columnsGap:k,columnsDirection:N,contentAlignment:b,fixedWidths:x},I=N==="vertical",M=F.useMemo(()=>`ahd-cc-${np+=1}`,[]),P=tp(M,{tabletVertical:h==="vertical",mobileVertical:f==="vertical",columnsCount:_,tabletGap:u,mobileGap:g,tabletWidthType:r,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:v,mobileAlign:S}),L={background:(e==null?void 0:e.backgroundColor)??void 0,padding:Qg(e==null?void 0:e.padding),margin:ep(e==null?void 0:e.margin),"--columns-gap":`${k}px`};return p.jsxs("div",{className:`columns-container ${M}${I?" is-stacked":""}`,style:L,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),p.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:I||$==="fit"?"auto":"fixed",borderCollapse:"collapse",...I?{display:"block",width:"100%"}:{}},children:p.jsx("tbody",{style:{width:"100%",...I?{display:"block"}:{}},children:p.jsxs("tr",{style:{width:"100%",...I?{display:"block"}:{}},children:[p.jsx(Ht,{index:0,props:y,columns:t}),p.jsx(Ht,{index:1,props:y,columns:t}),p.jsx(Ht,{index:2,props:y,columns:t}),p.jsx(Ht,{index:3,props:y,columns:t}),p.jsx(Ht,{index:4,props:y,columns:t})]})})})]})}function Ht({index:e,props:t,columns:n}){var g;const o=(t==null?void 0:t.columnsCount)??bt.columnsCount;if(e>=o)return null;const r=t.columnsDirection==="vertical",i=r?0:rp(e,t),a=r?0:ip(e,t),l=(g=t.fixedWidths)==null?void 0:g[e],s={boxSizing:r?"border-box":"content-box",verticalAlign:r?"top":(t==null?void 0:t.contentAlignment)??bt.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:a?`${a}px`:0,width:t.widthType==="fixed"&&!r&&l!=null?`${l}px`:void 0,...r?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},c=(n==null?void 0:n[e])??null,u=t.widthType==="fixed"&&l!=null?l:void 0;return p.jsx("td",{style:s,width:u,children:c})}function rp(e,{columnsGap:t}){return e===0?0:t/2}function ip(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const ap=qa.shape.props.unwrap().unwrap().shape,lp=qa.shape.style.unwrap().unwrap().shape,sp=C({style:C({...lp,borderRadius:D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:w().optional().nullable(),borderWidth:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:C({...ap,columns:Ba([C({childrenIds:W(w())}),C({childrenIds:W(w())}),C({childrenIds:W(w())})])}).optional().nullable()});function cp(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function up({style:e,props:t}){const{columns:n,...o}=t??{};let r;n&&(r=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(h=>p.jsx(be,{id:h},h))));const{borderRadius:i,borderColor:a,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=cp(i)),a){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=a,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!a,g=p.jsx(op,{props:o,columns:r,style:s});return u?p.jsx("div",{style:c,children:g}):p.jsx(p.Fragment,{children:g})}const dp=C({style:C({backgroundColor:w().optional().nullable(),padding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:w().optional().nullable(),borderWidth:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:C({columnsCount:m().int().min(2).optional().nullable(),columnsGap:m().optional().nullable(),wrap:z().optional().nullable(),desktopLayout:R(["wrap","row"]).optional().nullable(),mobileLayout:R(["wrap","row"]).optional().nullable(),tabletLayout:R(["wrap","row"]).optional().nullable(),columnShrink:W(z()).optional().nullable(),columnShrinkTablet:W(z()).optional().nullable(),columnShrinkMobile:W(z()).optional().nullable(),equalColumns:z().optional().nullable(),columns:W(C({childrenIds:W(w())})).optional().nullable(),align:R(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:R(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:z().optional().nullable(),repeatableEnabled:z().optional().nullable()}).optional().nullable()});function hp(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function fp(e){var r,i;const t=e??{},n=(((r=t.margin)==null?void 0:r.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const a=t.padding;o.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.margin){const a=t.margin;o.margin=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.borderRadius!=null&&(o.borderRadius=hp(t.borderRadius),o.overflow="hidden"),t.borderColor){const a=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}return o}function oo(e,t,n){const o=e??{},r=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??r,a=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u={desktop:{layout:r,shrink:l},tablet:{layout:i,shrink:s},mobile:{layout:a,shrink:c}}[t];return{layout:u.layout,shrink:Array.from({length:n},(g,d)=>u.shrink[d]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function mp(e){switch(e){case"shrink":return"flex: 0 0 auto; width: auto;";case"equal":return"flex: 1 1 0; width: 0;";default:return"flex: 1 1 auto; width: auto;"}}function gp(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function ro(e,t,n,o){const{layout:r,reverseColumns:i}=n,a=g=>g.map(d=>`${t}:nth-child(${d+1})`).join(", "),l=Array.from({length:o},(g,d)=>d);if(r==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; }`,`${a(l)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
109
- `);const c=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; }`],u=new Map;for(const g of l){const d=gp(g,n);u.set(d,[...u.get(d)??[],g])}for(const[g,d]of u)c.push(`${a(d)} { ${mp(g)} max-width: 100%; }`);return c.join(`
110
- `)}function pp(e,t){const{columnsCount:n,desktop:o,tablet:r,mobile:i}=t,a=`.${e}.flex-columns-block > .fc-row`,l=`${a} > .fc-col`,s=[`${a} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; }`,`${l} > * { max-width: 100%; }`,`${l} img { max-width: 100%; height: auto; }`].join(`
108
+ `.trim()}let ap=0;function lp({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??bt.widthType,r=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??r,a=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??a,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??bt.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,m=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??bt.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,f=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??bt.contentAlignment,v=(n==null?void 0:n.contentAlignmentTablet)??b,S=(n==null?void 0:n.contentAlignmentMobile)??v,_=(n==null?void 0:n.columnsCount)??bt.columnsCount,C=o,x=a,w=c,N=d,y={widthType:C,columnsCount:_,columnsGap:w,columnsDirection:N,contentAlignment:b,fixedWidths:x},I=N==="vertical",M=G.useMemo(()=>`ahd-cc-${ap+=1}`,[]),P=ip(M,{tabletVertical:h==="vertical",mobileVertical:f==="vertical",columnsCount:_,tabletGap:u,mobileGap:m,tabletWidthType:r,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:v,mobileAlign:S}),z={background:(e==null?void 0:e.backgroundColor)??void 0,padding:op(e==null?void 0:e.padding),margin:rp(e==null?void 0:e.margin),"--columns-gap":`${w}px`};return p.jsxs("div",{className:`columns-container ${M}${I?" is-stacked":""}`,style:z,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),p.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:I||C==="fit"?"auto":"fixed",borderCollapse:"collapse",...I?{display:"block",width:"100%"}:{}},children:p.jsx("tbody",{style:{width:"100%",...I?{display:"block"}:{}},children:p.jsxs("tr",{style:{width:"100%",...I?{display:"block"}:{}},children:[p.jsx(Ft,{index:0,props:y,columns:t}),p.jsx(Ft,{index:1,props:y,columns:t}),p.jsx(Ft,{index:2,props:y,columns:t}),p.jsx(Ft,{index:3,props:y,columns:t}),p.jsx(Ft,{index:4,props:y,columns:t})]})})})]})}function Ft({index:e,props:t,columns:n}){var m;const o=(t==null?void 0:t.columnsCount)??bt.columnsCount;if(e>=o)return null;const r=t.columnsDirection==="vertical",i=r?0:sp(e,t),a=r?0:cp(e,t),l=(m=t.fixedWidths)==null?void 0:m[e],s={boxSizing:r?"border-box":"content-box",verticalAlign:r?"top":(t==null?void 0:t.contentAlignment)??bt.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:a?`${a}px`:0,width:t.widthType==="fixed"&&!r&&l!=null?`${l}px`:void 0,...r?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},c=(n==null?void 0:n[e])??null,u=t.widthType==="fixed"&&l!=null?l:void 0;return p.jsx("td",{style:s,width:u,children:c})}function sp(e,{columnsGap:t}){return e===0?0:t/2}function cp(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const up=Qa.shape.props.unwrap().unwrap().shape,dp=Qa.shape.style.unwrap().unwrap().shape,hp=$({style:$({...dp,borderRadius:D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:k().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({...up,columns:Ua([$({childrenIds:V(k())}),$({childrenIds:V(k())}),$({childrenIds:V(k())})])}).optional().nullable()});function fp(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function mp({style:e,props:t}){const{columns:n,...o}=t??{};let r;n&&(r=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(h=>p.jsx(ve,{id:h},h))));const{borderRadius:i,borderColor:a,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=fp(i)),a){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=a,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!a,m=p.jsx(lp,{props:o,columns:r,style:s});return u?p.jsx("div",{style:c,children:m}):p.jsx(p.Fragment,{children:m})}const gp=$({style:$({backgroundColor:k().optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:k().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({columnsCount:g().int().min(2).optional().nullable(),columnsGap:g().optional().nullable(),wrap:L().optional().nullable(),desktopLayout:R(["wrap","row"]).optional().nullable(),mobileLayout:R(["wrap","row"]).optional().nullable(),tabletLayout:R(["wrap","row"]).optional().nullable(),columnShrink:V(L()).optional().nullable(),columnShrinkTablet:V(L()).optional().nullable(),columnShrinkMobile:V(L()).optional().nullable(),equalColumns:L().optional().nullable(),columns:V($({childrenIds:V(k())})).optional().nullable(),align:R(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:R(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:L().optional().nullable(),repeatableEnabled:L().optional().nullable()}).optional().nullable()});function pp(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function bp(e){var r,i;const t=e??{},n=(((r=t.margin)==null?void 0:r.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const a=t.padding;o.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.margin){const a=t.margin;o.margin=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.borderRadius!=null&&(o.borderRadius=pp(t.borderRadius),o.overflow="hidden"),t.borderColor){const a=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}return o}function ro(e,t,n){const o=e??{},r=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??r,a=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u={desktop:{layout:r,shrink:l},tablet:{layout:i,shrink:s},mobile:{layout:a,shrink:c}}[t];return{layout:u.layout,shrink:Array.from({length:n},(m,d)=>u.shrink[d]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function vp(e){switch(e){case"shrink":return"flex: 0 0 auto; width: auto;";case"equal":return"flex: 1 1 0; width: 0;";default:return"flex: 1 1 auto; width: auto;"}}function xp(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function io(e,t,n,o){const{layout:r,reverseColumns:i}=n,a=m=>m.map(d=>`${t}:nth-child(${d+1})`).join(", "),l=Array.from({length:o},(m,d)=>d);if(r==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; }`,`${a(l)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
109
+ `);const c=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; }`],u=new Map;for(const m of l){const d=xp(m,n);u.set(d,[...u.get(d)??[],m])}for(const[m,d]of u)c.push(`${a(d)} { ${vp(m)} max-width: 100%; }`);return c.join(`
110
+ `)}function Sp(e,t){const{columnsCount:n,desktop:o,tablet:r,mobile:i}=t,a=`.${e}.flex-columns-block > .fc-row`,l=`${a} > .fc-col`,s=[`${a} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; }`,`${l} > * { max-width: 100%; }`,`${l} img { max-width: 100%; height: auto; }`].join(`
111
111
  `),u=[o,r,i].some(d=>d.shrink.some(Boolean))?[o,r,i].flatMap(d=>d.shrink.map((h,f)=>h?f:-1).filter(h=>h>=0)).filter((d,h,f)=>f.indexOf(d)===h).map(d=>{const h=`${l}:nth-child(${d+1})`;return`${h} > *, ${h} .container-block { width: auto; max-width: 100%; }`}).join(`
112
- `):"",g=(d,h)=>`@media (max-width: ${d}px) {
112
+ `):"",m=(d,h)=>`@media (max-width: ${d}px) {
113
113
  ${h}
114
114
  }
115
115
  @container ahd-page (max-width: ${d}px) {
116
116
  ${h}
117
- }`;return[s,u,ro(a,l,o,n),g(Me,ro(a,l,r,n)),g(De,ro(a,l,i,n))].filter(Boolean).join(`
118
- `)}let bp=0;function vp({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsGap)??16,r=(t==null?void 0:t.align)??"flex-start",i=(t==null?void 0:t.justify)??"flex-start",a=(t==null?void 0:t.columns)??[],l=Array.from({length:n},(g,d)=>a[d]??{childrenIds:[]}),s=F.useMemo(()=>`ahd-fc-${bp+=1}`,[]),c=pp(s,{columnsCount:n,desktop:oo(t,"desktop",n),tablet:oo(t,"tablet",n),mobile:oo(t,"mobile",n)}),u={gap:`${o}px`,alignItems:r,justifyContent:i};return p.jsxs("div",{className:`flex-columns-block ${s}`,style:fp(e),"data-cols":n,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:c}}),p.jsx("div",{className:"fc-row",style:u,children:l.map((g,d)=>p.jsx("div",{className:"fc-col",children:g.childrenIds.map(h=>p.jsx(be,{id:h},h))},d))})]})}const xp=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Sp=w().regex(/^rgba?\([^\)]+\)$/i),_p=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),wp=ne("transparent"),kp=D([xp,Sp,_p,wp]).nullable().optional(),Cp=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),$p=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ap=C({style:C({backgroundColor:kp,padding:Cp,margin:$p}).optional().nullable(),props:C({columnsCount:m().int().min(1).optional().nullable(),columnsCountTablet:m().int().min(1).optional().nullable(),columnsCountMobile:m().int().min(1).optional().nullable(),rowsCount:m().int().min(1).optional().nullable(),columnsGap:m().optional().nullable(),rowsGap:m().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),yp=Ap.shape.props.unwrap().unwrap().shape,Np=C({backgroundColor:w().optional().nullable(),padding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:w().optional().nullable(),borderWidth:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),Ep=C({style:Np,props:C({...yp,cells:W(C({childrenIds:W(w()),colStart:m().int().min(1).optional().nullable(),colSpan:m().int().min(1).optional().nullable(),rowStart:m().int().min(1).optional().nullable(),rowSpan:m().int().min(1).optional().nullable()})),columnsCountTablet:D([ne(1),ne(2),ne(3),ne(4),ne(5)]).optional().nullable(),columnsCountMobile:D([ne(1),ne(2),ne(3),ne(4),ne(5)]).optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:R(["left","center","right"]).optional().nullable()}).optional().nullable()}),Rp={top:"flex-start",middle:"center",bottom:"flex-end"},Ip={left:"flex-start",center:"center",right:"flex-end"};let Pp=0;function Mp({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsCountTablet)??n,r=(t==null?void 0:t.columnsCountMobile)??1,i=(t==null?void 0:t.rowsCount)??2,a=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",c=(t==null?void 0:t.horizontalAlignment)??"left",u=(t==null?void 0:t.cells)??[],d=u.some(y=>(y==null?void 0:y.colStart)!=null||(y==null?void 0:y.rowStart)!=null||(y==null?void 0:y.colSpan)!=null||(y==null?void 0:y.rowSpan)!=null)?u.length:n*i,h=F.useMemo(()=>`ahd-grid-${Pp+=1}`,[]),f=Array.from({length:d},(y,I)=>u[I]??{childrenIds:[]}),b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,S=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),_=S>0?`calc(100% - ${S}px)`:"100%",$={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,width:_,maxWidth:"100%"},x=e==null?void 0:e.borderRadius;if(x!=null&&($.borderRadius=typeof x=="number"?`${x}px`:`${x.topLeft}px ${x.topRight}px ${x.bottomRight}px ${x.bottomLeft}px`,$.overflow="hidden"),e!=null&&e.borderColor){const y=e.borderWidth??{top:1,right:1,bottom:1,left:1};$.borderStyle="solid",$.borderColor=e.borderColor,$.borderWidth=`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`}const k={display:"grid",columnGap:`${a}px`,rowGap:`${l}px`,alignItems:Rp[s]??"center",justifyContent:Ip[c]??"flex-start",width:"100%",boxSizing:"border-box"},N=`
117
+ }`;return[s,u,io(a,l,o,n),m(Re,io(a,l,r,n)),m(Ne,io(a,l,i,n))].filter(Boolean).join(`
118
+ `)}let _p=0;function kp({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsGap)??16,r=(t==null?void 0:t.align)??"flex-start",i=(t==null?void 0:t.justify)??"flex-start",a=(t==null?void 0:t.columns)??[],l=Array.from({length:n},(m,d)=>a[d]??{childrenIds:[]}),s=G.useMemo(()=>`ahd-fc-${_p+=1}`,[]),c=Sp(s,{columnsCount:n,desktop:ro(t,"desktop",n),tablet:ro(t,"tablet",n),mobile:ro(t,"mobile",n)}),u={gap:`${o}px`,alignItems:r,justifyContent:i};return p.jsxs("div",{className:`flex-columns-block ${s}`,style:bp(e),"data-cols":n,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:c}}),p.jsx("div",{className:"fc-row",style:u,children:l.map((m,d)=>p.jsx("div",{className:"fc-col",children:m.childrenIds.map(h=>p.jsx(ve,{id:h},h))},d))})]})}const wp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$p=k().regex(/^rgba?\([^\)]+\)$/i),Cp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ap=oe("transparent"),yp=D([wp,$p,Cp,Ap]).nullable().optional(),Np=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ep=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Rp=$({style:$({backgroundColor:yp,padding:Np,margin:Ep}).optional().nullable(),props:$({columnsCount:g().int().min(1).optional().nullable(),columnsCountTablet:g().int().min(1).optional().nullable(),columnsCountMobile:g().int().min(1).optional().nullable(),rowsCount:g().int().min(1).optional().nullable(),columnsGap:g().optional().nullable(),rowsGap:g().optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),Ip=Rp.shape.props.unwrap().unwrap().shape,Mp=$({backgroundColor:k().optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:k().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),Pp=$({style:Mp,props:$({...Ip,cells:V($({childrenIds:V(k()),colStart:g().int().min(1).optional().nullable(),colSpan:g().int().min(1).optional().nullable(),rowStart:g().int().min(1).optional().nullable(),rowSpan:g().int().min(1).optional().nullable()})),columnsCountTablet:D([oe(1),oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),columnsCountMobile:D([oe(1),oe(2),oe(3),oe(4),oe(5)]).optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:R(["left","center","right"]).optional().nullable()}).optional().nullable()}),Tp={top:"flex-start",middle:"center",bottom:"flex-end"},Op={left:"flex-start",center:"center",right:"flex-end"};let Lp=0;function zp({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsCountTablet)??n,r=(t==null?void 0:t.columnsCountMobile)??1,i=(t==null?void 0:t.rowsCount)??2,a=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",c=(t==null?void 0:t.horizontalAlignment)??"left",u=(t==null?void 0:t.cells)??[],d=u.some(y=>(y==null?void 0:y.colStart)!=null||(y==null?void 0:y.rowStart)!=null||(y==null?void 0:y.colSpan)!=null||(y==null?void 0:y.rowSpan)!=null)?u.length:n*i,h=G.useMemo(()=>`ahd-grid-${Lp+=1}`,[]),f=Array.from({length:d},(y,I)=>u[I]??{childrenIds:[]}),b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,S=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),_=S>0?`calc(100% - ${S}px)`:"100%",C={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,width:_,maxWidth:"100%"},x=e==null?void 0:e.borderRadius;if(x!=null&&(C.borderRadius=typeof x=="number"?`${x}px`:`${x.topLeft}px ${x.topRight}px ${x.bottomRight}px ${x.bottomLeft}px`,C.overflow="hidden"),e!=null&&e.borderColor){const y=e.borderWidth??{top:1,right:1,bottom:1,left:1};C.borderStyle="solid",C.borderColor=e.borderColor,C.borderWidth=`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`}const w={display:"grid",columnGap:`${a}px`,rowGap:`${l}px`,alignItems:Tp[s]??"center",justifyContent:Op[c]??"flex-start",width:"100%",boxSizing:"border-box"},N=`
119
119
  .${h} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
120
- @media (max-width: ${Me}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
121
- @media (max-width: ${De}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }`.trim(),A=y=>{const I={minWidth:0,boxSizing:"border-box"};return y.colStart!=null&&y.colSpan!=null&&(I.gridColumn=`${y.colStart} / span ${y.colSpan}`),y.rowStart!=null&&y.rowSpan!=null&&(I.gridRow=`${y.rowStart} / span ${y.rowSpan}`),I};return p.jsxs("div",{className:`grid-block ${h}`,style:$,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:N}}),p.jsx("div",{className:"grid-block-inner",style:k,children:f.map((y,I)=>p.jsx("div",{className:"grid-cell",style:A(y),children:y.childrenIds.map(M=>p.jsx(be,{id:M},M))},I))})]})}const Tp=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Op=w().regex(/^rgba?\([^\)]+\)$/i),Lp=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),zp=ne("transparent"),wi=D([Tp,Op,Lp,zp]).nullable().optional(),Bp=w().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),jp=w().regex(/^(none|auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Dp=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Hp=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Fp=D([m(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Gp=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ki=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ci=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Up(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Zp(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}function Wp(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const o=Math.max(0,(e.topLeft||0)-n),r=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),a=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${r}px ${i}px ${a}px`}const Vp=C({style:C({backgroundColor:wi,backgroundImage:Bp,backgroundSize:jp,backgroundRepeat:R(["repeat","no-repeat"]).optional().nullable(),borderColor:wi,borderRadius:Fp,padding:Dp,margin:Hp,borderWidth:Gp,boxShadow:Hn}).optional().nullable(),props:C({fullWidth:z().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:R(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:R(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:m().min(0).optional().nullable(),heightMobile:m().min(0).optional().nullable(),overflow:z().optional().nullable(),alignment:R(["left","center","right"]).optional().nullable(),alignmentTablet:R(["left","center","right"]).optional().nullable(),alignmentMobile:R(["left","center","right"]).optional().nullable(),tag:R(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:w().optional().nullable(),elementId:w().optional().nullable(),showLink:z().optional().nullable(),linkHref:w().optional().nullable(),linkTarget:R(["_self","_blank"]).optional().nullable(),hoverEffect:xr}).optional().nullable()}),kt={fullWidth:!1,widthType:"fit",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let qp=0;function Yp({style:e,props:t,children:n}){const o=Ha(),r=(t==null?void 0:t.fullWidth)??kt.fullWidth,i=(t==null?void 0:t.widthType)??kt.widthType,a=(t==null?void 0:t.widthTypeTablet)??null,l=(t==null?void 0:t.widthTypeMobile)??null,s=a??i,c=l??s,u=(t==null?void 0:t.width)??kt.width,g=(t==null?void 0:t.widthUnit)??kt.widthUnit,d=(t==null?void 0:t.widthTablet)??null,h=(t==null?void 0:t.widthMobile)??null,f=d??u,b=h??f,v=(t==null?void 0:t.height)??null,S=(t==null?void 0:t.heightTablet)??null,_=(t==null?void 0:t.heightMobile)??null,$=S??v,x=_??$,k=(t==null?void 0:t.overflow)===!0;(t==null?void 0:t.alignment)??kt.alignment;const N=(t==null?void 0:t.alignmentTablet)??null,A=(t==null?void 0:t.alignmentMobile)??null,y=(t==null?void 0:t.ariaLabel)??void 0,I=(t==null?void 0:t.elementId)??void 0,M=!!(t!=null&&t.showLink),P=(t==null?void 0:t.linkHref)??null,L=typeof P=="string"?P.trim():P,H=M&&typeof L=="string"&&L.length>0,T=(t==null?void 0:t.linkTarget)??"_blank",O=H?"a":(t==null?void 0:t.tag)??"div",B=H?{href:L,target:T,...T==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},G=(V,Ke,Fe=!1)=>{if(Fe&&r)return"100%";switch(V){case"fill":return"100%";case"fixed":return`${Ke}${g}`;case"fit":default:return"auto"}},oe=V=>((V==null?void 0:V.left)??0)+((V==null?void 0:V.right)??0),te=(V,Ke)=>{const Fe=oe(Ke);return Fe<=0?V:V==="100%"?`calc(100% - ${Fe}px)`:V},me=i,ae=u,Y=v,K=G(me,ae,o==="desktop"),ce=te(K,e==null?void 0:e.margin),ze=a!=null||l!=null||d!=null||h!=null||S!=null||_!=null||N!=null||A!=null,xe=(t==null?void 0:t.hoverEffect)??kt.hoverEffect,ge=!!(xe!=null&&xe.enabled),Z=ze||ge?`ahd-cb-${++qp}`:"",Q=ze?`
122
- ${qe} { .${Z} { width: ${te(G(s,f),e==null?void 0:e.margin)} !important; ${$!=null?`height: ${$}px !important;`:""} max-width: 100% !important; } }
123
- ${Re} { .${Z} { width: ${te(G(c,b),e==null?void 0:e.margin)} !important; ${x!=null?`height: ${x}px !important;`:""} max-width: 100% !important; } }
124
- `.trim():null,U=ge?`
125
- .${Z} { transition: transform ${xe.duration??500}ms ${xe.easing??"ease-in-out"}; }
126
- .${Z}:hover { transform: scale(${xe.scale??1.05}); }
127
- `.trim():null,J=[Q,U].filter(Boolean).join(`
128
- `)||null,_e=Fn(e==null?void 0:e.boxShadow),X=V=>{if(V!=null)return typeof V=="number"?`${V}px`:`${V.topLeft}px ${V.topRight}px ${V.bottomRight}px ${V.bottomLeft}px`},ee=(e==null?void 0:e.borderColor)??null,He=(e==null?void 0:e.borderWidth)??null,Ne=Zp(ee,He),Ee=Up((e==null?void 0:e.backgroundColor)??""),nt=(e==null?void 0:e.backgroundSize)==="none",ft=!nt&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,$e=nt?void 0:(e==null?void 0:e.backgroundSize)??void 0,Se=(e==null?void 0:e.backgroundRepeat)??"no-repeat",re=ee&&(ee.includes("linear-gradient")||ee.includes("radial-gradient")||ee.includes("repeating-linear-gradient")),ue=Y!=null,ye=ue?{"--ahd-cb-h":`${Y}px`}:{},Bt=ue?" container-block-has-height":"";if(re){const V={...Ne,borderRadius:X(e==null?void 0:e.borderRadius),width:ce,maxWidth:"100%",height:ue?`${Y}px`:void 0,boxSizing:"border-box",margin:Ci(e==null?void 0:e.margin),..._e,...ye},Ke={...Ee,backgroundImage:ft,backgroundSize:$e,backgroundRepeat:Se,borderRadius:Wp((e==null?void 0:e.borderRadius)??0,He),overflow:k?"auto":"hidden",padding:ki(e==null?void 0:e.padding),width:"100%",height:ue?"100%":void 0,boxSizing:"border-box"},Fe=`container-block${k?" container-block-overflow":""}${Bt}${Z?` ${Z}`:""}`,Zn=`container-block-inner${k?" container-block-overflow":""}`,mt=H?{...V,...B.style}:V;return n?p.jsxs(p.Fragment,{children:[J&&p.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),p.jsx(O,{className:Fe,"aria-label":y,id:I,...B,style:mt,children:p.jsx("div",{className:Zn,style:Ke,children:n})})]}):p.jsxs(p.Fragment,{children:[J&&p.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),p.jsx(O,{className:Fe,"aria-label":y,id:I,...B,style:mt})]})}const Ye={...Ee,backgroundImage:ft,backgroundSize:$e,backgroundRepeat:Se,...Ne,borderRadius:X(e==null?void 0:e.borderRadius),padding:ki(e==null?void 0:e.padding),margin:Ci(e==null?void 0:e.margin),width:ce,maxWidth:"100%",height:ue?`${Y}px`:void 0,overflow:k?"auto":void 0,boxSizing:"border-box",..._e,...ye},ot=`container-block${k?" container-block-overflow":""}${Bt}${Z?` ${Z}`:""}`,rt=H?{...Ye,...B.style}:Ye;return n?p.jsxs(p.Fragment,{children:[J&&p.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),p.jsx(O,{className:ot,"aria-label":y,id:I,...B,style:rt,children:n})]}):p.jsxs(p.Fragment,{children:[J&&p.jsx("style",{dangerouslySetInnerHTML:{__html:J}}),p.jsx(O,{className:ot,"aria-label":y,id:I,...B,style:rt})]})}const Kp=C({style:Vp.shape.style,responsive:tt,props:C({childrenIds:W(w()).optional().nullable(),fullWidth:z().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:R(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:R(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:m().min(0).optional().nullable(),heightMobile:m().min(0).optional().nullable(),overflow:z().optional().nullable(),alignment:R(["left","center","right"]).optional().nullable(),alignmentTablet:R(["left","center","right"]).optional().nullable(),alignmentMobile:R(["left","center","right"]).optional().nullable(),tag:R(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:w().optional().nullable(),elementId:w().optional().nullable(),showLink:z().optional().nullable(),linkHref:w().optional().nullable(),linkTarget:R(["_self","_blank"]).optional().nullable(),animation:rn,hoverEffect:xr}).optional().nullable()});function Jp({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return p.jsx(Yp,{style:e,props:{fullWidth:(t==null?void 0:t.fullWidth)??void 0,widthType:(t==null?void 0:t.widthType)??void 0,widthTypeTablet:(t==null?void 0:t.widthTypeTablet)??void 0,widthTypeMobile:(t==null?void 0:t.widthTypeMobile)??void 0,width:(t==null?void 0:t.width)??void 0,widthUnit:(t==null?void 0:t.widthUnit)??void 0,widthTablet:(t==null?void 0:t.widthTablet)??void 0,widthMobile:(t==null?void 0:t.widthMobile)??void 0,height:(t==null?void 0:t.height)??void 0,heightTablet:(t==null?void 0:t.heightTablet)??void 0,heightMobile:(t==null?void 0:t.heightMobile)??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:n.map(o=>p.jsx(be,{id:o},o))})}const Xp=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Qp=w().regex(/^rgba?\([^\)]+\)$/i),eb=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),tb=ne("transparent"),At=D([Xp,Qp,eb,tb]).nullable().optional(),nb=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional(),ob=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),io=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ao=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),rb=w().regex(/^(auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),ib=C({color:At,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:z().default(!1)}).partial().optional().nullable(),ab=C({position:R(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:z().optional().default(!0),selector:w().optional().default(""),showCloseIcon:z().optional(),iconCloseColor:At,closeIconPosition:R(["left","center","right"]).optional(),closeIconPaddingTop:m().optional(),closeIconPaddingLeft:m().optional(),closeIconPaddingRight:m().optional(),bannerSubType:w().optional()}).passthrough().optional().nullable(),lb=W(C({id:w(),name:w(),type:w().optional().default("text"),value:w().optional()})).optional().nullable(),sb=C({formFields:lb,backdropColor:At.default(null),borderColor:At.default(null),borderRadius:m().optional().nullable(),canvasColor:At.default(null),textColor:At,fontFamily:nb,childrenIds:W(w()).optional().nullable(),maxWidth:w().default(""),maxHeight:w().default(""),top:w().default(""),left:w().default(""),padding:io,margin:ao,maxWidthTablet:w().optional().nullable(),maxWidthMobile:w().optional().nullable(),maxHeightTablet:w().optional().nullable(),maxHeightMobile:w().optional().nullable(),paddingTablet:io,paddingMobile:io,marginTablet:ao,marginMobile:ao,borderWidth:ob,boxShadow:ib,behaviour:ab,linkHref:w().optional().default(""),backgroundImage:w().default("").nullable().optional(),backgroundSize:rb,backgroundRepeat:R(["repeat","no-repeat"]).optional().nullable()});function Ct(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function vn(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return Ct(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return Ct(i)?i:Ct(r)?r:null;const a=o[`${t}Mobile`];return Ct(a)?a:Ct(i)?i:Ct(r)?r:null}function lo(e,t){return{maxWidth:vn(e,"maxWidth",t)??null,maxHeight:vn(e,"maxHeight",t)??null,padding:vn(e,"padding",t)??null,margin:vn(e,"margin",t)??null}}function cb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function ub(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function so(e,t){const n=[];return t.maxWidth&&(n.push(`${e.width}{width:${t.maxWidth};max-width:100%;}`),n.push(`${e.table}{max-width:${t.maxWidth};min-width:0;}`)),t.maxHeight&&n.push(`${e.table}{height:${t.maxHeight};}`),t.padding&&n.push(`${e.padding}{padding:${cb(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${ub(t.margin)};}`),n.join("")}function db(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=lo(t,"desktop"),a=so(r,{...i,maxWidth:i.maxWidth??n??null}),l=so(r,lo(t,"tablet")),s=so(r,lo(t,"mobile")),c=(u,g)=>g?`@media (max-width:${u}px){${g}}@container ahd-page (max-width:${u}px){${g}}`:"";return[a,c(Me,l),c(De,s)].filter(Boolean).join("")}const hb="Made with Page Pilot",fb="https://pagepilot.fabbuilder.com";let mb=0;function gb(e){switch(e??"MODERN_SANS"){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function pb(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,a=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?a(i):void 0};if(r){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?a(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?a(i):void 0}}function bb(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function $i(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=bb(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function vb(e,t,n){return n==="appBanner"&&t?{backgroundColor:"transparent"}:!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function xb(e){switch(e){case"top":return"bottom";case"top-left":return"bottom-right";case"top-right":return"bottom-left";case"bottom":return"top";case"bottom-left":return"top-right";case"bottom-right":return"top-left";case"left":return"right";case"right":return"left";default:return e}}function Sb(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function _b(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Sb(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function wb({position:e,color:t}){const r="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},a="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:a};break;case"top-left":u={top:-8,left:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,width:16,height:8,clipPath:a};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return p.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function kb({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return p.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[p.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),p.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Cb(){return p.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:p.jsx("a",{href:fb,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:hb})})}function $b(e){var te,me,ae,Y,K,ce,ze,xe,ge,Z,Q,U,J,_e;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=n.includes("app-banner"),i=n.includes("demo"),a=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],g=r&&(((te=e.behaviour)==null?void 0:te.bannerSubType)==="floater"||u.includes((me=e.behaviour)==null?void 0:me.position)),d=r&&((ae=e.behaviour)==null?void 0:ae.bannerSubType)==="modal",h=(c||g||d)&&((Y=e.behaviour)==null?void 0:Y.showCloseIcon)!==!1,b=c&&!0,v=r&&e.linkHref?e.linkHref:null,S=F.useMemo(()=>`ahd-layout-${mb+=1}`,[]),$=db(S,e,o==="page"||a?"100%":r&&!g?"900px":"320px"),x=(r||i)&&!!e.backgroundImage;e.borderRadius;const k=e.borderRadius??0,N=X=>typeof X=="number"?`${X}px`:`${X.topLeft}px ${X.topRight}px ${X.bottomRight}px ${X.bottomLeft}px`,y=(X=>X==null?!1:typeof X=="number"?X>0:(X.topLeft??0)>0||(X.topRight??0)>0||(X.bottomRight??0)>0||(X.bottomLeft??0)>0)(k),I=X=>v?p.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:X}):X,M=pb(e),P=r&&!!((K=e.boxShadow)!=null&&K.color)&&!!e.boxShadow.inset,L=r&&!P?$i(e.boxShadow):{},H=P?$i(e.boxShadow):{},T=xb(((ce=e.behaviour)==null?void 0:ce.position)??"right"),O=c&&!g&&!d&&((ze=e.behaviour)==null?void 0:ze.isCaret)!==!1,B=_b(e.canvasColor,T),G=(((xe=e.margin)==null?void 0:xe.left)??0)+(((ge=e.margin)==null?void 0:ge.right)??0),oe=G>0?`calc(100% - ${G}px)`:"100%";return I(p.jsxs("div",{className:S,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[$&&p.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),p.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:gb(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:p.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...d||g?null:{maxWidth:"100%"}},children:[O&&p.jsx(wb,{position:T,color:B}),p.jsxs("div",{style:{position:"relative",borderRadius:N(k),overflow:y?"hidden":"visible",...L},children:[P&&p.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:N(k),zIndex:1,...H}}),h&&p.jsx(kb,{color:(Z=e.behaviour)==null?void 0:Z.iconCloseColor,position:(Q=e.behaviour)==null?void 0:Q.closeIconPosition,paddingTop:(U=e.behaviour)==null?void 0:U.closeIconPaddingTop,paddingLeft:(J=e.behaviour)==null?void 0:J.closeIconPaddingLeft,paddingRight:(_e=e.behaviour)==null?void 0:_e.closeIconPaddingRight}),p.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:oe,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...d||g?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...vb(e.canvasColor,e.backgroundImage,r?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...M,borderRadius:N(k),overflow:y?"clip":"visible",...x?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:p.jsx("tbody",{children:p.jsx("tr",{style:{width:"100%"},children:p.jsxs("td",{className:"email-layout-content",children:[t.map(X=>p.jsx(be,{id:X},X)),b&&p.jsx(Cb,{})]})})})})]})]})})]}))}const Ab=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),yb=w().regex(/^rgba?\([^\)]+\)$/i),Nb=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Eb=ne("transparent"),xn=D([Ab,yb,Nb,Eb]).nullable().optional(),Rb=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ib=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Pb=R(["left","center","right"]).optional().nullable(),In={min:1,max:20},Pn={min:4,max:48},Ya=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Mb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ft=(e,t,n)=>Math.min(Math.max(e,t),n),Ai=e=>e?Ya(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Ob=C({style:C({backgroundColor:xn,textAlign:Pb,padding:Rb,margin:Ib}).optional().nullable(),props:C({stepperType:R(["dots","numeric","both"]).optional().nullable(),totalDots:m().min(In.min).max(In.max).optional().nullable(),activeIndex:m().min(1).optional().nullable(),activeColor:xn,inactiveColor:xn,dotSize:m().min(Pn.min).max(Pn.max).optional().nullable(),dotSpacing:m().min(0).max(40).optional().nullable(),numericColor:xn,numericFontSize:m().min(8).max(48).optional().nullable(),numericPosition:R(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),Ge={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Lb({style:e,props:t}){const o=Ha()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=Ft((t==null?void 0:t.totalDots)??Ge.totalDots,In.min,In.max),l=Ft((t==null?void 0:t.dotSize)??Ge.dotSize,Pn.min,Pn.max),s=Ft((t==null?void 0:t.dotSpacing)??Ge.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??Ge.activeIndex,u=Ft(c,1,a),g=(t==null?void 0:t.activeColor)??Ge.activeColor,d=(t==null?void 0:t.inactiveColor)??Ge.inactiveColor,h=(t==null?void 0:t.stepperType)??Ge.stepperType,f=h==="numeric"||h==="both",b=h==="dots"||h==="both",v=(t==null?void 0:t.numericColor)??Ge.numericColor,S=Ft((t==null?void 0:t.numericFontSize)??Ge.numericFontSize,8,48),_=(t==null?void 0:t.numericPosition)??Ge.numericPosition,x={...Ai((e==null?void 0:e.backgroundColor)??void 0),padding:Mb(e==null?void 0:e.padding,i),margin:Tb(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},k=f&&b&&(_==="above"||_==="below"),N={display:"inline-flex",flexDirection:k?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:k?"8px":b?`${s}px`:"0px"},A={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},y=`${u}/${a}`,I=Ya(v),M={fontSize:`${S}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...I?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},P=()=>f?p.jsx("span",{style:M,children:y}):null,L=()=>p.jsx("div",{style:A,"aria-hidden":"true",children:Array.from({length:a}).map((H,T)=>{const O=T===u-1,B={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:O?"scale(1.1)":"scale(1)",...Ai(O?g:d)};return p.jsx("span",{style:B,"data-active":O?"true":"false"},T)})});return p.jsx("div",{className:"stepper-block",style:x,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:p.jsxs("div",{style:N,children:[f&&_==="above"&&P(),f&&_==="left"&&P(),b&&L(),f&&_==="right"&&P(),f&&_==="below"&&P()]})})}const zb=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bb=w().regex(/^rgba?\([^\)]+\)$/i),jb=ne("transparent"),co=D([zb,Bb,jb]).nullable().optional(),Ka=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Db=Ka,Hb=R(["left","center","right"]).optional().nullable(),Fb=["disc","circle","square","dash","arrow","check","cross","none"],Gb=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],yi={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Ub=C({text:w()}),Zb=C({style:C({color:co,backgroundColor:co,textAlign:Hb,fontSize:m().min(8).max(72).optional().nullable(),fontFamily:w().optional().nullable(),fontWeight:D([m(),w()]).optional().nullable(),lineHeight:m().min(1).max(3).optional().nullable(),padding:Ka,margin:Db}).optional().nullable(),props:C({listType:R(["unordered","ordered"]).optional().nullable(),marker:R([...Fb,...Gb]).optional().nullable(),numberSuffix:R([".",")"]).optional().nullable(),startNumber:m().min(0).max(9999).optional().nullable(),markerColor:co,markerSize:m().min(8).max(72).optional().nullable(),itemGap:m().min(0).max(64).optional().nullable(),items:W(Ub).optional().nullable()}).optional().nullable(),responsive:tt}),lt={listType:"unordered",marker:"disc",numberSuffix:".",startNumber:1,markerColor:null,markerSize:16,itemGap:8,items:[{text:"First list item"},{text:"Second list item"},{text:"Third list item"}]},Ni=(e,t,n)=>Math.min(Math.max(e,t),n),Ei=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ri=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Ii=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},Wb=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Ii(r)}${o}`;case"upper-alpha":return`${Ii(r).toUpperCase()}${o}`;case"lower-roman":return`${Ri(r).toLowerCase()}${o}`;case"upper-roman":return`${Ri(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Vb({style:e,props:t}){var v;const o=((t==null?void 0:t.listType)??lt.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":lt.marker),i=(t==null?void 0:t.numberSuffix)??lt.numberSuffix,a=(t==null?void 0:t.startNumber)??lt.startNumber,l=(t==null?void 0:t.markerColor)??lt.markerColor,s=Ni((t==null?void 0:t.markerSize)??lt.markerSize,8,72),c=Ni((t==null?void 0:t.itemGap)??lt.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:lt.items.map(S=>({...S})),g=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:Ei(e==null?void 0:e.padding),margin:Ei(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box"},h={color:g,textAlign:(e==null?void 0:e.textAlign)??"left",fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},f={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??g,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=S=>r==="none"?null:o?Wb(r,S,a,i):yi[r]??yi.disc;return p.jsx("div",{className:"list-block",style:d,children:p.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:p.jsx("tbody",{children:u.map((S,_)=>{const $=b(_);return p.jsxs("tr",{children:[r!=="none"&&p.jsx("td",{style:f,children:$}),p.jsx("td",{style:{...h,paddingBottom:_<u.length-1?`${c}px`:0,width:"100%"},children:S.text})]},_)})})})})}const qb=w().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Yb=w().regex(/^rgba?\([^\)]+\)$/i),Kb=w().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Jb=ne("transparent"),Xb=D([qb,Yb,Kb,Jb]).nullable().optional(),Qb=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ja=C({style:C({backgroundColor:Xb,padding:Qb}).optional().nullable(),props:C({direction:R(["row","column"]).optional().nullable(),directionTablet:R(["row","column"]).optional().nullable(),directionMobile:R(["row","column"]).optional().nullable(),gap:m().optional().nullable(),alignment:R(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:R(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:R(["start","center","end","space-between"]).optional().nullable(),wrap:z().optional().nullable(),ariaLabel:w().optional().nullable()}).optional().nullable()}),Sn={direction:"row",gap:12,alignment:"start",wrap:!0},Mn={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},e0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Pi(e,t,n){const o=e==="row"?Mn[t]:"flex-start",r=e==="column"?Mn[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${r}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;`}let t0=0;function n0({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Sn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??Sn.gap,l=(n==null?void 0:n.alignment)??Sn.alignment,s=(n==null?void 0:n.alignmentTablet)??l,c=(n==null?void 0:n.alignmentMobile)??s,u=(n==null?void 0:n.wrap)??Sn.wrap,g=(n==null?void 0:n.ariaLabel)??void 0,d=o,h=l,f={display:"flex",flexDirection:d,gap:`${a}px`,justifyContent:d==="row"?Mn[h]:"flex-start",alignItems:d==="column"?Mn[h]:"center",flexWrap:d==="row"&&u?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:e0(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},b=F.useMemo(()=>`ahd-bg-${t0+=1}`,[]),v=F.useMemo(()=>{const S=`.${b}`;let _="";return(r!==o||s!==l)&&(_+=`@media (max-width:${Me}px){${S}{${Pi(r,s,u)}}}`),(i!==r||c!==s)&&(_+=`@media (max-width:${De}px){${S}{${Pi(i,c,u)}}}`),_},[b,o,r,i,l,s,c,u]);return p.jsxs("div",{className:`button-group ${b}`,style:f,role:"group","aria-label":g,children:[v&&p.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),t]})}const o0=Ja.shape.props.unwrap().unwrap().shape,r0=C({style:Ja.shape.style,props:C({...o0,childrenIds:W(w()).optional().nullable()}).optional().nullable()});function i0({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>p.jsx(be,{id:i},i));return p.jsx(n0,{style:e,props:o,buttons:r})}const a0=C({titleChildrenIds:W(w()).optional().nullable(),contentChildrenIds:W(w()).optional().nullable()}),l0=C({responsive:tt,style:C({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),w(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),marginBottom:m().optional().nullable(),padding:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:C({items:W(a0).min(1).max(25).optional().nullable(),iconColor:w().optional().nullable(),iconSize:m().optional().nullable(),defaultOpen:z().optional().nullable(),activeBorderColor:w().optional().nullable()}).optional().nullable()});function s0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function c0({style:e,props:t}){const n=F.useMemo(()=>{const f=t==null?void 0:t.items;return!f||f.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:f[0].titleChildrenIds??[],contentChildrenIds:f[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=F.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-content`,i=e==null?void 0:e.padding,a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,borderRadius:s0(e==null?void 0:e.borderRadius),padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,margin:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(s.overflow="hidden");const c=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,g=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},d=`${g.top}px ${g.right}px ${g.bottom}px ${g.left}px`,h=[];return u&&h.push(`#${o} + .email-accordion-root { border-style:solid; border-color:${u}; border-width:${d}; }`),c&&h.push(`#${o}:checked + .email-accordion-root { border-style:solid; border-color:${c}; border-width:${d}; }`),p.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[p.jsx("style",{children:`
120
+ @media (max-width: ${Re}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
121
+ @media (max-width: ${Ne}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }`.trim(),A=y=>{const I={minWidth:0,boxSizing:"border-box"};return y.colStart!=null&&y.colSpan!=null&&(I.gridColumn=`${y.colStart} / span ${y.colSpan}`),y.rowStart!=null&&y.rowSpan!=null&&(I.gridRow=`${y.rowStart} / span ${y.rowSpan}`),I};return p.jsxs("div",{className:`grid-block ${h}`,style:C,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:N}}),p.jsx("div",{className:"grid-block-inner",style:w,children:f.map((y,I)=>p.jsx("div",{className:"grid-cell",style:A(y),children:y.childrenIds.map(M=>p.jsx(ve,{id:M},M))},I))})]})}const jp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bp=k().regex(/^rgba?\([^\)]+\)$/i),Dp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Hp=oe("transparent"),Ai=D([jp,Bp,Dp,Hp]).nullable().optional(),Fp=k().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),Gp=k().regex(/^(none|auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),Up=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Zp=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Wp=D([g(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Vp=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),yi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ni=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function qp(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function Yp(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}function Kp(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const o=Math.max(0,(e.topLeft||0)-n),r=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),a=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${r}px ${i}px ${a}px`}const Jp=$({style:$({backgroundColor:Ai,backgroundImage:Fp,backgroundSize:Gp,backgroundRepeat:R(["repeat","no-repeat"]).optional().nullable(),borderColor:Ai,borderRadius:Wp,padding:Up,margin:Zp,borderWidth:Vp,boxShadow:Fn}).optional().nullable(),props:$({fullWidth:L().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:R(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:R(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:g().min(0).optional().nullable(),heightMobile:g().min(0).optional().nullable(),overflow:L().optional().nullable(),alignment:R(["left","center","right"]).optional().nullable(),alignmentTablet:R(["left","center","right"]).optional().nullable(),alignmentMobile:R(["left","center","right"]).optional().nullable(),tag:R(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:k().optional().nullable(),elementId:k().optional().nullable(),showLink:L().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:R(["_self","_blank"]).optional().nullable(),hoverEffect:wr}).optional().nullable()}),wt={fullWidth:!1,widthType:"fit",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let Xp=0;function Qp({style:e,props:t,children:n}){const o=Va(),r=(t==null?void 0:t.fullWidth)??wt.fullWidth,i=(t==null?void 0:t.widthType)??wt.widthType,a=(t==null?void 0:t.widthTypeTablet)??null,l=(t==null?void 0:t.widthTypeMobile)??null,s=a??i,c=l??s,u=(t==null?void 0:t.width)??wt.width,m=(t==null?void 0:t.widthUnit)??wt.widthUnit,d=(t==null?void 0:t.widthTablet)??null,h=(t==null?void 0:t.widthMobile)??null,f=d??u,b=h??f,v=(t==null?void 0:t.height)??null,S=(t==null?void 0:t.heightTablet)??null,_=(t==null?void 0:t.heightMobile)??null,C=S??v,x=_??C,w=(t==null?void 0:t.overflow)===!0;(t==null?void 0:t.alignment)??wt.alignment;const N=(t==null?void 0:t.alignmentTablet)??null,A=(t==null?void 0:t.alignmentMobile)??null,y=(t==null?void 0:t.ariaLabel)??void 0,I=(t==null?void 0:t.elementId)??void 0,M=!!(t!=null&&t.showLink),P=(t==null?void 0:t.linkHref)??null,z=typeof P=="string"?P.trim():P,H=M&&typeof z=="string"&&z.length>0,T=(t==null?void 0:t.linkTarget)??"_blank",O=H?"a":(t==null?void 0:t.tag)??"div",B=H?{href:z,target:T,...T==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},U=(Y,Ke,Fe=!1)=>{if(Fe&&r)return"100%";switch(Y){case"fill":return"100%";case"fixed":return`${Ke}${m}`;case"fit":default:return"auto"}},q=Y=>((Y==null?void 0:Y.left)??0)+((Y==null?void 0:Y.right)??0),J=(Y,Ke)=>{const Fe=q(Ke);return Fe<=0?Y:Y==="100%"?`calc(100% - ${Fe}px)`:Y},me=i,ae=u,ne=v,Z=U(me,ae,o==="desktop"),ie=J(Z,e==null?void 0:e.margin),Se=a!=null||l!=null||d!=null||h!=null||S!=null||_!=null||N!=null||A!=null,se=(t==null?void 0:t.hoverEffect)??wt.hoverEffect,de=!!(se!=null&&se.enabled),F=Se||de?`ahd-cb-${++Xp}`:"",ee=Se?`
122
+ ${qe} { .${F} { width: ${J(U(s,f),e==null?void 0:e.margin)} !important; ${C!=null?`height: ${C}px !important;`:""} max-width: 100% !important; } }
123
+ ${Be} { .${F} { width: ${J(U(c,b),e==null?void 0:e.margin)} !important; ${x!=null?`height: ${x}px !important;`:""} max-width: 100% !important; } }
124
+ `.trim():null,W=de?`
125
+ .${F} { transition: transform ${se.duration??500}ms ${se.easing??"ease-in-out"}; }
126
+ .${F}:hover { transform: scale(${se.scale??1.05}); }
127
+ `.trim():null,X=[ee,W].filter(Boolean).join(`
128
+ `)||null,ke=Gn(e==null?void 0:e.boxShadow),Q=Y=>{if(Y!=null)return typeof Y=="number"?`${Y}px`:`${Y.topLeft}px ${Y.topRight}px ${Y.bottomRight}px ${Y.bottomLeft}px`},te=(e==null?void 0:e.borderColor)??null,He=(e==null?void 0:e.borderWidth)??null,Ie=Yp(te,He),Me=qp((e==null?void 0:e.backgroundColor)??""),nt=(e==null?void 0:e.backgroundSize)==="none",ft=!nt&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,Ae=nt?void 0:(e==null?void 0:e.backgroundSize)??void 0,_e=(e==null?void 0:e.backgroundRepeat)??"no-repeat",re=te&&(te.includes("linear-gradient")||te.includes("radial-gradient")||te.includes("repeating-linear-gradient")),he=ne!=null,Ee=he?{"--ahd-cb-h":`${ne}px`}:{},Bt=he?" container-block-has-height":"";if(re){const Y={...Ie,borderRadius:Q(e==null?void 0:e.borderRadius),width:ie,maxWidth:"100%",height:he?`${ne}px`:void 0,boxSizing:"border-box",margin:Ni(e==null?void 0:e.margin),...ke,...Ee},Ke={...Me,backgroundImage:ft,backgroundSize:Ae,backgroundRepeat:_e,borderRadius:Kp((e==null?void 0:e.borderRadius)??0,He),overflow:w?"auto":"hidden",padding:yi(e==null?void 0:e.padding),width:"100%",height:he?"100%":void 0,boxSizing:"border-box"},Fe=`container-block${w?" container-block-overflow":""}${Bt}${F?` ${F}`:""}`,Wn=`container-block-inner${w?" container-block-overflow":""}`,mt=H?{...Y,...B.style}:Y;return n?p.jsxs(p.Fragment,{children:[X&&p.jsx("style",{dangerouslySetInnerHTML:{__html:X}}),p.jsx(O,{className:Fe,"aria-label":y,id:I,...B,style:mt,children:p.jsx("div",{className:Wn,style:Ke,children:n})})]}):p.jsxs(p.Fragment,{children:[X&&p.jsx("style",{dangerouslySetInnerHTML:{__html:X}}),p.jsx(O,{className:Fe,"aria-label":y,id:I,...B,style:mt})]})}const Ye={...Me,backgroundImage:ft,backgroundSize:Ae,backgroundRepeat:_e,...Ie,borderRadius:Q(e==null?void 0:e.borderRadius),padding:yi(e==null?void 0:e.padding),margin:Ni(e==null?void 0:e.margin),width:ie,maxWidth:"100%",height:he?`${ne}px`:void 0,overflow:w?"auto":void 0,boxSizing:"border-box",...ke,...Ee},ot=`container-block${w?" container-block-overflow":""}${Bt}${F?` ${F}`:""}`,rt=H?{...Ye,...B.style}:Ye;return n?p.jsxs(p.Fragment,{children:[X&&p.jsx("style",{dangerouslySetInnerHTML:{__html:X}}),p.jsx(O,{className:ot,"aria-label":y,id:I,...B,style:rt,children:n})]}):p.jsxs(p.Fragment,{children:[X&&p.jsx("style",{dangerouslySetInnerHTML:{__html:X}}),p.jsx(O,{className:ot,"aria-label":y,id:I,...B,style:rt})]})}const eb=$({style:Jp.shape.style,responsive:tt,props:$({childrenIds:V(k()).optional().nullable(),fullWidth:L().optional().nullable(),widthType:R(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:R(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:R(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:R(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:g().min(0).optional().nullable(),heightMobile:g().min(0).optional().nullable(),overflow:L().optional().nullable(),alignment:R(["left","center","right"]).optional().nullable(),alignmentTablet:R(["left","center","right"]).optional().nullable(),alignmentMobile:R(["left","center","right"]).optional().nullable(),tag:R(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:k().optional().nullable(),elementId:k().optional().nullable(),showLink:L().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:R(["_self","_blank"]).optional().nullable(),animation:an,hoverEffect:wr}).optional().nullable()});function tb({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return p.jsx(Qp,{style:e,props:{fullWidth:(t==null?void 0:t.fullWidth)??void 0,widthType:(t==null?void 0:t.widthType)??void 0,widthTypeTablet:(t==null?void 0:t.widthTypeTablet)??void 0,widthTypeMobile:(t==null?void 0:t.widthTypeMobile)??void 0,width:(t==null?void 0:t.width)??void 0,widthUnit:(t==null?void 0:t.widthUnit)??void 0,widthTablet:(t==null?void 0:t.widthTablet)??void 0,widthMobile:(t==null?void 0:t.widthMobile)??void 0,height:(t==null?void 0:t.height)??void 0,heightTablet:(t==null?void 0:t.heightTablet)??void 0,heightMobile:(t==null?void 0:t.heightMobile)??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:n.map(o=>p.jsx(ve,{id:o},o))})}const nb=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),ob=k().regex(/^rgba?\([^\)]+\)$/i),rb=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ib=oe("transparent"),At=D([nb,ob,rb,ib]).nullable().optional(),ab=R(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional(),lb=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ao=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),lo=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),sb=k().regex(/^(auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),cb=$({color:At,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable(),ub=$({position:R(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:L().optional().default(!0),selector:k().optional().default(""),showCloseIcon:L().optional(),iconCloseColor:At,closeIconPosition:R(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:k().optional()}).passthrough().optional().nullable(),db=V($({id:k(),name:k(),type:k().optional().default("text"),value:k().optional()})).optional().nullable(),hb=$({formFields:db,backdropColor:At.default(null),borderColor:At.default(null),borderRadius:g().optional().nullable(),canvasColor:At.default(null),textColor:At,fontFamily:ab,childrenIds:V(k()).optional().nullable(),maxWidth:k().default(""),maxHeight:k().default(""),top:k().default(""),left:k().default(""),padding:ao,margin:lo,maxWidthTablet:k().optional().nullable(),maxWidthMobile:k().optional().nullable(),maxHeightTablet:k().optional().nullable(),maxHeightMobile:k().optional().nullable(),paddingTablet:ao,paddingMobile:ao,marginTablet:lo,marginMobile:lo,borderWidth:lb,boxShadow:cb,behaviour:ub,linkHref:k().optional().default(""),backgroundImage:k().default("").nullable().optional(),backgroundSize:sb,backgroundRepeat:R(["repeat","no-repeat"]).optional().nullable()});function $t(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function vn(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return $t(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return $t(i)?i:$t(r)?r:null;const a=o[`${t}Mobile`];return $t(a)?a:$t(i)?i:$t(r)?r:null}function so(e,t){return{maxWidth:vn(e,"maxWidth",t)??null,maxHeight:vn(e,"maxHeight",t)??null,padding:vn(e,"padding",t)??null,margin:vn(e,"margin",t)??null}}function fb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function mb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function co(e,t){const n=[];return t.maxWidth&&(n.push(`${e.width}{width:${t.maxWidth};max-width:100%;}`),n.push(`${e.table}{max-width:${t.maxWidth};min-width:0;}`)),t.maxHeight&&n.push(`${e.table}{height:${t.maxHeight};}`),t.padding&&n.push(`${e.padding}{padding:${fb(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${mb(t.margin)};}`),n.join("")}function gb(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=so(t,"desktop"),a=co(r,{...i,maxWidth:i.maxWidth??n??null}),l=co(r,so(t,"tablet")),s=co(r,so(t,"mobile")),c=(u,m)=>m?`@media (max-width:${u}px){${m}}@container ahd-page (max-width:${u}px){${m}}`:"";return[a,c(Re,l),c(Ne,s)].filter(Boolean).join("")}const pb="Made with Page Pilot",bb="https://pagepilot.fabbuilder.com";let vb=0;function xb(e){switch(e??"MODERN_SANS"){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function Sb(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,a=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?a(i):void 0};if(r){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?a(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?a(i):void 0}}function _b(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Ei(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=_b(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function kb(e,t,n){return n==="appBanner"&&t?{backgroundColor:"transparent"}:!e||e==="transparent"?{backgroundColor:e??"transparent"}:e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")?{background:e}:{backgroundColor:e}}function wb(e){switch(e){case"top":return"bottom";case"top-left":return"bottom-right";case"top-right":return"bottom-left";case"bottom":return"top";case"bottom-left":return"top-right";case"bottom-right":return"top-left";case"left":return"right";case"right":return"left";default:return e}}function $b(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Cb(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=$b(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Ab({position:e,color:t}){const r="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},a="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:a};break;case"top-left":u={top:-8,left:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,width:16,height:8,clipPath:a};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return p.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function yb({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return p.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[p.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),p.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Nb(){return p.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:p.jsx("a",{href:bb,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:pb})})}function Eb(e){var J,me,ae,ne,Z,ie,Se,se,de,F,ee,W,X,ke;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=n.includes("app-banner"),i=n.includes("demo"),a=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],m=r&&(((J=e.behaviour)==null?void 0:J.bannerSubType)==="floater"||u.includes((me=e.behaviour)==null?void 0:me.position)),d=r&&((ae=e.behaviour)==null?void 0:ae.bannerSubType)==="modal",h=(c||m||d)&&((ne=e.behaviour)==null?void 0:ne.showCloseIcon)!==!1,b=c&&!0,v=r&&e.linkHref?e.linkHref:null,S=G.useMemo(()=>`ahd-layout-${vb+=1}`,[]),C=gb(S,e,o==="page"||a?"100%":r&&!m?"900px":"320px"),x=(r||i)&&!!e.backgroundImage;e.borderRadius;const w=e.borderRadius??0,N=Q=>typeof Q=="number"?`${Q}px`:`${Q.topLeft}px ${Q.topRight}px ${Q.bottomRight}px ${Q.bottomLeft}px`,y=(Q=>Q==null?!1:typeof Q=="number"?Q>0:(Q.topLeft??0)>0||(Q.topRight??0)>0||(Q.bottomRight??0)>0||(Q.bottomLeft??0)>0)(w),I=Q=>v?p.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:Q}):Q,M=Sb(e),P=r&&!!((Z=e.boxShadow)!=null&&Z.color)&&!!e.boxShadow.inset,z=r&&!P?Ei(e.boxShadow):{},H=P?Ei(e.boxShadow):{},T=wb(((ie=e.behaviour)==null?void 0:ie.position)??"right"),O=c&&!m&&!d&&((Se=e.behaviour)==null?void 0:Se.isCaret)!==!1,B=Cb(e.canvasColor,T),U=(((se=e.margin)==null?void 0:se.left)??0)+(((de=e.margin)==null?void 0:de.right)??0),q=U>0?`calc(100% - ${U}px)`:"100%";return I(p.jsxs("div",{className:S,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[C&&p.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),p.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:xb(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:p.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...d||m?null:{maxWidth:"100%"}},children:[O&&p.jsx(Ab,{position:T,color:B}),p.jsxs("div",{style:{position:"relative",borderRadius:N(w),overflow:y?"hidden":"visible",...z},children:[P&&p.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:N(w),zIndex:1,...H}}),h&&p.jsx(yb,{color:(F=e.behaviour)==null?void 0:F.iconCloseColor,position:(ee=e.behaviour)==null?void 0:ee.closeIconPosition,paddingTop:(W=e.behaviour)==null?void 0:W.closeIconPaddingTop,paddingLeft:(X=e.behaviour)==null?void 0:X.closeIconPaddingLeft,paddingRight:(ke=e.behaviour)==null?void 0:ke.closeIconPaddingRight}),p.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:q,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...d||m?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...kb(e.canvasColor,e.backgroundImage,r?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...M,borderRadius:N(w),overflow:y?"clip":"visible",...x?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:p.jsx("tbody",{children:p.jsx("tr",{style:{width:"100%"},children:p.jsxs("td",{className:"email-layout-content",children:[t.map(Q=>p.jsx(ve,{id:Q},Q)),b&&p.jsx(Nb,{})]})})})})]})]})})]}))}const Rb=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ib=k().regex(/^rgba?\([^\)]+\)$/i),Mb=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Pb=oe("transparent"),xn=D([Rb,Ib,Mb,Pb]).nullable().optional(),Tb=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ob=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lb=R(["left","center","right"]).optional().nullable(),In={min:1,max:20},Mn={min:4,max:48},el=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),zb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Gt=(e,t,n)=>Math.min(Math.max(e,t),n),Ri=e=>e?el(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Bb=$({style:$({backgroundColor:xn,textAlign:Lb,padding:Tb,margin:Ob}).optional().nullable(),props:$({stepperType:R(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(In.min).max(In.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:xn,inactiveColor:xn,dotSize:g().min(Mn.min).max(Mn.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:xn,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:R(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),Ge={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Db({style:e,props:t}){const o=Va()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=Gt((t==null?void 0:t.totalDots)??Ge.totalDots,In.min,In.max),l=Gt((t==null?void 0:t.dotSize)??Ge.dotSize,Mn.min,Mn.max),s=Gt((t==null?void 0:t.dotSpacing)??Ge.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??Ge.activeIndex,u=Gt(c,1,a),m=(t==null?void 0:t.activeColor)??Ge.activeColor,d=(t==null?void 0:t.inactiveColor)??Ge.inactiveColor,h=(t==null?void 0:t.stepperType)??Ge.stepperType,f=h==="numeric"||h==="both",b=h==="dots"||h==="both",v=(t==null?void 0:t.numericColor)??Ge.numericColor,S=Gt((t==null?void 0:t.numericFontSize)??Ge.numericFontSize,8,48),_=(t==null?void 0:t.numericPosition)??Ge.numericPosition,x={...Ri((e==null?void 0:e.backgroundColor)??void 0),padding:zb(e==null?void 0:e.padding,i),margin:jb(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},w=f&&b&&(_==="above"||_==="below"),N={display:"inline-flex",flexDirection:w?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:w?"8px":b?`${s}px`:"0px"},A={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},y=`${u}/${a}`,I=el(v),M={fontSize:`${S}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...I?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},P=()=>f?p.jsx("span",{style:M,children:y}):null,z=()=>p.jsx("div",{style:A,"aria-hidden":"true",children:Array.from({length:a}).map((H,T)=>{const O=T===u-1,B={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:O?"scale(1.1)":"scale(1)",...Ri(O?m:d)};return p.jsx("span",{style:B,"data-active":O?"true":"false"},T)})});return p.jsx("div",{className:"stepper-block",style:x,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:p.jsxs("div",{style:N,children:[f&&_==="above"&&P(),f&&_==="left"&&P(),b&&z(),f&&_==="right"&&P(),f&&_==="below"&&P()]})})}const Hb=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Fb=k().regex(/^rgba?\([^\)]+\)$/i),Gb=oe("transparent"),uo=D([Hb,Fb,Gb]).nullable().optional(),tl=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ub=tl,Zb=R(["left","center","right"]).optional().nullable(),Wb=["disc","circle","square","dash","arrow","check","cross","none"],Vb=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Ii={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},qb=$({text:k()}),Yb=$({style:$({color:uo,backgroundColor:uo,textAlign:Zb,fontSize:g().min(8).max(72).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:D([g(),k()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:tl,margin:Ub}).optional().nullable(),props:$({listType:R(["unordered","ordered"]).optional().nullable(),marker:R([...Wb,...Vb]).optional().nullable(),numberSuffix:R([".",")"]).optional().nullable(),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:uo,markerSize:g().min(8).max(72).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:V(qb).optional().nullable()}).optional().nullable(),responsive:tt}),lt={listType:"unordered",marker:"disc",numberSuffix:".",startNumber:1,markerColor:null,markerSize:16,itemGap:8,items:[{text:"First list item"},{text:"Second list item"},{text:"Third list item"}]},Mi=(e,t,n)=>Math.min(Math.max(e,t),n),Pi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ti=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Oi=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},Kb=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Oi(r)}${o}`;case"upper-alpha":return`${Oi(r).toUpperCase()}${o}`;case"lower-roman":return`${Ti(r).toLowerCase()}${o}`;case"upper-roman":return`${Ti(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Jb({style:e,props:t}){var v;const o=((t==null?void 0:t.listType)??lt.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":lt.marker),i=(t==null?void 0:t.numberSuffix)??lt.numberSuffix,a=(t==null?void 0:t.startNumber)??lt.startNumber,l=(t==null?void 0:t.markerColor)??lt.markerColor,s=Mi((t==null?void 0:t.markerSize)??lt.markerSize,8,72),c=Mi((t==null?void 0:t.itemGap)??lt.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:lt.items.map(S=>({...S})),m=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:Pi(e==null?void 0:e.padding),margin:Pi(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box"},h={color:m,textAlign:(e==null?void 0:e.textAlign)??"left",fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},f={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??m,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=S=>r==="none"?null:o?Kb(r,S,a,i):Ii[r]??Ii.disc;return p.jsx("div",{className:"list-block",style:d,children:p.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:p.jsx("tbody",{children:u.map((S,_)=>{const C=b(_);return p.jsxs("tr",{children:[r!=="none"&&p.jsx("td",{style:f,children:C}),p.jsx("td",{style:{...h,paddingBottom:_<u.length-1?`${c}px`:0,width:"100%"},children:S.text})]},_)})})})})}const Xb=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Qb=k().regex(/^rgba?\([^\)]+\)$/i),e0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),t0=oe("transparent"),n0=D([Xb,Qb,e0,t0]).nullable().optional(),o0=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),nl=$({style:$({backgroundColor:n0,padding:o0}).optional().nullable(),props:$({direction:R(["row","column"]).optional().nullable(),directionTablet:R(["row","column"]).optional().nullable(),directionMobile:R(["row","column"]).optional().nullable(),gap:g().optional().nullable(),alignment:R(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:R(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:R(["start","center","end","space-between"]).optional().nullable(),wrap:L().optional().nullable(),ariaLabel:k().optional().nullable()}).optional().nullable()}),Sn={direction:"row",gap:12,alignment:"start",wrap:!0},Pn={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},r0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Li(e,t,n){const o=e==="row"?Pn[t]:"flex-start",r=e==="column"?Pn[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${r}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;`}let i0=0;function a0({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Sn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??Sn.gap,l=(n==null?void 0:n.alignment)??Sn.alignment,s=(n==null?void 0:n.alignmentTablet)??l,c=(n==null?void 0:n.alignmentMobile)??s,u=(n==null?void 0:n.wrap)??Sn.wrap,m=(n==null?void 0:n.ariaLabel)??void 0,d=o,h=l,f={display:"flex",flexDirection:d,gap:`${a}px`,justifyContent:d==="row"?Pn[h]:"flex-start",alignItems:d==="column"?Pn[h]:"center",flexWrap:d==="row"&&u?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:r0(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},b=G.useMemo(()=>`ahd-bg-${i0+=1}`,[]),v=G.useMemo(()=>{const S=`.${b}`;let _="";return(r!==o||s!==l)&&(_+=`@media (max-width:${Re}px){${S}{${Li(r,s,u)}}}`),(i!==r||c!==s)&&(_+=`@media (max-width:${Ne}px){${S}{${Li(i,c,u)}}}`),_},[b,o,r,i,l,s,c,u]);return p.jsxs("div",{className:`button-group ${b}`,style:f,role:"group","aria-label":m,children:[v&&p.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),t]})}const l0=nl.shape.props.unwrap().unwrap().shape,s0=$({style:nl.shape.style,props:$({...l0,childrenIds:V(k()).optional().nullable()}).optional().nullable()});function c0({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>p.jsx(ve,{id:i},i));return p.jsx(a0,{style:e,props:o,buttons:r})}const u0=$({titleChildrenIds:V(k()).optional().nullable(),contentChildrenIds:V(k()).optional().nullable()}),d0=$({responsive:tt,style:$({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:D([g(),k(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({items:V(u0).min(1).max(25).optional().nullable(),iconColor:k().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:L().optional().nullable(),activeBorderColor:k().optional().nullable()}).optional().nullable()});function h0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function f0({style:e,props:t}){const n=G.useMemo(()=>{const f=t==null?void 0:t.items;return!f||f.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:f[0].titleChildrenIds??[],contentChildrenIds:f[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=G.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-content`,i=e==null?void 0:e.padding,a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,borderRadius:h0(e==null?void 0:e.borderRadius),padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,margin:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(s.overflow="hidden");const c=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,m=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},d=`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`,h=[];return u&&h.push(`#${o} + .email-accordion-root { border-style:solid; border-color:${u}; border-width:${d}; }`),c&&h.push(`#${o}:checked + .email-accordion-root { border-style:solid; border-color:${c}; border-width:${d}; }`),p.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[p.jsx("style",{children:`
129
129
  .email-accordion-root { width:100%; }
130
130
  .email-accordion-toggle { display:none; }
131
131
  .email-accordion-label { display:flex; align-items:center; justify-content:space-between; gap:8px; cursor:pointer; padding:4px 12px; background:transparent; box-shadow:none; outline:none; }
@@ -136,53 +136,53 @@ ${h}
136
136
  .email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
137
137
  ${h.join(`
138
138
  `)}
139
- `}),p.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":r,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),p.jsxs("div",{className:"email-accordion-root",style:s,children:[p.jsxs("label",{htmlFor:o,className:"email-accordion-label",children:[p.jsx("div",{className:"title",children:n.titleChildrenIds.map(f=>p.jsx(be,{id:f},f))}),p.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:(t==null?void 0:t.iconColor)??void 0},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:p.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),p.jsx("div",{id:r,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(f=>p.jsx(be,{id:f},f))})]})]})}const u0=C({label:w().optional().nullable(),cardChildrenIds:W(w()).optional().nullable(),detailChildrenIds:W(w()).optional().nullable()}),d0=C({style:C({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:m().optional().nullable(),borderRadius:D([m(),w(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),cardGap:m().optional().nullable(),equalCardWidth:z().optional().nullable(),cardBgColor:w().optional().nullable(),cardBorderColor:w().optional().nullable(),cardBorderWidth:m().optional().nullable(),cardBorderRadius:m().optional().nullable(),cardPadding:m().optional().nullable(),cardShadow:w().optional().nullable(),cardTextColor:w().optional().nullable(),cardFontSize:m().optional().nullable(),cardFontFamily:w().optional().nullable(),cardFontWeight:w().optional().nullable(),cardTextAlign:R(["left","center","right"]).optional().nullable(),cardHoverBgColor:w().optional().nullable(),cardHoverShadow:w().optional().nullable(),activeCardBgColor:w().optional().nullable(),activeCardBorderColor:w().optional().nullable(),activeCardShadow:w().optional().nullable(),activeCardTextColor:w().optional().nullable(),arrowColor:w().optional().nullable(),arrowActiveColor:w().optional().nullable(),arrowSize:m().optional().nullable(),detailBgColor:w().optional().nullable(),detailBorderColor:w().optional().nullable(),detailBorderWidth:m().optional().nullable(),detailBorderRadius:m().optional().nullable(),detailPadding:m().optional().nullable(),detailShadow:w().optional().nullable(),detailGap:m().optional().nullable(),rightCardWidth:m().optional().nullable(),cardListWidth:m().optional().nullable(),panelGap:m().optional().nullable()}).optional().nullable(),props:C({items:W(u0).min(1).max(10).optional().nullable(),defaultOpenIndex:m().optional().nullable(),accordionEnabled:z().optional().nullable(),detailPosition:R(["bottom","right"]).optional().nullable()}).optional().nullable()});function h0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function f0({style:e,props:t}){const n=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),o=F.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.accordionEnabled)??!1,i=(t==null?void 0:t.defaultOpenIndex)??null,a=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,c=(e==null?void 0:e.cardBgColor)??"#ffffff",u=(e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)",g=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,h=(e==null?void 0:e.cardPadding)??16,f=(e==null?void 0:e.cardShadow)??"none",b=(e==null?void 0:e.cardTextColor)??"inherit",v=(e==null?void 0:e.cardFontSize)??null,S=(e==null?void 0:e.cardFontFamily)??"inherit",_=(e==null?void 0:e.cardFontWeight)??"inherit",$=(e==null?void 0:e.cardTextAlign)??"left",x=(e==null?void 0:e.cardHoverBgColor)??null,k=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",N=(e==null?void 0:e.activeCardBgColor)??c,A=(e==null?void 0:e.activeCardBorderColor)??u,y=(e==null?void 0:e.activeCardShadow)??f,I=(e==null?void 0:e.activeCardTextColor)??b,M=(e==null?void 0:e.arrowColor)??"currentColor",P=(e==null?void 0:e.arrowActiveColor)??M,L=(e==null?void 0:e.arrowSize)??13,H=(e==null?void 0:e.detailBgColor)??"#f8fafc",T=(e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)",O=(e==null?void 0:e.detailBorderWidth)??1,B=(e==null?void 0:e.detailBorderRadius)??12,G=(e==null?void 0:e.detailPadding)??24,oe=(e==null?void 0:e.detailShadow)??"none",te=(e==null?void 0:e.detailGap)??12,me=(e==null?void 0:e.rightCardWidth)??280,ae=e==null?void 0:e.padding,Y={width:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:h0(e==null?void 0:e.borderRadius),padding:ae?`${ae.top}px ${ae.right}px ${ae.bottom}px ${ae.left}px`:void 0},K=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,ce=v?`${v}px`:"inherit";if(!r){const ge=`
140
- .pacc-grid{display:grid;grid-template-columns:${K};gap:${l}px;width:100%;box-sizing:border-box}
141
- .pacc-grid-card{background:${c};border:${g}px solid ${u};border-radius:${d}px;padding:${h}px;box-sizing:border-box;box-shadow:${f};color:${b};font-size:${ce};font-family:${S};font-weight:${_};text-align:${$}}
142
- ${x?`.pacc-grid-card:hover{background:${x};box-shadow:${k}}`:`.pacc-grid-card:hover{box-shadow:${k}}`}
139
+ `}),p.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":r,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),p.jsxs("div",{className:"email-accordion-root",style:s,children:[p.jsxs("label",{htmlFor:o,className:"email-accordion-label",children:[p.jsx("div",{className:"title",children:n.titleChildrenIds.map(f=>p.jsx(ve,{id:f},f))}),p.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:(t==null?void 0:t.iconColor)??void 0},children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:p.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),p.jsx("div",{id:r,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(f=>p.jsx(ve,{id:f},f))})]})]})}const m0=$({label:k().optional().nullable(),cardChildrenIds:V(k()).optional().nullable(),detailChildrenIds:V(k()).optional().nullable()}),g0=$({style:$({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:D([g(),k(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:L().optional().nullable(),cardBgColor:k().optional().nullable(),cardBorderColor:k().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:k().optional().nullable(),cardTextColor:k().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:k().optional().nullable(),cardFontWeight:k().optional().nullable(),cardTextAlign:R(["left","center","right"]).optional().nullable(),cardHoverBgColor:k().optional().nullable(),cardHoverShadow:k().optional().nullable(),activeCardBgColor:k().optional().nullable(),activeCardBorderColor:k().optional().nullable(),activeCardShadow:k().optional().nullable(),activeCardTextColor:k().optional().nullable(),arrowColor:k().optional().nullable(),arrowActiveColor:k().optional().nullable(),arrowSize:g().optional().nullable(),detailBgColor:k().optional().nullable(),detailBorderColor:k().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:k().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:$({items:V(m0).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:L().optional().nullable(),detailPosition:R(["bottom","right"]).optional().nullable()}).optional().nullable()});function p0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function b0({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),o=G.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.accordionEnabled)??!1,i=(t==null?void 0:t.defaultOpenIndex)??null,a=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,c=(e==null?void 0:e.cardBgColor)??"#ffffff",u=(e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)",m=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,h=(e==null?void 0:e.cardPadding)??16,f=(e==null?void 0:e.cardShadow)??"none",b=(e==null?void 0:e.cardTextColor)??"inherit",v=(e==null?void 0:e.cardFontSize)??null,S=(e==null?void 0:e.cardFontFamily)??"inherit",_=(e==null?void 0:e.cardFontWeight)??"inherit",C=(e==null?void 0:e.cardTextAlign)??"left",x=(e==null?void 0:e.cardHoverBgColor)??null,w=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",N=(e==null?void 0:e.activeCardBgColor)??c,A=(e==null?void 0:e.activeCardBorderColor)??u,y=(e==null?void 0:e.activeCardShadow)??f,I=(e==null?void 0:e.activeCardTextColor)??b,M=(e==null?void 0:e.arrowColor)??"currentColor",P=(e==null?void 0:e.arrowActiveColor)??M,z=(e==null?void 0:e.arrowSize)??13,H=(e==null?void 0:e.detailBgColor)??"#f8fafc",T=(e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)",O=(e==null?void 0:e.detailBorderWidth)??1,B=(e==null?void 0:e.detailBorderRadius)??12,U=(e==null?void 0:e.detailPadding)??24,q=(e==null?void 0:e.detailShadow)??"none",J=(e==null?void 0:e.detailGap)??12,me=(e==null?void 0:e.rightCardWidth)??280,ae=e==null?void 0:e.padding,ne={width:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:p0(e==null?void 0:e.borderRadius),padding:ae?`${ae.top}px ${ae.right}px ${ae.bottom}px ${ae.left}px`:void 0},Z=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,ie=v?`${v}px`:"inherit";if(!r){const de=`
140
+ .pacc-grid{display:grid;grid-template-columns:${Z};gap:${l}px;width:100%;box-sizing:border-box}
141
+ .pacc-grid-card{background:${c};border:${m}px solid ${u};border-radius:${d}px;padding:${h}px;box-sizing:border-box;box-shadow:${f};color:${b};font-size:${ie};font-family:${S};font-weight:${_};text-align:${C}}
142
+ ${x?`.pacc-grid-card:hover{background:${x};box-shadow:${w}}`:`.pacc-grid-card:hover{box-shadow:${w}}`}
143
143
  @media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
144
- `;return p.jsxs("div",{style:Y,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:ge}}),p.jsx("div",{className:"pacc-grid",children:n.map((Z,Q)=>p.jsx("div",{className:"pacc-grid-card",children:(Z.cardChildrenIds??[]).map(U=>p.jsx(be,{id:U},U))},Q))})]})}if(a==="bottom"){const ge=n.map((Q,U)=>{const J=`#${o}-cb${U}:checked ~ .pacc-wrap`;return`${J}{grid-template-columns:1fr}`+n.map((_e,X)=>X!==U?`${J} .pacc-item:nth-child(${X+1}){display:none}`:"").join("")+`${J} .pacc-item:nth-child(${U+1}){display:block}${J} .pacc-item:nth-child(${U+1}) .pacc-card{background:${N};border-color:${A};box-shadow:${y};color:${I}}${J} .pacc-item:nth-child(${U+1}) .pacc-arrow{transform:rotate(180deg);color:${P}}${J} .pacc-item:nth-child(${U+1}) .pacc-detail{display:block}`}).join(""),Z=`
144
+ `;return p.jsxs("div",{style:ne,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:de}}),p.jsx("div",{className:"pacc-grid",children:n.map((F,ee)=>p.jsx("div",{className:"pacc-grid-card",children:(F.cardChildrenIds??[]).map(W=>p.jsx(ve,{id:W},W))},ee))})]})}if(a==="bottom"){const de=n.map((ee,W)=>{const X=`#${o}-cb${W}:checked ~ .pacc-wrap`;return`${X}{grid-template-columns:1fr}`+n.map((ke,Q)=>Q!==W?`${X} .pacc-item:nth-child(${Q+1}){display:none}`:"").join("")+`${X} .pacc-item:nth-child(${W+1}){display:block}${X} .pacc-item:nth-child(${W+1}) .pacc-card{background:${N};border-color:${A};box-shadow:${y};color:${I}}${X} .pacc-item:nth-child(${W+1}) .pacc-arrow{transform:rotate(180deg);color:${P}}${X} .pacc-item:nth-child(${W+1}) .pacc-detail{display:block}`}).join(""),F=`
145
145
  .pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
146
- .pacc-wrap{display:grid;grid-template-columns:${K};gap:${l}px;width:100%;box-sizing:border-box}
146
+ .pacc-wrap{display:grid;grid-template-columns:${Z};gap:${l}px;width:100%;box-sizing:border-box}
147
147
  .pacc-item{box-sizing:border-box}
148
- .pacc-card{background:${c};border:${g}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${$};color:${b};font-size:${ce};font-family:${S};font-weight:${_};box-shadow:${f}}
149
- ${x?`.pacc-card:hover{background:${x};box-shadow:${k}}`:`.pacc-card:hover{box-shadow:${k}}`}
148
+ .pacc-card{background:${c};border:${m}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${C};color:${b};font-size:${ie};font-family:${S};font-weight:${_};box-shadow:${f}}
149
+ ${x?`.pacc-card:hover{background:${x};box-shadow:${w}}`:`.pacc-card:hover{box-shadow:${w}}`}
150
150
  .pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${M}}
151
- .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${L}px;line-height:1}
152
- .pacc-detail{display:none;margin-top:${te}px;background:${H};border:${O}px solid ${T};border-radius:${B}px;padding:${G}px;box-sizing:border-box;box-shadow:${oe}}
151
+ .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${z}px;line-height:1}
152
+ .pacc-detail{display:none;margin-top:${J}px;background:${H};border:${O}px solid ${T};border-radius:${B}px;padding:${U}px;box-sizing:border-box;box-shadow:${q}}
153
153
  @media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
154
- ${ge}
155
- `;return p.jsxs("div",{style:Y,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:Z}}),n.map((Q,U)=>p.jsx("input",{type:"radio",name:o,id:`${o}-cb${U}`,className:"pacc-cb",defaultChecked:U===i},U)),p.jsx("div",{className:"pacc-wrap",children:n.map((Q,U)=>p.jsxs("div",{className:"pacc-item",children:[p.jsxs("label",{htmlFor:`${o}-cb${U}`,className:"pacc-card",children:[(Q.cardChildrenIds??[]).map(J=>p.jsx(be,{id:J},J)),p.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:p.jsx("i",{className:"bi bi-chevron-down"})})]}),p.jsx("div",{className:"pacc-detail",children:(Q.detailChildrenIds??[]).map(J=>p.jsx(be,{id:J},J))})]},U))})]})}const ze=n.map((ge,Z)=>{const Q=`#${o}-cb${Z}:checked ~ .pacc-wrap`;return`${Q}{grid-template-columns:1fr}`+n.map((U,J)=>J!==Z?`${Q} .pacc-item:nth-child(${J+1}){display:none}`:"").join("")+`${Q} .pacc-item:nth-child(${Z+1}){display:flex;flex-direction:row;gap:${te}px;align-items:flex-start}${Q} .pacc-item:nth-child(${Z+1}) .pacc-card{flex-shrink:0;width:${me}px;background:${N};border-color:${A};box-shadow:${y};color:${I}}${Q} .pacc-item:nth-child(${Z+1}) .pacc-arrow{transform:rotate(90deg);color:${P}}${Q} .pacc-item:nth-child(${Z+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),xe=`
154
+ ${de}
155
+ `;return p.jsxs("div",{style:ne,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:F}}),n.map((ee,W)=>p.jsx("input",{type:"radio",name:o,id:`${o}-cb${W}`,className:"pacc-cb",defaultChecked:W===i},W)),p.jsx("div",{className:"pacc-wrap",children:n.map((ee,W)=>p.jsxs("div",{className:"pacc-item",children:[p.jsxs("label",{htmlFor:`${o}-cb${W}`,className:"pacc-card",children:[(ee.cardChildrenIds??[]).map(X=>p.jsx(ve,{id:X},X)),p.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:p.jsx("i",{className:"bi bi-chevron-down"})})]}),p.jsx("div",{className:"pacc-detail",children:(ee.detailChildrenIds??[]).map(X=>p.jsx(ve,{id:X},X))})]},W))})]})}const Se=n.map((de,F)=>{const ee=`#${o}-cb${F}:checked ~ .pacc-wrap`;return`${ee}{grid-template-columns:1fr}`+n.map((W,X)=>X!==F?`${ee} .pacc-item:nth-child(${X+1}){display:none}`:"").join("")+`${ee} .pacc-item:nth-child(${F+1}){display:flex;flex-direction:row;gap:${J}px;align-items:flex-start}${ee} .pacc-item:nth-child(${F+1}) .pacc-card{flex-shrink:0;width:${me}px;background:${N};border-color:${A};box-shadow:${y};color:${I}}${ee} .pacc-item:nth-child(${F+1}) .pacc-arrow{transform:rotate(90deg);color:${P}}${ee} .pacc-item:nth-child(${F+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),se=`
156
156
  .pacc-cb{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
157
- .pacc-wrap{display:grid;grid-template-columns:${K};gap:${l}px;width:100%;box-sizing:border-box}
157
+ .pacc-wrap{display:grid;grid-template-columns:${Z};gap:${l}px;width:100%;box-sizing:border-box}
158
158
  .pacc-item{box-sizing:border-box}
159
- .pacc-card{background:${c};border:${g}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${$};color:${b};font-size:${ce};font-family:${S};font-weight:${_};box-shadow:${f}}
160
- ${x?`.pacc-card:hover{background:${x};box-shadow:${k}}`:`.pacc-card:hover{box-shadow:${k}}`}
159
+ .pacc-card{background:${c};border:${m}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${C};color:${b};font-size:${ie};font-family:${S};font-weight:${_};box-shadow:${f}}
160
+ ${x?`.pacc-card:hover{background:${x};box-shadow:${w}}`:`.pacc-card:hover{box-shadow:${w}}`}
161
161
  .pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${M}}
162
- .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${L}px;line-height:1}
163
- .pacc-detail{display:none;background:${H};border:${O}px solid ${T};border-radius:${B}px;padding:${G}px;box-sizing:border-box;box-shadow:${oe}}
162
+ .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${z}px;line-height:1}
163
+ .pacc-detail{display:none;background:${H};border:${O}px solid ${T};border-radius:${B}px;padding:${U}px;box-sizing:border-box;box-shadow:${q}}
164
164
  @media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}.pacc-item.pacc-item--open{flex-direction:column!important}.pacc-item.pacc-item--open .pacc-card{width:100%!important}}
165
- ${ze}
166
- `;return p.jsxs("div",{style:Y,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:xe}}),n.map((ge,Z)=>p.jsx("input",{type:"radio",name:o,id:`${o}-cb${Z}`,className:"pacc-cb",defaultChecked:Z===i},Z)),p.jsx("div",{className:"pacc-wrap",children:n.map((ge,Z)=>p.jsxs("div",{className:"pacc-item",children:[p.jsxs("label",{htmlFor:`${o}-cb${Z}`,className:"pacc-card",children:[(ge.cardChildrenIds??[]).map(Q=>p.jsx(be,{id:Q},Q)),p.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:p.jsx("i",{className:"bi bi-chevron-right"})})]}),p.jsx("div",{className:"pacc-detail",children:(ge.detailChildrenIds??[]).map(Q=>p.jsx(be,{id:Q},Q))})]},Z))})]})}const m0=C({label:w().optional().nullable(),contentChildrenIds:W(w()).optional().nullable()}),g0=C({responsive:tt,style:C({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([m(),w(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),tabActiveColor:w().optional().nullable(),tabTextColor:w().optional().nullable(),tabBgColor:w().optional().nullable(),tabGap:m().optional().nullable(),contentGap:m().optional().nullable(),navBorderColor:w().optional().nullable(),fontSize:D([w(),m()]).optional().nullable(),activeFontSize:D([w(),m()]).optional().nullable(),showActiveBorder:z().optional().nullable(),fontFamily:w().optional().nullable(),fontWeight:w().optional().nullable()}).optional().nullable(),props:C({orientation:R(["horizontal","vertical"]).optional().nullable(),orientationTablet:R(["horizontal","vertical"]).optional().nullable(),orientationMobile:R(["horizontal","vertical"]).optional().nullable(),behavior:R(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),activeTabIndex:m().optional().nullable(),stickyNav:z().optional().nullable(),items:W(m0).min(1).max(20).optional().nullable()}).optional().nullable()}),an=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],p0={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},b0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(p0).map(([e,t])=>`family=${b0(e,t)}`).join("&")}`;const Xa=an.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Xa.map(e=>e.css);const v0=e=>e.replace(/"/g,'\\"');Xa.map(e=>{const t=v0(e.css);return`
165
+ ${Se}
166
+ `;return p.jsxs("div",{style:ne,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:se}}),n.map((de,F)=>p.jsx("input",{type:"radio",name:o,id:`${o}-cb${F}`,className:"pacc-cb",defaultChecked:F===i},F)),p.jsx("div",{className:"pacc-wrap",children:n.map((de,F)=>p.jsxs("div",{className:"pacc-item",children:[p.jsxs("label",{htmlFor:`${o}-cb${F}`,className:"pacc-card",children:[(de.cardChildrenIds??[]).map(ee=>p.jsx(ve,{id:ee},ee)),p.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:p.jsx("i",{className:"bi bi-chevron-right"})})]}),p.jsx("div",{className:"pacc-detail",children:(de.detailChildrenIds??[]).map(ee=>p.jsx(ve,{id:ee},ee))})]},F))})]})}const v0=$({label:k().optional().nullable(),contentChildrenIds:V(k()).optional().nullable()}),x0=$({responsive:tt,style:$({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([g(),k(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:k().optional().nullable(),tabTextColor:k().optional().nullable(),tabBgColor:k().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:k().optional().nullable(),fontSize:D([k(),g()]).optional().nullable(),activeFontSize:D([k(),g()]).optional().nullable(),showActiveBorder:L().optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable()}).optional().nullable(),props:$({orientation:R(["horizontal","vertical"]).optional().nullable(),orientationTablet:R(["horizontal","vertical"]).optional().nullable(),orientationMobile:R(["horizontal","vertical"]).optional().nullable(),behavior:R(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:L().optional().nullable(),items:V(v0).min(1).max(20).optional().nullable()}).optional().nullable()}),zt=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],S0={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},_0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(S0).map(([e,t])=>`family=${_0(e,t)}`).join("&")}`;const ol=zt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));ol.map(e=>e.css);const k0=e=>e.replace(/"/g,'\\"');ol.map(e=>{const t=k0(e.css);return`
167
167
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
168
168
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
169
169
  content: '${e.label}';
170
170
  font-family: ${e.css};
171
171
  }`}).join(`
172
- `);function x0(e){if(!e)return;const t=an.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function S0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Mi(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const _0={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},w0={display:"inline-block"};function uo(e,t,n,o,r){return t==="horizontal"?`${e}{display:block}${e} .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;width:100%;border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent);border-right:0}${e} .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} .ahd-tabs-panels{width:100%;margin-top:${r};margin-left:0}`:`${e}{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:${r};align-items:start}${e} .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;width:auto;border-right:${n} solid var(--ahd-tabs-nav-border,transparent);border-bottom:0}${e} .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o}}${e} .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function k0({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??o,a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=F.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,g=(e==null?void 0:e.tabTextColor)??void 0,d=(e==null?void 0:e.tabBgColor)??"transparent",h=(e==null?void 0:e.navBorderColor)??void 0,f=h?"2px":"0px",b=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",v=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",S="var(--ahd-tabs-tab-gap,"+b+")",_="var(--ahd-tabs-content-gap,"+v+")",$=(e==null?void 0:e.activeFontSize)!=null?Mi(e.activeFontSize):void 0,k=(e==null?void 0:e.showActiveBorder)??!0?u||"currentColor":"transparent",N=e==null?void 0:e.padding,A=e==null?void 0:e.margin,y=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),I={width:y>0?`calc(100% - ${y}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:S0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0,fontFamily:x0(e==null?void 0:e.fontFamily),fontSize:Mi(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,color:g,"--ahd-tabs-nav-border":h??"transparent"},M=()=>s.map((T,O)=>p.jsx("input",{type:"radio",id:`${c}-r${O}`,name:c,className:"ahd-tabs-radio",defaultChecked:O===0,style:_0},O)),P=F.useMemo(()=>{const T=`.${c}`,O=u||"currentColor";let G=`${T} .ahd-tabs-label{color:${g||"inherit"}}`+(a?"":`${T} .ahd-tabs-panel{display:none}`);return s.forEach((oe,te)=>{const me=`#${c}-r${te}:checked`,ae=`${me} ~ .ahd-tabs-nav .ahd-tabs-label:nth-of-type(${te+1})`,Y=`${me} ~ .ahd-tabs-panels .ahd-tabs-panel:nth-of-type(${te+1})`,K=`color:${O}!important;border-left-color:var(--ahd-tabs-active-border-color,${k})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${k})!important`;G+=`${ae}{${K}}`,G+=`${ae} .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${$??"inherit"})!important}`,a||(G+=`${Y}{display:block!important}`)}),G+=uo(T,n,f,S,_),o!==n&&(G+=`${C0}{${uo(T,o,f,S,_)}}`),r!==o&&(G+=`${$0}{${uo(T,r,f,S,_)}}`),G},[s,c,u,g,$,k,n,o,r,a,f,S,_]),L=T=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:T===0?void 0:_}:{width:"100%",minWidth:0,overflow:"hidden"},H=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return p.jsxs("div",{className:`${c} ahd-tabs ${H}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:I,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),M(),p.jsx("div",{className:"ahd-tabs-nav",style:{background:d,...l?{position:"sticky",top:0}:{}},children:s.map((T,O)=>p.jsx("label",{htmlFor:`${c}-r${O}`,className:"ahd-tabs-label","data-ahd-tab-index":O,style:{alignItems:"center",cursor:"pointer",lineHeight:1,padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative"},children:p.jsx("span",{className:"ahd-tabs-label-text",style:w0,children:T.label??`Tab ${O+1}`})},O))}),p.jsx("div",{className:"ahd-tabs-panels",children:s.map((T,O)=>p.jsx("div",{id:`${c}-panel-${O}`,className:"ahd-tabs-panel","data-ahd-tab-index":O,style:L(O),children:(T.contentChildrenIds??[]).map(B=>p.jsx(be,{id:B},B))},O))})]})}const C0=`@media (max-width:${Me}px)`,$0=`@media (max-width:${De}px)`,A0=C({contentChildrenIds:W(w()).optional().nullable()}),y0=C({style:C({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([m(),w(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),slideGap:m().optional().nullable(),arrowColor:w().optional().nullable(),arrowBgColor:w().optional().nullable(),arrowBorderColor:w().optional().nullable(),arrowSize:m().min(16).max(80).optional().nullable(),dotColor:w().optional().nullable(),dotActiveColor:w().optional().nullable(),dotSize:m().min(4).max(24).optional().nullable()}).optional().nullable(),props:C({slidesPerView:m().min(1).max(6).optional().nullable(),slidesPerViewTablet:m().min(1).max(6).optional().nullable(),slidesPerViewMobile:m().min(1).max(6).optional().nullable(),showArrows:z().optional().nullable(),showDots:z().optional().nullable(),autoplay:z().optional().nullable(),autoplayInterval:m().min(500).max(2e4).optional().nullable(),loop:z().optional().nullable(),transitionMs:m().min(0).max(3e3).optional().nullable(),items:W(A0).min(1).max(20).optional().nullable()}).optional().nullable()});function N0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const E0="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",R0="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ti=({d:e,size:t=20})=>p.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:p.jsx("path",{d:e})});function I0({style:e,props:t}){const n=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=F.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,2)),a=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,g=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,f=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",v=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",S=(e==null?void 0:e.arrowSize)??40,_=(e==null?void 0:e.dotColor)??"#d4d4d4",$=(e==null?void 0:e.dotActiveColor)??"#262626",x=(e==null?void 0:e.dotSize)??8,k=Math.max(12,Math.min(40,Math.round(S*.5))),N=e==null?void 0:e.padding,A=e==null?void 0:e.margin,y=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),I={width:y>0?`calc(100% - ${y}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:N0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0},M=F.useMemo(()=>{const T=`.${o}`,O=B=>`calc((100% - ${h*(B-1)}px) / ${B})`;return`${T} .ahd-carousel-viewport{overflow:hidden;width:100%}${T} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${T} .ahd-carousel-slide{flex:0 0 ${O(r)};min-width:0;box-sizing:border-box}${T} .ahd-carousel-prev svg,${T} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${k}px);height:var(--ahd-carousel-chevron-size,${k}px)}@media (max-width:${Me}px){${T} .ahd-carousel-slide{flex-basis:${O(i)}}}@media (max-width:${De}px){${T} .ahd-carousel-slide{flex-basis:${O(a)}}}`},[o,h,d,r,i,a,k]),P={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${S}px)`,height:`var(--ahd-carousel-arrow-size, ${S}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${S}px)`,borderRadius:"50%",border:`1px solid ${v}`,backgroundColor:b,backgroundImage:"none",color:f,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},L=Math.min(r,i,a),H=Math.max(1,n.length-L+1);return p.jsxs("div",{className:`${o} ahd-carousel`,style:I,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":g?"1":"0",children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&p.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:p.jsx(Ti,{d:E0,size:k})}),p.jsx("div",{className:"ahd-carousel-viewport",children:p.jsx("div",{className:"ahd-carousel-track",children:n.map((T,O)=>p.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":O,children:(T.contentChildrenIds??[]).map(B=>p.jsx(be,{id:B},B))},O))})}),l&&p.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:p.jsx(Ti,{d:R0,size:k})})]}),s&&H>1&&p.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":_,"data-dot-active-color":$,children:Array.from({length:H}).map((T,O)=>p.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":O,"aria-label":`Go to slide ${O+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${x}px)`,height:`var(--ahd-carousel-dot-size, ${x}px)`,minWidth:`var(--ahd-carousel-dot-size, ${x}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:O===0?$:_,backgroundImage:"none"}},O))})]})}const P0=C({style:C({starColor:w().optional().nullable(),starEmptyColor:w().optional().nullable(),starSize:m().min(8).max(80).optional().nullable(),starGap:m().min(0).max(40).optional().nullable(),textColor:w().optional().nullable(),fontSize:D([w(),m()]).optional().nullable(),fontFamily:w().optional().nullable(),fontWeight:w().optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),padding:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:C({value:D([m(),w()]).optional().nullable(),max:D([m(),w()]).optional().nullable(),showValue:z().optional().nullable()}).optional().nullable()}),Oi="M12 .587l3.668 7.431 8.2 1.193-5.934 5.787 1.401 8.168L12 18.896l-7.335 3.866 1.401-8.168L.132 9.211l8.2-1.193z";function M0(e){if(!e)return;const t=an.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function T0(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function O0({fillPct:e,size:t,filledColor:n,emptyColor:o}){return p.jsxs("span",{className:"ahd-rating-star",style:{position:"relative",display:"inline-block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`,lineHeight:0},children:[p.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:p.jsx("path",{d:Oi})}),p.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:p.jsx("svg",{viewBox:"0 0 24 24",fill:n,style:{display:"block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`},"aria-hidden":"true",children:p.jsx("path",{d:Oi})})})]})}function L0({style:e,props:t}){const n=F.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(S,_)=>{if(typeof S=="number")return Number.isFinite(S)?S:_;const $=parseFloat(String(S??""));return Number.isFinite($)?$:_},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,g=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=e==null?void 0:e.padding,f=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:g,fontFamily:M0(e==null?void 0:e.fontFamily),fontSize:T0(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,boxSizing:"border-box"},v=S=>{const _=i-S;return _>=1?100:_>=.5?50:_>0?Math.round(_*100):0};return p.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[p.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:r}).map((S,_)=>p.jsx(O0,{fillPct:v(_),size:c,filledColor:l,emptyColor:s},_))}),a&&p.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),p.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const z0=C({responsive:tt,style:C({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),borderRadius:D([m(),w(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(200).optional().nullable()}).optional().nullable(),props:C({direction:R(["left","right","up","down"]).optional().nullable(),speed:m().min(5).max(200).optional().nullable(),pauseOnHover:z().optional().nullable(),repeat:m().min(2).max(6).optional().nullable(),fadeEdges:z().optional().nullable(),verticalAlign:R(["top","middle","bottom"]).optional().nullable(),items:W(C({contentChildrenIds:W(w()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),B0=40,j0=32,Qa=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,D0=e=>Math.max(2,Math.round(1200/e)),H0=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),el=e=>e==="up"||e==="down",F0=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Tn=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function G0(e,t){return{speed:Qa(t==null?void 0:t.speed,B0),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??j0}}function U0(e,t,n){var r,i,a,l;const o=e==null?void 0:e[t];return{speed:Qa((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap}}const Z0=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Li=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${D0(e.speed)}s;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,W0=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Tn(t)}!important;mask-image:${Tn(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function V0({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=el(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":F0(i),g=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${g}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${g}%)}}`,h=(f,b)=>{if(!Z0(r,b))return"";const v=U0(r,b,o);return`${f}{${a}{${Li(v)};${W0(v,l)}}}`};return d+`${a}{${Li(o)}}${a} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${a} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${a} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${a}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(Fa,"tablet")+h(Re,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function q0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Y0(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function K0({style:e,props:t,responsive:n}){const o=F.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=H0(t==null?void 0:t.repeat),l=el(i),s=G0(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,g=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:g>0?`calc(100% - ${g}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...Y0(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:q0(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:void 0,margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Tn(l),maskImage:Tn(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",f=F.useMemo(()=>V0({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:h}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,n,h]),b=v=>p.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:r.map((S,_)=>p.jsx("div",{className:"ahd-marquee-item",children:(S.contentChildrenIds??[]).map($=>p.jsx(be,{id:$},$))},_))},v);return p.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),p.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((v,S)=>b(S))})]})}const J0=C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),X0=C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),Q0=C({style:C({backgroundColor:w().optional().nullable(),textColor:w().optional().nullable(),accentColor:w().optional().nullable(),numberColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([m(),w(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:J0,margin:X0}).optional().nullable(),props:C({layout:R(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:w().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:z().default(!0),expiredBehavior:R(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:w().default("Offer has ended")}).optional().nullable()});function ev(e){return String(Math.max(0,e)).padStart(2,"0")}function tv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return p.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[p.jsx("div",{"data-ahd-timer-unit":c.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:ev(c.value)}),r&&p.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function nv(e){return String(Math.max(0,e)).padStart(2,"0")}const Oo=26,zi=2*Math.PI*Oo;function ov({value:e,max:t,accentColor:n,numberColor:o,unit:r}){const i=t>0?Math.min(1,Math.max(0,e/t)):0,a=zi*(1-i);return p.jsxs("svg",{"data-ahd-timer-unit":r,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[p.jsx("circle",{cx:32,cy:32,r:Oo,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),p.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Oo,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:zi,strokeDashoffset:a,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),p.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:700,fill:o,children:nv(e)})]})}function rv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=i??"#7c3aed",c=l??"#1f1f1f",u=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return p.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:u.map(g=>p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[p.jsx(ov,{value:g.value,max:g.max,accentColor:s,numberColor:c,unit:g.label.toLowerCase()}),r&&p.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:g.label})]},g.label))})}function gt(e){return String(Math.max(0,e)).padStart(2,"0")}function iv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a}){const l=[{key:"days",text:r?`${e}d`:gt(e)},{key:"hours",text:r?`${gt(t)}h`:gt(t)},{key:"minutes",text:r?`${gt(n)}m`:gt(n)},{key:"seconds",text:r?`${gt(o)}s`:gt(o)}],s=r?" ":" : ";return p.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??"#1f1f1f"},children:[p.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>p.jsxs(F.Fragment,{children:[u>0&&s,p.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function av(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function lv(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function sv({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=lv(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,g=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:g>0?`calc(100% - ${g}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:av(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:"16px",margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0},h={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:r,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor},f=s&&i==="showMessage",b=s&&i==="hide";return p.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0",style:{...d,display:b?"none":void 0},children:[p.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:f?void 0:"none"},children:a}),p.jsxs("div",{"data-ahd-timer-body":!0,style:{display:f?"none":void 0},children:[o==="digitalFlip"&&p.jsx(tv,{...h}),o==="circularProgress"&&p.jsx(rv,{...h}),o==="textInline"&&p.jsx(iv,{...h})]})]})}const cv=R(["left","center","right","space-between"]),uv=C({contentChildrenIds:W(w()).optional().nullable()}),dv=C({childrenIds:W(w())}),hv=C({style:C({backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderRadius:D([m(),w(),C({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(120).optional().nullable(),columnsGap:m().min(0).max(120).optional().nullable(),rowsGap:m().min(0).max(120).optional().nullable(),controlGap:m().min(0).max(120).optional().nullable(),controlAlign:cv.optional().nullable(),buttonSize:m().min(20).max(72).optional().nullable(),buttonGap:m().min(0).max(40).optional().nullable(),buttonRadius:m().min(0).max(999).optional().nullable(),buttonBg:w().optional().nullable(),buttonColor:w().optional().nullable(),buttonBorderColor:w().optional().nullable(),activeButtonBg:w().optional().nullable(),activeButtonColor:w().optional().nullable(),activeButtonBorderColor:w().optional().nullable(),arrowColor:w().optional().nullable(),fontSize:m().min(8).max(40).optional().nullable(),fontFamily:w().optional().nullable()}).optional().nullable(),props:C({items:W(uv).min(1).max(50).optional().nullable(),cells:W(dv).optional().nullable(),columnsCount:m().int().min(1).max(12).optional().nullable(),rowsCount:m().int().min(1).max(24).optional().nullable(),columnsCountTablet:m().int().min(1).max(12).optional().nullable(),columnsCountMobile:m().int().min(1).max(12).optional().nullable(),rowsCountTablet:m().int().min(1).max(24).optional().nullable(),rowsCountMobile:m().int().min(1).max(24).optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:R(["left","center","right"]).optional().nullable(),cellsPerPage:m().int().min(1).max(100).optional().nullable(),repeatableEnabled:z().optional().nullable(),pageParam:w().min(1).max(40).optional().nullable(),syncUrl:z().optional().nullable(),showNumbers:z().optional().nullable(),showPrevNext:z().optional().nullable(),showFirstLast:z().optional().nullable(),maxVisiblePages:m().min(0).max(50).optional().nullable(),prevLabel:w().max(24).optional().nullable(),nextLabel:w().max(24).optional().nullable(),firstLabel:w().max(24).optional().nullable(),lastLabel:w().max(24).optional().nullable(),scrollToTopOnChange:z().optional().nullable(),explicitFirstPage:z().optional().nullable()}).optional().nullable()}),Lo={columnsCount:2,rowsCount:2};function ho(e,t="desktop"){const n=Lo,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*r,i*a,l.length),c=Array.from({length:s},(u,g)=>{var d;return{childrenIds:Array.isArray((d=l[g])==null?void 0:d.childrenIds)?l[g].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function fo(e,t="desktop"){if((e==null?void 0:e.cellsPerPage)!=null)return Math.max(1,e.cellsPerPage);const n=(e==null?void 0:e.columnsCount)??Lo.columnsCount,o=(e==null?void 0:e.rowsCount)??Lo.rowsCount,r=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function fv(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const mv={pageParam:"page",syncUrl:!0,showNumbers:!0,showPrevNext:!0,showFirstLast:!1,maxVisiblePages:7,scrollToTopOnChange:!0,prevLabel:"‹",nextLabel:"›",firstLabel:"«",lastLabel:"»",itemGap:16,controlGap:24,controlAlign:"center",buttonSize:36,buttonGap:8,buttonRadius:8,buttonBg:"#ffffff",buttonColor:"#262626",buttonBorderColor:"rgba(0,0,0,.12)",activeButtonBg:"#5550ff",activeButtonColor:"#ffffff",activeButtonBorderColor:"#5550ff",arrowColor:"#262626",fontSize:14};function gv({style:e,props:t}){const n=mv;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function pv(e){return Math.max(1,e)}function bv(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function vv(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function xv({style:e,props:t}){const n=gv({style:e,props:t}),o=ho(t,"desktop"),r=ho(t,"tablet"),i=ho(t,"mobile"),a=Math.max(fo(t,"desktop"),fo(t,"tablet"),fo(t,"mobile")),l=F.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(A,y)=>o.cells[y]??{childrenIds:[]}),[o.cells,a]),s=F.useMemo(()=>fv(l,a),[l,a]),c=pv(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,g=(e==null?void 0:e.rowsGap)??n.itemGap,d=F.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=F.useMemo(()=>bv(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),f=e==null?void 0:e.padding,b=e==null?void 0:e.margin,v=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),S={width:v>0?`calc(100% - ${v}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:vv(e==null?void 0:e.borderRadius),padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},_=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",$={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${n.buttonBorderColor}`,backgroundColor:n.buttonBg,backgroundImage:"none",color:n.buttonColor,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},x={...$,color:n.arrowColor},k=F.useMemo(()=>{const A=M=>`grid-template-columns:repeat(${M.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${M.rowsCount},auto)`,y=(M,P)=>{const L=Math.max(1,P.columnsCount*P.rowsCount);return L>=a?"":`${M} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${L+1}){display:none}`},I=`.${d}`;return`${I} .ahd-pgn-item{display:grid;${A(o)};column-gap:${u}px;row-gap:${g}px}${I} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+y(I,o)+`@media (max-width:${Me}px){${I} .ahd-pgn-item{${A(r)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(I,r)+`}@media (max-width:${De}px){${I} .ahd-pgn-item{${A(i)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(I,i)+"}"},[d,o,r,i,a,u,g,n.itemGap]),N=(A,y,I)=>p.jsx("button",{type:"button",className:`ahd-pgn-btn ${A}`,"data-ahd-page":I,style:x,"aria-label":y,children:y});return p.jsxs("div",{className:`${d} ahd-pagination`,style:S,"data-total-pages":c,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":n.buttonBg,"data-btn-color":n.buttonColor,"data-btn-border":n.buttonBorderColor,"data-active-bg":n.activeButtonBg,"data-active-color":n.activeButtonColor,"data-active-border":n.activeButtonBorderColor,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),p.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((A,y)=>p.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":y,style:y===0?void 0:{display:"none"},children:A.map((I,M)=>p.jsx("div",{className:"ahd-pgn-cell",children:(I.childrenIds??[]).map(P=>p.jsx(be,{id:P},P))},M))},y))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&p.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:_,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&N("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&N("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&p.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:h.map((A,y)=>A==="ellipsis"?p.jsx("span",{className:"ahd-pgn-ellipsis",style:{...$,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${y}`):p.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":A,"aria-label":`Page ${A}`,"aria-current":A===1?"true":void 0,style:A===1?{...$,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:$,children:A},A))}),n.showPrevNext&&N("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&N("ahd-pgn-last",n.lastLabel,c)]})]})}const Sv=C({style:C({padding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),fontSize:m().optional().nullable(),fontFamily:w().optional().nullable(),color:w().optional().nullable(),backgroundColor:w().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:m().optional().nullable(),cellPadding:m().optional().nullable(),headerBackground:w().optional().nullable(),headerColor:w().optional().nullable()}).optional().nullable(),props:C({rows:m().int().min(1).max(50).optional().nullable(),columns:m().int().min(1).max(20).optional().nullable(),hasHeader:z().optional().nullable(),cells:W(w()).optional().nullable(),caption:w().optional().nullable(),width:w().optional().nullable()}).optional().nullable()}),Ue={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14};function Sr(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function _r(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function _v(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function wv(e){if(!e)return;const t=an.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let kv=0;function tl(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Bi(e){return e?tl(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function mo(e){return e?tl(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function Cv({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ue.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ue.columns)),i=(t==null?void 0:t.hasHeader)??Ue.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(L,H)=>a[H]??""),c=(e==null?void 0:e.borderColor)??Ue.borderColor,u=(e==null?void 0:e.borderWidth)??Ue.borderWidth,g=(e==null?void 0:e.cellPadding)??Ue.cellPadding,d=(e==null?void 0:e.headerBackground)??Ue.headerBackground,h=(e==null?void 0:e.headerColor)??Ue.headerColor,f=(e==null?void 0:e.color)??Ue.color,b=(e==null?void 0:e.fontSize)??Ue.fontSize,v=(e==null?void 0:e.backgroundColor)??null,S=`ahd-table-${++kv}`,_={padding:Sr(e==null?void 0:e.padding),margin:_r(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},$=wv(e==null?void 0:e.fontFamily),x={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},k={border:`${u}px solid ${c}`,padding:g,verticalAlign:"top"},N=$?`.${S}, .${S} * { font-family: ${$} !important; }`:"",A=`
173
- .${S} { ${Bi(v)} }
172
+ `);function w0(e){if(!e)return;const t=zt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function $0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function zi(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const C0={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},A0={display:"inline-block"};function ho(e,t,n,o,r){return t==="horizontal"?`${e}{display:block}${e} .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;width:100%;border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent);border-right:0}${e} .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} .ahd-tabs-panels{width:100%;margin-top:${r};margin-left:0}`:`${e}{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:${r};align-items:start}${e} .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;width:auto;border-right:${n} solid var(--ahd-tabs-nav-border,transparent);border-bottom:0}${e} .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o}}${e} .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function y0({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??o,a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=G.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,m=(e==null?void 0:e.tabTextColor)??void 0,d=(e==null?void 0:e.tabBgColor)??"transparent",h=(e==null?void 0:e.navBorderColor)??void 0,f=h?"2px":"0px",b=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",v=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",S="var(--ahd-tabs-tab-gap,"+b+")",_="var(--ahd-tabs-content-gap,"+v+")",C=(e==null?void 0:e.activeFontSize)!=null?zi(e.activeFontSize):void 0,w=(e==null?void 0:e.showActiveBorder)??!0?u||"currentColor":"transparent",N=e==null?void 0:e.padding,A=e==null?void 0:e.margin,y=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),I={width:y>0?`calc(100% - ${y}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:$0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0,fontFamily:w0(e==null?void 0:e.fontFamily),fontSize:zi(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,color:m,"--ahd-tabs-nav-border":h??"transparent"},M=()=>s.map((T,O)=>p.jsx("input",{type:"radio",id:`${c}-r${O}`,name:c,className:"ahd-tabs-radio",defaultChecked:O===0,style:C0},O)),P=G.useMemo(()=>{const T=`.${c}`,O=u||"currentColor";let U=`${T} .ahd-tabs-label{color:${m||"inherit"}}`+(a?"":`${T} .ahd-tabs-panel{display:none}`);return s.forEach((q,J)=>{const me=`#${c}-r${J}:checked`,ae=`${me} ~ .ahd-tabs-nav .ahd-tabs-label:nth-of-type(${J+1})`,ne=`${me} ~ .ahd-tabs-panels .ahd-tabs-panel:nth-of-type(${J+1})`,Z=`color:${O}!important;border-left-color:var(--ahd-tabs-active-border-color,${w})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${w})!important`;U+=`${ae}{${Z}}`,U+=`${ae} .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${C??"inherit"})!important}`,a||(U+=`${ne}{display:block!important}`)}),U+=ho(T,n,f,S,_),o!==n&&(U+=`${N0}{${ho(T,o,f,S,_)}}`),r!==o&&(U+=`${E0}{${ho(T,r,f,S,_)}}`),U},[s,c,u,m,C,w,n,o,r,a,f,S,_]),z=T=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:T===0?void 0:_}:{width:"100%",minWidth:0,overflow:"hidden"},H=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return p.jsxs("div",{className:`${c} ahd-tabs ${H}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:I,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),M(),p.jsx("div",{className:"ahd-tabs-nav",style:{background:d,...l?{position:"sticky",top:0}:{}},children:s.map((T,O)=>p.jsx("label",{htmlFor:`${c}-r${O}`,className:"ahd-tabs-label","data-ahd-tab-index":O,style:{alignItems:"center",cursor:"pointer",lineHeight:1,padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative"},children:p.jsx("span",{className:"ahd-tabs-label-text",style:A0,children:T.label??`Tab ${O+1}`})},O))}),p.jsx("div",{className:"ahd-tabs-panels",children:s.map((T,O)=>p.jsx("div",{id:`${c}-panel-${O}`,className:"ahd-tabs-panel","data-ahd-tab-index":O,style:z(O),children:(T.contentChildrenIds??[]).map(B=>p.jsx(ve,{id:B},B))},O))})]})}const N0=`@media (max-width:${Re}px)`,E0=`@media (max-width:${Ne}px)`,R0=$({contentChildrenIds:V(k()).optional().nullable()}),I0=$({style:$({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([g(),k(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:k().optional().nullable(),arrowBgColor:k().optional().nullable(),arrowBorderColor:k().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:k().optional().nullable(),dotActiveColor:k().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:$({slidesPerView:g().min(1).max(6).optional().nullable(),slidesPerViewTablet:g().min(1).max(6).optional().nullable(),slidesPerViewMobile:g().min(1).max(6).optional().nullable(),showArrows:L().optional().nullable(),showDots:L().optional().nullable(),autoplay:L().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:L().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:V(R0).min(1).max(20).optional().nullable()}).optional().nullable()});function M0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const P0="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",T0="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",ji=({d:e,size:t=20})=>p.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:p.jsx("path",{d:e})});function O0({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=G.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,2)),a=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,m=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,f=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",v=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",S=(e==null?void 0:e.arrowSize)??40,_=(e==null?void 0:e.dotColor)??"#d4d4d4",C=(e==null?void 0:e.dotActiveColor)??"#262626",x=(e==null?void 0:e.dotSize)??8,w=Math.max(12,Math.min(40,Math.round(S*.5))),N=e==null?void 0:e.padding,A=e==null?void 0:e.margin,y=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),I={width:y>0?`calc(100% - ${y}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:M0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0},M=G.useMemo(()=>{const T=`.${o}`,O=B=>`calc((100% - ${h*(B-1)}px) / ${B})`;return`${T} .ahd-carousel-viewport{overflow:hidden;width:100%}${T} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${T} .ahd-carousel-slide{flex:0 0 ${O(r)};min-width:0;box-sizing:border-box}${T} .ahd-carousel-prev svg,${T} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${w}px);height:var(--ahd-carousel-chevron-size,${w}px)}@media (max-width:${Re}px){${T} .ahd-carousel-slide{flex-basis:${O(i)}}}@media (max-width:${Ne}px){${T} .ahd-carousel-slide{flex-basis:${O(a)}}}`},[o,h,d,r,i,a,w]),P={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${S}px)`,height:`var(--ahd-carousel-arrow-size, ${S}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${S}px)`,borderRadius:"50%",border:`1px solid ${v}`,backgroundColor:b,backgroundImage:"none",color:f,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},z=Math.min(r,i,a),H=Math.max(1,n.length-z+1);return p.jsxs("div",{className:`${o} ahd-carousel`,style:I,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":m?"1":"0",children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&p.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:p.jsx(ji,{d:P0,size:w})}),p.jsx("div",{className:"ahd-carousel-viewport",children:p.jsx("div",{className:"ahd-carousel-track",children:n.map((T,O)=>p.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":O,children:(T.contentChildrenIds??[]).map(B=>p.jsx(ve,{id:B},B))},O))})}),l&&p.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:p.jsx(ji,{d:T0,size:w})})]}),s&&H>1&&p.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":_,"data-dot-active-color":C,children:Array.from({length:H}).map((T,O)=>p.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":O,"aria-label":`Go to slide ${O+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${x}px)`,height:`var(--ahd-carousel-dot-size, ${x}px)`,minWidth:`var(--ahd-carousel-dot-size, ${x}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:O===0?C:_,backgroundImage:"none"}},O))})]})}const L0=$({style:$({starColor:k().optional().nullable(),starEmptyColor:k().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:k().optional().nullable(),fontSize:D([k(),g()]).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:$({value:D([g(),k()]).optional().nullable(),max:D([g(),k()]).optional().nullable(),showValue:L().optional().nullable()}).optional().nullable()}),Bi="M12 .587l3.668 7.431 8.2 1.193-5.934 5.787 1.401 8.168L12 18.896l-7.335 3.866 1.401-8.168L.132 9.211l8.2-1.193z";function z0(e){if(!e)return;const t=zt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function j0(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function B0({fillPct:e,size:t,filledColor:n,emptyColor:o}){return p.jsxs("span",{className:"ahd-rating-star",style:{position:"relative",display:"inline-block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`,lineHeight:0},children:[p.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:p.jsx("path",{d:Bi})}),p.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:p.jsx("svg",{viewBox:"0 0 24 24",fill:n,style:{display:"block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`},"aria-hidden":"true",children:p.jsx("path",{d:Bi})})})]})}function D0({style:e,props:t}){const n=G.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(S,_)=>{if(typeof S=="number")return Number.isFinite(S)?S:_;const C=parseFloat(String(S??""));return Number.isFinite(C)?C:_},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,m=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=e==null?void 0:e.padding,f=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:m,fontFamily:z0(e==null?void 0:e.fontFamily),fontSize:j0(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,boxSizing:"border-box"},v=S=>{const _=i-S;return _>=1?100:_>=.5?50:_>0?Math.round(_*100):0};return p.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[p.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:r}).map((S,_)=>p.jsx(B0,{fillPct:v(_),size:c,filledColor:l,emptyColor:s},_))}),a&&p.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),p.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const H0=$({responsive:tt,style:$({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:D([g(),k(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable()}).optional().nullable(),props:$({direction:R(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:L().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:L().optional().nullable(),verticalAlign:R(["top","middle","bottom"]).optional().nullable(),items:V($({contentChildrenIds:V(k()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),F0=40,G0=32,rl=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,U0=e=>Math.max(2,Math.round(1200/e)),Z0=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),il=e=>e==="up"||e==="down",W0=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Tn=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function V0(e,t){return{speed:rl(t==null?void 0:t.speed,F0),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??G0}}function q0(e,t,n){var r,i,a,l;const o=e==null?void 0:e[t];return{speed:rl((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap}}const Y0=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Di=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${U0(e.speed)}s;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,K0=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Tn(t)}!important;mask-image:${Tn(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function J0({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=il(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":W0(i),m=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${m}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${m}%)}}`,h=(f,b)=>{if(!Y0(r,b))return"";const v=q0(r,b,o);return`${f}{${a}{${Di(v)};${K0(v,l)}}}`};return d+`${a}{${Di(o)}}${a} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${a} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${a} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${a}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(_r,"tablet")+h(Be,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function X0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Q0(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function ev({style:e,props:t,responsive:n}){const o=G.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=Z0(t==null?void 0:t.repeat),l=il(i),s=V0(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,m=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:m>0?`calc(100% - ${m}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...Q0(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:X0(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:void 0,margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Tn(l),maskImage:Tn(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",f=G.useMemo(()=>J0({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:h}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,n,h]),b=v=>p.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:r.map((S,_)=>p.jsx("div",{className:"ahd-marquee-item",children:(S.contentChildrenIds??[]).map(C=>p.jsx(ve,{id:C},C))},_))},v);return p.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),p.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((v,S)=>b(S))})]})}const tv=$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),nv=$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),ov=$({style:$({backgroundColor:k().optional().nullable(),textColor:k().optional().nullable(),accentColor:k().optional().nullable(),numberColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([g(),k(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:tv,margin:nv}).optional().nullable(),props:$({layout:R(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:k().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:L().default(!0),expiredBehavior:R(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:k().default("Offer has ended")}).optional().nullable()});function rv(e){return String(Math.max(0,e)).padStart(2,"0")}function iv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return p.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[p.jsx("div",{"data-ahd-timer-unit":c.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:rv(c.value)}),r&&p.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function av(e){return String(Math.max(0,e)).padStart(2,"0")}const zo=26,Hi=2*Math.PI*zo;function lv({value:e,max:t,accentColor:n,numberColor:o,unit:r}){const i=t>0?Math.min(1,Math.max(0,e/t)):0,a=Hi*(1-i);return p.jsxs("svg",{"data-ahd-timer-unit":r,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[p.jsx("circle",{cx:32,cy:32,r:zo,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),p.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:zo,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Hi,strokeDashoffset:a,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),p.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:700,fill:o,children:av(e)})]})}function sv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=i??"#7c3aed",c=l??"#1f1f1f",u=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return p.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:u.map(m=>p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[p.jsx(lv,{value:m.value,max:m.max,accentColor:s,numberColor:c,unit:m.label.toLowerCase()}),r&&p.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:m.label})]},m.label))})}function gt(e){return String(Math.max(0,e)).padStart(2,"0")}function cv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a}){const l=[{key:"days",text:r?`${e}d`:gt(e)},{key:"hours",text:r?`${gt(t)}h`:gt(t)},{key:"minutes",text:r?`${gt(n)}m`:gt(n)},{key:"seconds",text:r?`${gt(o)}s`:gt(o)}],s=r?" ":" : ";return p.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??"#1f1f1f"},children:[p.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>p.jsxs(G.Fragment,{children:[u>0&&s,p.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function uv(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function dv(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function hv({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=dv(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,m=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:m>0?`calc(100% - ${m}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:uv(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:"16px",margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0},h={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:r,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor},f=s&&i==="showMessage",b=s&&i==="hide";return p.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0",style:{...d,display:b?"none":void 0},children:[p.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:f?void 0:"none"},children:a}),p.jsxs("div",{"data-ahd-timer-body":!0,style:{display:f?"none":void 0},children:[o==="digitalFlip"&&p.jsx(iv,{...h}),o==="circularProgress"&&p.jsx(sv,{...h}),o==="textInline"&&p.jsx(cv,{...h})]})]})}const fv=R(["left","center","right","space-between"]),mv=$({contentChildrenIds:V(k()).optional().nullable()}),gv=$({childrenIds:V(k())}),pv=$({style:$({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([g(),k(),$({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(120).optional().nullable(),columnsGap:g().min(0).max(120).optional().nullable(),rowsGap:g().min(0).max(120).optional().nullable(),controlGap:g().min(0).max(120).optional().nullable(),controlAlign:fv.optional().nullable(),buttonSize:g().min(20).max(72).optional().nullable(),buttonGap:g().min(0).max(40).optional().nullable(),buttonRadius:g().min(0).max(999).optional().nullable(),buttonBg:k().optional().nullable(),buttonColor:k().optional().nullable(),buttonBorderColor:k().optional().nullable(),activeButtonBg:k().optional().nullable(),activeButtonColor:k().optional().nullable(),activeButtonBorderColor:k().optional().nullable(),arrowColor:k().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:k().optional().nullable()}).optional().nullable(),props:$({items:V(mv).min(1).max(50).optional().nullable(),cells:V(gv).optional().nullable(),columnsCount:g().int().min(1).max(12).optional().nullable(),rowsCount:g().int().min(1).max(24).optional().nullable(),columnsCountTablet:g().int().min(1).max(12).optional().nullable(),columnsCountMobile:g().int().min(1).max(12).optional().nullable(),rowsCountTablet:g().int().min(1).max(24).optional().nullable(),rowsCountMobile:g().int().min(1).max(24).optional().nullable(),contentAlignment:R(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:R(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:L().optional().nullable(),pageParam:k().min(1).max(40).optional().nullable(),syncUrl:L().optional().nullable(),showNumbers:L().optional().nullable(),showPrevNext:L().optional().nullable(),showFirstLast:L().optional().nullable(),maxVisiblePages:g().min(0).max(50).optional().nullable(),prevLabel:k().max(24).optional().nullable(),nextLabel:k().max(24).optional().nullable(),firstLabel:k().max(24).optional().nullable(),lastLabel:k().max(24).optional().nullable(),scrollToTopOnChange:L().optional().nullable(),explicitFirstPage:L().optional().nullable()}).optional().nullable()}),jo={columnsCount:2,rowsCount:2};function fo(e,t="desktop"){const n=jo,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*r,i*a,l.length),c=Array.from({length:s},(u,m)=>{var d;return{childrenIds:Array.isArray((d=l[m])==null?void 0:d.childrenIds)?l[m].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function mo(e,t="desktop"){if((e==null?void 0:e.cellsPerPage)!=null)return Math.max(1,e.cellsPerPage);const n=(e==null?void 0:e.columnsCount)??jo.columnsCount,o=(e==null?void 0:e.rowsCount)??jo.rowsCount,r=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function bv(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const vv={pageParam:"page",syncUrl:!0,showNumbers:!0,showPrevNext:!0,showFirstLast:!1,maxVisiblePages:7,scrollToTopOnChange:!0,prevLabel:"‹",nextLabel:"›",firstLabel:"«",lastLabel:"»",itemGap:16,controlGap:24,controlAlign:"center",buttonSize:36,buttonGap:8,buttonRadius:8,buttonBg:"#ffffff",buttonColor:"#262626",buttonBorderColor:"rgba(0,0,0,.12)",activeButtonBg:"#5550ff",activeButtonColor:"#ffffff",activeButtonBorderColor:"#5550ff",arrowColor:"#262626",fontSize:14};function xv({style:e,props:t}){const n=vv;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function Sv(e){return Math.max(1,e)}function _v(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function kv(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function wv({style:e,props:t}){const n=xv({style:e,props:t}),o=fo(t,"desktop"),r=fo(t,"tablet"),i=fo(t,"mobile"),a=Math.max(mo(t,"desktop"),mo(t,"tablet"),mo(t,"mobile")),l=G.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(A,y)=>o.cells[y]??{childrenIds:[]}),[o.cells,a]),s=G.useMemo(()=>bv(l,a),[l,a]),c=Sv(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,m=(e==null?void 0:e.rowsGap)??n.itemGap,d=G.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=G.useMemo(()=>_v(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),f=e==null?void 0:e.padding,b=e==null?void 0:e.margin,v=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),S={width:v>0?`calc(100% - ${v}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:kv(e==null?void 0:e.borderRadius),padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},_=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",C={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${n.buttonBorderColor}`,backgroundColor:n.buttonBg,backgroundImage:"none",color:n.buttonColor,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},x={...C,color:n.arrowColor},w=G.useMemo(()=>{const A=M=>`grid-template-columns:repeat(${M.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${M.rowsCount},auto)`,y=(M,P)=>{const z=Math.max(1,P.columnsCount*P.rowsCount);return z>=a?"":`${M} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${z+1}){display:none}`},I=`.${d}`;return`${I} .ahd-pgn-item{display:grid;${A(o)};column-gap:${u}px;row-gap:${m}px}${I} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+y(I,o)+`@media (max-width:${Re}px){${I} .ahd-pgn-item{${A(r)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(I,r)+`}@media (max-width:${Ne}px){${I} .ahd-pgn-item{${A(i)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(I,i)+"}"},[d,o,r,i,a,u,m,n.itemGap]),N=(A,y,I)=>p.jsx("button",{type:"button",className:`ahd-pgn-btn ${A}`,"data-ahd-page":I,style:x,"aria-label":y,children:y});return p.jsxs("div",{className:`${d} ahd-pagination`,style:S,"data-total-pages":c,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":n.buttonBg,"data-btn-color":n.buttonColor,"data-btn-border":n.buttonBorderColor,"data-active-bg":n.activeButtonBg,"data-active-color":n.activeButtonColor,"data-active-border":n.activeButtonBorderColor,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((A,y)=>p.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":y,style:y===0?void 0:{display:"none"},children:A.map((I,M)=>p.jsx("div",{className:"ahd-pgn-cell",children:(I.childrenIds??[]).map(P=>p.jsx(ve,{id:P},P))},M))},y))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&p.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:_,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&N("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&N("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&p.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:h.map((A,y)=>A==="ellipsis"?p.jsx("span",{className:"ahd-pgn-ellipsis",style:{...C,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${y}`):p.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":A,"aria-label":`Page ${A}`,"aria-current":A===1?"true":void 0,style:A===1?{...C,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:C,children:A},A))}),n.showPrevNext&&N("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&N("ahd-pgn-last",n.lastLabel,c)]})]})}const $v=$({style:$({padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:k().optional().nullable(),color:k().optional().nullable(),backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:k().optional().nullable(),headerColor:k().optional().nullable()}).optional().nullable(),props:$({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:L().optional().nullable(),cells:V(k()).optional().nullable(),caption:k().optional().nullable(),width:k().optional().nullable()}).optional().nullable()}),Ue={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14};function $r(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Cr(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Cv(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function Av(e){if(!e)return;const t=zt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let yv=0;function al(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Fi(e){return e?al(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function go(e){return e?al(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function Nv({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ue.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ue.columns)),i=(t==null?void 0:t.hasHeader)??Ue.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(z,H)=>a[H]??""),c=(e==null?void 0:e.borderColor)??Ue.borderColor,u=(e==null?void 0:e.borderWidth)??Ue.borderWidth,m=(e==null?void 0:e.cellPadding)??Ue.cellPadding,d=(e==null?void 0:e.headerBackground)??Ue.headerBackground,h=(e==null?void 0:e.headerColor)??Ue.headerColor,f=(e==null?void 0:e.color)??Ue.color,b=(e==null?void 0:e.fontSize)??Ue.fontSize,v=(e==null?void 0:e.backgroundColor)??null,S=`ahd-table-${++yv}`,_={padding:$r(e==null?void 0:e.padding),margin:Cr(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},C=Av(e==null?void 0:e.fontFamily),x={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},w={border:`${u}px solid ${c}`,padding:m,verticalAlign:"top"},N=C?`.${S}, .${S} * { font-family: ${C} !important; }`:"",A=`
173
+ .${S} { ${Fi(v)} }
174
174
  ${N}
175
- .${S} > tbody > tr > td > .ahd-table-cell-text { ${mo(f)} display: block; }
176
- .${S} > thead > tr > th { ${Bi(d)} }
177
- .${S} > thead > tr > th > .ahd-table-cell-text { ${mo(h)} display: block; }
178
- .${S} > caption > .ahd-table-cell-text { ${mo(f)} display: block; }
179
- `,y=Array.from({length:o},(L,H)=>H),I=Array.from({length:r},(L,H)=>H),M=L=>L.includes("<"),P=(L,H,T,O)=>n?n({row:L,col:H,value:T,isHeader:O}):M(T)?p.jsx("span",{dangerouslySetInnerHTML:{__html:T}}):T.split(`
180
- `).map((B,G,oe)=>p.jsxs(F.Fragment,{children:[B,G<oe.length-1?p.jsx("br",{}):null]},G));return p.jsxs("div",{className:"table-block",style:_,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),p.jsxs("table",{className:S,style:x,role:"table",children:[t!=null&&t.caption?p.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:p.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?p.jsx("thead",{children:p.jsx("tr",{children:I.map(L=>p.jsx("th",{scope:"col",style:{...k,fontWeight:600},children:p.jsx("div",{className:"ahd-table-cell-text",children:P(0,L,s[L]??"",!0)})},L))})}):null,p.jsx("tbody",{children:y.slice(i?1:0).map(L=>p.jsx("tr",{children:I.map(H=>p.jsx("td",{style:k,children:p.jsx("div",{className:"ahd-table-cell-text",children:P(L,H,s[L*r+H]??"",!1)})},H))},L))})]})]})}const ji=C({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),$v=C({responsive:tt,style:C({padding:ji,margin:ji,textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({demoId:w().default(""),iframeSrc:w().default(""),width:D([m(),w()]).optional().nullable(),height:D([m(),w()]).optional().nullable(),borderRadius:m().optional().nullable(),borderColor:w().optional().nullable(),borderWidth:m().optional().nullable()}).optional().nullable()}),Di=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Av=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,go=1440,po=830,yv=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:Di(e==null?void 0:e.padding),margin:Di(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return p.jsx(p.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return p.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:p.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${Av(r,"100%")})`,aspectRatio:`${go} / ${po}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:p.jsx("div",{id:"demoScaler",style:{width:go,height:po,transformOrigin:"top left"},children:p.jsx("iframe",{src:o,style:{width:go,height:po,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},nl=Mh(()=>C({id:w().optional(),name:w().optional(),href:w().optional(),menuImage:w().optional(),children:W(nl).optional()})),Nv=C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),Ev=C({menuId:w().default(""),useCustomMenu:z().default(!1),stickyNav:z().default(!1),position:R(["left","center","right"]).default("left"),orientation:R(["horizontal","vertical"]).default("horizontal"),menuItems:W(nl).optional().nullable(),startChildrenIds:W(w()).optional().nullable(),endChildrenIds:W(w()).optional().nullable(),layout:R(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:w().default("transparent"),textColor:w().default("#000000"),fontSize:w().default("14px"),fontFamily:w().optional().nullable(),fontWeight:w().default("400"),padding:w().default("8px 16px"),blockPadding:Nv,gap:w().default("16px"),showIcons:z().default(!0),iconSize:w().default("24px")}),Rv=C({style:C({}).passthrough().optional().nullable(),responsive:tt,props:Ev.optional().nullable()}),Iv={left:"flex-start",center:"center",right:"flex-end"},Pv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Mv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tv=e=>e?e.left+e.right:0,Ov=(e,t,n=!1,o,r)=>{const i=Tv(r);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Pv(o),margin:Mv(r),justifyContent:n?"space-between":Iv[t]||"flex-start"}},bo=(e,t=!1)=>({display:"flex",alignItems:"center",flex:t?"1 1 auto":"0 0 auto",justifyContent:e==="start"?"flex-start":e==="end"?"flex-end":"center",minWidth:0}),Lv=(e,t,n)=>({listStyle:"none",margin:0,padding:0,display:e==="horizontal"&&t===0?"flex":"block",flexDirection:"row",flexWrap:"wrap",gap:e==="horizontal"&&t===0?n:"0"}),zv={position:"relative"},Bv=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",backgroundColor:(l==null?void 0:l.backgroundColor)||void 0,...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),jv=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),Dv=e=>({paddingLeft:e===0?"0":"12px"}),Hv={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Fv=e=>({color:e});function Gv(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`,`${n} .ahd-menu-backdrop{display:none}`].join(""),i=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${o};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),a=`(max-width:${Me}px)`;return r+`@media ${a}{${i}}@container ahd-page ${a}{${i}}`}const Uv=e=>{if(!e)return;const t=an.find(n=>n.key===e);return(t==null?void 0:t.value)||e},zo=(e,t,n,o,r,i,a,l,s,c,u,g,d=0)=>!e||e.length===0?null:p.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:Lv(i,d,a),children:e.map((h,f)=>p.jsxs("li",{style:zv,children:[p.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},children:p.jsxs("a",{href:h.href||"#",style:Bv(l,!!h.menuImage,t,n,o,r,g,h),children:[l&&h.menuImage&&p.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:jv(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&p.jsx("div",{style:Dv(d),children:zo(h.children,t,n,o,r,"vertical",a,l,s,c,u,g,d+1)})]},h.id||f))}),Zv=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,menuItems:r,startChildrenIds:i,endChildrenIds:a,layout:l="menu-only",position:s="left",orientation:c="horizontal",backgroundColor:u="transparent",textColor:g="#000000",burgerDropdownBackgroundColor:d,fontSize:h="14px",fontFamily:f,fontWeight:b="400",padding:v="8px 16px",blockPadding:S,blockMargin:_,gap:$="16px",showIcons:x=!0,iconSize:k="24px",borderColor:N,borderWidth:A,borderRadius:y,bare:I}=e??{};if(!(Array.isArray(r)&&r.length>0)||!n&&!t)return p.jsx(p.Fragment,{});const P=l==="logo-menu"||l==="logo-menu-cta",L=l==="menu-cta"||l==="logo-menu-cta",H=P||L,T=s==="right"?"end":s==="center"?"center":"start",O=F.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),B=t||O,G=(I==null?void 0:I.toggleId)??`ahd-menu-toggle-${B}`,oe=(I==null?void 0:I.listId)??`ahd-menu-list-${B}`,te=Uv(f);if(I)return p.jsx(p.Fragment,{children:zo(r,g,h,b,v,c,$,x,k,G,oe,te)});const me=o?`.ahd-menu-sticky-${B}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${B}){position:sticky;top:0;z-index:50}`:"",ae=Gv(B,{dropdownBackground:d??(u!=="transparent"?u:null)});return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:ae}},B),me&&p.jsx("style",{dangerouslySetInnerHTML:{__html:me}}),p.jsxs("nav",{className:`ahd-menu ahd-menu-${B}${o?` ahd-menu-sticky-${B}`:""}`,"data-block":"menu","data-layout":l,style:{...Ov(u,s,H,S,_),...o?{position:"sticky",top:0,zIndex:50}:{},...N?{borderStyle:"solid",borderColor:N,borderWidth:A?`${A.top??1}px ${A.right??1}px ${A.bottom??1}px ${A.left??1}px`:"1px"}:{},...y!=null?{borderRadius:typeof y=="number"?`${y}px`:`${(y==null?void 0:y.topLeft)??0}px ${(y==null?void 0:y.topRight)??0}px ${(y==null?void 0:y.bottomRight)??0}px ${(y==null?void 0:y.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[p.jsx("input",{type:"checkbox",id:G,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":oe,style:Hv}),p.jsx("label",{htmlFor:G,className:"ahd-menu-backdrop","aria-hidden":"true"}),P&&p.jsx("div",{className:"ahd-menu-start",style:bo("start"),children:(i??[]).map(Y=>p.jsx(be,{id:Y},Y))}),p.jsx("div",{className:"ahd-menu-center",style:bo(T,H),children:zo(r,g,h,b,v,c,$,x,k,G,oe,te)}),L&&p.jsx("div",{className:"ahd-menu-end",style:bo("end"),children:(a??[]).map(Y=>p.jsx(be,{id:Y},Y))}),p.jsxs("label",{htmlFor:G,className:"ahd-menu-burger","aria-hidden":"true",style:Fv(g),children:[p.jsx("span",{}),p.jsx("span",{}),p.jsx("span",{})]})]})]})},Wv=C({style:C({}).passthrough().optional().nullable(),props:C({formId:w().default(""),formName:w().default(""),iframeSrc:w().default(""),width:w().default("100%"),height:w().default("500px"),heightTablet:w().optional(),heightMobile:w().optional(),alignment:R(["left","center","right"]).default("left")}).optional().nullable()}),Vv=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},qv=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,alignment:s="left",formName:c}=e??{};if(!n||!o)return p.jsx(p.Fragment,{});const u=s==="center"?"center":s==="right"?"flex-end":"flex-start",g=t??{},d={display:"flex",justifyContent:u,width:"100%",padding:Vv(g.padding),backgroundColor:g.backgroundColor||void 0,borderRadius:g.borderRadius||void 0},h=`form-${n}-${Math.random().toString(36).slice(2,9)}`,f=a||l?`
175
+ .${S} > tbody > tr > td > .ahd-table-cell-text { ${go(f)} display: block; }
176
+ .${S} > thead > tr > th { ${Fi(d)} }
177
+ .${S} > thead > tr > th > .ahd-table-cell-text { ${go(h)} display: block; }
178
+ .${S} > caption > .ahd-table-cell-text { ${go(f)} display: block; }
179
+ `,y=Array.from({length:o},(z,H)=>H),I=Array.from({length:r},(z,H)=>H),M=z=>z.includes("<"),P=(z,H,T,O)=>n?n({row:z,col:H,value:T,isHeader:O}):M(T)?p.jsx("span",{dangerouslySetInnerHTML:{__html:T}}):T.split(`
180
+ `).map((B,U,q)=>p.jsxs(G.Fragment,{children:[B,U<q.length-1?p.jsx("br",{}):null]},U));return p.jsxs("div",{className:"table-block",style:_,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),p.jsxs("table",{className:S,style:x,role:"table",children:[t!=null&&t.caption?p.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:p.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?p.jsx("thead",{children:p.jsx("tr",{children:I.map(z=>p.jsx("th",{scope:"col",style:{...w,fontWeight:600},children:p.jsx("div",{className:"ahd-table-cell-text",children:P(0,z,s[z]??"",!0)})},z))})}):null,p.jsx("tbody",{children:y.slice(i?1:0).map(z=>p.jsx("tr",{children:I.map(H=>p.jsx("td",{style:w,children:p.jsx("div",{className:"ahd-table-cell-text",children:P(z,H,s[z*r+H]??"",!1)})},H))},z))})]})]})}const Gi=$({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ev=$({responsive:tt,style:$({padding:Gi,margin:Gi,textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({demoId:k().default(""),iframeSrc:k().default(""),width:D([g(),k()]).optional().nullable(),height:D([g(),k()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),Ui=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Rv=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,po=1440,bo=830,Iv=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:Ui(e==null?void 0:e.padding),margin:Ui(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return p.jsx(p.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return p.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:p.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${Rv(r,"100%")})`,aspectRatio:`${po} / ${bo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:p.jsx("div",{id:"demoScaler",style:{width:po,height:bo,transformOrigin:"top left"},children:p.jsx("iframe",{src:o,style:{width:po,height:bo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},ll=jh(()=>$({id:k().optional(),name:k().optional(),href:k().optional(),menuImage:k().optional(),children:V(ll).optional()})),Mv=$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),Pv=$({menuId:k().default(""),useCustomMenu:L().default(!1),stickyNav:L().default(!1),stickyNavTablet:L().optional().nullable(),stickyNavMobile:L().optional().nullable(),position:R(["left","center","right"]).default("left"),orientation:R(["horizontal","vertical"]).default("horizontal"),menuItems:V(ll).optional().nullable(),startChildrenIds:V(k()).optional().nullable(),endChildrenIds:V(k()).optional().nullable(),layout:R(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:k().default("transparent"),textColor:k().default("#000000"),fontSize:k().default("14px"),fontFamily:k().optional().nullable(),fontWeight:k().default("400"),padding:k().default("8px 16px"),blockPadding:Mv,gap:k().default("16px"),showIcons:L().default(!0),iconSize:k().default("24px")}),Tv=$({style:$({}).passthrough().optional().nullable(),responsive:tt,props:Pv.optional().nullable()}),Ov={left:"flex-start",center:"center",right:"flex-end"},Lv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jv=e=>e?e.left+e.right:0,Bv=(e,t,n=!1,o,r)=>{const i=jv(r);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Lv(o),margin:zv(r),justifyContent:n?"space-between":Ov[t]||"flex-start"}},vo=(e,t=!1)=>({display:"flex",alignItems:"center",flex:t?"1 1 auto":"0 0 auto",justifyContent:e==="start"?"flex-start":e==="end"?"flex-end":"center",minWidth:0}),Dv=(e,t,n)=>({listStyle:"none",margin:0,padding:0,display:e==="horizontal"&&t===0?"flex":"block",flexDirection:"row",flexWrap:"wrap",gap:e==="horizontal"&&t===0?n:"0"}),Hv={position:"relative"},Fv=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",backgroundColor:(l==null?void 0:l.backgroundColor)||void 0,...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),Gv=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),Uv=e=>({paddingLeft:e===0?"0":"12px"}),Zv={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Wv=e=>({color:e});function Vv(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`,`${n} .ahd-menu-backdrop{display:none}`].join(""),i=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${o};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),a=`(max-width:${Re}px)`;return r+`@media ${a}{${i}}@container ahd-page ${a}{${i}}`}const qv=e=>{if(!e)return;const t=zt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Bo=(e,t,n,o,r,i,a,l,s,c,u,m,d=0)=>!e||e.length===0?null:p.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:Dv(i,d,a),children:e.map((h,f)=>p.jsxs("li",{style:Hv,children:[p.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},children:p.jsxs("a",{href:h.href||"#",style:Fv(l,!!h.menuImage,t,n,o,r,m,h),children:[l&&h.menuImage&&p.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:Gv(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&p.jsx("div",{style:Uv(d),children:Bo(h.children,t,n,o,r,"vertical",a,l,s,c,u,m,d+1)})]},h.id||f))}),Yv=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:r,stickyNavMobile:i,menuItems:a,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:m="horizontal",backgroundColor:d="transparent",textColor:h="#000000",burgerDropdownBackgroundColor:f,fontSize:b="14px",fontFamily:v,fontWeight:S="400",padding:_="8px 16px",blockPadding:C,blockMargin:x,gap:w="16px",showIcons:N=!0,iconSize:A="24px",borderColor:y,borderWidth:I,borderRadius:M,bare:P}=e??{};if(!(Array.isArray(a)&&a.length>0)||!n&&!t)return p.jsx(p.Fragment,{});const H=c==="logo-menu"||c==="logo-menu-cta",T=c==="menu-cta"||c==="logo-menu-cta",O=H||T,B=u==="right"?"end":u==="center"?"center":"start",U=G.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),q=t||U,J=(P==null?void 0:P.toggleId)??`ahd-menu-toggle-${q}`,me=(P==null?void 0:P.listId)??`ahd-menu-list-${q}`,ae=qv(v);if(P)return p.jsx(p.Fragment,{children:Bo(a,h,b,S,_,m,w,N,A,J,me,ae)});const ne=!!o,Z=r??ne,ie=i??Z,Se=F=>F?`.ahd-menu-sticky-${q}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${q}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${q}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${q}){position:static}`;let se=ne?Se(!0):"";if(Z!==ne){const F=`(max-width:${Re}px)`;se+=`@media ${F}{${Se(Z)}}`,se+=`@container ahd-page ${F}{${Se(Z)}}`}if(ie!==Z){const F=`(max-width:${Ne}px)`;se+=`@media ${F}{${Se(ie)}}`,se+=`@container ahd-page ${F}{${Se(ie)}}`}const de=Vv(q,{dropdownBackground:f??(d!=="transparent"?d:null)});return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:de}},q),se&&p.jsx("style",{dangerouslySetInnerHTML:{__html:se}}),p.jsxs("nav",{className:`ahd-menu ahd-menu-${q} ahd-menu-sticky-${q}`,"data-block":"menu","data-layout":c,style:{...Bv(d,u,O,C,x),...y?{borderStyle:"solid",borderColor:y,borderWidth:I?`${I.top??1}px ${I.right??1}px ${I.bottom??1}px ${I.left??1}px`:"1px"}:{},...M!=null?{borderRadius:typeof M=="number"?`${M}px`:`${(M==null?void 0:M.topLeft)??0}px ${(M==null?void 0:M.topRight)??0}px ${(M==null?void 0:M.bottomRight)??0}px ${(M==null?void 0:M.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[p.jsx("input",{type:"checkbox",id:J,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":me,style:Zv}),p.jsx("label",{htmlFor:J,className:"ahd-menu-backdrop","aria-hidden":"true"}),H&&p.jsx("div",{className:"ahd-menu-start",style:vo("start"),children:(l??[]).map(F=>p.jsx(ve,{id:F},F))}),p.jsx("div",{className:"ahd-menu-center",style:vo(B,O),children:Bo(a,h,b,S,_,m,w,N,A,J,me,ae)}),T&&p.jsx("div",{className:"ahd-menu-end",style:vo("end"),children:(s??[]).map(F=>p.jsx(ve,{id:F},F))}),p.jsxs("label",{htmlFor:J,className:"ahd-menu-burger","aria-hidden":"true",style:Wv(h),children:[p.jsx("span",{}),p.jsx("span",{}),p.jsx("span",{})]})]})]})},Kv=$({style:$({}).passthrough().optional().nullable(),props:$({formId:k().default(""),formName:k().default(""),iframeSrc:k().default(""),width:k().default("100%"),height:k().default("500px"),heightTablet:k().optional(),heightMobile:k().optional(),alignment:R(["left","center","right"]).default("left")}).optional().nullable()}),Jv=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},Xv=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,alignment:s="left",formName:c}=e??{};if(!n||!o)return p.jsx(p.Fragment,{});const u=s==="center"?"center":s==="right"?"flex-end":"flex-start",m=t??{},d={display:"flex",justifyContent:u,width:"100%",padding:Jv(m.padding),backgroundColor:m.backgroundColor||void 0,borderRadius:m.borderRadius||void 0},h=`form-${n}-${Math.random().toString(36).slice(2,9)}`,f=a||l?`
181
181
  #${h} {
182
- ${a?`@media (max-width: ${Me}px) { height: ${a} !important; }`:""}
183
- ${l?`@media (max-width: ${De}px) { height: ${l} !important; }`:""}
182
+ ${a?`@media (max-width: ${Re}px) { height: ${a} !important; }`:""}
183
+ ${l?`@media (max-width: ${Ne}px) { height: ${l} !important; }`:""}
184
184
  }
185
- `:"";return p.jsxs(p.Fragment,{children:[f&&p.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),p.jsx("div",{style:d,children:p.jsx("iframe",{id:h,src:o,title:c||"Form",style:{width:r||"100%",height:i||"500px",border:"none",display:"block",borderRadius:g.borderRadius||void 0},loading:"lazy"})})]})},Yv=C({style:C({}).passthrough().optional().nullable(),props:C({bannerId:w().default(""),bannerName:w().optional().nullable(),contentDocument:Pt(w(),Qt()).optional().nullable(),padding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),Kv=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Jv=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Xv=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?n&&n.root?p.jsx("div",{className:"app-banner-picker-block",style:{...Kv(o),...Jv(r)},children:p.jsx(nn,{document:n,rootBlockId:"root"})}):p.jsx(p.Fragment,{}):p.jsx(p.Fragment,{})},Qv=C({style:C({}).passthrough().optional().nullable(),props:C({faqGroupId:w().default(""),faqGroupName:w().optional().nullable(),contentDocument:Pt(w(),Qt()).optional().nullable(),padding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),ex=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},tx=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},nx=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?!n||!n.root?p.jsx(p.Fragment,{}):p.jsx("div",{className:"faq-picker-block",style:{...ex(o),...tx(r)},children:p.jsx(nn,{document:n,rootBlockId:"root"})}):p.jsx(p.Fragment,{})},ox=C({style:C({padding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({text:w().optional().nullable(),targetId:w().optional().nullable(),backgroundColor:w().optional().nullable(),textColor:w().optional().nullable(),fontSize:m().optional().nullable(),borderRadius:m().optional().nullable(),paddingX:m().optional().nullable(),paddingY:m().optional().nullable(),marginX:m().optional().nullable(),marginY:m().optional().nullable(),displayMode:R(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),Ze={text:"Skip to main content",targetId:"main-content",backgroundColor:"#000000",textColor:"#ffffff",fontSize:14,borderRadius:4,paddingX:12,paddingY:8,marginX:0,marginY:0};let rx=0;function ol({style:e,props:t}){var S,_;const n=((S=t==null?void 0:t.text)==null?void 0:S.trim())||Ze.text,o=((_=t==null?void 0:t.targetId)==null?void 0:_.trim())||Ze.targetId,r=(t==null?void 0:t.backgroundColor)??Ze.backgroundColor,i=(t==null?void 0:t.textColor)??Ze.textColor,a=(t==null?void 0:t.fontSize)??Ze.fontSize,l=(t==null?void 0:t.borderRadius)??Ze.borderRadius,s=(t==null?void 0:t.paddingX)??Ze.paddingX,c=(t==null?void 0:t.paddingY)??Ze.paddingY,u=(t==null?void 0:t.marginX)??Ze.marginX,g=(t==null?void 0:t.marginY)??Ze.marginY,d="always-visible",h=`skip-link-${++rx}`,f={padding:Sr(e==null?void 0:e.padding),margin:_r(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
185
+ `:"";return p.jsxs(p.Fragment,{children:[f&&p.jsx("style",{dangerouslySetInnerHTML:{__html:f}}),p.jsx("div",{style:d,children:p.jsx("iframe",{id:h,src:o,title:c||"Form",style:{width:r||"100%",height:i||"500px",border:"none",display:"block",borderRadius:m.borderRadius||void 0},loading:"lazy"})})]})},Qv=$({style:$({}).passthrough().optional().nullable(),props:$({bannerId:k().default(""),bannerName:k().optional().nullable(),contentDocument:Mt(k(),en()).optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),ex=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},tx=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},nx=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?n&&n.root?p.jsx("div",{className:"app-banner-picker-block",style:{...ex(o),...tx(r)},children:p.jsx(on,{document:n,rootBlockId:"root"})}):p.jsx(p.Fragment,{}):p.jsx(p.Fragment,{})},ox=$({style:$({}).passthrough().optional().nullable(),props:$({faqGroupId:k().default(""),faqGroupName:k().optional().nullable(),contentDocument:Mt(k(),en()).optional().nullable(),padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),rx=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},ix=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},ax=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?!n||!n.root?p.jsx(p.Fragment,{}):p.jsx("div",{className:"faq-picker-block",style:{...rx(o),...ix(r)},children:p.jsx(on,{document:n,rootBlockId:"root"})}):p.jsx(p.Fragment,{})},lx=$({style:$({padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({text:k().optional().nullable(),targetId:k().optional().nullable(),backgroundColor:k().optional().nullable(),textColor:k().optional().nullable(),fontSize:g().optional().nullable(),borderRadius:g().optional().nullable(),paddingX:g().optional().nullable(),paddingY:g().optional().nullable(),marginX:g().optional().nullable(),marginY:g().optional().nullable(),displayMode:R(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),Ze={text:"Skip to main content",targetId:"main-content",backgroundColor:"#000000",textColor:"#ffffff",fontSize:14,borderRadius:4,paddingX:12,paddingY:8,marginX:0,marginY:0};let sx=0;function sl({style:e,props:t}){var S,_;const n=((S=t==null?void 0:t.text)==null?void 0:S.trim())||Ze.text,o=((_=t==null?void 0:t.targetId)==null?void 0:_.trim())||Ze.targetId,r=(t==null?void 0:t.backgroundColor)??Ze.backgroundColor,i=(t==null?void 0:t.textColor)??Ze.textColor,a=(t==null?void 0:t.fontSize)??Ze.fontSize,l=(t==null?void 0:t.borderRadius)??Ze.borderRadius,s=(t==null?void 0:t.paddingX)??Ze.paddingX,c=(t==null?void 0:t.paddingY)??Ze.paddingY,u=(t==null?void 0:t.marginX)??Ze.marginX,m=(t==null?void 0:t.marginY)??Ze.marginY,d="always-visible",h=`skip-link-${++sx}`,f={padding:$r(e==null?void 0:e.padding),margin:Cr(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
186
186
  display:inline-block;
187
187
  background:${r};
188
188
  color:${i};
@@ -190,12 +190,12 @@ ${h}
190
190
  font-weight:600;
191
191
  border-radius:${l}px;
192
192
  padding:${c}px ${s}px;
193
- margin:${g}px ${u}px;
193
+ margin:${m}px ${u}px;
194
194
  text-decoration:none;
195
195
  line-height:1.2;
196
196
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
197
197
  `,v=`.${h}{${b}}
198
- .${h}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return p.jsxs("div",{className:"skip-link-block",style:f,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),p.jsx("a",{href:`#${o}`,className:h,"data-skip-link":d,children:n})]})}const ix=C({style:C({padding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({renderMode:R(["inline","floating"]).optional().nullable(),position:R(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:w().optional().nullable(),triggerText:w().optional().nullable(),showLabelText:z().optional().nullable(),triggerBg:w().optional().nullable(),triggerColor:w().optional().nullable(),triggerFontSize:m().optional().nullable(),triggerBorderRadius:m().optional().nullable(),triggerPadding:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),triggerMargin:C({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),icon:R(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:C({contrast:z().optional().nullable(),invert:z().optional().nullable(),saturation:z().optional().nullable(),highlightLinks:z().optional().nullable(),textSize:z().optional().nullable(),textSpacing:z().optional().nullable(),lineHeight:z().optional().nullable(),hideImages:z().optional().nullable(),bigCursor:z().optional().nullable(),reset:z().optional().nullable()}).optional().nullable()}).optional().nullable()}),We={renderMode:"floating",position:"top-right",triggerLabel:"Accessibility tools",triggerBg:"#2563eb",triggerColor:"#ffffff",triggerFontSize:13,triggerBorderRadius:999,triggerPadding:{top:8,right:14,bottom:8,left:14},triggerMargin:{top:0,right:0,bottom:0,left:0},icon:"accessibility"},vo={accessibility:"M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2zm-9 2.5c1.38 0 2.5-1.12 2.5-2.5S13.38 6.5 12 6.5 9.5 7.62 9.5 9s1.12 2.5 2.5 2.5z","universal-access":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm5 5.2l-3.5.8v2l1.2 4.5-1.7.4-1-3.9-1 3.9-1.7-.4L9.5 13v-2L6 10.2l.3-1.5L12 10l5.7-1.3z",person:"M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.3 0-8 1.67-8 5v3h16v-3c0-3.33-4.7-5-8-5z",eye:"M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",info:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 15h-2v-6h2zm0-8h-2V7h2z"};function ax(e){return e&&vo[e]?vo[e]:vo.accessibility}function lx(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${ax(e)}"/></svg>`}const sx={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function cx(e){const t=e??"top-right";return{containerPos:t==="top-right"?"top:16px;right:16px;":t==="top-left"?"top:16px;left:16px;":t==="bottom-right"?"bottom:16px;right:16px;":"bottom:16px;left:16px;"}}function rl(e){const{containerPos:t}=cx(e.position);return`
198
+ .${h}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return p.jsxs("div",{className:"skip-link-block",style:f,children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),p.jsx("a",{href:`#${o}`,className:h,"data-skip-link":d,children:n})]})}const cx=$({style:$({padding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:R(["left","center","right"]).optional().nullable()}).optional().nullable(),props:$({renderMode:R(["inline","floating"]).optional().nullable(),position:R(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:k().optional().nullable(),triggerText:k().optional().nullable(),showLabelText:L().optional().nullable(),triggerBg:k().optional().nullable(),triggerColor:k().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:$({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:R(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:$({contrast:L().optional().nullable(),invert:L().optional().nullable(),saturation:L().optional().nullable(),highlightLinks:L().optional().nullable(),textSize:L().optional().nullable(),textSpacing:L().optional().nullable(),lineHeight:L().optional().nullable(),hideImages:L().optional().nullable(),bigCursor:L().optional().nullable(),reset:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),We={renderMode:"floating",position:"top-right",triggerLabel:"Accessibility tools",triggerBg:"#2563eb",triggerColor:"#ffffff",triggerFontSize:13,triggerBorderRadius:999,triggerPadding:{top:8,right:14,bottom:8,left:14},triggerMargin:{top:0,right:0,bottom:0,left:0},icon:"accessibility"},xo={accessibility:"M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2zm-9 2.5c1.38 0 2.5-1.12 2.5-2.5S13.38 6.5 12 6.5 9.5 7.62 9.5 9s1.12 2.5 2.5 2.5z","universal-access":"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm5 5.2l-3.5.8v2l1.2 4.5-1.7.4-1-3.9-1 3.9-1.7-.4L9.5 13v-2L6 10.2l.3-1.5L12 10l5.7-1.3z",person:"M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3.3 0-8 1.67-8 5v3h16v-3c0-3.33-4.7-5-8-5z",eye:"M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",info:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 15h-2v-6h2zm0-8h-2V7h2z"};function ux(e){return e&&xo[e]?xo[e]:xo.accessibility}function dx(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${ux(e)}"/></svg>`}const hx={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function fx(e){const t=e??"top-right";return{containerPos:t==="top-right"?"top:16px;right:16px;":t==="top-left"?"top:16px;left:16px;":t==="bottom-right"?"bottom:16px;right:16px;":"bottom:16px;left:16px;"}}function cl(e){const{containerPos:t}=fx(e.position);return`
199
199
  /* Accessibility Tools widget */
200
200
  .ahd-a11y-widget{position:relative;display:inline-block}
201
201
  .ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
@@ -227,7 +227,7 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
227
227
  html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
228
228
  html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
229
229
  html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M4 2 L4 26 L10 20 L14 30 L18 28 L14 18 L22 18 Z" fill="black" stroke="white" stroke-width="1.5"/></svg>') 4 2, auto !important}
230
- `.trim()}function il(e){const t={...sx,...e.features??{}},n=(g,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${g}" aria-pressed="false">${d}</button>`,o=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",r=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",i=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",a=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=lx(e.icon??"accessibility"),c=_v(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
230
+ `.trim()}function ul(e){const t={...hx,...e.features??{}},n=(m,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${m}" aria-pressed="false">${d}</button>`,o=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",r=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",i=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",a=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=dx(e.icon??"accessibility"),c=Cv(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
231
231
  <div class="ahd-a11y-widget ahd-a11y-${l}">
232
232
  <button type="button" class="ahd-a11y-trigger" aria-label="${u}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${c!==null?`<span>${c}</span>`:""}</button>
233
233
  <div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
@@ -235,7 +235,7 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
235
235
  ${o}${r}${i}${a}
236
236
  </div>
237
237
  </div>
238
- `.trim()}function al(){return`
238
+ `.trim()}function dl(){return`
239
239
  (function(){
240
240
  var STORAGE_KEY='ahdA11yPrefs';
241
241
  // Classes that are mutually exclusive within their group
@@ -343,20 +343,20 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
343
343
  init();
344
344
  }
345
345
  })();
346
- `.trim()}function ll({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??We.renderMode,o=(t==null?void 0:t.position)??We.position,r=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??We.triggerBg,a=(t==null?void 0:t.triggerColor)??We.triggerColor,l=(t==null?void 0:t.triggerLabel)??We.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??We.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??We.triggerBorderRadius,g=(t==null?void 0:t.triggerPadding)??We.triggerPadding,d=(t==null?void 0:t.triggerMargin)??We.triggerMargin,h=(t==null?void 0:t.icon)??We.icon,f={padding:Sr(e==null?void 0:e.padding),margin:_r(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:r,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:h,triggerLabel:l},v=rl(b),S=`.ahd-a11y-trigger{background:${i};color:${a};font-size:${c}px;border-radius:${u}px;padding:${g.top}px ${g.right}px ${g.bottom}px ${g.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,_=il(b),$=al();return p.jsxs("div",{className:"accessibility-tools-block",style:f,"data-a11y-instance":"1",children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:v+S}}),p.jsx("div",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("script",{dangerouslySetInnerHTML:{__html:$}}),p.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function ux(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}},jo={exports:{}},Te={},se={};se.__esModule=!0;se.extend=sl;se.indexOf=gx;se.escapeExpression=px;se.isEmpty=bx;se.createFrame=vx;se.blockParams=xx;se.appendContextPath=Sx;var dx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},hx=/[&<>"'`=]/g,fx=/[&<>"'`=]/;function mx(e){return dx[e]}function sl(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var wr=Object.prototype.toString;se.toString=wr;var Do=function(t){return typeof t=="function"};Do(/x/)&&(se.isFunction=Do=function(e){return typeof e=="function"&&wr.call(e)==="[object Function]"});se.isFunction=Do;var cl=Array.isArray||function(e){return e&&typeof e=="object"?wr.call(e)==="[object Array]":!1};se.isArray=cl;function gx(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function px(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return fx.test(e)?e.replace(hx,mx):e}function bx(e){return!e&&e!==0?!0:!!(cl(e)&&e.length===0)}function vx(e){var t=sl({},e);return t._parent=e,t}function xx(e,t){return e.path=t,e}function Sx(e,t){return(e?e+".":"")+t}var Ho={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(r,i){var a=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;a&&(l=a.start.line,s=a.end.line,c=a.start.column,u=a.end.column,r+=" - "+l+":"+c);for(var g=Error.prototype.constructor.call(this,r),d=0;d<n.length;d++)this[n[d]]=g[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=c,this.endColumn=u))}catch{}}o.prototype=new Error,t.default=o,e.exports=t.default})(Ho,Ho.exports);var Oe=Ho.exports,ln={},Fo={exports:{}};(function(e,t){t.__esModule=!0;var n=se;t.default=function(o){o.registerHelper("blockHelperMissing",function(r,i){var a=i.inverse,l=i.fn;if(r===!0)return l(this);if(r===!1||r==null)return a(this);if(n.isArray(r))return r.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(r,i)):a(this);if(i.data&&i.ids){var s=n.createFrame(i.data);s.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:s}}return l(r,i)})},e.exports=t.default})(Fo,Fo.exports);var _x=Fo.exports,Go={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=se,r=Oe,i=n(r);t.default=function(a){a.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,g=0,d="",h=void 0,f=void 0;s.data&&s.ids&&(f=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(h=o.createFrame(s.data));function b(x,k,N){h&&(h.key=x,h.index=k,h.first=k===0,h.last=!!N,f&&(h.contextPath=f+x)),d=d+c(l[x],{data:h,blockParams:o.blockParams([l[x],x],[f+x,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var v=l.length;g<v;g++)g in l&&b(g,g,g===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var S=[],_=l[Symbol.iterator](),$=_.next();!$.done;$=_.next())S.push($.value);l=S;for(var v=l.length;g<v;g++)b(g,g,g===l.length-1)}else(function(){var x=void 0;Object.keys(l).forEach(function(k){x!==void 0&&b(x,g-1),x=k,g++}),x!==void 0&&b(x,g-1,!0)})();return g===0&&(d=u(this)),d})},e.exports=t.default})(Go,Go.exports);var wx=Go.exports,Uo={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=Oe,r=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Uo,Uo.exports);var kx=Uo.exports,Zo={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=se,r=Oe,i=n(r);t.default=function(a){a.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return o.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||o.isEmpty(l)?s.inverse(this):s.fn(this)}),a.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Zo,Zo.exports);var Cx=Zo.exports,Wo={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],r=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),o[0]=a,n.log.apply(n,o)})},e.exports=t.default})(Wo,Wo.exports);var $x=Wo.exports,Vo={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,r,i){return o&&i.lookupProperty(o,r)})},e.exports=t.default})(Vo,Vo.exports);var Ax=Vo.exports,qo={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=se,r=Oe,i=n(r);t.default=function(a){a.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var c=s.fn;if(o.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=o.createFrame(s.data),u.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:o.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(qo,qo.exports);var yx=qo.exports;ln.__esModule=!0;ln.registerDefaultHelpers=Fx;ln.moveHelperToHooks=Gx;function xt(e){return e&&e.__esModule?e:{default:e}}var Nx=_x,Ex=xt(Nx),Rx=wx,Ix=xt(Rx),Px=kx,Mx=xt(Px),Tx=Cx,Ox=xt(Tx),Lx=$x,zx=xt(Lx),Bx=Ax,jx=xt(Bx),Dx=yx,Hx=xt(Dx);function Fx(e){Ex.default(e),Ix.default(e),Mx.default(e),Ox.default(e),zx.default(e),jx.default(e),Hx.default(e)}function Gx(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var kr={},Yo={exports:{}};(function(e,t){t.__esModule=!0;var n=se;t.default=function(o){o.registerDecorator("inline",function(r,i,a,l){var s=r;return i.partials||(i.partials={},s=function(c,u){var g=a.partials;a.partials=n.extend({},g,i.partials);var d=r(c,u);return a.partials=g,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Yo,Yo.exports);var Ux=Yo.exports;kr.__esModule=!0;kr.registerDefaultDecorators=qx;function Zx(e){return e&&e.__esModule?e:{default:e}}var Wx=Ux,Vx=Zx(Wx);function qx(e){Vx.default(e)}var Ko={exports:{}};(function(e,t){t.__esModule=!0;var n=se,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=n.indexOf(o.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var a=o.methodMap[i];console[a]||(a="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[a].apply(console,s)}}};t.default=o,e.exports=t.default})(Ko,Ko.exports);var ul=Ko.exports,zt={};zt.__esModule=!0;zt.createProtoAccessControl=Xx;zt.resultIsAllowed=Qx;zt.resetLoggedProperties=t1;function Yx(e){return e&&e.__esModule?e:{default:e}}var Hi=se,Kx=ul,Jx=Yx(Kx),On=Object.create(null);function Xx(e){var t=Object.create(null);t.__proto__=!1,Hi.extend(t,e.allowedProtoProperties);var n=Object.create(null);return n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1,n.__lookupSetter__=!1,Hi.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function Qx(e,t,n){return Fi(typeof e=="function"?t.methods:t.properties,n)}function Fi(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(e1(t),!1)}function e1(e){On[e]!==!0&&(On[e]=!0,Jx.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
346
+ `.trim()}function hl({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??We.renderMode,o=(t==null?void 0:t.position)??We.position,r=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??We.triggerBg,a=(t==null?void 0:t.triggerColor)??We.triggerColor,l=(t==null?void 0:t.triggerLabel)??We.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??We.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??We.triggerBorderRadius,m=(t==null?void 0:t.triggerPadding)??We.triggerPadding,d=(t==null?void 0:t.triggerMargin)??We.triggerMargin,h=(t==null?void 0:t.icon)??We.icon,f={padding:$r(e==null?void 0:e.padding),margin:Cr(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:r,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:h,triggerLabel:l},v=cl(b),S=`.ahd-a11y-trigger{background:${i};color:${a};font-size:${c}px;border-radius:${u}px;padding:${m.top}px ${m.right}px ${m.bottom}px ${m.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,_=ul(b),C=dl();return p.jsxs("div",{className:"accessibility-tools-block",style:f,"data-a11y-instance":"1",children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:v+S}}),p.jsx("div",{dangerouslySetInnerHTML:{__html:_}}),p.jsx("script",{dangerouslySetInnerHTML:{__html:C}}),p.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function mx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Do={exports:{}},Ho={exports:{}},Oe={},ue={};ue.__esModule=!0;ue.extend=fl;ue.indexOf=xx;ue.escapeExpression=Sx;ue.isEmpty=_x;ue.createFrame=kx;ue.blockParams=wx;ue.appendContextPath=$x;var gx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},px=/[&<>"'`=]/g,bx=/[&<>"'`=]/;function vx(e){return gx[e]}function fl(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var Ar=Object.prototype.toString;ue.toString=Ar;var Fo=function(t){return typeof t=="function"};Fo(/x/)&&(ue.isFunction=Fo=function(e){return typeof e=="function"&&Ar.call(e)==="[object Function]"});ue.isFunction=Fo;var ml=Array.isArray||function(e){return e&&typeof e=="object"?Ar.call(e)==="[object Array]":!1};ue.isArray=ml;function xx(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Sx(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return bx.test(e)?e.replace(px,vx):e}function _x(e){return!e&&e!==0?!0:!!(ml(e)&&e.length===0)}function kx(e){var t=fl({},e);return t._parent=e,t}function wx(e,t){return e.path=t,e}function $x(e,t){return(e?e+".":"")+t}var Go={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(r,i){var a=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;a&&(l=a.start.line,s=a.end.line,c=a.start.column,u=a.end.column,r+=" - "+l+":"+c);for(var m=Error.prototype.constructor.call(this,r),d=0;d<n.length;d++)this[n[d]]=m[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=c,this.endColumn=u))}catch{}}o.prototype=new Error,t.default=o,e.exports=t.default})(Go,Go.exports);var Le=Go.exports,ln={},Uo={exports:{}};(function(e,t){t.__esModule=!0;var n=ue;t.default=function(o){o.registerHelper("blockHelperMissing",function(r,i){var a=i.inverse,l=i.fn;if(r===!0)return l(this);if(r===!1||r==null)return a(this);if(n.isArray(r))return r.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(r,i)):a(this);if(i.data&&i.ids){var s=n.createFrame(i.data);s.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:s}}return l(r,i)})},e.exports=t.default})(Uo,Uo.exports);var Cx=Uo.exports,Zo={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=ue,r=Le,i=n(r);t.default=function(a){a.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,m=0,d="",h=void 0,f=void 0;s.data&&s.ids&&(f=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(h=o.createFrame(s.data));function b(x,w,N){h&&(h.key=x,h.index=w,h.first=w===0,h.last=!!N,f&&(h.contextPath=f+x)),d=d+c(l[x],{data:h,blockParams:o.blockParams([l[x],x],[f+x,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var v=l.length;m<v;m++)m in l&&b(m,m,m===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var S=[],_=l[Symbol.iterator](),C=_.next();!C.done;C=_.next())S.push(C.value);l=S;for(var v=l.length;m<v;m++)b(m,m,m===l.length-1)}else(function(){var x=void 0;Object.keys(l).forEach(function(w){x!==void 0&&b(x,m-1),x=w,m++}),x!==void 0&&b(x,m-1,!0)})();return m===0&&(d=u(this)),d})},e.exports=t.default})(Zo,Zo.exports);var Ax=Zo.exports,Wo={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=Le,r=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Wo,Wo.exports);var yx=Wo.exports,Vo={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=ue,r=Le,i=n(r);t.default=function(a){a.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return o.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||o.isEmpty(l)?s.inverse(this):s.fn(this)}),a.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Vo,Vo.exports);var Nx=Vo.exports,qo={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],r=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),o[0]=a,n.log.apply(n,o)})},e.exports=t.default})(qo,qo.exports);var Ex=qo.exports,Yo={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,r,i){return o&&i.lookupProperty(o,r)})},e.exports=t.default})(Yo,Yo.exports);var Rx=Yo.exports,Ko={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=ue,r=Le,i=n(r);t.default=function(a){a.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var c=s.fn;if(o.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=o.createFrame(s.data),u.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:o.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(Ko,Ko.exports);var Ix=Ko.exports;ln.__esModule=!0;ln.registerDefaultHelpers=Wx;ln.moveHelperToHooks=Vx;function xt(e){return e&&e.__esModule?e:{default:e}}var Mx=Cx,Px=xt(Mx),Tx=Ax,Ox=xt(Tx),Lx=yx,zx=xt(Lx),jx=Nx,Bx=xt(jx),Dx=Ex,Hx=xt(Dx),Fx=Rx,Gx=xt(Fx),Ux=Ix,Zx=xt(Ux);function Wx(e){Px.default(e),Ox.default(e),zx.default(e),Bx.default(e),Hx.default(e),Gx.default(e),Zx.default(e)}function Vx(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var yr={},Jo={exports:{}};(function(e,t){t.__esModule=!0;var n=ue;t.default=function(o){o.registerDecorator("inline",function(r,i,a,l){var s=r;return i.partials||(i.partials={},s=function(c,u){var m=a.partials;a.partials=n.extend({},m,i.partials);var d=r(c,u);return a.partials=m,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Jo,Jo.exports);var qx=Jo.exports;yr.__esModule=!0;yr.registerDefaultDecorators=Xx;function Yx(e){return e&&e.__esModule?e:{default:e}}var Kx=qx,Jx=Yx(Kx);function Xx(e){Jx.default(e)}var Xo={exports:{}};(function(e,t){t.__esModule=!0;var n=ue,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=n.indexOf(o.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var a=o.methodMap[i];console[a]||(a="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[a].apply(console,s)}}};t.default=o,e.exports=t.default})(Xo,Xo.exports);var gl=Xo.exports,jt={};jt.__esModule=!0;jt.createProtoAccessControl=n1;jt.resultIsAllowed=o1;jt.resetLoggedProperties=i1;function Qx(e){return e&&e.__esModule?e:{default:e}}var Zi=ue,e1=gl,t1=Qx(e1),On=Object.create(null);function n1(e){var t=Object.create(null);t.__proto__=!1,Zi.extend(t,e.allowedProtoProperties);var n=Object.create(null);return n.constructor=!1,n.__defineGetter__=!1,n.__defineSetter__=!1,n.__lookupGetter__=!1,n.__lookupSetter__=!1,Zi.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function o1(e,t,n){return Wi(typeof e=="function"?t.methods:t.properties,n)}function Wi(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(r1(t),!1)}function r1(e){On[e]!==!0&&(On[e]=!0,t1.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
347
347
  You can add a runtime option to disable the check or this warning:
348
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function t1(){Object.keys(On).forEach(function(e){delete On[e]})}Te.__esModule=!0;Te.HandlebarsEnvironment=Jo;function dl(e){return e&&e.__esModule?e:{default:e}}var pt=se,n1=Oe,xo=dl(n1),o1=ln,r1=kr,i1=ul,Ln=dl(i1),a1=zt,l1="4.7.9";Te.VERSION=l1;var s1=8;Te.COMPILER_REVISION=s1;var c1=7;Te.LAST_COMPATIBLE_COMPILER_REVISION=c1;var u1={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Te.REVISION_CHANGES=u1;var So="[object Object]";function Jo(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},o1.registerDefaultHelpers(this),r1.registerDefaultDecorators(this)}Jo.prototype={constructor:Jo,logger:Ln.default,log:Ln.default.log,registerHelper:function(t,n){if(pt.toString.call(t)===So){if(n)throw new xo.default("Arg not supported with multiple helpers");pt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(pt.toString.call(t)===So)pt.extend(this.partials,t);else{if(typeof n>"u")throw new xo.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(pt.toString.call(t)===So){if(n)throw new xo.default("Arg not supported with multiple decorators");pt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){a1.resetLoggedProperties()}};var d1=Ln.default.log;Te.log=d1;Te.createFrame=pt.createFrame;Te.logger=Ln.default;var Xo={exports:{}};(function(e,t){t.__esModule=!0;function n(o){this.string=o}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Xo,Xo.exports);var h1=Xo.exports,ht={},Cr={};Cr.__esModule=!0;Cr.wrapHelper=f1;function f1(e,t){if(typeof e!="function")return e;var n=function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)};return n}ht.__esModule=!0;ht.checkRevision=x1;ht.template=S1;ht.wrapProgram=$n;ht.resolvePartial=_1;ht.invokePartial=w1;ht.noop=hl;function m1(e){return e&&e.__esModule?e:{default:e}}function g1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var p1=se,yt=g1(p1),b1=Oe,Je=m1(b1),Xe=Te,Gi=ln,v1=Cr,Ui=zt;function x1(e){var t=e&&e[0]||1,n=Xe.COMPILER_REVISION;if(!(t>=Xe.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Xe.COMPILER_REVISION))if(t<Xe.LAST_COMPATIBLE_COMPILER_REVISION){var o=Xe.REVISION_CHANGES[n],r=Xe.REVISION_CHANGES[t];throw new Je.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+r+").")}else throw new Je.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function S1(e,t){if(!t)throw new Je.default("No environment passed to template");if(!e||!e.main)throw new Je.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function o(a,l,s){s.hash&&(l=yt.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,a,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
349
- `),g=0,d=u.length;g<d&&!(!u[g]&&g+1===d);g++)u[g]=s.indent+u[g];c=u.join(`
350
- `)}return c}else throw new Je.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new Je.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||Ui.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var g=l[u]&&r.lookupProperty(l[u],s);if(g!=null)return g}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:yt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,g){var d=this.programs[l],h=this.fn(l);return s||g||u||c?d=$n(this,l,h,s,c,u,g):d||(d=this.programs[l]=$n(this,l,h)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var c=l||s;return l&&s&&l!==s&&(c=yt.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=k1(a,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=a!=l.depths[0]?[a].concat(l.depths):l.depths:c=[a]);function g(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return g=fl(e.main,g,r,l.depths||[],s,u),g(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};Zi(l,t.helpers,r),Zi(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=yt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=Ui.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;Gi.moveHelperToHooks(r,"helperMissing",s),Gi.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new Je.default("must pass block params");if(e.useDepths&&!c)throw new Je.default("must pass parent depths");return $n(r,a,e[a],l,0,s,c)},i}function $n(e,t,n,o,r,i,a){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&s!=a[0]&&!(s===e.nullContext&&a[0]===null)&&(u=[s].concat(a)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=fl(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function _1(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=An(n.partials,e)):n.name==="@partial-block"?e=An(n.data,"partial-block"):e=An(n.partials,n.name),e}function w1(e,t,n){var o=An(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==hl&&function(){n.data=Xe.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Xe.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=yt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new Je.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function hl(){return""}function An(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function k1(e,t){return(!t||!("root"in t))&&(t=t?Xe.createFrame(t):{},t.root=e),t}function fl(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),yt.extend(t,a)}return t}function Zi(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=C1(r,n)})}function C1(e,t){var n=t.lookupProperty;return v1.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var Qo={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(Qo,Qo.exports);var ml=Qo.exports;(function(e,t){t.__esModule=!0;function n(_){return _&&_.__esModule?_:{default:_}}function o(_){if(_&&_.__esModule)return _;var $={};if(_!=null)for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&($[x]=_[x]);return $.default=_,$}var r=Te,i=o(r),a=h1,l=n(a),s=Oe,c=n(s),u=se,g=o(u),d=ht,h=o(d),f=ml,b=n(f);function v(){var _=new i.HandlebarsEnvironment;return g.extend(_,i),_.SafeString=l.default,_.Exception=c.default,_.Utils=g,_.escapeExpression=g.escapeExpression,_.VM=h,_.template=function($){return h.template($,_)},_}var S=v();S.create=v,b.default(S),S.default=S,t.default=S,e.exports=t.default})(jo,jo.exports);var $1=jo.exports,er={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(er,er.exports);var gl=er.exports,sn={},tr={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,c,u,g,d,h){var f=d.length-1;switch(g){case 1:return d[f-1];case 2:this.$=u.prepareProgram(d[f]);break;case 3:this.$=d[f];break;case 4:this.$=d[f];break;case 5:this.$=d[f];break;case 6:this.$=d[f];break;case 7:this.$=d[f];break;case 8:this.$=d[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[f]),strip:u.stripFlags(d[f],d[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[f],value:d[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[f-2],d[f-1],d[f],this._$);break;case 12:this.$={path:d[f-3],params:d[f-2],hash:d[f-1]};break;case 13:this.$=u.prepareBlock(d[f-3],d[f-2],d[f-1],d[f],!1,this._$);break;case 14:this.$=u.prepareBlock(d[f-3],d[f-2],d[f-1],d[f],!0,this._$);break;case 15:this.$={open:d[f-5],path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 16:this.$={path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 17:this.$={path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 18:this.$={strip:u.stripFlags(d[f-1],d[f-1]),program:d[f]};break;case 19:var b=u.prepareBlock(d[f-2],d[f-1],d[f],d[f],!1,this._$),v=u.prepareProgram([b],d[f-1].loc);v.chained=!0,this.$={strip:d[f-2].strip,program:v,chain:!0};break;case 20:this.$=d[f];break;case 21:this.$={path:d[f-1],strip:u.stripFlags(d[f-2],d[f])};break;case 22:this.$=u.prepareMustache(d[f-3],d[f-2],d[f-1],d[f-4],u.stripFlags(d[f-4],d[f]),this._$);break;case 23:this.$=u.prepareMustache(d[f-3],d[f-2],d[f-1],d[f-4],u.stripFlags(d[f-4],d[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[f-3],params:d[f-2],hash:d[f-1],indent:"",strip:u.stripFlags(d[f-4],d[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[f-2],d[f-1],d[f],this._$);break;case 26:this.$={path:d[f-3],params:d[f-2],hash:d[f-1],strip:u.stripFlags(d[f-4],d[f])};break;case 27:this.$=d[f];break;case 28:this.$=d[f];break;case 29:this.$={type:"SubExpression",path:d[f-3],params:d[f-2],hash:d[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[f-2]),value:d[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[f-1]);break;case 33:this.$=d[f];break;case 34:this.$=d[f];break;case 35:this.$={type:"StringLiteral",value:d[f],original:d[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[f]),original:Number(d[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[f]==="true",original:d[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[f];break;case 41:this.$=d[f];break;case 42:this.$=u.preparePath(!0,d[f],this._$);break;case 43:this.$=u.preparePath(!1,d[f],this._$);break;case 44:d[f-2].push({part:u.id(d[f]),original:d[f],separator:d[f-1]}),this.$=d[f-2];break;case 45:this.$=[{part:u.id(d[f]),original:d[f]}];break;case 46:this.$=[];break;case 47:d[f-1].push(d[f]);break;case 48:this.$=[];break;case 49:d[f-1].push(d[f]);break;case 50:this.$=[];break;case 51:d[f-1].push(d[f]);break;case 58:this.$=[];break;case 59:d[f-1].push(d[f]);break;case 64:this.$=[];break;case 65:d[f-1].push(d[f]);break;case 70:this.$=[];break;case 71:d[f-1].push(d[f]);break;case 78:this.$=[];break;case 79:d[f-1].push(d[f]);break;case 82:this.$=[];break;case 83:d[f-1].push(d[f]);break;case 86:this.$=[];break;case 87:d[f-1].push(d[f]);break;case 90:this.$=[];break;case 91:d[f-1].push(d[f]);break;case 94:this.$=[];break;case 95:d[f-1].push(d[f]);break;case 98:this.$=[d[f]];break;case 99:d[f-1].push(d[f]);break;case 100:this.$=[d[f]];break;case 101:d[f-1].push(d[f]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,c=[0],u=[null],g=[],d=this.table,h="",f=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;g.push(v);var S=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function _(){var H;return H=s.lexer.lex()||1,typeof H!="number"&&(H=s.symbols_[H]||H),H}for(var $,x,k,N,A={},y,I,M,P;;){if(x=c[c.length-1],this.defaultActions[x]?k=this.defaultActions[x]:(($===null||typeof $>"u")&&($=_()),k=d[x]&&d[x][$]),typeof k>"u"||!k.length||!k[0]){var L="";{P=[];for(y in d[x])this.terminals_[y]&&y>2&&P.push("'"+this.terminals_[y]+"'");this.lexer.showPosition?L="Parse error on line "+(f+1)+`:
348
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function i1(){Object.keys(On).forEach(function(e){delete On[e]})}Oe.__esModule=!0;Oe.HandlebarsEnvironment=Qo;function pl(e){return e&&e.__esModule?e:{default:e}}var pt=ue,a1=Le,So=pl(a1),l1=ln,s1=yr,c1=gl,Ln=pl(c1),u1=jt,d1="4.7.9";Oe.VERSION=d1;var h1=8;Oe.COMPILER_REVISION=h1;var f1=7;Oe.LAST_COMPATIBLE_COMPILER_REVISION=f1;var m1={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Oe.REVISION_CHANGES=m1;var _o="[object Object]";function Qo(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},l1.registerDefaultHelpers(this),s1.registerDefaultDecorators(this)}Qo.prototype={constructor:Qo,logger:Ln.default,log:Ln.default.log,registerHelper:function(t,n){if(pt.toString.call(t)===_o){if(n)throw new So.default("Arg not supported with multiple helpers");pt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(pt.toString.call(t)===_o)pt.extend(this.partials,t);else{if(typeof n>"u")throw new So.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=n}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,n){if(pt.toString.call(t)===_o){if(n)throw new So.default("Arg not supported with multiple decorators");pt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){u1.resetLoggedProperties()}};var g1=Ln.default.log;Oe.log=g1;Oe.createFrame=pt.createFrame;Oe.logger=Ln.default;var er={exports:{}};(function(e,t){t.__esModule=!0;function n(o){this.string=o}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(er,er.exports);var p1=er.exports,ht={},Nr={};Nr.__esModule=!0;Nr.wrapHelper=b1;function b1(e,t){if(typeof e!="function")return e;var n=function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)};return n}ht.__esModule=!0;ht.checkRevision=w1;ht.template=$1;ht.wrapProgram=Cn;ht.resolvePartial=C1;ht.invokePartial=A1;ht.noop=bl;function v1(e){return e&&e.__esModule?e:{default:e}}function x1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var S1=ue,yt=x1(S1),_1=Le,Je=v1(_1),Xe=Oe,Vi=ln,k1=Nr,qi=jt;function w1(e){var t=e&&e[0]||1,n=Xe.COMPILER_REVISION;if(!(t>=Xe.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Xe.COMPILER_REVISION))if(t<Xe.LAST_COMPATIBLE_COMPILER_REVISION){var o=Xe.REVISION_CHANGES[n],r=Xe.REVISION_CHANGES[t];throw new Je.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+r+").")}else throw new Je.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}function $1(e,t){if(!t)throw new Je.default("No environment passed to template");if(!e||!e.main)throw new Je.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function o(a,l,s){s.hash&&(l=yt.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,a,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
349
+ `),m=0,d=u.length;m<d&&!(!u[m]&&m+1===d);m++)u[m]=s.indent+u[m];c=u.join(`
350
+ `)}return c}else throw new Je.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new Je.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||qi.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var m=l[u]&&r.lookupProperty(l[u],s);if(m!=null)return m}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:yt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,m){var d=this.programs[l],h=this.fn(l);return s||m||u||c?d=Cn(this,l,h,s,c,u,m):d||(d=this.programs[l]=Cn(this,l,h)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var c=l||s;return l&&s&&l!==s&&(c=yt.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=y1(a,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=a!=l.depths[0]?[a].concat(l.depths):l.depths:c=[a]);function m(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return m=vl(e.main,m,r,l.depths||[],s,u),m(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};Yi(l,t.helpers,r),Yi(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=yt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=qi.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;Vi.moveHelperToHooks(r,"helperMissing",s),Vi.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new Je.default("must pass block params");if(e.useDepths&&!c)throw new Je.default("must pass parent depths");return Cn(r,a,e[a],l,0,s,c)},i}function Cn(e,t,n,o,r,i,a){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&s!=a[0]&&!(s===e.nullContext&&a[0]===null)&&(u=[s].concat(a)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=vl(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function C1(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=An(n.partials,e)):n.name==="@partial-block"?e=An(n.data,"partial-block"):e=An(n.partials,n.name),e}function A1(e,t,n){var o=An(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==bl&&function(){n.data=Xe.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Xe.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=yt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new Je.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function bl(){return""}function An(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function y1(e,t){return(!t||!("root"in t))&&(t=t?Xe.createFrame(t):{},t.root=e),t}function vl(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),yt.extend(t,a)}return t}function Yi(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=N1(r,n)})}function N1(e,t){var n=t.lookupProperty;return k1.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var tr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(tr,tr.exports);var xl=tr.exports;(function(e,t){t.__esModule=!0;function n(_){return _&&_.__esModule?_:{default:_}}function o(_){if(_&&_.__esModule)return _;var C={};if(_!=null)for(var x in _)Object.prototype.hasOwnProperty.call(_,x)&&(C[x]=_[x]);return C.default=_,C}var r=Oe,i=o(r),a=p1,l=n(a),s=Le,c=n(s),u=ue,m=o(u),d=ht,h=o(d),f=xl,b=n(f);function v(){var _=new i.HandlebarsEnvironment;return m.extend(_,i),_.SafeString=l.default,_.Exception=c.default,_.Utils=m,_.escapeExpression=m.escapeExpression,_.VM=h,_.template=function(C){return h.template(C,_)},_}var S=v();S.create=v,b.default(S),S.default=S,t.default=S,e.exports=t.default})(Ho,Ho.exports);var E1=Ho.exports,nr={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(nr,nr.exports);var Sl=nr.exports,sn={},or={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,c,u,m,d,h){var f=d.length-1;switch(m){case 1:return d[f-1];case 2:this.$=u.prepareProgram(d[f]);break;case 3:this.$=d[f];break;case 4:this.$=d[f];break;case 5:this.$=d[f];break;case 6:this.$=d[f];break;case 7:this.$=d[f];break;case 8:this.$=d[f];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[f]),strip:u.stripFlags(d[f],d[f]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[f],value:d[f],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[f-2],d[f-1],d[f],this._$);break;case 12:this.$={path:d[f-3],params:d[f-2],hash:d[f-1]};break;case 13:this.$=u.prepareBlock(d[f-3],d[f-2],d[f-1],d[f],!1,this._$);break;case 14:this.$=u.prepareBlock(d[f-3],d[f-2],d[f-1],d[f],!0,this._$);break;case 15:this.$={open:d[f-5],path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 16:this.$={path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 17:this.$={path:d[f-4],params:d[f-3],hash:d[f-2],blockParams:d[f-1],strip:u.stripFlags(d[f-5],d[f])};break;case 18:this.$={strip:u.stripFlags(d[f-1],d[f-1]),program:d[f]};break;case 19:var b=u.prepareBlock(d[f-2],d[f-1],d[f],d[f],!1,this._$),v=u.prepareProgram([b],d[f-1].loc);v.chained=!0,this.$={strip:d[f-2].strip,program:v,chain:!0};break;case 20:this.$=d[f];break;case 21:this.$={path:d[f-1],strip:u.stripFlags(d[f-2],d[f])};break;case 22:this.$=u.prepareMustache(d[f-3],d[f-2],d[f-1],d[f-4],u.stripFlags(d[f-4],d[f]),this._$);break;case 23:this.$=u.prepareMustache(d[f-3],d[f-2],d[f-1],d[f-4],u.stripFlags(d[f-4],d[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[f-3],params:d[f-2],hash:d[f-1],indent:"",strip:u.stripFlags(d[f-4],d[f]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[f-2],d[f-1],d[f],this._$);break;case 26:this.$={path:d[f-3],params:d[f-2],hash:d[f-1],strip:u.stripFlags(d[f-4],d[f])};break;case 27:this.$=d[f];break;case 28:this.$=d[f];break;case 29:this.$={type:"SubExpression",path:d[f-3],params:d[f-2],hash:d[f-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[f],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[f-2]),value:d[f],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[f-1]);break;case 33:this.$=d[f];break;case 34:this.$=d[f];break;case 35:this.$={type:"StringLiteral",value:d[f],original:d[f],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[f]),original:Number(d[f]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[f]==="true",original:d[f]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[f];break;case 41:this.$=d[f];break;case 42:this.$=u.preparePath(!0,d[f],this._$);break;case 43:this.$=u.preparePath(!1,d[f],this._$);break;case 44:d[f-2].push({part:u.id(d[f]),original:d[f],separator:d[f-1]}),this.$=d[f-2];break;case 45:this.$=[{part:u.id(d[f]),original:d[f]}];break;case 46:this.$=[];break;case 47:d[f-1].push(d[f]);break;case 48:this.$=[];break;case 49:d[f-1].push(d[f]);break;case 50:this.$=[];break;case 51:d[f-1].push(d[f]);break;case 58:this.$=[];break;case 59:d[f-1].push(d[f]);break;case 64:this.$=[];break;case 65:d[f-1].push(d[f]);break;case 70:this.$=[];break;case 71:d[f-1].push(d[f]);break;case 78:this.$=[];break;case 79:d[f-1].push(d[f]);break;case 82:this.$=[];break;case 83:d[f-1].push(d[f]);break;case 86:this.$=[];break;case 87:d[f-1].push(d[f]);break;case 90:this.$=[];break;case 91:d[f-1].push(d[f]);break;case 94:this.$=[];break;case 95:d[f-1].push(d[f]);break;case 98:this.$=[d[f]];break;case 99:d[f-1].push(d[f]);break;case 100:this.$=[d[f]];break;case 101:d[f-1].push(d[f]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,c=[0],u=[null],m=[],d=this.table,h="",f=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;m.push(v);var S=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function _(){var H;return H=s.lexer.lex()||1,typeof H!="number"&&(H=s.symbols_[H]||H),H}for(var C,x,w,N,A={},y,I,M,P;;){if(x=c[c.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((C===null||typeof C>"u")&&(C=_()),w=d[x]&&d[x][C]),typeof w>"u"||!w.length||!w[0]){var z="";{P=[];for(y in d[x])this.terminals_[y]&&y>2&&P.push("'"+this.terminals_[y]+"'");this.lexer.showPosition?z="Parse error on line "+(f+1)+`:
351
351
  `+this.lexer.showPosition()+`
352
- Expecting `+P.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on line "+(f+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[$]||$,line:this.lexer.yylineno,loc:v,expected:P})}}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+$);switch(k[0]){case 1:c.push($),u.push(this.lexer.yytext),g.push(this.lexer.yylloc),c.push(k[1]),$=null,b=this.lexer.yyleng,h=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc;break;case 2:if(I=this.productions_[k[1]][1],A.$=u[u.length-I],A._$={first_line:g[g.length-(I||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(I||1)].first_column,last_column:g[g.length-1].last_column},S&&(A._$.range=[g[g.length-(I||1)].range[0],g[g.length-1].range[1]]),N=this.performAction.call(A,h,b,f,this.yy,k[1],u,g),typeof N<"u")return N;I&&(c=c.slice(0,-1*I*2),u=u.slice(0,-1*I),g=g.slice(0,-1*I)),c.push(this.productions_[k[1]][0]),u.push(A.$),g.push(A._$),M=d[c[c.length-2]][c[c.length-1]],c.push(M);break;case 3:return!0}}return!0}},r=function(){var a={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var c=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===g.length?this.yylloc.first_column:0)+g[g.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
353
- `+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,g,d;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),f=0;f<h.length&&(u=this._input.match(this.rules[h[f]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,g=f,!this.options.flex)));f++);return c?(d=c[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],s=this.performAction.call(this,this.yy,this,h[g],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
354
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return a.options={},a.performAction=function(s,c,u,g){function d(h,f){return c.yytext=c.yytext.substring(h,c.yyleng-f+h)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(tr,tr.exports);var A1=tr.exports,nr={exports:{}},or={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=Oe,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,g){var d=this.accept(u[g]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+g+" on "+u.type);u[g]=d}},acceptRequired:function(u,g){if(this.acceptKey(u,g),!u[g])throw new r.default(u.type+" requires "+g)},acceptArray:function(u){for(var g=0,d=u.length;g<d;g++)this.acceptKey(u,g),u[g]||(u.splice(g,1),g--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var g=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||g)return g;if(g!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function a(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){a.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(or,or.exports);var pl=or.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=pl,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var g=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,f=0,b=h.length;f<b;f++){var v=h[f],S=this.accept(v);if(S){var _=a(h,f,d),$=l(h,f,d),x=S.openStandalone&&_,k=S.closeStandalone&&$,N=S.inlineStandalone&&_&&$;S.close&&s(h,f,!0),S.open&&c(h,f,!0),g&&N&&(s(h,f),c(h,f)&&v.type==="PartialStatement"&&(v.indent=/([ \t]+$)/.exec(h[f-1].original)[1])),g&&x&&(s((v.program||v.inverse).body),c(h,f)),g&&k&&(s(h,f),c((v.inverse||v.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var g=u.program||u.inverse,d=u.program&&u.inverse,h=d,f=d;if(d&&d.chained)for(h=d.body[0].program;f.chained;)f=f.body[f.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(g.body),closeStandalone:a((h||g).body)};if(u.openStrip.close&&s(g.body,null,!0),d){var v=u.inverseStrip;v.open&&c(g.body,null,!0),v.close&&s(h.body,null,!0),u.closeStrip.open&&c(f.body,null,!0),!this.options.ignoreStandalone&&a(g.body)&&l(h.body)&&(c(g.body),s(h.body))}else u.closeStrip.open&&c(g.body,null,!0);return b},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var g=u.strip||{};return{inlineStandalone:!0,open:g.open,close:g.close}};function a(u,g,d){g===void 0&&(g=u.length);var h=u[g-1],f=u[g-2];if(!h)return d;if(h.type==="ContentStatement")return(f||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,g,d){g===void 0&&(g=-1);var h=u[g+1],f=u[g+2];if(!h)return d;if(h.type==="ContentStatement")return(f||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,g,d){var h=u[g==null?0:g+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var f=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==f}}function c(u,g,d){var h=u[g==null?u.length-1:g-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var f=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==f,h.leftStripped}}t.default=i,e.exports=t.default})(nr,nr.exports);var y1=nr.exports,Le={};Le.__esModule=!0;Le.SourceLocation=R1;Le.id=I1;Le.stripFlags=P1;Le.stripComment=M1;Le.preparePath=T1;Le.prepareMustache=O1;Le.prepareRawBlock=L1;Le.prepareBlock=z1;Le.prepareProgram=B1;Le.preparePartialBlock=j1;function N1(e){return e&&e.__esModule?e:{default:e}}var E1=Oe,$r=N1(E1);function Ar(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new $r.default(e.path.original+" doesn't match "+t,n)}}function R1(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function I1(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function P1(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function M1(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function T1(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new $r.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function O1(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function L1(e,t,n,o){Ar(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function z1(e,t,n,o,r,i){o&&o.path&&Ar(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new $r.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function B1(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function j1(e,t,n,o){return Ar(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(o)}}sn.__esModule=!0;sn.parseWithoutProcessing=bl;sn.parse=q1;function D1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function yr(e){return e&&e.__esModule?e:{default:e}}var H1=A1,rr=yr(H1),F1=y1,G1=yr(F1),U1=Le,Z1=D1(U1),W1=Oe,Gt=yr(W1),V1=se;sn.parser=rr.default;var yn={};V1.extend(yn,Z1);function bl(e,t){if(e.type==="Program")return Y1(e),e;rr.default.yy=yn,yn.locInfo=function(o){return new yn.SourceLocation(t&&t.srcName,o)};var n=rr.default.parse(e);return n}function q1(e,t){var n=bl(e,t),o=new G1.default(t);return o.accept(n)}function Y1(e){ir(e)}function ir(e){if(e!=null){if(Array.isArray(e)){e.forEach(ir);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!K1(e.depth))throw new Gt.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Gt.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new Gt.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Gt.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Gt.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&ir(e[n])})}}}function K1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var cn={};cn.__esModule=!0;cn.Compiler=ar;cn.precompile=eS;cn.compile=tS;function vl(e){return e&&e.__esModule?e:{default:e}}var J1=Oe,Kt=vl(J1),tn=se,X1=gl,Ut=vl(X1),Q1=[].slice;function ar(){}ar.prototype={compiler:ar,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!xl(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=tn.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new Kt.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Wi(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new Kt.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){Wi(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new Kt.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,Ut.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=Ut.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:Q1.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Ut.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&Ut.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!Ut.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&tn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function eS(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Kt.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function tS(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Kt.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=tn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){var a=n.parse(e,t),l=new n.Compiler().compile(a,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(a,l){return o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function xl(e,t){if(e===t)return!0;if(tn.isArray(e)&&tn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!xl(e[n],t[n]))return!1;return!0}}function Wi(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var lr={exports:{}},sr={exports:{}},Zt={},_o={},_n={},wn={},Vi;function nS(){if(Vi)return wn;Vi=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return wn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},wn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,g=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+g:t==s?62:t==c?63:-1},wn}var qi;function Sl(){if(qi)return _n;qi=1;var e=nS(),t=5,n=1<<t,o=n-1,r=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return _n.encode=function(s){var c="",u,g=i(s);do u=g&o,g>>>=t,g>0&&(u|=r),c+=e.encode(u);while(g>0);return c},_n.decode=function(s,c,u){var g=s.length,d=0,h=0,f,b;do{if(c>=g)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));f=!!(b&r),b&=o,d=d+(b<<h),h+=t}while(f);u.value=a(d),u.rest=c},_n}var wo={},Yi;function un(){return Yi||(Yi=1,function(e){function t(x,k,N){if(k in x)return x[k];if(arguments.length===3)return N;throw new Error('"'+k+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(x){var k=x.match(n);return k?{scheme:k[1],auth:k[2],host:k[3],port:k[4],path:k[5]}:null}e.urlParse=r;function i(x){var k="";return x.scheme&&(k+=x.scheme+":"),k+="//",x.auth&&(k+=x.auth+"@"),x.host&&(k+=x.host),x.port&&(k+=":"+x.port),x.path&&(k+=x.path),k}e.urlGenerate=i;function a(x){var k=x,N=r(x);if(N){if(!N.path)return x;k=N.path}for(var A=e.isAbsolute(k),y=k.split(/\/+/),I,M=0,P=y.length-1;P>=0;P--)I=y[P],I==="."?y.splice(P,1):I===".."?M++:M>0&&(I===""?(y.splice(P+1,M),M=0):(y.splice(P,2),M--));return k=y.join("/"),k===""&&(k=A?"/":"."),N?(N.path=k,i(N)):k}e.normalize=a;function l(x,k){x===""&&(x="."),k===""&&(k=".");var N=r(k),A=r(x);if(A&&(x=A.path||"/"),N&&!N.scheme)return A&&(N.scheme=A.scheme),i(N);if(N||k.match(o))return k;if(A&&!A.host&&!A.path)return A.host=k,i(A);var y=k.charAt(0)==="/"?k:a(x.replace(/\/+$/,"")+"/"+k);return A?(A.path=y,i(A)):y}e.join=l,e.isAbsolute=function(x){return x.charAt(0)==="/"||n.test(x)};function s(x,k){x===""&&(x="."),x=x.replace(/\/$/,"");for(var N=0;k.indexOf(x+"/")!==0;){var A=x.lastIndexOf("/");if(A<0||(x=x.slice(0,A),x.match(/^([^\/]+:\/)?\/*$/)))return k;++N}return Array(N+1).join("../")+k.substr(x.length+1)}e.relative=s;var c=function(){var x=Object.create(null);return!("__proto__"in x)}();function u(x){return x}function g(x){return h(x)?"$"+x:x}e.toSetString=c?u:g;function d(x){return h(x)?x.slice(1):x}e.fromSetString=c?u:d;function h(x){if(!x)return!1;var k=x.length;if(k<9||x.charCodeAt(k-1)!==95||x.charCodeAt(k-2)!==95||x.charCodeAt(k-3)!==111||x.charCodeAt(k-4)!==116||x.charCodeAt(k-5)!==111||x.charCodeAt(k-6)!==114||x.charCodeAt(k-7)!==112||x.charCodeAt(k-8)!==95||x.charCodeAt(k-9)!==95)return!1;for(var N=k-10;N>=0;N--)if(x.charCodeAt(N)!==36)return!1;return!0}function f(x,k,N){var A=v(x.source,k.source);return A!==0||(A=x.originalLine-k.originalLine,A!==0)||(A=x.originalColumn-k.originalColumn,A!==0||N)||(A=x.generatedColumn-k.generatedColumn,A!==0)||(A=x.generatedLine-k.generatedLine,A!==0)?A:v(x.name,k.name)}e.compareByOriginalPositions=f;function b(x,k,N){var A=x.generatedLine-k.generatedLine;return A!==0||(A=x.generatedColumn-k.generatedColumn,A!==0||N)||(A=v(x.source,k.source),A!==0)||(A=x.originalLine-k.originalLine,A!==0)||(A=x.originalColumn-k.originalColumn,A!==0)?A:v(x.name,k.name)}e.compareByGeneratedPositionsDeflated=b;function v(x,k){return x===k?0:x===null?1:k===null?-1:x>k?1:-1}function S(x,k){var N=x.generatedLine-k.generatedLine;return N!==0||(N=x.generatedColumn-k.generatedColumn,N!==0)||(N=v(x.source,k.source),N!==0)||(N=x.originalLine-k.originalLine,N!==0)||(N=x.originalColumn-k.originalColumn,N!==0)?N:v(x.name,k.name)}e.compareByGeneratedPositionsInflated=S;function _(x){return JSON.parse(x.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=_;function $(x,k,N){if(k=k||"",x&&(x[x.length-1]!=="/"&&k[0]!=="/"&&(x+="/"),k=x+k),N){var A=r(N);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var y=A.path.lastIndexOf("/");y>=0&&(A.path=A.path.substring(0,y+1))}k=l(i(A),k)}return a(k)}e.computeSourceURL=$}(wo)),wo}var ko={},Ki;function _l(){if(Ki)return ko;Ki=1;var e=un(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,a){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||a)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.prototype.indexOf=function(i){if(n){var a=this._set.get(i);if(a>=0)return a}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},ko.ArraySet=o,ko}var Co={},Ji;function oS(){if(Ji)return Co;Ji=1;var e=un();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Co.MappingList=n,Co}var Xi;function wl(){if(Xi)return _o;Xi=1;var e=Sl(),t=un(),n=_l().ArraySet,o=oS().MappingList;function r(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),a.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var g=a.sourceContentFor(c);g!=null&&s.setSourceContent(c,g)}),s},r.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),s=t.getArg(a,"original",null),c=t.getArg(a,"source",null),u=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},r.prototype.setSourceContent=function(a,l){var s=a;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,s){var c=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=a.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var g=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var f=a.originalPositionFor({line:h.originalLine,column:h.originalColumn});f.source!=null&&(h.source=f.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=f.line,h.originalColumn=f.column,f.name!=null&&(h.name=f.name))}var b=h.source;b!=null&&!g.has(b)&&g.add(b);var v=h.name;v!=null&&!d.has(v)&&d.add(v)},this),this._sources=g,this._names=d,a.sources.forEach(function(h){var f=a.sourceContentFor(h);f!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,f))},this)},r.prototype._validateMapping=function(a,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!s&&!c)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:s,original:l,name:c}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,g=0,d="",h,f,b,v,S=this._mappings.toArray(),_=0,$=S.length;_<$;_++){if(f=S[_],h="",f.generatedLine!==l)for(a=0;f.generatedLine!==l;)h+=";",l++;else if(_>0){if(!t.compareByGeneratedPositionsInflated(f,S[_-1]))continue;h+=","}h+=e.encode(f.generatedColumn-a),a=f.generatedColumn,f.source!=null&&(v=this._sources.indexOf(f.source),h+=e.encode(v-g),g=v,h+=e.encode(f.originalLine-1-c),c=f.originalLine-1,h+=e.encode(f.originalColumn-s),s=f.originalColumn,f.name!=null&&(b=this._names.indexOf(f.name),h+=e.encode(b-u),u=b)),d+=h}return d},r.prototype._generateSourcesContent=function(a,l){return a.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},_o.SourceMapGenerator=r,_o}var Wt={},$o={},Qi;function rS(){return Qi||(Qi=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}($o)),$o}var Ao={},ea;function iS(){if(ea)return Ao;ea=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var g=s+1;n(o,r,i,g-1),n(o,r,g+1,a)}}return Ao.quickSort=function(o,r){n(o,r,0,o.length-1)},Ao}var ta;function aS(){if(ta)return Wt;ta=1;var e=un(),t=rS(),n=_l().ArraySet,o=Sl(),r=iS().quickSort;function i(c,u){var g=c;return typeof c=="string"&&(g=e.parseSourceMapInput(c)),g.sections!=null?new s(g,u):new a(g,u)}i.fromSourceMap=function(c,u){return a.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,g){var d=u.charAt(g);return d===";"||d===","},i.prototype._parseMappings=function(u,g){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,g,d){var h=g||null,f=d||i.GENERATED_ORDER,b;switch(f){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var v=this.sourceRoot;b.map(function(S){var _=S.source===null?null:this._sources.at(S.source);return _=e.computeSourceURL(v,_,this._sourceMapURL),{source:_,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var g=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:g,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(f>=0){var b=this._originalMappings[f];if(u.column===void 0)for(var v=b.originalLine;b&&b.originalLine===v;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++f];else for(var S=b.originalColumn;b&&b.originalLine===g&&b.originalColumn==S;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++f]}return h},Wt.SourceMapConsumer=i;function a(c,u){var g=c;typeof c=="string"&&(g=e.parseSourceMapInput(c));var d=e.getArg(g,"version"),h=e.getArg(g,"sources"),f=e.getArg(g,"names",[]),b=e.getArg(g,"sourceRoot",null),v=e.getArg(g,"sourcesContent",null),S=e.getArg(g,"mappings"),_=e.getArg(g,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),h=h.map(String).map(e.normalize).map(function($){return b&&e.isAbsolute(b)&&e.isAbsolute($)?e.relative(b,$):$}),this._names=n.fromArray(f.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function($){return e.computeSourceURL(b,$,u)}),this.sourceRoot=b,this.sourcesContent=v,this._mappings=S,this._sourceMapURL=u,this.file=_}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var g;for(g=0;g<this._absoluteSources.length;++g)if(this._absoluteSources[g]==c)return g;return-1},a.fromSourceMap=function(u,g){var d=Object.create(a.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),f=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=g,d._absoluteSources=d._sources.toArray().map(function(N){return e.computeSourceURL(d.sourceRoot,N,g)});for(var b=u._mappings.toArray().slice(),v=d.__generatedMappings=[],S=d.__originalMappings=[],_=0,$=b.length;_<$;_++){var x=b[_],k=new l;k.generatedLine=x.generatedLine,k.generatedColumn=x.generatedColumn,x.source&&(k.source=f.indexOf(x.source),k.originalLine=x.originalLine,k.originalColumn=x.originalColumn,x.name&&(k.name=h.indexOf(x.name)),S.push(k)),v.push(k)}return r(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,g){for(var d=1,h=0,f=0,b=0,v=0,S=0,_=u.length,$=0,x={},k={},N=[],A=[],y,I,M,P,L;$<_;)if(u.charAt($)===";")d++,$++,h=0;else if(u.charAt($)===",")$++;else{for(y=new l,y.generatedLine=d,P=$;P<_&&!this._charIsMappingSeparator(u,P);P++);if(I=u.slice($,P),M=x[I],M)$+=I.length;else{for(M=[];$<P;)o.decode(u,$,k),L=k.value,$=k.rest,M.push(L);if(M.length===2)throw new Error("Found a source, but no line and column");if(M.length===3)throw new Error("Found a source and line, but no column");x[I]=M}y.generatedColumn=h+M[0],h=y.generatedColumn,M.length>1&&(y.source=v+M[1],v+=M[1],y.originalLine=f+M[2],f=y.originalLine,y.originalLine+=1,y.originalColumn=b+M[3],b=y.originalColumn,M.length>4&&(y.name=S+M[4],S+=M[4])),A.push(y),typeof y.originalLine=="number"&&N.push(y)}r(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,r(N,e.compareByOriginalPositions),this.__originalMappings=N},a.prototype._findMapping=function(u,g,d,h,f,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[h]);return t.search(u,g,f,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var g=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(g.generatedLine===d.generatedLine){g.lastGeneratedColumn=d.generatedColumn-1;continue}}g.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var g={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(g,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var h=this._generatedMappings[d];if(h.generatedLine===g.generatedLine){var f=e.getArg(h,"source",null);f!==null&&(f=this._sources.at(f),f=e.computeSourceURL(this.sourceRoot,f,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:f,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,g){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var h=u;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var f;if(this.sourceRoot!=null&&(f=e.urlParse(this.sourceRoot))){var b=h.replace(/^file:\/\//,"");if(f.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!f.path||f.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(g)return null;throw new Error('"'+h+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var g=e.getArg(u,"source");if(g=this._findSourceIndex(g),g<0)return{line:null,column:null,lastColumn:null};var d={source:g,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var f=this._originalMappings[h];if(f.source===d.source)return{line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Wt.BasicSourceMapConsumer=a;function s(c,u){var g=c;typeof c=="string"&&(g=e.parseSourceMapInput(c));var d=e.getArg(g,"version"),h=e.getArg(g,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var f={line:-1,column:0};this._sections=h.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var v=e.getArg(b,"offset"),S=e.getArg(v,"line"),_=e.getArg(v,"column");if(S<f.line||S===f.line&&_<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=v,{generatedOffset:{generatedLine:S+1,generatedColumn:_+1},consumer:new i(e.getArg(b,"map"),u)}})}return s.prototype=Object.create(i.prototype),s.prototype.constructor=i,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var c=[],u=0;u<this._sections.length;u++)for(var g=0;g<this._sections[u].consumer.sources.length;g++)c.push(this._sections[u].consumer.sources[g]);return c}}),s.prototype.originalPositionFor=function(u){var g={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(g,this._sections,function(f,b){var v=f.generatedLine-b.generatedOffset.generatedLine;return v||f.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:g.generatedLine-(h.generatedOffset.generatedLine-1),column:g.generatedColumn-(h.generatedOffset.generatedLine===g.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(u,g){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],f=h.consumer.sourceContentFor(u,!0);if(f)return f}if(g)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var g=0;g<this._sections.length;g++){var d=this._sections[g];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var f={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return f}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,g){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],f=h.consumer._generatedMappings,b=0;b<f.length;b++){var v=f[b],S=h.consumer._sources.at(v.source);S=e.computeSourceURL(h.consumer.sourceRoot,S,this._sourceMapURL),this._sources.add(S),S=this._sources.indexOf(S);var _=null;v.name&&(_=h.consumer._names.at(v.name),this._names.add(_),_=this._names.indexOf(_));var $={source:S,generatedLine:v.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:v.generatedColumn+(h.generatedOffset.generatedLine===v.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:v.originalLine,originalColumn:v.originalColumn,name:_};this.__generatedMappings.push($),typeof $.originalLine=="number"&&this.__originalMappings.push($)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},Wt.IndexedSourceMapConsumer=s,Wt}var yo={},na;function lS(){if(na)return yo;na=1;var e=wl().SourceMapGenerator,t=un(),n=/(\r?\n)/,o=10,r="$$$isSourceNode$$$";function i(a,l,s,c,u){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=s??null,this.name=u??null,this[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,g=l.split(n),d=0,h=function(){var _=x(),$=x()||"";return _+$;function x(){return d<g.length?g[d++]:void 0}},f=1,b=0,v=null;return s.eachMapping(function(_){if(v!==null)if(f<_.generatedLine)S(v,h()),f++,b=0;else{var $=g[d]||"",x=$.substr(0,_.generatedColumn-b);g[d]=$.substr(_.generatedColumn-b),b=_.generatedColumn,S(v,x),v=_;return}for(;f<_.generatedLine;)u.add(h()),f++;if(b<_.generatedColumn){var $=g[d]||"";u.add($.substr(0,_.generatedColumn)),g[d]=$.substr(_.generatedColumn),b=_.generatedColumn}v=_},this),d<g.length&&(v&&S(v,h()),u.add(g.splice(d).join(""))),s.sources.forEach(function(_){var $=s.sourceContentFor(_);$!=null&&(c!=null&&(_=t.join(c,_)),u.setSourceContent(_,$))}),u;function S(_,$){if(_===null||_.source===void 0)u.add($);else{var x=c?t.join(c,_.source):_.source;u.add(new i(_.originalLine,_.originalColumn,x,$,_.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[r]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][r]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,g=null,d=null,h=null,f=null;return this.walk(function(b,v){s.code+=b,v.source!==null&&v.line!==null&&v.column!==null?((g!==v.source||d!==v.line||h!==v.column||f!==v.name)&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name}),g=v.source,d=v.line,h=v.column,f=v.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),g=null,u=!1);for(var S=0,_=b.length;S<_;S++)b.charCodeAt(S)===o?(s.line++,s.column=0,S+1===_?(g=null,u=!1):u&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name})):s.column++}),this.walkSourceContents(function(b,v){c.setSourceContent(b,v)}),{code:s.code,map:c}},yo.SourceNode=i,yo}var oa;function sS(){return oa||(oa=1,Zt.SourceMapGenerator=wl().SourceMapGenerator,Zt.SourceMapConsumer=aS().SourceMapConsumer,Zt.SourceNode=lS().SourceNode),Zt}(function(e,t){t.__esModule=!0;var n=se,o=void 0;try{var r=sS();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],g=0,d=l.length;g<d;g++)u.push(s.wrap(l[g],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
355
- `])}),s},each:function(s){for(var c=0,u=this.source.length;c<u;c++)s(this.source[c])},empty:function(){var s=this.currentLocation||{start:{}};return new o(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof o?s:(s=i(s,this,c),new o(c.start.line,c.start.column,this.srcFile,s))},functionCall:function(s,c,u){return u=this.generateList(u),this.wrap([s,c?"."+c+"(":"(",u,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var c=this,u=[];Object.keys(s).forEach(function(d){var h=i(s[d],c);h!=="undefined"&&u.push([c.quotedString(d),":",h])});var g=this.generateList(u);return g.prepend("{"),g.add("}"),g},generateList:function(s){for(var c=this.empty(),u=0,g=s.length;u<g;u++)u&&c.add(","),c.add(i(s[u],this));return c},generateArray:function(s){var c=this.generateList(s);return c.prepend("["),c.add("]"),c}},t.default=a,e.exports=t.default})(sr,sr.exports);var cS=sr.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Te,r=Oe,i=n(r),a=se,l=cS,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(h,f){return this.internalNameLookup(h,f)},depthedLookup:function(h){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(h),")"]},compilerInfo:function(){var h=o.COMPILER_REVISION,f=o.REVISION_CHANGES[h];return[h,f]},appendToBuffer:function(h,f,b){return a.isArray(h)||(h=[h]),h=this.source.wrap(h,f),this.environment.isSimple?["return ",h,";"]:b?["buffer += ",h,";"]:(h.appendToBuffer=!0,h)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(h,f){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",h,",",JSON.stringify(f),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(h,f,b,v){this.environment=h,this.options=f,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!v,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(h,f),this.useDepths=this.useDepths||h.useDepths||h.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||h.useBlockParams;var S=h.opcodes,_=void 0,$=void 0,x=void 0,k=void 0;for(x=0,k=S.length;x<k;x++)_=S[x],this.source.currentLocation=_.loc,$=$||_.loc,this[_.opcode].apply(this,_.args);if(this.source.currentLocation=$,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
352
+ Expecting `+P.join(", ")+", got '"+(this.terminals_[C]||C)+"'":z="Parse error on line "+(f+1)+": Unexpected "+(C==1?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(z,{text:this.lexer.match,token:this.terminals_[C]||C,line:this.lexer.yylineno,loc:v,expected:P})}}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+C);switch(w[0]){case 1:c.push(C),u.push(this.lexer.yytext),m.push(this.lexer.yylloc),c.push(w[1]),C=null,b=this.lexer.yyleng,h=this.lexer.yytext,f=this.lexer.yylineno,v=this.lexer.yylloc;break;case 2:if(I=this.productions_[w[1]][1],A.$=u[u.length-I],A._$={first_line:m[m.length-(I||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(I||1)].first_column,last_column:m[m.length-1].last_column},S&&(A._$.range=[m[m.length-(I||1)].range[0],m[m.length-1].range[1]]),N=this.performAction.call(A,h,b,f,this.yy,w[1],u,m),typeof N<"u")return N;I&&(c=c.slice(0,-1*I*2),u=u.slice(0,-1*I),m=m.slice(0,-1*I)),c.push(this.productions_[w[1]][0]),u.push(A.$),m.push(A._$),M=d[c[c.length-2]][c[c.length-1]],c.push(M);break;case 3:return!0}}return!0}},r=function(){var a={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var c=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===m.length?this.yylloc.first_column:0)+m[m.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
353
+ `+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,m,d;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),f=0;f<h.length&&(u=this._input.match(this.rules[h[f]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,m=f,!this.options.flex)));f++);return c?(d=c[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],s=this.performAction.call(this,this.yy,this,h[m],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
354
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return a.options={},a.performAction=function(s,c,u,m){function d(h,f){return c.yytext=c.yytext.substring(h,c.yyleng-f+h)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(or,or.exports);var R1=or.exports,rr={exports:{}},ir={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=Le,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,m){var d=this.accept(u[m]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+m+" on "+u.type);u[m]=d}},acceptRequired:function(u,m){if(this.acceptKey(u,m),!u[m])throw new r.default(u.type+" requires "+m)},acceptArray:function(u){for(var m=0,d=u.length;m<d;m++)this.acceptKey(u,m),u[m]||(u.splice(m,1),m--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var m=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||m)return m;if(m!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function a(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){a.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(ir,ir.exports);var _l=ir.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=_l,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var m=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,f=0,b=h.length;f<b;f++){var v=h[f],S=this.accept(v);if(S){var _=a(h,f,d),C=l(h,f,d),x=S.openStandalone&&_,w=S.closeStandalone&&C,N=S.inlineStandalone&&_&&C;S.close&&s(h,f,!0),S.open&&c(h,f,!0),m&&N&&(s(h,f),c(h,f)&&v.type==="PartialStatement"&&(v.indent=/([ \t]+$)/.exec(h[f-1].original)[1])),m&&x&&(s((v.program||v.inverse).body),c(h,f)),m&&w&&(s(h,f),c((v.inverse||v.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var m=u.program||u.inverse,d=u.program&&u.inverse,h=d,f=d;if(d&&d.chained)for(h=d.body[0].program;f.chained;)f=f.body[f.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(m.body),closeStandalone:a((h||m).body)};if(u.openStrip.close&&s(m.body,null,!0),d){var v=u.inverseStrip;v.open&&c(m.body,null,!0),v.close&&s(h.body,null,!0),u.closeStrip.open&&c(f.body,null,!0),!this.options.ignoreStandalone&&a(m.body)&&l(h.body)&&(c(m.body),s(h.body))}else u.closeStrip.open&&c(m.body,null,!0);return b},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var m=u.strip||{};return{inlineStandalone:!0,open:m.open,close:m.close}};function a(u,m,d){m===void 0&&(m=u.length);var h=u[m-1],f=u[m-2];if(!h)return d;if(h.type==="ContentStatement")return(f||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,m,d){m===void 0&&(m=-1);var h=u[m+1],f=u[m+2];if(!h)return d;if(h.type==="ContentStatement")return(f||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,m,d){var h=u[m==null?0:m+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var f=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==f}}function c(u,m,d){var h=u[m==null?u.length-1:m-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var f=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==f,h.leftStripped}}t.default=i,e.exports=t.default})(rr,rr.exports);var I1=rr.exports,ze={};ze.__esModule=!0;ze.SourceLocation=T1;ze.id=O1;ze.stripFlags=L1;ze.stripComment=z1;ze.preparePath=j1;ze.prepareMustache=B1;ze.prepareRawBlock=D1;ze.prepareBlock=H1;ze.prepareProgram=F1;ze.preparePartialBlock=G1;function M1(e){return e&&e.__esModule?e:{default:e}}var P1=Le,Er=M1(P1);function Rr(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Er.default(e.path.original+" doesn't match "+t,n)}}function T1(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function O1(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function L1(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function z1(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function j1(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new Er.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function B1(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function D1(e,t,n,o){Rr(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function H1(e,t,n,o,r,i){o&&o.path&&Rr(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new Er.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function F1(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function G1(e,t,n,o){return Rr(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(o)}}sn.__esModule=!0;sn.parseWithoutProcessing=kl;sn.parse=X1;function U1(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Ir(e){return e&&e.__esModule?e:{default:e}}var Z1=R1,ar=Ir(Z1),W1=I1,V1=Ir(W1),q1=ze,Y1=U1(q1),K1=Le,Ut=Ir(K1),J1=ue;sn.parser=ar.default;var yn={};J1.extend(yn,Y1);function kl(e,t){if(e.type==="Program")return Q1(e),e;ar.default.yy=yn,yn.locInfo=function(o){return new yn.SourceLocation(t&&t.srcName,o)};var n=ar.default.parse(e);return n}function X1(e,t){var n=kl(e,t),o=new V1.default(t);return o.accept(n)}function Q1(e){lr(e)}function lr(e){if(e!=null){if(Array.isArray(e)){e.forEach(lr);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!eS(e.depth))throw new Ut.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Ut.default("Invalid AST: PathExpression.parts must be an array");for(var t=0;t<e.parts.length;t++)if(typeof e.parts[t]!="string")throw new Ut.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Ut.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Ut.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&lr(e[n])})}}}function eS(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var cn={};cn.__esModule=!0;cn.Compiler=sr;cn.precompile=rS;cn.compile=iS;function wl(e){return e&&e.__esModule?e:{default:e}}var tS=Le,Jt=wl(tS),nn=ue,nS=Sl,Zt=wl(nS),oS=[].slice;function sr(){}sr.prototype={compiler:sr,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!$l(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=nn.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new Jt.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Ki(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new Jt.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){Ki(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new Jt.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,Zt.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=Zt.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:oS.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Zt.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&Zt.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!Zt.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&nn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function rS(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Jt.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function iS(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Jt.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=nn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){var a=n.parse(e,t),l=new n.Compiler().compile(a,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(a,l){return o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function $l(e,t){if(e===t)return!0;if(nn.isArray(e)&&nn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!$l(e[n],t[n]))return!1;return!0}}function Ki(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var cr={exports:{}},ur={exports:{}},Wt={},ko={},_n={},kn={},Ji;function aS(){if(Ji)return kn;Ji=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return kn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},kn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,m=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+m:t==s?62:t==c?63:-1},kn}var Xi;function Cl(){if(Xi)return _n;Xi=1;var e=aS(),t=5,n=1<<t,o=n-1,r=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return _n.encode=function(s){var c="",u,m=i(s);do u=m&o,m>>>=t,m>0&&(u|=r),c+=e.encode(u);while(m>0);return c},_n.decode=function(s,c,u){var m=s.length,d=0,h=0,f,b;do{if(c>=m)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));f=!!(b&r),b&=o,d=d+(b<<h),h+=t}while(f);u.value=a(d),u.rest=c},_n}var wo={},Qi;function un(){return Qi||(Qi=1,function(e){function t(x,w,N){if(w in x)return x[w];if(arguments.length===3)return N;throw new Error('"'+w+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(x){var w=x.match(n);return w?{scheme:w[1],auth:w[2],host:w[3],port:w[4],path:w[5]}:null}e.urlParse=r;function i(x){var w="";return x.scheme&&(w+=x.scheme+":"),w+="//",x.auth&&(w+=x.auth+"@"),x.host&&(w+=x.host),x.port&&(w+=":"+x.port),x.path&&(w+=x.path),w}e.urlGenerate=i;function a(x){var w=x,N=r(x);if(N){if(!N.path)return x;w=N.path}for(var A=e.isAbsolute(w),y=w.split(/\/+/),I,M=0,P=y.length-1;P>=0;P--)I=y[P],I==="."?y.splice(P,1):I===".."?M++:M>0&&(I===""?(y.splice(P+1,M),M=0):(y.splice(P,2),M--));return w=y.join("/"),w===""&&(w=A?"/":"."),N?(N.path=w,i(N)):w}e.normalize=a;function l(x,w){x===""&&(x="."),w===""&&(w=".");var N=r(w),A=r(x);if(A&&(x=A.path||"/"),N&&!N.scheme)return A&&(N.scheme=A.scheme),i(N);if(N||w.match(o))return w;if(A&&!A.host&&!A.path)return A.host=w,i(A);var y=w.charAt(0)==="/"?w:a(x.replace(/\/+$/,"")+"/"+w);return A?(A.path=y,i(A)):y}e.join=l,e.isAbsolute=function(x){return x.charAt(0)==="/"||n.test(x)};function s(x,w){x===""&&(x="."),x=x.replace(/\/$/,"");for(var N=0;w.indexOf(x+"/")!==0;){var A=x.lastIndexOf("/");if(A<0||(x=x.slice(0,A),x.match(/^([^\/]+:\/)?\/*$/)))return w;++N}return Array(N+1).join("../")+w.substr(x.length+1)}e.relative=s;var c=function(){var x=Object.create(null);return!("__proto__"in x)}();function u(x){return x}function m(x){return h(x)?"$"+x:x}e.toSetString=c?u:m;function d(x){return h(x)?x.slice(1):x}e.fromSetString=c?u:d;function h(x){if(!x)return!1;var w=x.length;if(w<9||x.charCodeAt(w-1)!==95||x.charCodeAt(w-2)!==95||x.charCodeAt(w-3)!==111||x.charCodeAt(w-4)!==116||x.charCodeAt(w-5)!==111||x.charCodeAt(w-6)!==114||x.charCodeAt(w-7)!==112||x.charCodeAt(w-8)!==95||x.charCodeAt(w-9)!==95)return!1;for(var N=w-10;N>=0;N--)if(x.charCodeAt(N)!==36)return!1;return!0}function f(x,w,N){var A=v(x.source,w.source);return A!==0||(A=x.originalLine-w.originalLine,A!==0)||(A=x.originalColumn-w.originalColumn,A!==0||N)||(A=x.generatedColumn-w.generatedColumn,A!==0)||(A=x.generatedLine-w.generatedLine,A!==0)?A:v(x.name,w.name)}e.compareByOriginalPositions=f;function b(x,w,N){var A=x.generatedLine-w.generatedLine;return A!==0||(A=x.generatedColumn-w.generatedColumn,A!==0||N)||(A=v(x.source,w.source),A!==0)||(A=x.originalLine-w.originalLine,A!==0)||(A=x.originalColumn-w.originalColumn,A!==0)?A:v(x.name,w.name)}e.compareByGeneratedPositionsDeflated=b;function v(x,w){return x===w?0:x===null?1:w===null?-1:x>w?1:-1}function S(x,w){var N=x.generatedLine-w.generatedLine;return N!==0||(N=x.generatedColumn-w.generatedColumn,N!==0)||(N=v(x.source,w.source),N!==0)||(N=x.originalLine-w.originalLine,N!==0)||(N=x.originalColumn-w.originalColumn,N!==0)?N:v(x.name,w.name)}e.compareByGeneratedPositionsInflated=S;function _(x){return JSON.parse(x.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=_;function C(x,w,N){if(w=w||"",x&&(x[x.length-1]!=="/"&&w[0]!=="/"&&(x+="/"),w=x+w),N){var A=r(N);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var y=A.path.lastIndexOf("/");y>=0&&(A.path=A.path.substring(0,y+1))}w=l(i(A),w)}return a(w)}e.computeSourceURL=C}(wo)),wo}var $o={},ea;function Al(){if(ea)return $o;ea=1;var e=un(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,a){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||a)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.prototype.indexOf=function(i){if(n){var a=this._set.get(i);if(a>=0)return a}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},$o.ArraySet=o,$o}var Co={},ta;function lS(){if(ta)return Co;ta=1;var e=un();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Co.MappingList=n,Co}var na;function yl(){if(na)return ko;na=1;var e=Cl(),t=un(),n=Al().ArraySet,o=lS().MappingList;function r(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),a.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var m=a.sourceContentFor(c);m!=null&&s.setSourceContent(c,m)}),s},r.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),s=t.getArg(a,"original",null),c=t.getArg(a,"source",null),u=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},r.prototype.setSourceContent=function(a,l){var s=a;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,s){var c=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=a.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var m=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var f=a.originalPositionFor({line:h.originalLine,column:h.originalColumn});f.source!=null&&(h.source=f.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=f.line,h.originalColumn=f.column,f.name!=null&&(h.name=f.name))}var b=h.source;b!=null&&!m.has(b)&&m.add(b);var v=h.name;v!=null&&!d.has(v)&&d.add(v)},this),this._sources=m,this._names=d,a.sources.forEach(function(h){var f=a.sourceContentFor(h);f!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,f))},this)},r.prototype._validateMapping=function(a,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!s&&!c)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:s,original:l,name:c}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,m=0,d="",h,f,b,v,S=this._mappings.toArray(),_=0,C=S.length;_<C;_++){if(f=S[_],h="",f.generatedLine!==l)for(a=0;f.generatedLine!==l;)h+=";",l++;else if(_>0){if(!t.compareByGeneratedPositionsInflated(f,S[_-1]))continue;h+=","}h+=e.encode(f.generatedColumn-a),a=f.generatedColumn,f.source!=null&&(v=this._sources.indexOf(f.source),h+=e.encode(v-m),m=v,h+=e.encode(f.originalLine-1-c),c=f.originalLine-1,h+=e.encode(f.originalColumn-s),s=f.originalColumn,f.name!=null&&(b=this._names.indexOf(f.name),h+=e.encode(b-u),u=b)),d+=h}return d},r.prototype._generateSourcesContent=function(a,l){return a.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},ko.SourceMapGenerator=r,ko}var Vt={},Ao={},oa;function sS(){return oa||(oa=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}(Ao)),Ao}var yo={},ra;function cS(){if(ra)return yo;ra=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var m=s+1;n(o,r,i,m-1),n(o,r,m+1,a)}}return yo.quickSort=function(o,r){n(o,r,0,o.length-1)},yo}var ia;function uS(){if(ia)return Vt;ia=1;var e=un(),t=sS(),n=Al().ArraySet,o=Cl(),r=cS().quickSort;function i(c,u){var m=c;return typeof c=="string"&&(m=e.parseSourceMapInput(c)),m.sections!=null?new s(m,u):new a(m,u)}i.fromSourceMap=function(c,u){return a.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,m){var d=u.charAt(m);return d===";"||d===","},i.prototype._parseMappings=function(u,m){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,m,d){var h=m||null,f=d||i.GENERATED_ORDER,b;switch(f){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var v=this.sourceRoot;b.map(function(S){var _=S.source===null?null:this._sources.at(S.source);return _=e.computeSourceURL(v,_,this._sourceMapURL),{source:_,generatedLine:S.generatedLine,generatedColumn:S.generatedColumn,originalLine:S.originalLine,originalColumn:S.originalColumn,name:S.name===null?null:this._names.at(S.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var m=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:m,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(f>=0){var b=this._originalMappings[f];if(u.column===void 0)for(var v=b.originalLine;b&&b.originalLine===v;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++f];else for(var S=b.originalColumn;b&&b.originalLine===m&&b.originalColumn==S;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++f]}return h},Vt.SourceMapConsumer=i;function a(c,u){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var d=e.getArg(m,"version"),h=e.getArg(m,"sources"),f=e.getArg(m,"names",[]),b=e.getArg(m,"sourceRoot",null),v=e.getArg(m,"sourcesContent",null),S=e.getArg(m,"mappings"),_=e.getArg(m,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),h=h.map(String).map(e.normalize).map(function(C){return b&&e.isAbsolute(b)&&e.isAbsolute(C)?e.relative(b,C):C}),this._names=n.fromArray(f.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(C){return e.computeSourceURL(b,C,u)}),this.sourceRoot=b,this.sourcesContent=v,this._mappings=S,this._sourceMapURL=u,this.file=_}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var m;for(m=0;m<this._absoluteSources.length;++m)if(this._absoluteSources[m]==c)return m;return-1},a.fromSourceMap=function(u,m){var d=Object.create(a.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),f=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=m,d._absoluteSources=d._sources.toArray().map(function(N){return e.computeSourceURL(d.sourceRoot,N,m)});for(var b=u._mappings.toArray().slice(),v=d.__generatedMappings=[],S=d.__originalMappings=[],_=0,C=b.length;_<C;_++){var x=b[_],w=new l;w.generatedLine=x.generatedLine,w.generatedColumn=x.generatedColumn,x.source&&(w.source=f.indexOf(x.source),w.originalLine=x.originalLine,w.originalColumn=x.originalColumn,x.name&&(w.name=h.indexOf(x.name)),S.push(w)),v.push(w)}return r(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,m){for(var d=1,h=0,f=0,b=0,v=0,S=0,_=u.length,C=0,x={},w={},N=[],A=[],y,I,M,P,z;C<_;)if(u.charAt(C)===";")d++,C++,h=0;else if(u.charAt(C)===",")C++;else{for(y=new l,y.generatedLine=d,P=C;P<_&&!this._charIsMappingSeparator(u,P);P++);if(I=u.slice(C,P),M=x[I],M)C+=I.length;else{for(M=[];C<P;)o.decode(u,C,w),z=w.value,C=w.rest,M.push(z);if(M.length===2)throw new Error("Found a source, but no line and column");if(M.length===3)throw new Error("Found a source and line, but no column");x[I]=M}y.generatedColumn=h+M[0],h=y.generatedColumn,M.length>1&&(y.source=v+M[1],v+=M[1],y.originalLine=f+M[2],f=y.originalLine,y.originalLine+=1,y.originalColumn=b+M[3],b=y.originalColumn,M.length>4&&(y.name=S+M[4],S+=M[4])),A.push(y),typeof y.originalLine=="number"&&N.push(y)}r(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,r(N,e.compareByOriginalPositions),this.__originalMappings=N},a.prototype._findMapping=function(u,m,d,h,f,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[h]);return t.search(u,m,f,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var m=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(m.generatedLine===d.generatedLine){m.lastGeneratedColumn=d.generatedColumn-1;continue}}m.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var m={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(m,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var h=this._generatedMappings[d];if(h.generatedLine===m.generatedLine){var f=e.getArg(h,"source",null);f!==null&&(f=this._sources.at(f),f=e.computeSourceURL(this.sourceRoot,f,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:f,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,m){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var h=u;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var f;if(this.sourceRoot!=null&&(f=e.urlParse(this.sourceRoot))){var b=h.replace(/^file:\/\//,"");if(f.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!f.path||f.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(m)return null;throw new Error('"'+h+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var m=e.getArg(u,"source");if(m=this._findSourceIndex(m),m<0)return{line:null,column:null,lastColumn:null};var d={source:m,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var f=this._originalMappings[h];if(f.source===d.source)return{line:e.getArg(f,"generatedLine",null),column:e.getArg(f,"generatedColumn",null),lastColumn:e.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Vt.BasicSourceMapConsumer=a;function s(c,u){var m=c;typeof c=="string"&&(m=e.parseSourceMapInput(c));var d=e.getArg(m,"version"),h=e.getArg(m,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var f={line:-1,column:0};this._sections=h.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var v=e.getArg(b,"offset"),S=e.getArg(v,"line"),_=e.getArg(v,"column");if(S<f.line||S===f.line&&_<f.column)throw new Error("Section offsets must be ordered and non-overlapping.");return f=v,{generatedOffset:{generatedLine:S+1,generatedColumn:_+1},consumer:new i(e.getArg(b,"map"),u)}})}return s.prototype=Object.create(i.prototype),s.prototype.constructor=i,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var c=[],u=0;u<this._sections.length;u++)for(var m=0;m<this._sections[u].consumer.sources.length;m++)c.push(this._sections[u].consumer.sources[m]);return c}}),s.prototype.originalPositionFor=function(u){var m={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(m,this._sections,function(f,b){var v=f.generatedLine-b.generatedOffset.generatedLine;return v||f.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:m.generatedLine-(h.generatedOffset.generatedLine-1),column:m.generatedColumn-(h.generatedOffset.generatedLine===m.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(u,m){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],f=h.consumer.sourceContentFor(u,!0);if(f)return f}if(m)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var m=0;m<this._sections.length;m++){var d=this._sections[m];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var f={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return f}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,m){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],f=h.consumer._generatedMappings,b=0;b<f.length;b++){var v=f[b],S=h.consumer._sources.at(v.source);S=e.computeSourceURL(h.consumer.sourceRoot,S,this._sourceMapURL),this._sources.add(S),S=this._sources.indexOf(S);var _=null;v.name&&(_=h.consumer._names.at(v.name),this._names.add(_),_=this._names.indexOf(_));var C={source:S,generatedLine:v.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:v.generatedColumn+(h.generatedOffset.generatedLine===v.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:v.originalLine,originalColumn:v.originalColumn,name:_};this.__generatedMappings.push(C),typeof C.originalLine=="number"&&this.__originalMappings.push(C)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},Vt.IndexedSourceMapConsumer=s,Vt}var No={},aa;function dS(){if(aa)return No;aa=1;var e=yl().SourceMapGenerator,t=un(),n=/(\r?\n)/,o=10,r="$$$isSourceNode$$$";function i(a,l,s,c,u){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=s??null,this.name=u??null,this[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,m=l.split(n),d=0,h=function(){var _=x(),C=x()||"";return _+C;function x(){return d<m.length?m[d++]:void 0}},f=1,b=0,v=null;return s.eachMapping(function(_){if(v!==null)if(f<_.generatedLine)S(v,h()),f++,b=0;else{var C=m[d]||"",x=C.substr(0,_.generatedColumn-b);m[d]=C.substr(_.generatedColumn-b),b=_.generatedColumn,S(v,x),v=_;return}for(;f<_.generatedLine;)u.add(h()),f++;if(b<_.generatedColumn){var C=m[d]||"";u.add(C.substr(0,_.generatedColumn)),m[d]=C.substr(_.generatedColumn),b=_.generatedColumn}v=_},this),d<m.length&&(v&&S(v,h()),u.add(m.splice(d).join(""))),s.sources.forEach(function(_){var C=s.sourceContentFor(_);C!=null&&(c!=null&&(_=t.join(c,_)),u.setSourceContent(_,C))}),u;function S(_,C){if(_===null||_.source===void 0)u.add(C);else{var x=c?t.join(c,_.source):_.source;u.add(new i(_.originalLine,_.originalColumn,x,C,_.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[r]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][r]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,m=null,d=null,h=null,f=null;return this.walk(function(b,v){s.code+=b,v.source!==null&&v.line!==null&&v.column!==null?((m!==v.source||d!==v.line||h!==v.column||f!==v.name)&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name}),m=v.source,d=v.line,h=v.column,f=v.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),m=null,u=!1);for(var S=0,_=b.length;S<_;S++)b.charCodeAt(S)===o?(s.line++,s.column=0,S+1===_?(m=null,u=!1):u&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name})):s.column++}),this.walkSourceContents(function(b,v){c.setSourceContent(b,v)}),{code:s.code,map:c}},No.SourceNode=i,No}var la;function hS(){return la||(la=1,Wt.SourceMapGenerator=yl().SourceMapGenerator,Wt.SourceMapConsumer=uS().SourceMapConsumer,Wt.SourceNode=dS().SourceNode),Wt}(function(e,t){t.__esModule=!0;var n=ue,o=void 0;try{var r=hS();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],m=0,d=l.length;m<d;m++)u.push(s.wrap(l[m],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
355
+ `])}),s},each:function(s){for(var c=0,u=this.source.length;c<u;c++)s(this.source[c])},empty:function(){var s=this.currentLocation||{start:{}};return new o(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof o?s:(s=i(s,this,c),new o(c.start.line,c.start.column,this.srcFile,s))},functionCall:function(s,c,u){return u=this.generateList(u),this.wrap([s,c?"."+c+"(":"(",u,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var c=this,u=[];Object.keys(s).forEach(function(d){var h=i(s[d],c);h!=="undefined"&&u.push([c.quotedString(d),":",h])});var m=this.generateList(u);return m.prepend("{"),m.add("}"),m},generateList:function(s){for(var c=this.empty(),u=0,m=s.length;u<m;u++)u&&c.add(","),c.add(i(s[u],this));return c},generateArray:function(s){var c=this.generateList(s);return c.prepend("["),c.add("]"),c}},t.default=a,e.exports=t.default})(ur,ur.exports);var fS=ur.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Oe,r=Le,i=n(r),a=ue,l=fS,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(h,f){return this.internalNameLookup(h,f)},depthedLookup:function(h){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(h),")"]},compilerInfo:function(){var h=o.COMPILER_REVISION,f=o.REVISION_CHANGES[h];return[h,f]},appendToBuffer:function(h,f,b){return a.isArray(h)||(h=[h]),h=this.source.wrap(h,f),this.environment.isSimple?["return ",h,";"]:b?["buffer += ",h,";"]:(h.appendToBuffer=!0,h)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(h,f){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",h,",",JSON.stringify(f),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(h,f,b,v){this.environment=h,this.options=f,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!v,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(h,f),this.useDepths=this.useDepths||h.useDepths||h.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||h.useBlockParams;var S=h.opcodes,_=void 0,C=void 0,x=void 0,w=void 0;for(x=0,w=S.length;x<w;x++)_=S[x],this.source.currentLocation=_.loc,C=C||_.loc,this[_.opcode].apply(this,_.args);if(this.source.currentLocation=C,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
356
356
  `]),this.decorators.push("return fn;"),v?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
357
357
  `),this.decorators.push(`}
358
- `),this.decorators=this.decorators.merge()));var N=this.createFunctionContext(v);if(this.isChild)return N;var A={compiler:this.compilerInfo(),main:N};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var y=this.context,I=y.programs,M=y.decorators;for(x=0,k=I.length;x<k;x++)A[x]=I[x],M[x]&&(A[x+"_d"]=M[x],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),v?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),f.srcName?(A=A.toStringWithSourceMap({file:f.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(h){var f=this,b="",v=this.stackVars.concat(this.registers.list);v.length>0&&(b+=", "+v.join(", "));var S=0;Object.keys(this.aliases).forEach(function(x){var k=f.aliases[x];k.children&&k.referenceCount>1&&(b+=", alias"+ ++S+"="+x,k.children[0]="alias"+S)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var _=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&_.push("blockParams"),this.useDepths&&_.push("depths");var $=this.mergeSource(b);return h?(_.push($),Function.apply(this,_)):this.source.wrap(["function(",_.join(","),`) {
359
- `,$,"}"])},mergeSource:function(h){var f=this.environment.isSimple,b=!this.forceBuffer,v=void 0,S=void 0,_=void 0,$=void 0;return this.source.each(function(x){x.appendToBuffer?(_?x.prepend(" + "):_=x,$=x):(_&&(S?_.prepend("buffer += "):v=!0,$.add(";"),_=$=void 0),S=!0,f||(b=!1))}),b?_?(_.prepend("return "),$.add(";")):S||this.source.push('return "";'):(h+=", buffer = "+(v?"":this.initializeBuffer()),_?(_.prepend("return buffer + "),$.add(";")):this.source.push("return buffer;")),h&&this.source.prepend("var "+h.substring(2)+(v?"":`;
358
+ `),this.decorators=this.decorators.merge()));var N=this.createFunctionContext(v);if(this.isChild)return N;var A={compiler:this.compilerInfo(),main:N};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var y=this.context,I=y.programs,M=y.decorators;for(x=0,w=I.length;x<w;x++)A[x]=I[x],M[x]&&(A[x+"_d"]=M[x],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),v?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),f.srcName?(A=A.toStringWithSourceMap({file:f.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(h){var f=this,b="",v=this.stackVars.concat(this.registers.list);v.length>0&&(b+=", "+v.join(", "));var S=0;Object.keys(this.aliases).forEach(function(x){var w=f.aliases[x];w.children&&w.referenceCount>1&&(b+=", alias"+ ++S+"="+x,w.children[0]="alias"+S)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var _=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&_.push("blockParams"),this.useDepths&&_.push("depths");var C=this.mergeSource(b);return h?(_.push(C),Function.apply(this,_)):this.source.wrap(["function(",_.join(","),`) {
359
+ `,C,"}"])},mergeSource:function(h){var f=this.environment.isSimple,b=!this.forceBuffer,v=void 0,S=void 0,_=void 0,C=void 0;return this.source.each(function(x){x.appendToBuffer?(_?x.prepend(" + "):_=x,C=x):(_&&(S?_.prepend("buffer += "):v=!0,C.add(";"),_=C=void 0),S=!0,f||(b=!1))}),b?_?(_.prepend("return "),C.add(";")):S||this.source.push('return "";'):(h+=", buffer = "+(v?"":this.initializeBuffer()),_?(_.prepend("return buffer + "),C.add(";")):this.source.push("return buffer;")),h&&this.source.prepend("var "+h.substring(2)+(v?"":`;
360
360
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
361
361
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
362
362
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -364,7 +364,10 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
364
364
  }
365
365
  return undefined
366
366
  }
367
- `.trim()},blockValue:function(h){var f=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var v=this.popStack();b.splice(1,0,v),this.push(this.source.functionCall(f,"call",b))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs("",0,f,!0),this.flushInline();var b=this.topStack();f.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(h,"call",f),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(f){return[" != null ? ",f,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,f,b,v){var S=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[S++])):this.pushContext(),this.resolvePath("context",h,S,f,b)},lookupBlockParam:function(h,f){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",f,1)},lookupData:function(h,f,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",f,0,!0,b)},resolvePath:function(h,f,b,v,S){var _=this;if(this.options.strict||this.options.assumeObjects){this.push(g(this.options.strict&&S,this,f,b,h));return}for(var $=f.length,x=function(N){_.replaceStack(function(A){var y=_.nameLookup(A,f[N],h);return v?[" && ",y]:[" != null ? ",y," : ",A]})},k=b;k<$;k++)x(k)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,f){this.pushContext(),this.pushString(f),f!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,f){var b=this.nameLookup("decorators",f,"decorator"),v=this.setupHelperArgs(f,h);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+f+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(h,f,b){var v=this.popStack(),S=this.setupHelper(h,f),_=[];b&&_.push(S.name),_.push(v),this.options.strict||_.push(this.aliasable("container.hooks.helperMissing"));var $=["(",this.itemsSeparatedBy(_,"||"),")"],x=this.source.functionCall($,"call",S.callParams);this.push(x)},itemsSeparatedBy:function(h,f){var b=[];b.push(h[0]);for(var v=1;v<h.length;v++)b.push(f,h[v]);return b},invokeKnownHelper:function(h,f){var b=this.setupHelper(h,f);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,f){this.useRegister("helper");var b=this.popStack();this.emptyHash();var v=this.setupHelper(0,h,f),S=this.lastHelper=this.nameLookup("helpers",h,"helper"),_=["(","(helper = ",S," || ",b,")"];this.options.strict||(_[0]="(helper = ",_.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",_,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(h,f,b){var v=[],S=this.setupParams(f,1,v);h&&(f=this.popStack(),delete S.name),b&&(S.indent=JSON.stringify(b)),S.helpers="helpers",S.partials="partials",S.decorators="container.decorators",h?v.unshift(f):v.unshift(this.nameLookup("partials",f,"partial")),this.options.compat&&(S.depths="depths"),S=this.objectLiteral(S),v.push(S),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(h){var f=this.popStack(),b=void 0,v=void 0,S=void 0;this.trackIds&&(S=this.popStack()),this.stringParams&&(v=this.popStack(),b=this.popStack());var _=this.hash;b&&(_.contexts[h]=b),v&&(_.types[h]=v),S&&(_.ids[h]=S),_.values[h]=f},pushId:function(h,f,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+f[0]+"].path["+f[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(f):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,f){for(var b=h.children,v=void 0,S=void 0,_=0,$=b.length;_<$;_++){v=b[_],S=new this.compiler;var x=this.matchExistingProgram(v);if(x==null){var k=this.context.programs.push("")-1;v.index=k,v.name="program"+k,this.context.programs[k]=S.compile(v,f,this.context,!this.precompile),this.context.decorators[k]=S.decorators,this.context.environments[k]=v,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=x.index,v.name="program"+x.index,this.useDepths=this.useDepths||x.useDepths,this.useBlockParams=this.useBlockParams||x.useBlockParams}},matchExistingProgram:function(h){for(var f=0,b=this.context.environments.length;f<b;f++){var v=this.context.environments[f];if(v&&v.equals(h))return v}},programExpression:function(h){var f=this.environment.children[h],b=[f.index,"data",f.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var f=["("],b=void 0,v=void 0,S=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var _=this.popStack(!0);if(_ instanceof c)b=[_.value],f=["(",b],S=!0;else{v=!0;var $=this.incrStack();f=["((",this.push($)," = ",_,")"],b=this.topStack()}var x=h.call(this,b);S||this.popStack(),v&&this.stackSlot--,this.push(f.concat(x,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var h=this.inlineStack;this.inlineStack=[];for(var f=0,b=h.length;f<b;f++){var v=h[f];if(v instanceof c)this.compileStack.push(v);else{var S=this.incrStack();this.pushSource([S," = ",v,";"]),this.compileStack.push(S)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var f=this.isInline(),b=(f?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!f){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,f=h[h.length-1];return f instanceof c?f.value:f},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var f=this.aliases[h];return f?(f.referenceCount++,f):(f=this.aliases[h]=this.source.wrap(h),f.aliasable=!0,f.referenceCount=1,f)},setupHelper:function(h,f,b){var v=[],S=this.setupHelperArgs(f,h,v,b),_=this.nameLookup("helpers",f,"helper"),$=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:v,paramsInit:S,name:_,callParams:[$].concat(v)}},setupParams:function(h,f,b){var v={},S=[],_=[],$=[],x=!b,k=void 0;x&&(b=[]),v.name=this.quotedString(h),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var N=this.popStack(),A=this.popStack();(A||N)&&(v.fn=A||"container.noop",v.inverse=N||"container.noop");for(var y=f;y--;)k=this.popStack(),b[y]=k,this.trackIds&&($[y]=this.popStack()),this.stringParams&&(_[y]=this.popStack(),S[y]=this.popStack());return x&&(v.args=this.source.generateArray(b)),this.trackIds&&(v.ids=this.source.generateArray($)),this.stringParams&&(v.types=this.source.generateArray(_),v.contexts=this.source.generateArray(S)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(h,f,b,v){var S=this.setupParams(h,f,b);return S.loc=JSON.stringify(this.source.currentLocation),S=this.objectLiteral(S),v?(this.useRegister("options"),b.push("options"),["options=",S]):b?(b.push(S),""):S}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=u.RESERVED_WORDS={},f=0,b=d.length;f<b;f++)h[d[f]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function g(d,h,f,b,v){var S=h.popStack(),_=f.length;d&&_--;for(var $=b;$<_;$++)S=h.nameLookup(S,f[$],v);return d?[h.aliasable("container.strict"),"(",S,", ",h.quotedString(f[_]),", ",JSON.stringify(h.source.currentLocation)," )"]:S}t.default=u,e.exports=t.default})(lr,lr.exports);var uS=lr.exports;(function(e,t){t.__esModule=!0;function n(_){return _&&_.__esModule?_:{default:_}}var o=$1,r=n(o),i=gl,a=n(i),l=sn,s=cn,c=uS,u=n(c),g=pl,d=n(g),h=ml,f=n(h),b=r.default.create;function v(){var _=b();return _.compile=function($,x){return s.compile($,x,_)},_.precompile=function($,x){return s.precompile($,x,_)},_.AST=a.default,_.Compiler=s.Compiler,_.JavaScriptCompiler=u.default,_.Parser=l.parser,_.parse=l.parse,_.parseWithoutProcessing=l.parseWithoutProcessing,_}var S=v();S.create=v,f.default(S),S.Visitor=d.default,S.default=S,t.default=S,e.exports=t.default})(Bo,Bo.exports);var dS=Bo.exports;const hS=ux(dS);function fS(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,g,d,h,f,b,v;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const a=e[i];switch(a.type){case"Container":case"ButtonGroup":(((l=a.data.props)==null?void 0:l.childrenIds)||[]).forEach(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(S=>(S.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(S=>(S.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(S=>{(S.titleChildrenIds||[]).forEach(r),(S.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((g=a.data.props)==null?void 0:g.items)||[]).forEach(S=>{(S.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(S=>(S.childrenIds||[]).forEach(r)),(((h=a.data.props)==null?void 0:h.items)||[]).forEach(S=>{(S.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((f=a.data.props)==null?void 0:f.items)||[]).forEach(S=>{(S.cardChildrenIds||[]).forEach(r),(S.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((v=a.data.props)==null?void 0:v.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}function kl(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of fS(o,s))n.set(u,a||{})})}return n}const mS={Text:["text"],Heading:["text"],Button:["text"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Container:["linkHref"]};function gS(e){return e?mS[e]:void 0}const cr=hS.create();cr.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new cr.SafeString(`{{${t.name}}}`)});const ra=new Map;function pS(e){let t=ra.get(e);return t||(t=cr.compile(e,{noEscape:!0,strict:!1}),ra.set(e,t)),t}function Cl(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const o=n.value.map(r=>{const i={};if(r&&typeof r=="object")for(const a of Object.keys(r)){const l=r[a];l!=null&&l!==""&&(i[a]=l)}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}typeof n.value!="string"||n.value===""||(t[n.id]=n.value)}return t}function $l(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const bS=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function vS(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(bS,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const Al=/\{\{\s*this\.([\w]+)\s*\}\}/g;function xS(e,t){return e.replace(Al,(n,o)=>{const r=t==null?void 0:t[o];return r!=null&&r!==""?String(r):n})}function ia(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=xS(o,n),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?Cl(t):{},{masked:i,restore:a}=vS(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(Al,g=>{const d="HB_THIS_"+u+++"_";return l.set(d,g),d})}let c=pS(s)(r);for(const[u,g]of l)c=c.split(u).join(g);if(a.size>0)for(const[u,g]of a)c=c.split(u).join(g);return c}catch{return o}}function yl(e,t,n){var a,l,s;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="List"){const c=(l=(a=e.data)==null?void 0:a.props)==null?void 0:l.items;if(!Array.isArray(c)||c.length===0)return e;let u=null;return c.forEach((g,d)=>{const h=g==null?void 0:g.text;if(typeof h!="string"||h.indexOf("{{")===-1)return;const f=ia(h,t,n);f!==h&&(u||(u=c.map(b=>({...b}))),u[d]={...u[d],text:f})}),u?{...e,data:{...e.data,props:{...e.data.props,items:u}}}:e}const o=gS(e.type);if(!o)return e;const r=(s=e.data)==null?void 0:s.props;if(!r)return e;let i=null;for(const c of o){const u=r[c];if(typeof u!="string"||u.indexOf("{{")===-1)continue;const g=ia(u,t,n);g!==u&&(i||(i={...r}),i[c]=g)}return i?{...e,data:{...e.data,props:i}}:e}function Nl(e,t){var l;if(!e)return e;const n=t??$l(e);let o={...e},r=!1;const i=kl(e,n);if(n&&n.length>0&&(Object.keys(Cl(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=yl(c,n,i.get(s));u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const SS=new Set(Eg),_S=new Set(["fontWeight","lineHeight","opacity","zIndex"]),wS=new Set(["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","lineHeight","textAlign","padding","margin","marginBottom","width","height","borderRadius","backgroundImage","backgroundSize","backgroundRepeat"]);function kS(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function CS(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&("top"in e||"right"in e||"bottom"in e||"left"in e)}function $S(e,t){if(t==null)return null;if((e==="padding"||e==="margin")&&CS(t)){const n=t.top??0,o=t.right??0,r=t.bottom??0,i=t.left??0;return`${n}px ${o}px ${r}px ${i}px`}return typeof t=="number"?_S.has(e)?String(t):`${t}px`:typeof t=="string"?t:null}function AS(e){return e.replace(/([^a-zA-Z0-9_-])/g,"\\$1")}function aa(e,t,n){if(!n)return"";const o=[];for(const r of Object.keys(n)){if(!SS.has(r)||!wS.has(r))continue;const i=$S(r,n[r]);i===null||i===""||o.push(`${kS(r)}:${i} !important`)}return o.length===0?"":`${t}{${e},${e}>*{${o.join(";")}}}`}function yS(e,t){var a,l;const n=t==null?void 0:t.responsive;if(!n)return"";const o=`#${AS(e)}`,r=aa(o,Fa,(a=n.tablet)==null?void 0:a.style),i=aa(o,Re,(l=n.mobile)==null?void 0:l.style);return r+i}const NS=e=>{var o,r;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((r=e==null?void 0:e.props)==null?void 0:r.alt)??"";return t?p.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:p.jsx(ci,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):p.jsx(ci,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},ES=e=>p.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:p.jsx(ug,{...e})}),RS=$b,El=F.createContext({});function Rl(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const la=new WeakMap;function IS(e){if(!e||typeof e!="object")return new Map;let t=la.get(e);return t||(t=kl(e,Rl(e)),la.set(e,t)),t}const Il=F.createContext({});function PS(){return F.useContext(El)}function MS(){return F.useContext(Il)}const Pl={ColumnsContainer:{schema:sp,Component:up},FlexColumns:{schema:dp,Component:vp},Grid:{schema:Ep,Component:Mp},ButtonGroup:{schema:r0,Component:i0},Container:{schema:Kp,Component:Jp},EmailLayout:{schema:sb,Component:RS},Accordion:{schema:l0,Component:c0},PricingAccordion:{schema:d0,Component:f0},TabsBlock:{schema:g0,Component:k0},Carousel:{schema:y0,Component:I0},Rating:{schema:P0,Component:L0},Marquee:{schema:z0,Component:K0},Timer:{schema:Q0,Component:sv},Pagination:{schema:hv,Component:xv},Table:{schema:Sv,Component:Cv},DemoPicker:{schema:$v,Component:e=>p.jsx(yv,{...e})},MenuPicker:{schema:Rv,Component:e=>p.jsx(Zv,{...e})},FormsPicker:{schema:Wv,Component:e=>p.jsx(qv,{...e})},AppBannerPicker:{schema:Yv,Component:e=>p.jsx(Xv,{...e})},FaqPicker:{schema:Qv,Component:e=>p.jsx(nx,{...e})},Avatar:{schema:Dh,Component:NS},Button:{schema:vf,Component:xf},Divider:{schema:Nf,Component:Ef},Heading:{schema:Df,Component:Hf},Html:{schema:pm,Component:xm},Image:{schema:Rm,Component:Pm},Logo:{schema:Gm,Component:Zm},Video:{schema:og,Component:lg},IFrame:{schema:Ig,Component:Mg},Calendly:{schema:Lg,Component:jg},YouTubeUrl:{schema:Ag,Component:Ng},Spacer:{schema:sg,Component:ES},SkipLink:{schema:ox,Component:ol},AccessibilityTools:{schema:ix,Component:ll},Stepper:{schema:Ob,Component:Lb},List:{schema:Zb,Component:Vb},Text:{schema:_g,Component:kg}},Ml=Zg(Pl),TS=Pt(w(),Ml),OS=Ug(Pl);function be({id:e}){var $,x,k,N;const t=PS(),{staticRender:n,injectElementIds:o,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:a}=MS(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||a&&e===a&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=r&&e===r&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...(($=l.data)==null?void 0:$.props)??{},elementId:"main-content"}}}:l,c=Rl(t),u=IS(t).get(e),g=yl(s,c,u),d=p.jsx(OS,{...g});if(e==="root")return d;const h=!!((x=l==null?void 0:l.data)!=null&&x.hidden),b=new Set(["Image","Container","Button","Avatar","Logo"]).has(g==null?void 0:g.type)?(N=(k=g==null?void 0:g.data)==null?void 0:k.props)==null?void 0:N.animation:null,v=b&&b.type&&b.type!=="none"?{"data-animate-type":b.type,"data-animate-trigger":b.trigger??"load","data-animate-speed":b.speed??"medium","data-animate-delay":b.delay??0,...b.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},S=n&&o?`ahd-${e}`:e,_=yS(S,l==null?void 0:l.data);return n&&o?p.jsxs("div",{id:`ahd-${e}`,className:"ahd-block-wrapper",style:h?{display:"none"}:void 0,...v,children:[_?p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}):null,d]}):p.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...h?{display:"none"}:null},...v,children:[_?p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}):null,d]})}function nn({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}){const s=F.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}),[n,o,r,i,a,l]);return p.jsx(El.Provider,{value:e,children:p.jsx(Il.Provider,{value:s,children:p.jsx(be,{id:t})})})}function LS(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function zS(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function BS(e,t){const n=new Set;function o(r){var s,c,u,g;if(n.has(r))return;n.add(r);const i=e[r];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return r;const a=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(a.childrenIds)&&l.push(a.childrenIds),Array.isArray((g=i.data)==null?void 0:g.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(a.columns)&&a.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const h of d){const f=o(h);if(f)return f}}return o(t)}const jS=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),DS=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),HS=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),FS=new Set(["Image","Container","Button","Avatar","Logo"]),GS=e=>Object.values(e??{}).some(t=>{var n,o,r;return FS.has(t==null?void 0:t.type)&&((r=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:r.type)&&t.data.props.animation.type!=="none"}),US=()=>`
367
+ `.trim()},blockValue:function(h){var f=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var v=this.popStack();b.splice(1,0,v),this.push(this.source.functionCall(f,"call",b))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),f=[this.contextName(0)];this.setupHelperArgs("",0,f,!0),this.flushInline();var b=this.topStack();f.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(h,"call",f),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(f){return[" != null ? ",f,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,f,b,v){var S=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[S++])):this.pushContext(),this.resolvePath("context",h,S,f,b)},lookupBlockParam:function(h,f){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",f,1)},lookupData:function(h,f,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",f,0,!0,b)},resolvePath:function(h,f,b,v,S){var _=this;if(this.options.strict||this.options.assumeObjects){this.push(m(this.options.strict&&S,this,f,b,h));return}for(var C=f.length,x=function(N){_.replaceStack(function(A){var y=_.nameLookup(A,f[N],h);return v?[" && ",y]:[" != null ? ",y," : ",A]})},w=b;w<C;w++)x(w)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,f){this.pushContext(),this.pushString(f),f!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,f){var b=this.nameLookup("decorators",f,"decorator"),v=this.setupHelperArgs(f,h);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+f+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(h,f,b){var v=this.popStack(),S=this.setupHelper(h,f),_=[];b&&_.push(S.name),_.push(v),this.options.strict||_.push(this.aliasable("container.hooks.helperMissing"));var C=["(",this.itemsSeparatedBy(_,"||"),")"],x=this.source.functionCall(C,"call",S.callParams);this.push(x)},itemsSeparatedBy:function(h,f){var b=[];b.push(h[0]);for(var v=1;v<h.length;v++)b.push(f,h[v]);return b},invokeKnownHelper:function(h,f){var b=this.setupHelper(h,f);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,f){this.useRegister("helper");var b=this.popStack();this.emptyHash();var v=this.setupHelper(0,h,f),S=this.lastHelper=this.nameLookup("helpers",h,"helper"),_=["(","(helper = ",S," || ",b,")"];this.options.strict||(_[0]="(helper = ",_.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",_,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(h,f,b){var v=[],S=this.setupParams(f,1,v);h&&(f=this.popStack(),delete S.name),b&&(S.indent=JSON.stringify(b)),S.helpers="helpers",S.partials="partials",S.decorators="container.decorators",h?v.unshift(f):v.unshift(this.nameLookup("partials",f,"partial")),this.options.compat&&(S.depths="depths"),S=this.objectLiteral(S),v.push(S),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(h){var f=this.popStack(),b=void 0,v=void 0,S=void 0;this.trackIds&&(S=this.popStack()),this.stringParams&&(v=this.popStack(),b=this.popStack());var _=this.hash;b&&(_.contexts[h]=b),v&&(_.types[h]=v),S&&(_.ids[h]=S),_.values[h]=f},pushId:function(h,f,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+f[0]+"].path["+f[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(f):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,f){for(var b=h.children,v=void 0,S=void 0,_=0,C=b.length;_<C;_++){v=b[_],S=new this.compiler;var x=this.matchExistingProgram(v);if(x==null){var w=this.context.programs.push("")-1;v.index=w,v.name="program"+w,this.context.programs[w]=S.compile(v,f,this.context,!this.precompile),this.context.decorators[w]=S.decorators,this.context.environments[w]=v,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=x.index,v.name="program"+x.index,this.useDepths=this.useDepths||x.useDepths,this.useBlockParams=this.useBlockParams||x.useBlockParams}},matchExistingProgram:function(h){for(var f=0,b=this.context.environments.length;f<b;f++){var v=this.context.environments[f];if(v&&v.equals(h))return v}},programExpression:function(h){var f=this.environment.children[h],b=[f.index,"data",f.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var f=["("],b=void 0,v=void 0,S=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var _=this.popStack(!0);if(_ instanceof c)b=[_.value],f=["(",b],S=!0;else{v=!0;var C=this.incrStack();f=["((",this.push(C)," = ",_,")"],b=this.topStack()}var x=h.call(this,b);S||this.popStack(),v&&this.stackSlot--,this.push(f.concat(x,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var h=this.inlineStack;this.inlineStack=[];for(var f=0,b=h.length;f<b;f++){var v=h[f];if(v instanceof c)this.compileStack.push(v);else{var S=this.incrStack();this.pushSource([S," = ",v,";"]),this.compileStack.push(S)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var f=this.isInline(),b=(f?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!f){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,f=h[h.length-1];return f instanceof c?f.value:f},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var f=this.aliases[h];return f?(f.referenceCount++,f):(f=this.aliases[h]=this.source.wrap(h),f.aliasable=!0,f.referenceCount=1,f)},setupHelper:function(h,f,b){var v=[],S=this.setupHelperArgs(f,h,v,b),_=this.nameLookup("helpers",f,"helper"),C=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:v,paramsInit:S,name:_,callParams:[C].concat(v)}},setupParams:function(h,f,b){var v={},S=[],_=[],C=[],x=!b,w=void 0;x&&(b=[]),v.name=this.quotedString(h),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var N=this.popStack(),A=this.popStack();(A||N)&&(v.fn=A||"container.noop",v.inverse=N||"container.noop");for(var y=f;y--;)w=this.popStack(),b[y]=w,this.trackIds&&(C[y]=this.popStack()),this.stringParams&&(_[y]=this.popStack(),S[y]=this.popStack());return x&&(v.args=this.source.generateArray(b)),this.trackIds&&(v.ids=this.source.generateArray(C)),this.stringParams&&(v.types=this.source.generateArray(_),v.contexts=this.source.generateArray(S)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(h,f,b,v){var S=this.setupParams(h,f,b);return S.loc=JSON.stringify(this.source.currentLocation),S=this.objectLiteral(S),v?(this.useRegister("options"),b.push("options"),["options=",S]):b?(b.push(S),""):S}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=u.RESERVED_WORDS={},f=0,b=d.length;f<b;f++)h[d[f]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function m(d,h,f,b,v){var S=h.popStack(),_=f.length;d&&_--;for(var C=b;C<_;C++)S=h.nameLookup(S,f[C],v);return d?[h.aliasable("container.strict"),"(",S,", ",h.quotedString(f[_]),", ",JSON.stringify(h.source.currentLocation)," )"]:S}t.default=u,e.exports=t.default})(cr,cr.exports);var mS=cr.exports;(function(e,t){t.__esModule=!0;function n(_){return _&&_.__esModule?_:{default:_}}var o=E1,r=n(o),i=Sl,a=n(i),l=sn,s=cn,c=mS,u=n(c),m=_l,d=n(m),h=xl,f=n(h),b=r.default.create;function v(){var _=b();return _.compile=function(C,x){return s.compile(C,x,_)},_.precompile=function(C,x){return s.precompile(C,x,_)},_.AST=a.default,_.Compiler=s.Compiler,_.JavaScriptCompiler=u.default,_.Parser=l.parser,_.parse=l.parse,_.parseWithoutProcessing=l.parseWithoutProcessing,_}var S=v();S.create=v,f.default(S),S.Visitor=d.default,S.default=S,t.default=S,e.exports=t.default})(Do,Do.exports);var gS=Do.exports;const pS=mx(gS);function bS(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,m,d,h,f,b,v;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const a=e[i];switch(a.type){case"Container":case"ButtonGroup":(((l=a.data.props)==null?void 0:l.childrenIds)||[]).forEach(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(S=>(S.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(S=>(S.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(S=>{(S.titleChildrenIds||[]).forEach(r),(S.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((m=a.data.props)==null?void 0:m.items)||[]).forEach(S=>{(S.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(S=>(S.childrenIds||[]).forEach(r)),(((h=a.data.props)==null?void 0:h.items)||[]).forEach(S=>{(S.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((f=a.data.props)==null?void 0:f.items)||[]).forEach(S=>{(S.cardChildrenIds||[]).forEach(r),(S.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((v=a.data.props)==null?void 0:v.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}function Nl(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of bS(o,s))n.set(u,a||{})})}return n}const vS={Text:["text"],Heading:["text"],Button:["text"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Container:["linkHref"]};function xS(e){return e?vS[e]:void 0}const dr=pS.create();dr.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new dr.SafeString(`{{${t.name}}}`)});const sa=new Map;function SS(e){let t=sa.get(e);return t||(t=dr.compile(e,{noEscape:!0,strict:!1}),sa.set(e,t)),t}function El(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const o=n.value.map(r=>{const i={};if(r&&typeof r=="object")for(const a of Object.keys(r)){const l=r[a];l!=null&&l!==""&&(i[a]=l)}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}typeof n.value!="string"||n.value===""||(t[n.id]=n.value)}return t}function Rl(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const _S=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function kS(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(_S,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const Il=/\{\{\s*this\.([\w]+)\s*\}\}/g;function wS(e,t){return e.replace(Il,(n,o)=>{const r=t==null?void 0:t[o];return r!=null&&r!==""?String(r):n})}function ca(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=wS(o,n),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?El(t):{},{masked:i,restore:a}=kS(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(Il,m=>{const d="HB_THIS_"+u+++"_";return l.set(d,m),d})}let c=SS(s)(r);for(const[u,m]of l)c=c.split(u).join(m);if(a.size>0)for(const[u,m]of a)c=c.split(u).join(m);return c}catch{return o}}function Ml(e,t,n){var a,l,s;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="List"){const c=(l=(a=e.data)==null?void 0:a.props)==null?void 0:l.items;if(!Array.isArray(c)||c.length===0)return e;let u=null;return c.forEach((m,d)=>{const h=m==null?void 0:m.text;if(typeof h!="string"||h.indexOf("{{")===-1)return;const f=ca(h,t,n);f!==h&&(u||(u=c.map(b=>({...b}))),u[d]={...u[d],text:f})}),u?{...e,data:{...e.data,props:{...e.data.props,items:u}}}:e}const o=xS(e.type);if(!o)return e;const r=(s=e.data)==null?void 0:s.props;if(!r)return e;let i=null;for(const c of o){const u=r[c];if(typeof u!="string"||u.indexOf("{{")===-1)continue;const m=ca(u,t,n);m!==u&&(i||(i={...r}),i[c]=m)}return i?{...e,data:{...e.data,props:i}}:e}function Pl(e,t){var l;if(!e)return e;const n=t??Rl(e);let o={...e},r=!1;const i=Nl(e,n);if(n&&n.length>0&&(Object.keys(El(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=Ml(c,n,i.get(s));u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const ua=Object.fromEntries(zt.map(e=>[e.key,e.value]));function zn(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function $S(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function CS(e){const t=e.borderColor??null;if(!t)return"";if(t==="transparent")return"border:none!important";const n=zn(e.borderWidth)?e.borderWidth:null;return $S(t)?"":[`border-top:${(n==null?void 0:n.top)??0}px solid ${t}!important`,`border-right:${(n==null?void 0:n.right)??0}px solid ${t}!important`,`border-bottom:${(n==null?void 0:n.bottom)??0}px solid ${t}!important`,`border-left:${(n==null?void 0:n.left)??0}px solid ${t}!important`].join(";")}function AS(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=CS(e);o&&t.push(o)}const n=e.backgroundSize==="none";n&&t.push("background-image:none!important");for(const o of Object.keys(e)){const r=e[o];if(r!=null)switch(o){case"borderColor":case"borderWidth":break;case"fontSize":t.push(`font-size:${r}px!important`);break;case"fontFamily":ua[r]&&t.push(`font-family:${ua[r]}!important`);break;case"fontWeight":t.push(`font-weight:${r}!important`);break;case"fontStyle":t.push(`font-style:${r}!important`);break;case"textDecoration":t.push(`text-decoration:${r}!important`);break;case"lineHeight":t.push(`line-height:${r}!important`);break;case"textAlign":t.push(`text-align:${r}!important`);break;case"buttonTextAlign":t.push(`justify-content:${r==="center"?"center":r==="right"?"flex-end":"flex-start"}!important`);break;case"padding":case"margin":zn(r)&&t.push(`${o}:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"marginBottom":t.push(`margin-bottom:${r}px!important`);break;case"width":t.push(`width:${typeof r=="number"?`${r}px`:r}!important`);break;case"height":t.push(`height:${typeof r=="number"?`${r}px`:r}!important`);break;case"backgroundImage":t.push(r&&!n?`background-image:url("${String(r).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":n||t.push(`background-size:${r}!important`);break;case"backgroundRepeat":t.push(`background-repeat:${r}!important`);break;case"activeFontSize":t.push(`--ahd-tabs-active-font-size:${typeof r=="number"?`${r}px`:r}`);break;case"showActiveBorder":t.push(`--ahd-tabs-active-border-color:${r?"currentColor":"transparent"}`);break;case"tabGap":t.push(`--ahd-tabs-tab-gap:${r}px`);break;case"contentGap":t.push(`--ahd-tabs-content-gap:${r}px`);break;case"starSize":t.push(`--ahd-rating-star-size:${r}px`);break;case"starGap":t.push(`--ahd-rating-star-gap:${r}px`);break;case"arrowSize":t.push(`--ahd-carousel-arrow-size:${r}px`),t.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(r)*.5)))}px`);break;case"dotSize":t.push(`--ahd-carousel-dot-size:${r}px`);break;case"slideGap":t.push(`--ahd-carousel-slide-gap:${r}px`);break;case"buttonSize":t.push(`--ahd-pgn-btn-size:${r}px`);break;case"buttonGap":t.push(`--ahd-pgn-btn-gap:${r}px`);break;case"buttonRadius":t.push(`--ahd-pgn-btn-radius:${r}px`);break;case"controlGap":t.push(`--ahd-pgn-control-gap:${r}px`);break;case"borderRadius":if(typeof r=="number")t.push(`border-radius:${r}px!important`);else if(r&&typeof r=="object"){const{topLeft:i=0,topRight:a=0,bottomRight:l=0,bottomLeft:s=0}=r;t.push(`border-radius:${i}px ${a}px ${l}px ${s}px!important`)}else t.push(`border-radius:${r}!important`);break}}return t.join(";")}function yS(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const r=typeof o=="number"?`${o}px`:o;t.push(`height:${r}!important`),t.push(`--ahd-iframe-height:${r}`),t.push(`--ahd-calendly-height:${r}`),t.push(`--ahd-demo-height:${r}`);break}case"width":{const r=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${r}`),t.push(`--ahd-calendly-width:${r}`),t.push(`--ahd-demo-width:${r}`);break}case"blockPadding":zn(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":zn(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function da(e,t){if(!t)return null;const n=e??{},o={};for(const r of Object.keys(t)){const i=t[r],a=n[r],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!a&&typeof a=="object"&&!Array.isArray(a);o[r]=l?{...a,...i}:i}return o}function NS(e,t,n,o){if(!t)return"";const r=`#${e}`,i=RS(r),a=[],l=(c,u)=>{const m=da(n,u==null?void 0:u.style),d=da(o,u==null?void 0:u.props),h=[m?AS(m):"",d?yS(d):""].filter(Boolean).join(";"),f=[h?`${i}{${h}}`:"",u!=null&&u.hidden?`${r}{display:none}`:""].filter(Boolean).join("");f&&a.push(`${c}{${f}}`)};l(_r,t.tablet),l(`@media (max-width:${Ne}px)`,t.mobile);const s=MS(e,t,n,o);return s&&a.push(s),a.join("")}function ES(e,t){return t?e?{...e,...t}:t:e}function hr(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function ha(e,t,n){const o=hr(e,t),r=hr(n==null?void 0:n.style,n==null?void 0:n.props);return ES(o,r)}function Eo(e){const t=((e==null?void 0:e.left)??0)+((e==null?void 0:e.right)??0);return t>0?`calc(100% - ${t}px)`:"100%"}function RS(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block>table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.ahd-menu`].join(",")}function IS(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.heading-block-wrapper`,`${e}>.heading-block-wrapper>.heading-block`,`${e}>.image-block`,`${e}>.logo-block`,`${e}>.avatar-block`,`${e}>.container-block`,`${e}>.flex-columns-block`,`${e}>.grid-block`,`${e}>.video-block`,`${e}>.youtube-url-block`,`${e}>.divider-block`,`${e}>.mdx-block`,`${e}>.html-block`,`${e}>.stepper-block`,`${e}>.list-block`,`${e}>.rating-block`,`${e}>.table-block`,`${e}>.table-block>table`,`${e}>.spacer-block`,`${e}>.accordion-block`,`${e}>.columns-container`,`${e}>.ahd-carousel`,`${e}>.ahd-marquee`,`${e}>.ahd-pagination`,`${e}>.ahd-tabs`,`${e}>.calendly-block`,`${e}>.iframe-block`,`${e}>.demo-picker-block`,`${e}>.forms-picker-block`,`${e}>.ahd-timer`,`${e}>.ahd-menu`].join(",")}function MS(e,t,n,o){if(!t)return"";const r=`#${e}`,i=IS(r),a=hr(n,o),l=Eo(a),s=Eo(ha(n,o,t.tablet)),c=Eo(ha(n,o,t.mobile));return s===l&&c===l?"":`
368
+ ${_r} { ${i} { width: ${s} !important; max-width: 100% !important; } }
369
+ @media (max-width:${Ne}px) { ${i} { width: ${c} !important; max-width: 100% !important; } }
370
+ `.trim()}const PS=e=>{var o,r;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((r=e==null?void 0:e.props)==null?void 0:r.alt)??"";return t?p.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:p.jsx(fi,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):p.jsx(fi,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},TS=e=>p.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:p.jsx(gg,{...e})}),OS=Eb,Tl=G.createContext({});function Ol(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const fa=new WeakMap;function LS(e){if(!e||typeof e!="object")return new Map;let t=fa.get(e);return t||(t=Nl(e,Ol(e)),fa.set(e,t)),t}const Ll=G.createContext({});function zS(){return G.useContext(Tl)}function jS(){return G.useContext(Ll)}const zl={ColumnsContainer:{schema:hp,Component:mp},FlexColumns:{schema:gp,Component:kp},Grid:{schema:Pp,Component:zp},ButtonGroup:{schema:s0,Component:c0},Container:{schema:eb,Component:tb},EmailLayout:{schema:hb,Component:OS},Accordion:{schema:d0,Component:f0},PricingAccordion:{schema:g0,Component:b0},TabsBlock:{schema:x0,Component:y0},Carousel:{schema:I0,Component:O0},Rating:{schema:L0,Component:D0},Marquee:{schema:H0,Component:ev},Timer:{schema:ov,Component:hv},Pagination:{schema:pv,Component:wv},Table:{schema:$v,Component:Nv},DemoPicker:{schema:Ev,Component:e=>p.jsx(Iv,{...e})},MenuPicker:{schema:Tv,Component:e=>p.jsx(Yv,{...e})},FormsPicker:{schema:Kv,Component:e=>p.jsx(Xv,{...e})},AppBannerPicker:{schema:Qv,Component:e=>p.jsx(nx,{...e})},FaqPicker:{schema:ox,Component:e=>p.jsx(ax,{...e})},Avatar:{schema:Zh,Component:PS},Button:{schema:wf,Component:$f},Divider:{schema:Pf,Component:Tf},Heading:{schema:Zf,Component:Wf},Html:{schema:_m,Component:$m},Image:{schema:Om,Component:zm},Logo:{schema:qm,Component:Km},Video:{schema:sg,Component:hg},IFrame:{schema:Og,Component:zg},Calendly:{schema:Dg,Component:Gg},YouTubeUrl:{schema:Ig,Component:Pg},Spacer:{schema:fg,Component:TS},SkipLink:{schema:lx,Component:sl},AccessibilityTools:{schema:cx,Component:hl},Stepper:{schema:Bb,Component:Db},List:{schema:Yb,Component:Jb},Text:{schema:Ag,Component:Ng}},jl=Yg(zl),BS=Mt(k(),jl),DS=qg(zl);function ve({id:e}){var C,x,w,N,A,y,I;const t=zS(),{staticRender:n,injectElementIds:o,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:a}=jS(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||a&&e===a&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=r&&e===r&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((C=l.data)==null?void 0:C.props)??{},elementId:"main-content"}}}:l,c=Ol(t),u=LS(t).get(e),m=Ml(s,c,u),d=p.jsx(DS,{...m});if(e==="root")return d;const h=!!((x=l==null?void 0:l.data)!=null&&x.hidden),b=new Set(["Image","Container","Button","Avatar","Logo"]).has(m==null?void 0:m.type)?(N=(w=m==null?void 0:m.data)==null?void 0:w.props)==null?void 0:N.animation:null,v=b&&b.type&&b.type!=="none"?{"data-animate-type":b.type,"data-animate-trigger":b.trigger??"load","data-animate-speed":b.speed??"medium","data-animate-delay":b.delay??0,...b.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},S=n&&o?`ahd-${e}`:e,_=NS(S,(A=m==null?void 0:m.data)==null?void 0:A.responsive,(y=m==null?void 0:m.data)==null?void 0:y.style,(I=m==null?void 0:m.data)==null?void 0:I.props);return n&&o?p.jsxs("div",{id:`ahd-${e}`,className:"ahd-block-wrapper",style:h?{display:"none"}:void 0,...v,children:[_?p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}):null,d]}):p.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...h?{display:"none"}:null},...v,children:[_?p.jsx("style",{dangerouslySetInnerHTML:{__html:_}}):null,d]})}function on({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}){const s=G.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}),[n,o,r,i,a,l]);return p.jsx(Tl.Provider,{value:e,children:p.jsx(Ll.Provider,{value:s,children:p.jsx(ve,{id:t})})})}function HS(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function FS(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function GS(e,t){const n=new Set;function o(r){var s,c,u,m;if(n.has(r))return;n.add(r);const i=e[r];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return r;const a=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(a.childrenIds)&&l.push(a.childrenIds),Array.isArray((m=i.data)==null?void 0:m.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(a.columns)&&a.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const h of d){const f=o(h);if(f)return f}}return o(t)}const US=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),ZS=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),WS=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),VS=new Set(["Image","Container","Button","Avatar","Logo"]),qS=e=>Object.values(e??{}).some(t=>{var n,o,r;return VS.has(t==null?void 0:t.type)&&((r=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:r.type)&&t.data.props.animation.type!=="none"}),YS=()=>`
368
371
  (function () {
369
372
  if (window.__ahdAnimationBound) return;
370
373
  window.__ahdAnimationBound = true;
@@ -472,7 +475,7 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
472
475
  var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
473
476
  }
474
477
  })();
475
- `.trim(),ZS=()=>`
478
+ `.trim(),KS=()=>`
476
479
  (function () {
477
480
  var BASE_WIDTH = 1440;
478
481
  var BASE_HEIGHT = 830;
@@ -501,7 +504,7 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
501
504
  init();
502
505
  }
503
506
  })();
504
- `,WS=()=>`
507
+ `,JS=()=>`
505
508
  (function () {
506
509
  if (window.__ahdTabsBound) return;
507
510
  window.__ahdTabsBound = true;
@@ -625,7 +628,7 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
625
628
  var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
626
629
  }
627
630
  })();
628
- `,VS=()=>`
631
+ `,XS=()=>`
629
632
  (function () {
630
633
  if (window.__ahdCarouselBound) return;
631
634
  window.__ahdCarouselBound = true;
@@ -807,7 +810,7 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
807
810
  var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
808
811
  }
809
812
  })();
810
- `,qS=`
813
+ `,QS=`
811
814
  @keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
812
815
  @keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
813
816
  @keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@@ -820,8 +823,8 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
820
823
  80% { transform: translateY(-2px); }
821
824
  100% { opacity: 1; transform: translateY(0); }
822
825
  }
823
- `.trim(),YS=`
824
- ${qS}
826
+ `.trim(),e2=`
827
+ ${QS}
825
828
 
826
829
  /* Elements that animate on scroll/hover/click start hidden so there is no
827
830
  flash of the final state before the trigger fires. Load-triggered elements
@@ -839,21 +842,21 @@ html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.
839
842
  animation-fill-mode: both;
840
843
  animation-timing-function: ease-out;
841
844
  }
842
- `.trim(),KS=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],JS={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},XS=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},QS=`https://fonts.googleapis.com/css2?${Object.entries(JS).map(([e,t])=>`family=${XS(e,t)}`).join("&")}&display=swap`,Tl=KS.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Tl.map(e=>e.css);const e2=e=>e.replace(/"/g,'\\"');Tl.map(e=>{const t=e2(e.css);return`
845
+ `.trim(),t2=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"MODERN_SANS",label:"Modern sans",value:'"Modern Sans", "Inter", "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif'},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],n2={Inter:[400,500,600,700],Roboto:[400,500,700],"Open Sans":[400,500,600,700],Lato:[400,700],Poppins:[400,500,600,700],Montserrat:[400,500,600,700],Raleway:[400,500,600,700],Nunito:[400,500,600,700],"Playfair Display":[400,500,600,700],Merriweather:[400,700],"PT Sans":[400,700],Oswald:[400,500,600,700],"Source Sans Pro":[400,600,700],Rubik:[400,500,600,700],"Work Sans":[400,500,600,700],"Noto Sans":[400,500,600,700],"Titillium Web":[400,600,700],"Dancing Script":[400,500,600,700],Pacifico:[400],Lobster:[400],"Bebas Neue":[400],"Permanent Marker":[400],"Great Vibes":[400],"Libre Baskerville":[400,700],"EB Garamond":[400,500,700],Lora:[400,500,700]},o2=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},r2=`https://fonts.googleapis.com/css2?${Object.entries(n2).map(([e,t])=>`family=${o2(e,t)}`).join("&")}&display=swap`,Bl=t2.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Bl.map(e=>e.css);const i2=e=>e.replace(/"/g,'\\"');Bl.map(e=>{const t=i2(e.css);return`
843
846
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
844
847
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
845
848
  content: '${e.label}';
846
849
  font-family: ${e.css};
847
850
  }`}).join(`
848
- `);const t2=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,r,i)=>{t++;const a=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${r}>${a}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Nr(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:r,lang:i,skipLink:a,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:g,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectFontAssets:f=!0}){var B;const b=((B=e==null?void 0:e[t])==null?void 0:B.data)??{};i??b.lang;const v=a??b.skipLink??void 0,S=l??b.accessibilityTools??void 0,_=Object.values(e??{}).some(G=>(G==null?void 0:G.type)==="SkipLink"),$=Object.values(e??{}).some(G=>(G==null?void 0:G.type)==="AccessibilityTools");!_&&(v==null||v.enabled);const x=!$&&!!(S!=null&&S.enabled),k=x?rl(S):"",N=x?il(S):"",A=x?al():"",y=d&&jS(e)?WS():"",I=h&&HS(e)?VS():"",M=DS(e)?ZS():"",P=GS(e),L=P?US():"",H=p.jsxs("div",{style:{margin:0,padding:0},children:[k&&p.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),P&&p.jsx("style",{dangerouslySetInnerHTML:{__html:YS}}),g&&f&&p.jsx("link",{rel:"stylesheet",href:QS}),p.jsx("style",{children:`.gc-tooltip * {
851
+ `);const a2=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,r,i)=>{t++;const a=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${r}>${a}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Mr(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:r,lang:i,skipLink:a,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:m,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectFontAssets:f=!0}){var B;const b=((B=e==null?void 0:e[t])==null?void 0:B.data)??{};i??b.lang;const v=a??b.skipLink??void 0,S=l??b.accessibilityTools??void 0,_=Object.values(e??{}).some(U=>(U==null?void 0:U.type)==="SkipLink"),C=Object.values(e??{}).some(U=>(U==null?void 0:U.type)==="AccessibilityTools");!_&&(v==null||v.enabled);const x=!C&&!!(S!=null&&S.enabled),w=x?cl(S):"",N=x?ul(S):"",A=x?dl():"",y=d&&US(e)?JS():"",I=h&&WS(e)?XS():"",M=ZS(e)?KS():"",P=qS(e),z=P?YS():"",H=p.jsxs("div",{style:{margin:0,padding:0},children:[w&&p.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),P&&p.jsx("style",{dangerouslySetInnerHTML:{__html:e2}}),m&&f&&p.jsx("link",{rel:"stylesheet",href:r2}),p.jsx("style",{children:`.gc-tooltip * {
849
852
  margin: 0;
850
853
  padding: 0;
851
854
  box-sizing: border-box;
852
855
  }
853
856
  .gc-tooltip .gc-close { display: none !important; }
854
- .gc-tooltip .gc-copyright { display: none !important; }`}),N&&p.jsx("div",{dangerouslySetInnerHTML:{__html:N}}),A&&p.jsx("script",{dangerouslySetInnerHTML:{__html:A}}),(()=>{const G=LS(e),oe=zS(e),te=BS(e,t),me=G?e[G]:null,ae=oe?e[oe]:null,Y=te?p.jsx(nn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!g,mainBlockId:te,hoistedSkipLinkId:G,hoistedA11yToolsId:oe}):p.jsx("main",{id:"main-content",tabIndex:-1,children:p.jsx(nn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!g,hoistedSkipLinkId:G,hoistedA11yToolsId:oe})});return p.jsxs(p.Fragment,{children:[me&&p.jsx(ol,{...me.data??{}}),g?Y:p.jsx("div",{className:"ahd-page-root",children:Y}),ae&&p.jsx(ll,{...ae.data??{}})]})})(),y&&p.jsx("script",{dangerouslySetInnerHTML:{__html:y}}),I&&p.jsx("script",{dangerouslySetInnerHTML:{__html:I}}),M&&p.jsx("script",{dangerouslySetInnerHTML:{__html:M}}),L&&p.jsx("script",{dangerouslySetInnerHTML:{__html:L}})]}),T=Fl.renderToStaticMarkup(H);let O=r?t2(T):T;return c&&(O=O.replace("</head>",`${c}</head>`)),u&&(O=O.replace("</body>",`${u}</body>`)),O}function sa(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function n2(e,t={}){var r;if(!e)return"";const n=t.rootBlockId??"root",o=((r=e==null?void 0:e[n])==null?void 0:r.data)??{};try{return Nr(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner,seo:t.seo})}catch(i){return console.error("[PagePilotEditor] renderToStaticMarkup failed:",i),""}}function No(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o2(e,t={}){var S,_,$;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,r=[],i=e.map(x=>{var A;if(sa(x))return n&&r.push(String((x==null?void 0:x.content)??"")),x;const k=(A=x==null?void 0:x.contentMetadata)==null?void 0:A.document;if(!k)return x!=null&&x.content&&r.push(String(x.content)),x;const N=n2(k,t);return N&&r.push(N),{...x,content:N,contentMetadata:{...x.contentMetadata??{},document:k}}}),a=r.join(`
855
- `);if(!o)return{html:a,sectionHtml:r,flushedSections:i};const l=e.find(x=>!sa(x)),s=(($=(_=(S=l==null?void 0:l.contentMetadata)==null?void 0:S.document)==null?void 0:_.root)==null?void 0:$.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",g=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${No(t.seoTitle)}</title>`:"",h=t.seoDescription?`<meta name="description" content="${No(t.seoDescription)}" />`:"",f=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
856
- <html lang="${No(c)}">
857
+ .gc-tooltip .gc-copyright { display: none !important; }`}),N&&p.jsx("div",{dangerouslySetInnerHTML:{__html:N}}),A&&p.jsx("script",{dangerouslySetInnerHTML:{__html:A}}),(()=>{const U=HS(e),q=FS(e),J=GS(e,t),me=U?e[U]:null,ae=q?e[q]:null,ne=J?p.jsx(on,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!m,mainBlockId:J,hoistedSkipLinkId:U,hoistedA11yToolsId:q}):p.jsx("main",{id:"main-content",tabIndex:-1,children:p.jsx(on,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!m,hoistedSkipLinkId:U,hoistedA11yToolsId:q})});return p.jsxs(p.Fragment,{children:[me&&p.jsx(sl,{...me.data??{}}),m?ne:p.jsx("div",{className:"ahd-page-root",children:ne}),ae&&p.jsx(hl,{...ae.data??{}})]})})(),y&&p.jsx("script",{dangerouslySetInnerHTML:{__html:y}}),I&&p.jsx("script",{dangerouslySetInnerHTML:{__html:I}}),M&&p.jsx("script",{dangerouslySetInnerHTML:{__html:M}}),z&&p.jsx("script",{dangerouslySetInnerHTML:{__html:z}})]}),T=Vl.renderToStaticMarkup(H);let O=r?a2(T):T;return c&&(O=O.replace("</head>",`${c}</head>`)),u&&(O=O.replace("</body>",`${u}</body>`)),O}function ma(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function l2(e,t={}){var r;if(!e)return"";const n=t.rootBlockId??"root",o=((r=e==null?void 0:e[n])==null?void 0:r.data)??{};try{return Mr(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner,seo:t.seo})}catch(i){return console.error("[PagePilotEditor] renderToStaticMarkup failed:",i),""}}function Ro(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s2(e,t={}){var S,_,C;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,r=[],i=e.map(x=>{var A;if(ma(x))return n&&r.push(String((x==null?void 0:x.content)??"")),x;const w=(A=x==null?void 0:x.contentMetadata)==null?void 0:A.document;if(!w)return x!=null&&x.content&&r.push(String(x.content)),x;const N=l2(w,t);return N&&r.push(N),{...x,content:N,contentMetadata:{...x.contentMetadata??{},document:w}}}),a=r.join(`
858
+ `);if(!o)return{html:a,sectionHtml:r,flushedSections:i};const l=e.find(x=>!ma(x)),s=((C=(_=(S=l==null?void 0:l.contentMetadata)==null?void 0:S.document)==null?void 0:_.root)==null?void 0:C.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",m=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${Ro(t.seoTitle)}</title>`:"",h=t.seoDescription?`<meta name="description" content="${Ro(t.seoDescription)}" />`:"",f=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
859
+ <html lang="${Ro(c)}">
857
860
  <head>
858
861
  <meta charset="utf-8" />
859
862
  <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -861,7 +864,7 @@ ${d}
861
864
  ${h}
862
865
  <style>
863
866
  html, body { margin: 0; padding: 0; }
864
- body { background: ${u}; font-family: ${g}; }
867
+ body { background: ${u}; font-family: ${m}; }
865
868
  * { box-sizing: border-box; }
866
869
  </style>
867
870
  ${f}
@@ -870,4 +873,4 @@ ${f}
870
873
  ${a}
871
874
  ${b}
872
875
  </body>
873
- </html>`,sectionHtml:r,flushedSections:i}}function r2(e){var i,a,l,s,c,u,g,d,h,f,b;if(!e)return[];const t=e.configuration??{},n=(a=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:a.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const v=new Set,S=[];for(const _ of o){const $=(u=(c=(s=(l=_==null?void 0:_.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray($))for(const x of $)!(x!=null&&x.id)||v.has(x.id)||(v.add(x.id),S.push(x))}if(S.length>0)return S}const r=(b=(f=(h=(d=(g=t==null?void 0:t.step)==null?void 0:g.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:f.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function i2(e){var n,o,r,i,a,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.root?t.content.contentMetadata.document:(a=(i=t.contentMetadata)==null?void 0:i.document)!=null&&a.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function a2(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function l2(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Ol(e){if(!e||typeof e!="object")return e;const t=$l(e);return!t||t.length===0?e:Nl(e,t)}const s2=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text"]);function c2(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function Ll(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!s2.has(i)?(n[o]=c2(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function Er(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=Ol(e),r=Ll(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return Nr(r,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner})}function zl(e){const t=e.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!t)throw new Error("[pagepilot-visual-editor] renderToStaticHtml: global fetch is not available — pass `fetchFn`.");return t}function Bl(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function jl(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function u2(e,t){var v;const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=zl(t),s=await jl(a,{method:"GET",headers:Bl(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);const c=s.body,{wrapInDocumentShell:u=!0,headHtml:g,bodyBottomHtml:d}=t,h=Array.isArray(c==null?void 0:c.sections)?c.sections:[];if(h.length===0)return Er(((v=c==null?void 0:c.contentMetadata)==null?void 0:v.document)??e,t);const f=h.map(S=>{var k;const _=(k=S==null?void 0:S.contentMetadata)==null?void 0:k.document;if(!_)return S;const $=Ol(_),x=Ll($);return{...S,contentMetadata:{...S.contentMetadata??{},document:x}}}),{html:b}=o2(f,{rootBlockId:t.rootBlockId,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,isBanner:t.isBanner,seo:t.seo,wrapInDocumentShell:u,seoTitle:(c==null?void 0:c.metaTitle)??(c==null?void 0:c.title)??(c==null?void 0:c.name),seoDescription:c==null?void 0:c.metaDescription,lang:t.lang??(c==null?void 0:c.lang),extraHead:g??(c==null?void 0:c.head)??"",extraBodyBottom:d??(c==null?void 0:c.bodyBottom)??""});return b}async function d2(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=zl(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Bl(e),c=await jl(l,{method:"GET",headers:s},a);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function h2(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function f2(e,t){const n=await d2(t),o=i2(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=r2(n),i=h2(r,t.variables),a=Nl(o,i);return Er(a,t)}function m2(e,t){return l2(t)?f2(e,t):a2(t)?u2(e,t):Er(e,t)}exports.Reader=nn;exports.ReaderBlock=be;exports.ReaderBlockSchema=Ml;exports.ReaderDocumentSchema=TS;exports.renderToStaticHtml=m2;exports.renderToStaticMarkup=Nr;
876
+ </html>`,sectionHtml:r,flushedSections:i}}function c2(e){var i,a,l,s,c,u,m,d,h,f,b;if(!e)return[];const t=e.configuration??{},n=(a=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:a.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const v=new Set,S=[];for(const _ of o){const C=(u=(c=(s=(l=_==null?void 0:_.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray(C))for(const x of C)!(x!=null&&x.id)||v.has(x.id)||(v.add(x.id),S.push(x))}if(S.length>0)return S}const r=(b=(f=(h=(d=(m=t==null?void 0:t.step)==null?void 0:m.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:f.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function u2(e){var n,o,r,i,a,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.root?t.content.contentMetadata.document:(a=(i=t.contentMetadata)==null?void 0:i.document)!=null&&a.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function d2(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function h2(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Dl(e){if(!e||typeof e!="object")return e;const t=Rl(e);return!t||t.length===0?e:Pl(e,t)}const f2=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text"]);function m2(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function Hl(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!f2.has(i)?(n[o]=m2(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function Pr(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=Dl(e),r=Hl(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return Mr(r,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner})}function Fl(e){const t=e.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!t)throw new Error("[pagepilot-visual-editor] renderToStaticHtml: global fetch is not available — pass `fetchFn`.");return t}function Gl(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Ul(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function g2(e,t){var v;const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=Fl(t),s=await Ul(a,{method:"GET",headers:Gl(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);const c=s.body,{wrapInDocumentShell:u=!0,headHtml:m,bodyBottomHtml:d}=t,h=Array.isArray(c==null?void 0:c.sections)?c.sections:[];if(h.length===0)return Pr(((v=c==null?void 0:c.contentMetadata)==null?void 0:v.document)??e,t);const f=h.map(S=>{var w;const _=(w=S==null?void 0:S.contentMetadata)==null?void 0:w.document;if(!_)return S;const C=Dl(_),x=Hl(C);return{...S,contentMetadata:{...S.contentMetadata??{},document:x}}}),{html:b}=s2(f,{rootBlockId:t.rootBlockId,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,isBanner:t.isBanner,seo:t.seo,wrapInDocumentShell:u,seoTitle:(c==null?void 0:c.metaTitle)??(c==null?void 0:c.title)??(c==null?void 0:c.name),seoDescription:c==null?void 0:c.metaDescription,lang:t.lang??(c==null?void 0:c.lang),extraHead:m??(c==null?void 0:c.head)??"",extraBodyBottom:d??(c==null?void 0:c.bodyBottom)??""});return b}async function p2(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=Fl(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Gl(e),c=await Ul(l,{method:"GET",headers:s},a);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function b2(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function v2(e,t){const n=await p2(t),o=u2(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=c2(n),i=b2(r,t.variables),a=Pl(o,i);return Pr(a,t)}function x2(e,t){return h2(t)?v2(e,t):d2(t)?g2(e,t):Pr(e,t)}exports.Reader=on;exports.ReaderBlock=ve;exports.ReaderBlockSchema=jl;exports.ReaderDocumentSchema=BS;exports.renderToStaticHtml=x2;exports.renderToStaticMarkup=Mr;