pagepilot-visual-editor 1.0.47 → 1.0.48

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";var zd=Object.defineProperty;var jd=(e,t,n)=>t in e?zd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>jd(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Bd=require("react-dom/server"),G=require("react");var Xi;function N(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let h=0;h<c.length;h++){const d=c[h];d in l||(l[d]=u[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new a:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Sn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class uc extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Xi=globalThis).__zod_globalConfig??(Xi.__zod_globalConfig={});const ii=globalThis.__zod_globalConfig;function Ot(e){return ii}function dc(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function da(e,t){return typeof t=="bigint"?t.toString():t}function so(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function li(e){return e==null}function si(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Dd(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Qi=Symbol("evaluating");function fe(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Qi)return r===void 0&&(r=Qi,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function an(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 r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function el(e){return JSON.stringify(e)}function Fd(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const hc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Yn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Hd=so(()=>{var e;if(ii.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 Cn(e){if(Yn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Yn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function fc(e){return Cn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Gd=new Set(["string","number","symbol"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function Z(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 Wd(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Ud={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 Zd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function qd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function Vd(e,t){if(!Cn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Ut(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return an(this,"shape",a),a}});return Zt(e,o)}function Yd(e,t){if(!Cn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Ut(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return an(this,"shape",r),r}});return Zt(e,n)}function Kd(e,t){var r;if((r=e._zod.def.checks)!=null&&r.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 o={...e._zod.def.shape,...t._zod.def.shape};return an(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Zt(e,n)}function Jd(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Ut(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return an(this,"shape",s),s},checks:[]});return Zt(t,i)}function Xd(e,t,n){const r=Ut(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return an(this,"shape",a),a}});return Zt(t,r)}function vn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Qd(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Ht(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function mr(e){return typeof e=="string"?e:e==null?void 0:e.message}function zt(e,t,n){var s,u,c,h,d,f;const r=e.message?e.message:mr((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??mr((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??mr((d=n.customError)==null?void 0:d.call(n,e))??mr((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:o,continue:a,input:i,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=i),l}function ci(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Kn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const pc=(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,da,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},gc=N("$ZodError",pc),mc=N("$ZodError",pc,{Parent:Error});function eh(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function th(e,t=n=>n.message){const n={_errors:[]},r=(o,a=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l},[...a,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...a,...i.path]);else{const l=[...a,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return r(e),n}const ui=e=>(t,n,r,o)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Sn;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>zt(s,a,Ot())));throw hc(l,o==null?void 0:o.callee),l}return i.value},di=e=>async(t,n,r,o)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>zt(s,a,Ot())));throw hc(l,o==null?void 0:o.callee),l}return i.value},co=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Sn;return a.issues.length?{success:!1,error:new(e??gc)(a.issues.map(i=>zt(i,o,Ot())))}:{success:!0,data:a.value}},nh=co(mc),uo=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>zt(i,o,Ot())))}:{success:!0,data:a.value}},rh=uo(mc),oh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ui(e)(t,n,o)},ah=e=>(t,n,r)=>ui(e)(t,n,r),ih=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return di(e)(t,n,o)},lh=e=>async(t,n,r)=>di(e)(t,n,r),sh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return co(e)(t,n,o)},ch=e=>(t,n,r)=>co(e)(t,n,r),uh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return uo(e)(t,n,o)},dh=e=>async(t,n,r)=>uo(e)(t,n,r),hh=/^[cC][0-9a-z]{6,}$/,fh=/^[0-9a-z]+$/,ph=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gh=/^[0-9a-vA-V]{20}$/,mh=/^[A-Za-z0-9]{27}$/,bh=/^[a-zA-Z0-9_-]{21}$/,xh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vh=/^([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})$/,tl=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)$/,kh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Sh(){return new RegExp(wh,"u")}const $h=/^(?:(?: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])$/,_h=/^(([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}|:))$/,Ch=/^((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])$/,Ah=/^(([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])$/,yh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bc=/^[A-Za-z0-9_-]*$/,Ih=/^https?$/,Rh=/^\+[1-9]\d{6,14}$/,xc="(?:(?:\\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])))",Th=new RegExp(`^${xc}$`);function vc(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 Eh(e){return new RegExp(`^${vc(e)}$`)}function Nh(e){const t=vc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${xc}T(?:${r})$`)}const Mh=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}$`)},Ph=/^-?\d+$/,kc=/^-?\d+(?:\.\d+)?$/,Lh=/^(?:true|false)$/i,Oh=/^[^A-Z]*$/,zh=/^[^a-z]*$/,et=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),wc={number:"number",bigint:"bigint",object:"date"},Sc=N("$ZodCheckLessThan",(e,t)=>{et.init(e,t);const n=wc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$c=N("$ZodCheckGreaterThan",(e,t)=>{et.init(e,t);const n=wc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jh=N("$ZodCheckMultipleOf",(e,t)=>{et.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.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):Dd(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})}}),Bh=N("$ZodCheckNumberFormat",(e,t)=>{var i;et.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,a]=Ud[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=a,n&&(s.pattern=Ph)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,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:r,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:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>a&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Dh=N("$ZodCheckMaxLength",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!li(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=ci(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Fh=N("$ZodCheckMinLength",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!li(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=ci(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Hh=N("$ZodCheckLengthEquals",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!li(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===t.length)return;const i=ci(o),l=a>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ho=N("$ZodCheckStringFormat",(e,t)=>{var n,r;et.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Gh=N("$ZodCheckRegex",(e,t)=>{ho.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})}}),Wh=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Oh),ho.init(e,t)}),Uh=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zh),ho.init(e,t)}),Zh=N("$ZodCheckIncludes",(e,t)=>{et.init(e,t);const n=An(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),qh=N("$ZodCheckStartsWith",(e,t)=>{et.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Vh=N("$ZodCheckEndsWith",(e,t)=>{et.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Yh=N("$ZodCheckOverwrite",(e,t)=>{et.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Kh{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 r=t.split(`
1
+ "use strict";var zd=Object.defineProperty;var jd=(e,t,n)=>t in e?zd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>jd(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Bd=require("react-dom/server"),G=require("react");var Xi;function N(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let h=0;h<c.length;h++){const d=c[h];d in l||(l[d]=u[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new a:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Sn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class uc extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Xi=globalThis).__zod_globalConfig??(Xi.__zod_globalConfig={});const ii=globalThis.__zod_globalConfig;function Ot(e){return ii}function dc(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function da(e,t){return typeof t=="bigint"?t.toString():t}function so(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function li(e){return e==null}function si(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Dd(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Qi=Symbol("evaluating");function pe(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Qi)return r===void 0&&(r=Qi,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function an(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 r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function el(e){return JSON.stringify(e)}function Fd(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const hc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Yn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Hd=so(()=>{var e;if(ii.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 Cn(e){if(Yn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Yn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function fc(e){return Cn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Gd=new Set(["string","number","symbol"]);function An(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function W(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 Wd(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Ud={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 Zd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function qd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Ut(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return an(this,"shape",i),i},checks:[]});return Zt(e,a)}function Vd(e,t){if(!Cn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Ut(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return an(this,"shape",a),a}});return Zt(e,o)}function Yd(e,t){if(!Cn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Ut(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return an(this,"shape",r),r}});return Zt(e,n)}function Kd(e,t){var r;if((r=e._zod.def.checks)!=null&&r.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 o={...e._zod.def.shape,...t._zod.def.shape};return an(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Zt(e,n)}function Jd(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Ut(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return an(this,"shape",s),s},checks:[]});return Zt(t,i)}function Xd(e,t,n){const r=Ut(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return an(this,"shape",a),a}});return Zt(t,r)}function vn(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Qd(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Ht(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function mr(e){return typeof e=="string"?e:e==null?void 0:e.message}function zt(e,t,n){var s,u,c,h,d,f;const r=e.message?e.message:mr((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??mr((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??mr((d=n.customError)==null?void 0:d.call(n,e))??mr((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:o,continue:a,input:i,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=i),l}function ci(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Kn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const pc=(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,da,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},gc=N("$ZodError",pc),mc=N("$ZodError",pc,{Parent:Error});function eh(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function th(e,t=n=>n.message){const n={_errors:[]},r=(o,a=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l},[...a,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...a,...i.path]);else{const l=[...a,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return r(e),n}const ui=e=>(t,n,r,o)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Sn;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>zt(s,a,Ot())));throw hc(l,o==null?void 0:o.callee),l}return i.value},di=e=>async(t,n,r,o)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>zt(s,a,Ot())));throw hc(l,o==null?void 0:o.callee),l}return i.value},co=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Sn;return a.issues.length?{success:!1,error:new(e??gc)(a.issues.map(i=>zt(i,o,Ot())))}:{success:!0,data:a.value}},nh=co(mc),uo=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>zt(i,o,Ot())))}:{success:!0,data:a.value}},rh=uo(mc),oh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ui(e)(t,n,o)},ah=e=>(t,n,r)=>ui(e)(t,n,r),ih=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return di(e)(t,n,o)},lh=e=>async(t,n,r)=>di(e)(t,n,r),sh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return co(e)(t,n,o)},ch=e=>(t,n,r)=>co(e)(t,n,r),uh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return uo(e)(t,n,o)},dh=e=>async(t,n,r)=>uo(e)(t,n,r),hh=/^[cC][0-9a-z]{6,}$/,fh=/^[0-9a-z]+$/,ph=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gh=/^[0-9a-vA-V]{20}$/,mh=/^[A-Za-z0-9]{27}$/,bh=/^[a-zA-Z0-9_-]{21}$/,xh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vh=/^([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})$/,tl=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)$/,kh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,wh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Sh(){return new RegExp(wh,"u")}const $h=/^(?:(?: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])$/,_h=/^(([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}|:))$/,Ch=/^((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])$/,Ah=/^(([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])$/,yh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bc=/^[A-Za-z0-9_-]*$/,Ih=/^https?$/,Rh=/^\+[1-9]\d{6,14}$/,xc="(?:(?:\\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])))",Th=new RegExp(`^${xc}$`);function vc(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 Eh(e){return new RegExp(`^${vc(e)}$`)}function Nh(e){const t=vc({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${xc}T(?:${r})$`)}const Mh=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}$`)},Ph=/^-?\d+$/,kc=/^-?\d+(?:\.\d+)?$/,Lh=/^(?:true|false)$/i,Oh=/^[^A-Z]*$/,zh=/^[^a-z]*$/,et=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),wc={number:"number",bigint:"bigint",object:"date"},Sc=N("$ZodCheckLessThan",(e,t)=>{et.init(e,t);const n=wc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$c=N("$ZodCheckGreaterThan",(e,t)=>{et.init(e,t);const n=wc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jh=N("$ZodCheckMultipleOf",(e,t)=>{et.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.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):Dd(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})}}),Bh=N("$ZodCheckNumberFormat",(e,t)=>{var i;et.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,a]=Ud[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=a,n&&(s.pattern=Ph)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,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:r,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:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>a&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Dh=N("$ZodCheckMaxLength",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!li(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=ci(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Fh=N("$ZodCheckMinLength",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!li(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=ci(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Hh=N("$ZodCheckLengthEquals",(e,t)=>{var n;et.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!li(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===t.length)return;const i=ci(o),l=a>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ho=N("$ZodCheckStringFormat",(e,t)=>{var n,r;et.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Gh=N("$ZodCheckRegex",(e,t)=>{ho.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})}}),Wh=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Oh),ho.init(e,t)}),Uh=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=zh),ho.init(e,t)}),Zh=N("$ZodCheckIncludes",(e,t)=>{et.init(e,t);const n=An(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),qh=N("$ZodCheckStartsWith",(e,t)=>{et.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Vh=N("$ZodCheckEndsWith",(e,t)=>{et.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Yh=N("$ZodCheckOverwrite",(e,t)=>{et.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Kh{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 r=t.split(`
2
2
  `).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),a=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of a)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...n,o.join(`
3
- `))}}const Jh={major:4,minor:4,patch:3},Se=N("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jh;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const a=(l,s,u)=>{let c=vn(l),h;for(const d of s){if(d._zod.def.when){if(Qd(l)||!d._zod.def.when(l))continue}else if(c)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Sn;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(c||(c=vn(l,f)))});else{if(l.issues.length===f)continue;c||(c=vn(l,f))}}return h?h.then(()=>l):l},i=(l,s,u)=>{if(vn(l))return l.aborted=!0,l;const c=a(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new Sn;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new Sn;return u.then(c=>a(c,r,s))}return a(u,r,s)}}fe(e,"~standard",()=>({validate:a=>{var i;try{const l=nh(e,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return rh(e,a).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),hi=N("$ZodString",(e,t)=>{var n;Se.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Mh(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Re=N("$ZodStringFormat",(e,t)=>{ho.init(e,t),hi.init(e,t)}),Xh=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vh),Re.init(e,t)}),Qh=N("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tl(r))}else t.pattern??(t.pattern=tl());Re.init(e,t)}),ef=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=kh),Re.init(e,t)}),tf=N("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===Ih.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),nf=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Sh()),Re.init(e,t)}),rf=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=bh),Re.init(e,t)}),of=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hh),Re.init(e,t)}),af=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=fh),Re.init(e,t)}),lf=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ph),Re.init(e,t)}),sf=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=gh),Re.init(e,t)}),cf=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mh),Re.init(e,t)}),uf=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Nh(t)),Re.init(e,t)}),df=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Th),Re.init(e,t)}),hf=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Eh(t)),Re.init(e,t)}),ff=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=xh),Re.init(e,t)}),pf=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$h),Re.init(e,t),e._zod.bag.format="ipv4"}),gf=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_h),Re.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})}}}),mf=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ch),Re.init(e,t)}),bf=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ah),Re.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,a]=r;if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function _c(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const xf=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=yh),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{_c(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function vf(e){if(!bc.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return _c(n)}const kf=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=bc),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{vf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),wf=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Rh),Re.init(e,t)});function Sf(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const $f=N("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{Sf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Cc=N("$ZodNumber",(e,t)=>{Se.init(e,t),e._zod.pattern=e._zod.bag.pattern??kc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),n}}),_f=N("$ZodNumberFormat",(e,t)=>{Bh.init(e,t),Cc.init(e,t)}),Cf=N("$ZodBoolean",(e,t)=>{Se.init(e,t),e._zod.pattern=Lh,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Af=N("$ZodAny",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),yf=N("$ZodUnknown",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),If=N("$ZodNever",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function nl(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}const Rf=N("$ZodArray",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const l=o[i],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?a.push(s.then(u=>nl(u,n,i))):nl(s,n,i)}return a.length?Promise.all(a).then(()=>n):n}});function Gr(e,t,n,r,o,a){const i=n in r;if(e.issues.length){if(o&&a&&!i)return;t.issues.push(...Ht(n,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function Ac(e){var r,o,a,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(a=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Wd(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function yc(e,t,n,r,o,a){const i=[],l=o.keySet,s=o.catchall._zod,u=s.def.type,c=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const f=s.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Gr(p,n,d,t,c,h))):Gr(f,n,d,t,c,h)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Tf=N("$ZodObject",(e,t)=>{Se.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 r=so(()=>Ac(t));fe(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const h of c.values)s[u].add(h)}}return s});const o=Yn,a=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=r.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],h=i.shape;for(const d of i.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:u[d],issues:[]},s);x instanceof Promise?c.push(x.then(w=>Gr(w,l,d,u,p,b))):Gr(x,l,d,u,p,b)}return a?yc(c,u,l,s,r.value,e):c.length?Promise.all(c).then(()=>l):l}}),Ef=N("$ZodObjectJIT",(e,t)=>{Tf.init(e,t);const n=e._zod.parse,r=so(()=>Ac(t)),o=d=>{var S,v;const f=new Kh(["shape","payload","ctx"]),p=r.value,b=_=>{const y=el(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=el(_),I=d[_],R=((S=I==null?void 0:I._zod)==null?void 0:S.optin)==="optional",E=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&E?f.write(`
3
+ `))}}const Jh={major:4,minor:4,patch:3},Se=N("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jh;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const a=(l,s,u)=>{let c=vn(l),h;for(const d of s){if(d._zod.def.when){if(Qd(l)||!d._zod.def.when(l))continue}else if(c)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Sn;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(c||(c=vn(l,f)))});else{if(l.issues.length===f)continue;c||(c=vn(l,f))}}return h?h.then(()=>l):l},i=(l,s,u)=>{if(vn(l))return l.aborted=!0,l;const c=a(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new Sn;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new Sn;return u.then(c=>a(c,r,s))}return a(u,r,s)}}pe(e,"~standard",()=>({validate:a=>{var i;try{const l=nh(e,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return rh(e,a).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),hi=N("$ZodString",(e,t)=>{var n;Se.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Mh(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Re=N("$ZodStringFormat",(e,t)=>{ho.init(e,t),hi.init(e,t)}),Xh=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vh),Re.init(e,t)}),Qh=N("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tl(r))}else t.pattern??(t.pattern=tl());Re.init(e,t)}),ef=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=kh),Re.init(e,t)}),tf=N("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===Ih.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.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(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.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=a.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),nf=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Sh()),Re.init(e,t)}),rf=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=bh),Re.init(e,t)}),of=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hh),Re.init(e,t)}),af=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=fh),Re.init(e,t)}),lf=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ph),Re.init(e,t)}),sf=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=gh),Re.init(e,t)}),cf=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mh),Re.init(e,t)}),uf=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Nh(t)),Re.init(e,t)}),df=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Th),Re.init(e,t)}),hf=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Eh(t)),Re.init(e,t)}),ff=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=xh),Re.init(e,t)}),pf=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$h),Re.init(e,t),e._zod.bag.format="ipv4"}),gf=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_h),Re.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})}}}),mf=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ch),Re.init(e,t)}),bf=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ah),Re.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,a]=r;if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function _c(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const xf=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=yh),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{_c(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function vf(e){if(!bc.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return _c(n)}const kf=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=bc),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{vf(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),wf=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Rh),Re.init(e,t)});function Sf(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const $f=N("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{Sf(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Cc=N("$ZodNumber",(e,t)=>{Se.init(e,t),e._zod.pattern=e._zod.bag.pattern??kc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),n}}),_f=N("$ZodNumberFormat",(e,t)=>{Bh.init(e,t),Cc.init(e,t)}),Cf=N("$ZodBoolean",(e,t)=>{Se.init(e,t),e._zod.pattern=Lh,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Af=N("$ZodAny",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),yf=N("$ZodUnknown",(e,t)=>{Se.init(e,t),e._zod.parse=n=>n}),If=N("$ZodNever",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function nl(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}const Rf=N("$ZodArray",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const l=o[i],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?a.push(s.then(u=>nl(u,n,i))):nl(s,n,i)}return a.length?Promise.all(a).then(()=>n):n}});function Gr(e,t,n,r,o,a){const i=n in r;if(e.issues.length){if(o&&a&&!i)return;t.issues.push(...Ht(n,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function Ac(e){var r,o,a,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(a=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Wd(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function yc(e,t,n,r,o,a){const i=[],l=o.keySet,s=o.catchall._zod,u=s.def.type,c=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const f=s.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Gr(p,n,d,t,c,h))):Gr(f,n,d,t,c,h)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Tf=N("$ZodObject",(e,t)=>{Se.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 r=so(()=>Ac(t));pe(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const h of c.values)s[u].add(h)}}return s});const o=Yn,a=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=r.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],h=i.shape;for(const d of i.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:u[d],issues:[]},s);x instanceof Promise?c.push(x.then(w=>Gr(w,l,d,u,p,b))):Gr(x,l,d,u,p,b)}return a?yc(c,u,l,s,r.value,e):c.length?Promise.all(c).then(()=>l):l}}),Ef=N("$ZodObjectJIT",(e,t)=>{Tf.init(e,t);const n=e._zod.parse,r=so(()=>Ac(t)),o=d=>{var S,v;const f=new Kh(["shape","payload","ctx"]),p=r.value,b=_=>{const y=el(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=el(_),I=d[_],R=((S=I==null?void 0:I._zod)==null?void 0:S.optin)==="optional",E=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&E?f.write(`
4
4
  if (${y}.issues.length) {
5
5
  if (${C} in input) {
6
6
  payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
@@ -59,28 +59,28 @@
59
59
  }
60
60
  }
61
61
 
62
- `)}f.write("payload.value = newResult;"),f.write("return payload;");const k=f.compile();return(_,y)=>k(d,_,y)};let a;const i=Yn,l=!ii.jitless,u=l&&Hd.value,c=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=r.value);const p=d.value;return i(p)?l&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=o(t.shape)),d=a(d,f),c?yc([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function rl(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const o=e.filter(a=>!vn(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(i=>zt(i,r,Ot())))}),t)}const Ic=N("$ZodUnion",(e,t)=>{Se.init(e,t),fe(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),fe(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),fe(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),fe(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>si(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let a=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>rl(l,r,e,o)):rl(i,r,e,o)}}),Nf=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ic.init(e,t);const n=e._zod.parse;fe(e._zod,"propValues",()=>{const o={};for(const a of t.options){const i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,s]of Object.entries(i)){o[l]||(o[l]=new Set);for(const u of s)o[l].add(u)}}return o});const r=so(()=>{var i;const o=t.options,a=new Map;for(const l of o){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,l)}}return a});e._zod.parse=(o,a)=>{const i=o.value;if(!Yn(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const l=r.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(o,a):t.unionFallback||a.direction==="backward"?n(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),o)}}),Mf=N("$ZodIntersection",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,a=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([s,u])=>ol(n,s,u)):ol(n,a,i)}});function ha(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(Cn(e)&&Cn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of r){const i=ha(e[a],t[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=t[r],i=ha(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ol(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.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)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&o&&e.issues.push({...o,keys:a}),vn(e))return e;const i=ha(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Pf=N("$ZodTuple",(e,t)=>{Se.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],l=al(n,"optin"),s=al(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const h=n[c]._zod.run({value:a[c],issues:[]},o);h instanceof Promise?i.push(h.then(d=>{u[c]=d})):u[c]=h}if(t.rest){let c=n.length-1;const h=a.slice(n.length);for(const d of h){c++;const f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?i.push(f.then(p=>il(p,r,c))):il(f,r,c)}}return i.length?Promise.all(i).then(()=>ll(u,r,n,a,s)):ll(u,r,n,a,s)}});function al(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function il(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}function ll(e,t,n,r,o){for(let a=0;a<n.length;a++){const i=e[a],l=a<r.length;if(i.issues.length){if(!l&&a>=o){t.value.length=a;break}t.issues.push(...Ht(a,i.issues))}t.value[a]=i.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const Lf=N("$ZodRecord",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Cn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>zt(f,r,Ot())),input:u,path:[u],inst:e});continue}const h=c.value,d=t.valueType._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&n.issues.push(...Ht(u,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...Ht(u,d.issues)),n.value[h]=d.value)}let s;for(const u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&kc.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>zt(h,r,Ot())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},r);c instanceof Promise?a.push(c.then(h=>{h.issues.length&&n.issues.push(...Ht(l,h.issues)),n.value[s.value]=h.value})):(c.issues.length&&n.issues.push(...Ht(l,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Of=N("$ZodEnum",(e,t)=>{Se.init(e,t);const n=dc(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Gd.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),zf=N("$ZodLiteral",(e,t)=>{if(Se.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(r=>typeof r=="string"?An(r):r?An(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),jf=N("$ZodTransform",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new uc(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n.fallback=!0,n));if(o instanceof Promise)throw new Sn;return n.value=o,n.fallback=!0,n}});function sl(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Rc=N("$ZodOptional",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),fe(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${si(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>sl(i,o)):sl(a,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Bf=N("$ZodExactOptional",(e,t)=>{Rc.init(e,t),fe(e._zod,"values",()=>t.innerType._zod.values),fe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Df=N("$ZodNullable",(e,t)=>{Se.init(e,t),fe(e._zod,"optin",()=>t.innerType._zod.optin),fe(e._zod,"optout",()=>t.innerType._zod.optout),fe(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${si(n.source)}|null)$`):void 0}),fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Ff=N("$ZodDefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>cl(a,t)):cl(o,t)}});function cl(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Hf=N("$ZodPrefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Gf=N("$ZodNonOptional",(e,t)=>{Se.init(e,t),fe(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>ul(a,e)):ul(o,e)}});function ul(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 Wf=N("$ZodCatch",(e,t)=>{Se.init(e,t),e._zod.optin="optional",fe(e._zod,"optout",()=>t.innerType._zod.optout),fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>zt(i,r,Ot()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>zt(a,r,Ot()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Tc=N("$ZodPipe",(e,t)=>{Se.init(e,t),fe(e._zod,"values",()=>t.in._zod.values),fe(e._zod,"optin",()=>t.in._zod.optin),fe(e._zod,"optout",()=>t.out._zod.optout),fe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(i=>br(i,t.in,r)):br(a,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>br(a,t.out,r)):br(o,t.out,r)}});function br(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 Uf=N("$ZodPreprocess",(e,t)=>{Tc.init(e,t)}),Zf=N("$ZodReadonly",(e,t)=>{Se.init(e,t),fe(e._zod,"propValues",()=>t.innerType._zod.propValues),fe(e._zod,"values",()=>t.innerType._zod.values),fe(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),fe(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(dl):dl(o)}});function dl(e){return e.value=Object.freeze(e.value),e}const qf=N("$ZodLazy",(e,t)=>{Se.init(e,t),fe(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),fe(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),fe(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),fe(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),fe(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Vf=N("$ZodCustom",(e,t)=>{et.init(e,t),Se.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(a=>hl(a,n,r,e));hl(o,n,r,e)}});function hl(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Kn(o))}}var fl;class Yf{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.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 r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Kf(){return new Yf}(fl=globalThis).__zod_globalRegistry??(fl.__zod_globalRegistry=Kf());const Hn=globalThis.__zod_globalRegistry;function Jf(e,t){return new e({type:"string",...Z(t)})}function Xf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Z(t)})}function pl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Z(t)})}function Qf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Z(t)})}function ep(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Z(t)})}function tp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Z(t)})}function np(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Z(t)})}function rp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Z(t)})}function op(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Z(t)})}function ap(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Z(t)})}function ip(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Z(t)})}function lp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Z(t)})}function sp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Z(t)})}function cp(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Z(t)})}function up(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Z(t)})}function dp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Z(t)})}function hp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Z(t)})}function fp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Z(t)})}function pp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Z(t)})}function gp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Z(t)})}function mp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Z(t)})}function bp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Z(t)})}function xp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Z(t)})}function vp(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Z(t)})}function kp(e,t){return new e({type:"string",format:"date",check:"string_format",...Z(t)})}function wp(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Z(t)})}function Sp(e,t){return new e({type:"string",format:"duration",check:"string_format",...Z(t)})}function $p(e,t){return new e({type:"number",checks:[],...Z(t)})}function _p(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Z(t)})}function Cp(e,t){return new e({type:"boolean",...Z(t)})}function Ap(e){return new e({type:"any"})}function yp(e){return new e({type:"unknown"})}function Ip(e,t){return new e({type:"never",...Z(t)})}function gl(e,t){return new Sc({check:"less_than",...Z(t),value:e,inclusive:!1})}function So(e,t){return new Sc({check:"less_than",...Z(t),value:e,inclusive:!0})}function ml(e,t){return new $c({check:"greater_than",...Z(t),value:e,inclusive:!1})}function $o(e,t){return new $c({check:"greater_than",...Z(t),value:e,inclusive:!0})}function bl(e,t){return new jh({check:"multiple_of",...Z(t),value:e})}function Ec(e,t){return new Dh({check:"max_length",...Z(t),maximum:e})}function Wr(e,t){return new Fh({check:"min_length",...Z(t),minimum:e})}function Nc(e,t){return new Hh({check:"length_equals",...Z(t),length:e})}function Rp(e,t){return new Gh({check:"string_format",format:"regex",...Z(t),pattern:e})}function Tp(e){return new Wh({check:"string_format",format:"lowercase",...Z(e)})}function Ep(e){return new Uh({check:"string_format",format:"uppercase",...Z(e)})}function Np(e,t){return new Zh({check:"string_format",format:"includes",...Z(t),includes:e})}function Mp(e,t){return new qh({check:"string_format",format:"starts_with",...Z(t),prefix:e})}function Pp(e,t){return new Vh({check:"string_format",format:"ends_with",...Z(t),suffix:e})}function Tn(e){return new Yh({check:"overwrite",tx:e})}function Lp(e){return Tn(t=>t.normalize(e))}function Op(){return Tn(e=>e.trim())}function zp(){return Tn(e=>e.toLowerCase())}function jp(){return Tn(e=>e.toUpperCase())}function Bp(){return Tn(e=>Fd(e))}function Dp(e,t,n){return new e({type:"array",element:t,...Z(n)})}function Fp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Z(n)})}function Hp(e,t){const n=Gp(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Kn(o,r.value,n._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Kn(a))}},e(r.value,r)),t);return n}function Gp(e,t){const n=new et({check:"custom",...Z(t)});return n._zod.check=e,n}function Mc(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)??Hn,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 Ee(e,t,n={path:[],schemaPath:[]}){var c,h;var r;const o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(h=(c=e._zod).toJSONSchema)==null?void 0:h.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Ee(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Je(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Pc(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const h=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(h){const d=r.get(h);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,c[0])}}const o=c=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??(S=>S);if(x)return{ref:w(x)};const k=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=k,{defId:k,ref:`${w("__shared")}#/${h}/${k}`}}if(c[1]===n)return{ref:"#"};const f=`#/${h}/`,p=c[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},a=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:d,defId:f}=o(c);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
62
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");const k=f.compile();return(_,y)=>k(d,_,y)};let a;const i=Yn,l=!ii.jitless,u=l&&Hd.value,c=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=r.value);const p=d.value;return i(p)?l&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=o(t.shape)),d=a(d,f),c?yc([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function rl(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const o=e.filter(a=>!vn(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(i=>zt(i,r,Ot())))}),t)}const Ic=N("$ZodUnion",(e,t)=>{Se.init(e,t),pe(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),pe(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),pe(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),pe(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>si(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let a=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>rl(l,r,e,o)):rl(i,r,e,o)}}),Nf=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ic.init(e,t);const n=e._zod.parse;pe(e._zod,"propValues",()=>{const o={};for(const a of t.options){const i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,s]of Object.entries(i)){o[l]||(o[l]=new Set);for(const u of s)o[l].add(u)}}return o});const r=so(()=>{var i;const o=t.options,a=new Map;for(const l of o){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,l)}}return a});e._zod.parse=(o,a)=>{const i=o.value;if(!Yn(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const l=r.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(o,a):t.unionFallback||a.direction==="backward"?n(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),o)}}),Mf=N("$ZodIntersection",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,a=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([s,u])=>ol(n,s,u)):ol(n,a,i)}});function ha(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(Cn(e)&&Cn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of r){const i=ha(e[a],t[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=t[r],i=ha(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ol(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.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)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&o&&e.issues.push({...o,keys:a}),vn(e))return e;const i=ha(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Pf=N("$ZodTuple",(e,t)=>{Se.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],l=al(n,"optin"),s=al(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const h=n[c]._zod.run({value:a[c],issues:[]},o);h instanceof Promise?i.push(h.then(d=>{u[c]=d})):u[c]=h}if(t.rest){let c=n.length-1;const h=a.slice(n.length);for(const d of h){c++;const f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?i.push(f.then(p=>il(p,r,c))):il(f,r,c)}}return i.length?Promise.all(i).then(()=>ll(u,r,n,a,s)):ll(u,r,n,a,s)}});function al(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function il(e,t,n){e.issues.length&&t.issues.push(...Ht(n,e.issues)),t.value[n]=e.value}function ll(e,t,n,r,o){for(let a=0;a<n.length;a++){const i=e[a],l=a<r.length;if(i.issues.length){if(!l&&a>=o){t.value.length=a;break}t.issues.push(...Ht(a,i.issues))}t.value[a]=i.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const Lf=N("$ZodRecord",(e,t)=>{Se.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Cn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>zt(f,r,Ot())),input:u,path:[u],inst:e});continue}const h=c.value,d=t.valueType._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&n.issues.push(...Ht(u,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...Ht(u,d.issues)),n.value[h]=d.value)}let s;for(const u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&kc.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>zt(h,r,Ot())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},r);c instanceof Promise?a.push(c.then(h=>{h.issues.length&&n.issues.push(...Ht(l,h.issues)),n.value[s.value]=h.value})):(c.issues.length&&n.issues.push(...Ht(l,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Of=N("$ZodEnum",(e,t)=>{Se.init(e,t);const n=dc(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Gd.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),zf=N("$ZodLiteral",(e,t)=>{if(Se.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(r=>typeof r=="string"?An(r):r?An(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),jf=N("$ZodTransform",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new uc(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n.fallback=!0,n));if(o instanceof Promise)throw new Sn;return n.value=o,n.fallback=!0,n}});function sl(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Rc=N("$ZodOptional",(e,t)=>{Se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),pe(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${si(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>sl(i,o)):sl(a,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Bf=N("$ZodExactOptional",(e,t)=>{Rc.init(e,t),pe(e._zod,"values",()=>t.innerType._zod.values),pe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Df=N("$ZodNullable",(e,t)=>{Se.init(e,t),pe(e._zod,"optin",()=>t.innerType._zod.optin),pe(e._zod,"optout",()=>t.innerType._zod.optout),pe(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${si(n.source)}|null)$`):void 0}),pe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Ff=N("$ZodDefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>cl(a,t)):cl(o,t)}});function cl(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Hf=N("$ZodPrefault",(e,t)=>{Se.init(e,t),e._zod.optin="optional",pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Gf=N("$ZodNonOptional",(e,t)=>{Se.init(e,t),pe(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>ul(a,e)):ul(o,e)}});function ul(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 Wf=N("$ZodCatch",(e,t)=>{Se.init(e,t),e._zod.optin="optional",pe(e._zod,"optout",()=>t.innerType._zod.optout),pe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>zt(i,r,Ot()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>zt(a,r,Ot()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Tc=N("$ZodPipe",(e,t)=>{Se.init(e,t),pe(e._zod,"values",()=>t.in._zod.values),pe(e._zod,"optin",()=>t.in._zod.optin),pe(e._zod,"optout",()=>t.out._zod.optout),pe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(i=>br(i,t.in,r)):br(a,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>br(a,t.out,r)):br(o,t.out,r)}});function br(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 Uf=N("$ZodPreprocess",(e,t)=>{Tc.init(e,t)}),Zf=N("$ZodReadonly",(e,t)=>{Se.init(e,t),pe(e._zod,"propValues",()=>t.innerType._zod.propValues),pe(e._zod,"values",()=>t.innerType._zod.values),pe(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),pe(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(dl):dl(o)}});function dl(e){return e.value=Object.freeze(e.value),e}const qf=N("$ZodLazy",(e,t)=>{Se.init(e,t),pe(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),pe(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),pe(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),pe(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),pe(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Vf=N("$ZodCustom",(e,t)=>{et.init(e,t),Se.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(a=>hl(a,n,r,e));hl(o,n,r,e)}});function hl(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Kn(o))}}var fl;class Yf{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.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 r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Kf(){return new Yf}(fl=globalThis).__zod_globalRegistry??(fl.__zod_globalRegistry=Kf());const Hn=globalThis.__zod_globalRegistry;function Jf(e,t){return new e({type:"string",...W(t)})}function Xf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...W(t)})}function pl(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...W(t)})}function Qf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...W(t)})}function ep(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...W(t)})}function tp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...W(t)})}function np(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...W(t)})}function rp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...W(t)})}function op(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...W(t)})}function ap(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...W(t)})}function ip(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...W(t)})}function lp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...W(t)})}function sp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...W(t)})}function cp(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...W(t)})}function up(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...W(t)})}function dp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...W(t)})}function hp(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...W(t)})}function fp(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...W(t)})}function pp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...W(t)})}function gp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...W(t)})}function mp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...W(t)})}function bp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...W(t)})}function xp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...W(t)})}function vp(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...W(t)})}function kp(e,t){return new e({type:"string",format:"date",check:"string_format",...W(t)})}function wp(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...W(t)})}function Sp(e,t){return new e({type:"string",format:"duration",check:"string_format",...W(t)})}function $p(e,t){return new e({type:"number",checks:[],...W(t)})}function _p(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...W(t)})}function Cp(e,t){return new e({type:"boolean",...W(t)})}function Ap(e){return new e({type:"any"})}function yp(e){return new e({type:"unknown"})}function Ip(e,t){return new e({type:"never",...W(t)})}function gl(e,t){return new Sc({check:"less_than",...W(t),value:e,inclusive:!1})}function So(e,t){return new Sc({check:"less_than",...W(t),value:e,inclusive:!0})}function ml(e,t){return new $c({check:"greater_than",...W(t),value:e,inclusive:!1})}function $o(e,t){return new $c({check:"greater_than",...W(t),value:e,inclusive:!0})}function bl(e,t){return new jh({check:"multiple_of",...W(t),value:e})}function Ec(e,t){return new Dh({check:"max_length",...W(t),maximum:e})}function Wr(e,t){return new Fh({check:"min_length",...W(t),minimum:e})}function Nc(e,t){return new Hh({check:"length_equals",...W(t),length:e})}function Rp(e,t){return new Gh({check:"string_format",format:"regex",...W(t),pattern:e})}function Tp(e){return new Wh({check:"string_format",format:"lowercase",...W(e)})}function Ep(e){return new Uh({check:"string_format",format:"uppercase",...W(e)})}function Np(e,t){return new Zh({check:"string_format",format:"includes",...W(t),includes:e})}function Mp(e,t){return new qh({check:"string_format",format:"starts_with",...W(t),prefix:e})}function Pp(e,t){return new Vh({check:"string_format",format:"ends_with",...W(t),suffix:e})}function Tn(e){return new Yh({check:"overwrite",tx:e})}function Lp(e){return Tn(t=>t.normalize(e))}function Op(){return Tn(e=>e.trim())}function zp(){return Tn(e=>e.toLowerCase())}function jp(){return Tn(e=>e.toUpperCase())}function Bp(){return Tn(e=>Fd(e))}function Dp(e,t,n){return new e({type:"array",element:t,...W(n)})}function Fp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...W(n)})}function Hp(e,t){const n=Gp(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Kn(o,r.value,n._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Kn(a))}},e(r.value,r)),t);return n}function Gp(e,t){const n=new et({check:"custom",...W(t)});return n._zod.check=e,n}function Mc(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)??Hn,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 Ee(e,t,n={path:[],schemaPath:[]}){var c,h;var r;const o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(h=(c=e._zod).toJSONSchema)==null?void 0:h.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Ee(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Je(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Pc(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const h=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(h){const d=r.get(h);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,c[0])}}const o=c=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??(S=>S);if(x)return{ref:w(x)};const k=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=k,{defId:k,ref:`${w("__shared")}#/${h}/${k}`}}if(c[1]===n)return{ref:"#"};const f=`#/${h}/`,p=c[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},a=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:d,defId:f}=o(c);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
63
63
 
64
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(t===c[0]){a(c);continue}if(e.external){const f=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&f){a(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){a(c);continue}if(h.cycle){a(c);continue}if(h.count>1&&e.reused==="ref"){a(c);continue}}}function Lc(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){r(b);const w=e.seen.get(b),k=w.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(k.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){r(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const k in f)k==="$ref"||k==="allOf"||k in w.def&&JSON.stringify(f[k])===JSON.stringify(w.def[k])&&delete f[k]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,n.def??n.schema);const a=(u=e.metadataRegistry.get(t))==null?void 0:u.id;a!==void 0&&o.id===a&&delete o.id;const i=((c=e.external)==null?void 0:c.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ur(t,"input",e.processors),output:Ur(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Je(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Je(r.element,n);if(r.type==="set")return Je(r.valueType,n);if(r.type==="lazy")return Je(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Je(r.innerType,n);if(r.type==="intersection")return Je(r.left,n)||Je(r.right,n);if(r.type==="record"||r.type==="map")return Je(r.keyType,n)||Je(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Je(r.in,n)||Je(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Je(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Je(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Je(o,n))return!0;return!!(r.rest&&Je(r.rest,n))}return!1}const Wp=(e,t={})=>n=>{const r=Mc({...n,processors:t});return Ee(e,r),Pc(r,e),Lc(r,e)},Ur=(e,t,n={})=>r=>{const{libraryOptions:o,target:a}=r??{},i=Mc({...o??{},target:a,io:t,processors:n});return Ee(e,i),Pc(i,e),Lc(i,e)},Up={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Zp=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:a,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(o.minLength=a),typeof i=="number"&&(o.maxLength=i),l&&(o.format=Up[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},qp=(e,t,n,r)=>{const o=n,{minimum:a,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const h=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof a=="number"&&(o.minimum=a),d?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof s=="number"&&(o.multipleOf=s)},Vp=(e,t,n,r)=>{n.type="boolean"},Yp=(e,t,n,r)=>{n.not={}},Kp=(e,t,n,r)=>{},Jp=(e,t,n,r)=>{},Xp=(e,t,n,r)=>{const o=e._zod.def,a=dc(o.entries);a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),n.enum=a},Qp=(e,t,n,r)=>{const o=e._zod.def,a=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){const i=a[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),a.every(i=>typeof i=="boolean")&&(n.type="boolean"),a.every(i=>i===null)&&(n.type="null"),n.enum=a},eg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},tg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ng=(e,t,n,r)=>{const o=n,a=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=Ee(a.element,t,{...r,path:[...r.path,"items"]})},rg=(e,t,n,r)=>{var u;const o=n,a=e._zod.def;o.type="object",o.properties={};const i=a.shape;for(const c in i)o.properties[c]=Ee(i[c],t,{...r,path:[...r.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const h=a.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((u=a.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:a.catchall?a.catchall&&(o.additionalProperties=Ee(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},og=(e,t,n,r)=>{const o=e._zod.def,a=o.inclusive===!1,i=o.options.map((l,s)=>Ee(l,t,{...r,path:[...r.path,a?"oneOf":"anyOf",s]}));a?n.oneOf=i:n.anyOf=i},ag=(e,t,n,r)=>{const o=e._zod.def,a=Ee(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Ee(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(a)?a.allOf:[a],...l(i)?i.allOf:[i]];n.allOf=s},ig=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=a.items.map((d,f)=>Ee(d,t,{...r,path:[...r.path,i,f]})),u=a.rest?Ee(a.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:s},u&&o.items.anyOf.push(u),o.minItems=s.length,u||(o.maxItems=s.length)):(o.items=s,u&&(o.additionalItems=u));const{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h)},lg=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="object";const i=a.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(a.mode==="loose"&&s&&s.size>0){const c=Ee(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const h of s)o.patternProperties[h.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Ee(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Ee(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(h=>typeof h=="string"||typeof h=="number");c.length>0&&(o.required=c)}},sg=(e,t,n,r)=>{const o=e._zod.def,a=Ee(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},cg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},ug=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},dg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},hg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},fg=(e,t,n,r)=>{const o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?a?o.out:o.in:o.out;Ee(i,t,r);const l=t.seen.get(e);l.ref=i},pg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.readOnly=!0},Oc=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},gg=(e,t,n,r)=>{const o=e._zod.innerType;Ee(o,t,r);const a=t.seen.get(e);a.ref=o},mg=N("ZodISODateTime",(e,t)=>{uf.init(e,t),Ne.init(e,t)});function bg(e){return vp(mg,e)}const xg=N("ZodISODate",(e,t)=>{df.init(e,t),Ne.init(e,t)});function vg(e){return kp(xg,e)}const kg=N("ZodISOTime",(e,t)=>{hf.init(e,t),Ne.init(e,t)});function wg(e){return wp(kg,e)}const Sg=N("ZodISODuration",(e,t)=>{ff.init(e,t),Ne.init(e,t)});function $g(e){return Sp(Sg,e)}const _g=(e,t)=>{gc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>th(e,n)},flatten:{value:n=>eh(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,da,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,da,2)}},isEmpty:{get(){return e.issues.length===0}}})},at=N("ZodError",_g,{Parent:Error}),Cg=ui(at),Ag=di(at),yg=co(at),Ig=uo(at),Rg=oh(at),Tg=ah(at),Eg=ih(at),Ng=lh(at),Mg=sh(at),Pg=ch(at),Lg=uh(at),Og=dh(at),xl=new WeakMap;function or(e,t,n){const r=Object.getPrototypeOf(e);let o=xl.get(r);if(o||(o=new Set,xl.set(r,o)),!o.has(t)){o.add(t);for(const a in n){const i=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const Ce=N("ZodType",(e,t)=>(Se.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ur(e,"input"),output:Ur(e,"output")}}),e.toJSONSchema=Wp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Cg(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>yg(e,n,r),e.parseAsync=async(n,r)=>Ag(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Ig(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Rg(e,n,r),e.decode=(n,r)=>Tg(e,n,r),e.encodeAsync=async(n,r)=>Eg(e,n,r),e.decodeAsync=async(n,r)=>Ng(e,n,r),e.safeEncode=(n,r)=>Mg(e,n,r),e.safeDecode=(n,r)=>Pg(e,n,r),e.safeEncodeAsync=async(n,r)=>Lg(e,n,r),e.safeDecodeAsync=async(n,r)=>Og(e,n,r),or(e,"ZodType",{check(...n){const r=this.def;return this.clone(Ut(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Zt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Nm(n,r))},superRefine(n,r){return this.check(Mm(n,r))},overwrite(n){return this.check(Tn(n))},optional(){return $l(this)},exactOptional(){return bm(this)},nullable(){return _l(this)},nullish(){return $l(_l(this))},nonoptional(n){return $m(this,n)},array(){return oe(this)},or(n){return H([this,n])},and(n){return hm(this,n)},transform(n){return Cl(this,Fc(n))},default(n){return km(this,n)},prefault(n){return Sm(this,n)},catch(n){return Cm(this,n)},pipe(n){return Cl(this,n)},readonly(){return Im(this)},describe(n){const r=this.clone();return Hn.add(r,{description:n}),r},meta(...n){if(n.length===0)return Hn.get(this);const r=this.clone();return Hn.add(r,n[0]),r},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=Hn.get(e))==null?void 0:n.description},configurable:!0}),e)),zc=N("_ZodString",(e,t)=>{hi.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Zp(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,or(e,"_ZodString",{regex(...r){return this.check(Rp(...r))},includes(...r){return this.check(Np(...r))},startsWith(...r){return this.check(Mp(...r))},endsWith(...r){return this.check(Pp(...r))},min(...r){return this.check(Wr(...r))},max(...r){return this.check(Ec(...r))},length(...r){return this.check(Nc(...r))},nonempty(...r){return this.check(Wr(1,...r))},lowercase(r){return this.check(Tp(r))},uppercase(r){return this.check(Ep(r))},trim(){return this.check(Op())},normalize(...r){return this.check(Lp(...r))},toLowerCase(){return this.check(zp())},toUpperCase(){return this.check(jp())},slugify(){return this.check(Bp())}})}),zg=N("ZodString",(e,t)=>{hi.init(e,t),zc.init(e,t),e.email=n=>e.check(Xf(jg,n)),e.url=n=>e.check(rp(Bg,n)),e.jwt=n=>e.check(xp(em,n)),e.emoji=n=>e.check(op(Dg,n)),e.guid=n=>e.check(pl(vl,n)),e.uuid=n=>e.check(Qf(xr,n)),e.uuidv4=n=>e.check(ep(xr,n)),e.uuidv6=n=>e.check(tp(xr,n)),e.uuidv7=n=>e.check(np(xr,n)),e.nanoid=n=>e.check(ap(Fg,n)),e.guid=n=>e.check(pl(vl,n)),e.cuid=n=>e.check(ip(Hg,n)),e.cuid2=n=>e.check(lp(Gg,n)),e.ulid=n=>e.check(sp(Wg,n)),e.base64=n=>e.check(gp(Jg,n)),e.base64url=n=>e.check(mp(Xg,n)),e.xid=n=>e.check(cp(Ug,n)),e.ksuid=n=>e.check(up(Zg,n)),e.ipv4=n=>e.check(dp(qg,n)),e.ipv6=n=>e.check(hp(Vg,n)),e.cidrv4=n=>e.check(fp(Yg,n)),e.cidrv6=n=>e.check(pp(Kg,n)),e.e164=n=>e.check(bp(Qg,n)),e.datetime=n=>e.check(bg(n)),e.date=n=>e.check(vg(n)),e.time=n=>e.check(wg(n)),e.duration=n=>e.check($g(n))});function $(e){return Jf(zg,e)}const Ne=N("ZodStringFormat",(e,t)=>{Re.init(e,t),zc.init(e,t)}),jg=N("ZodEmail",(e,t)=>{ef.init(e,t),Ne.init(e,t)}),vl=N("ZodGUID",(e,t)=>{Xh.init(e,t),Ne.init(e,t)}),xr=N("ZodUUID",(e,t)=>{Qh.init(e,t),Ne.init(e,t)}),Bg=N("ZodURL",(e,t)=>{tf.init(e,t),Ne.init(e,t)}),Dg=N("ZodEmoji",(e,t)=>{nf.init(e,t),Ne.init(e,t)}),Fg=N("ZodNanoID",(e,t)=>{rf.init(e,t),Ne.init(e,t)}),Hg=N("ZodCUID",(e,t)=>{of.init(e,t),Ne.init(e,t)}),Gg=N("ZodCUID2",(e,t)=>{af.init(e,t),Ne.init(e,t)}),Wg=N("ZodULID",(e,t)=>{lf.init(e,t),Ne.init(e,t)}),Ug=N("ZodXID",(e,t)=>{sf.init(e,t),Ne.init(e,t)}),Zg=N("ZodKSUID",(e,t)=>{cf.init(e,t),Ne.init(e,t)}),qg=N("ZodIPv4",(e,t)=>{pf.init(e,t),Ne.init(e,t)}),Vg=N("ZodIPv6",(e,t)=>{gf.init(e,t),Ne.init(e,t)}),Yg=N("ZodCIDRv4",(e,t)=>{mf.init(e,t),Ne.init(e,t)}),Kg=N("ZodCIDRv6",(e,t)=>{bf.init(e,t),Ne.init(e,t)}),Jg=N("ZodBase64",(e,t)=>{xf.init(e,t),Ne.init(e,t)}),Xg=N("ZodBase64URL",(e,t)=>{kf.init(e,t),Ne.init(e,t)}),Qg=N("ZodE164",(e,t)=>{wf.init(e,t),Ne.init(e,t)}),em=N("ZodJWT",(e,t)=>{$f.init(e,t),Ne.init(e,t)}),jc=N("ZodNumber",(e,t)=>{Cc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(r,o,a)=>qp(e,r,o),or(e,"ZodNumber",{gt(r,o){return this.check(ml(r,o))},gte(r,o){return this.check($o(r,o))},min(r,o){return this.check($o(r,o))},lt(r,o){return this.check(gl(r,o))},lte(r,o){return this.check(So(r,o))},max(r,o){return this.check(So(r,o))},int(r){return this.check(kl(r))},safe(r){return this.check(kl(r))},positive(r){return this.check(ml(0,r))},nonnegative(r){return this.check($o(0,r))},negative(r){return this.check(gl(0,r))},nonpositive(r){return this.check(So(0,r))},multipleOf(r,o){return this.check(bl(r,o))},step(r,o){return this.check(bl(r,o))},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 $p(jc,e)}const tm=N("ZodNumberFormat",(e,t)=>{_f.init(e,t),jc.init(e,t)});function kl(e){return _p(tm,e)}const nm=N("ZodBoolean",(e,t)=>{Cf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r)});function O(e){return Cp(nm,e)}const rm=N("ZodAny",(e,t)=>{Af.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp()});function Jn(){return Ap(rm)}const om=N("ZodUnknown",(e,t)=>{yf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp()});function wl(){return yp(om)}const am=N("ZodNever",(e,t)=>{If.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r)});function im(e){return Ip(am,e)}const lm=N("ZodArray",(e,t)=>{Rf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ng(e,n,r,o),e.element=t.element,or(e,"ZodArray",{min(n,r){return this.check(Wr(n,r))},nonempty(n){return this.check(Wr(1,n))},max(n,r){return this.check(Ec(n,r))},length(n,r){return this.check(Nc(n,r))},unwrap(){return this.element}})});function oe(e,t){return Dp(lm,e,t)}const sm=N("ZodObject",(e,t)=>{Ef.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rg(e,n,r,o),fe(e,"shape",()=>t.shape),or(e,"ZodObject",{keyof(){return T(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:wl()})},loose(){return this.clone({...this._zod.def,catchall:wl()})},strict(){return this.clone({...this._zod.def,catchall:im()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Vd(this,n)},safeExtend(n){return Yd(this,n)},merge(n){return Kd(this,n)},pick(n){return Zd(this,n)},omit(n){return qd(this,n)},partial(...n){return Jd(Hc,this,n[0])},required(...n){return Xd(Gc,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...Z(t)};return new sm(n)}const Bc=N("ZodUnion",(e,t)=>{Ic.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>og(e,n,r,o),e.options=t.options});function H(e,t){return new Bc({type:"union",options:e,...Z(t)})}const cm=N("ZodDiscriminatedUnion",(e,t)=>{Bc.init(e,t),Nf.init(e,t)});function um(e,t,n){return new cm({type:"union",options:t,discriminator:e,...Z(n)})}const dm=N("ZodIntersection",(e,t)=>{Mf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ag(e,n,r,o)});function hm(e,t){return new dm({type:"intersection",left:e,right:t})}const fm=N("ZodTuple",(e,t)=>{Pf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ig(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Dc(e,t,n){const r=t instanceof Se,o=r?n:t,a=r?t:null;return new fm({type:"tuple",items:e,rest:a,...Z(o)})}const Sl=N("ZodRecord",(e,t)=>{Lf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lg(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function yn(e,t,n){return!t||!t._zod?new Sl({type:"record",keyType:$(),valueType:e,...Z(t)}):new Sl({type:"record",keyType:e,valueType:t,...Z(n)})}const fa=N("ZodEnum",(e,t)=>{Of.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Xp(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(n.has(i))a[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new fa({...t,checks:[],...Z(o),entries:a})},e.exclude=(r,o)=>{const a={...t.entries};for(const i of r)if(n.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new fa({...t,checks:[],...Z(o),entries:a})}});function T(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new fa({type:"enum",entries:n,...Z(t)})}const pm=N("ZodLiteral",(e,t)=>{zf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ae(e,t){return new pm({type:"literal",values:Array.isArray(e)?e:[e],...Z(t)})}const gm=N("ZodTransform",(e,t)=>{jf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tg(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new uc(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Kn(a,n.value,t));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Kn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function Fc(e){return new gm({type:"transform",transform:e})}const Hc=N("ZodOptional",(e,t)=>{Rc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Oc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function $l(e){return new Hc({type:"optional",innerType:e})}const mm=N("ZodExactOptional",(e,t)=>{Bf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Oc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function bm(e){return new mm({type:"optional",innerType:e})}const xm=N("ZodNullable",(e,t)=>{Df.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function _l(e){return new xm({type:"nullable",innerType:e})}const vm=N("ZodDefault",(e,t)=>{Ff.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ug(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function km(e,t){return new vm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():fc(t)}})}const wm=N("ZodPrefault",(e,t)=>{Hf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>dg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Sm(e,t){return new wm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():fc(t)}})}const Gc=N("ZodNonOptional",(e,t)=>{Gf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function $m(e,t){return new Gc({type:"nonoptional",innerType:e,...Z(t)})}const _m=N("ZodCatch",(e,t)=>{Wf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Cm(e,t){return new _m({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Wc=N("ZodPipe",(e,t)=>{Tc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fg(e,n,r,o),e.in=t.in,e.out=t.out});function Cl(e,t){return new Wc({type:"pipe",in:e,out:t})}const Am=N("ZodPreprocess",(e,t)=>{Wc.init(e,t),Uf.init(e,t)}),ym=N("ZodReadonly",(e,t)=>{Zf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Im(e){return new ym({type:"readonly",innerType:e})}const Rm=N("ZodLazy",(e,t)=>{qf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gg(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function Tm(e){return new Rm({type:"lazy",getter:e})}const Em=N("ZodCustom",(e,t)=>{Vf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eg(e,n)});function Nm(e,t={}){return Fp(Em,e,t)}function Mm(e,t){return Hp(e,t)}function Uc(e,t){return new Am({type:"pipe",in:Fc(e),out:t})}var Pm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Al=A({style:A({textAlign:T(["left","center","right"]).optional().nullable(),padding:Pm}).optional().nullable(),props:A({size:g().gt(0).optional().nullable(),shape:T(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Om(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var vr={size:64,imageUrl:"",alt:"",shape:"square"};function zm({style:e,props:t}){var n,r,o,a,i;const l=(n=t==null?void 0:t.size)!=null?n:vr.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:vr.imageUrl,u=(o=t==null?void 0:t.alt)!=null?o:vr.alt,c=(a=t==null?void 0:t.shape)!=null?a:vr.shape,h={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:Lm(e==null?void 0:e.padding)};return G.createElement("div",{style:h},G.createElement("img",{alt:u,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:Om(c,l)}}))}const fi=O().optional().nullable(),ar=e=>e===!1?{loading:"eager",decoding:"auto"}:{loading:"lazy",decoding:"async"};function Zc(e,t){var r;if(!G.isValidElement(e))return e;const n=e;return n.type==="img"?G.cloneElement(n,ar(t)):((r=n.props)==null?void 0:r.children)===void 0?n:G.cloneElement(n,{children:G.Children.map(n.props.children,o=>Zc(o,t))})}function yl(e){var t;return m.jsx(m.Fragment,{children:Zc(zm(e),(t=e==null?void 0:e.props)==null?void 0:t.lazyLoad)})}const jm=A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),Bm=$().regex(/^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^\)]+\))$/i),yt=A({enabled:O(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable(),borderColor:Bm.optional().nullable(),borderWidth:g().min(0).max(20).optional().nullable(),borderStyle:T(["solid","dashed","dotted"]).optional().nullable(),textDecoration:T(["none","underline","overline","line-through"]).optional().nullable()}).optional().nullable(),kr=(e,t,n)=>{const r=`.${e}:hover${t}`;return n?`${r}, .container-block:hover:not(:has(.container-block .${e})) .${e}${t}`:r};function jt(e,t,{themedBorderColor:n,scaleTarget:r="",borderTarget:o="",scaleFromContainer:a=!1,borderFromContainer:i=!1,defaultScale:l=1.05,scaleBaseCss:s=""}={}){if(!(t!=null&&t.enabled)||!e)return null;const u=`${t.duration??500}ms ${t.easing??"ease-in-out"}`,c=`transition: transform ${u}, outline-color ${u};`,h=[],d=t.scale??l;d>1&&(h.push(`.${e}${r} { ${s} ${c} }`),h.push(`${kr(e,r,a)} { transform: scale(${d}); }`));const f=t.borderWidth??1;if(t.borderColor&&n&&f>0&&(h.push(`.${e}${o} { outline: ${f}px ${t.borderStyle??"solid"} transparent !important; outline-offset: -${f}px; ${c} }`),h.push(`${kr(e,o,i)} { outline-color: ${n} !important; }`)),t.textDecoration&&t.textDecoration!=="none"){const p=`${kr(e,"",!0)}, ${kr(e," *",!0)}`;h.push(`${p} { text-decoration: ${t.textDecoration} !important; }`)}return h.join(`
65
- `)||null}const Dm=Al.extend({props:Al.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),hoverEffect:yt,lazyLoad:fi,animation:jm}).optional().nullable()});function Wt(e){if(!e)return"";let t=String(e).trim().toLowerCase().replace(/\s+/g,"");const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n&&(t=`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`),t}const re=(e,t=[],n)=>({role:e,seeds:t.map(Wt),nullFallback:n}),Zr={pageText:re("text",[],"#262626"),containerFill:re("surface",[],"#ffffff"),layoutText:re("text",["#262626","#1f2937"],"#262626"),canvas:re("surface",["#ffffff"]),closeIcon:re("text",["#000000","#262626"],"#262626"),brandingText:re("text-muted",[],"#8a8a8a"),blockText:re("text",["#262626"]),listText:re("text"),link:re("link",[],"#2563eb"),codeBg:re("surface-alt",[],"#f3f4f6"),quoteBorder:re("text-muted",[],"#9ca3af"),divider:re("border",["#cccccc","#333333"],"#cccccc"),tableText:re("text",["#262626"]),tableBorder:re("border",["#e5e7eb"]),tableHeaderBg:re("surface-alt",["#f3f4f6"]),tableHeaderText:re("text-strong",["#111827"]),tableStripe:re("surface-alt",["#f8f6f6"]),track:re("track",["#e5e7eb"]),trackText:re("text",["#262626"]),timerText:re("text",[],"#1f1f1f"),timerLabel:re("text-muted",[],"#6b7280"),timerTrack:re("track",[],"#e5e7eb"),breadcrumbText:re("text-muted",["#595959"]),menuText:re("text",["#000000"],"#000000"),menuSurface:re("surface",[],"#ffffff"),carouselArrow:re("text",[],"#262626"),carouselArrowBg:re("surface",[],"#ffffff"),carouselArrowBorder:re("border-subtle",[],"rgba(0,0,0,.12)"),carouselDot:re("track",[],"#d4d4d4"),carouselDotActive:re("text",[],"#262626"),paginationBg:re("surface",["#ffffff"],"#ffffff"),paginationText:re("text",["#262626"],"#262626"),paginationBorder:re("border-subtle",["rgba(0,0,0,.12)"],"rgba(0,0,0,.12)"),surface:re("surface",[],"#ffffff"),surfaceLiteral:re("surface"),bgAdaptive:re("surface"),buttonText:re("text"),borderAdaptive:re("border"),borderSubtle:re("border-subtle",[],"rgba(0,0,0,.12)"),surfaceAlt:re("surface-alt"),tabsRing:re("border",[],"#d0d5dd")},qc=e=>/gradient\(|url\(/i.test(e);function qr(e){const t=Wt(e);let n=/^#([0-9a-f]{6})([0-9a-f]{2})?$/.exec(t);if(n){const r=parseInt(n[1],16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:n[2]?parseInt(n[2],16)/255:1}}return n=/^rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(?:,([\d.]+))?\)$/.exec(t),n?{r:+n[1],g:+n[2],b:+n[3],a:n[4]!==void 0?+n[4]:1}:null}function Il({r:e,g:t,b:n}){const r=o=>{const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function Fm({r:e,g:t,b:n}){const r=e/255,o=t/255,a=n/255,i=Math.max(r,o,a),l=Math.min(r,o,a),s=(i+l)/2,u=i-l;if(u===0)return{h:0,s:0,l:s};const c=u/(1-Math.abs(2*s-1));return{h:((i===r?(o-a)/u%6:i===o?(a-r)/u+2:(r-o)/u+4)*60+360)%360,s:c,l:s}}function _o(e,t,n,r){const o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(e/60%2-1)),i=n-o/2,[l,s,u]=e<60?[o,a,0]:e<120?[a,o,0]:e<180?[0,o,a]:e<240?[0,a,o]:e<300?[a,0,o]:[o,0,a],c=h=>Math.round((h+i)*255).toString(16).padStart(2,"0");return`#${c(l)}${c(s)}${c(u)}${r<1?Math.round(r*255).toString(16).padStart(2,"0"):""}`}function fo(e,t){const n=qr(e);if(!n||n.a===0)return null;const{h:r,s:o,l:a}=Fm(n);if(t==="text"){if(Il(n)>=.2)return null;let i=a,l=_o(r,o,i,n.a);const s=o<.1?.75:.4;for(;i<.97&&Il(qr(l))<s;)i=Math.min(.97,i+.02),l=_o(r,o,i,n.a);return l}return a<=.82?null:_o(r,o*.5,Math.min(.18,Math.max(.07,1-a)),n.a)}const Vc=["text","text-strong","text-muted","link"],Yc=["surface","surface-alt","track"],Hm=e=>Vc.includes(e)?"text":Yc.includes(e)?"bg":null;function Gm(e){if(!e||!e.trim()||/^(transparent|none)$/i.test(e.trim()))return!0;const t=qr(e);return!!t&&t.a===0}function Kc(e){return!!e&&!qc(e)&&fo(e,"bg")!==null}const Wm={text:["text","text-strong","text-muted","link"],bg:["surface","surface-alt","track"],border:["border","border-subtle","surface","surface-alt","track"]};let Co=null;function Um(){if(Co)return Co;const e=new Map;return Object.values(Zr).forEach(t=>{e.has(t.role)||e.set(t.role,new Set),t.seeds.forEach(n=>e.get(t.role).add(n)),t.nullFallback&&e.get(t.role).add(Wt(t.nullFallback))}),Co=e,e}function Zm(e,t){var r;const n=Um();for(const o of Wm[t])if((r=n.get(o))!=null&&r.has(e))return o;return null}const Jc=e=>Vc.includes(e)?"text":Yc.includes(e)?"bg":"border",Ao=/(?:repeating-)?(?:linear|radial|conic)-gradient\(/gi,qm=/^(to\s|[-+]?[\d.]+(?:deg|grad|rad|turn)\b|circle\b|ellipse\b|closest-|farthest-|at\s|from\s|in\s)/i;function Xc(e,t){let n=0;for(let r=t;r<e.length;r+=1)if(e[r]==="(")n+=1;else if(e[r]===")"&&(n-=1,n===0))return r;return-1}function Vm(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o+=1)e[o]==="("?n+=1:e[o]===")"?n-=1:e[o]===","&&n===0&&(t.push(e.slice(r,o)),r=o+1);return t.push(e.slice(r)),t}function Ym(e,t,n){const r=/^\s*/.exec(e)[0],o=e.slice(r.length);if(!o||qm.test(o))return e;let a="";const i=/^#[0-9a-fA-F]{3,8}(?![0-9a-zA-Z])/.exec(o);if(i)a=i[0];else if(/^rgba?\(/i.test(o)){const c=Xc(o,o.indexOf("("));c>0&&(a=o.slice(0,c+1))}if(!a)return/^(transparent)\b/i.test(o)||(n.literal+=1),e;const l=qr(a),s=Zm(Wt(a),t);if(s)return n.adapted+=1,`${r}var(--pp-g-${s},${a})${o.slice(a.length)}`;const u=t==="border"?null:fo(a,t);return u?(n.adapted+=1,`${r}light-dark(${a},${u})${o.slice(a.length)}`):((!l||l.a>0)&&(n.literal+=1),e)}function Qc(e,t,n){let r="",o=0;Ao.lastIndex=0;let a;for(;(a=Ao.exec(e))!==null;){const i=a.index+a[0].length-1,l=Xc(e,i);if(l<0)break;const s=e.slice(i+1,l),u=Vm(s).map(c=>Ym(c,t,n)).join(",");r+=e.slice(o,i+1)+u,o=l,Ao.lastIndex=l+1}return r+e.slice(o)}function Km(e,t="bg"){const n={adapted:0,literal:0},r=Qc(e,t,n);return n.adapted?r:e}function Jm(e,t="bg"){const n={adapted:0,literal:0};return Qc(e,t,n),n.adapted>0&&n.literal===0}function z(e,t){const n=typeof t=="string"?Zr[t]:t;if(e==null||e==="")return n.nullFallback?`var(--pp-${n.role},${n.nullFallback})`:void 0;if(qc(e))return/gradient\(/i.test(e)?Km(e,Jc(n.role)):e;if(n.seeds.includes(Wt(e)))return`var(--pp-${n.role},${e})`;const r=Hm(n.role),o=r?fo(e,r):null;return o?`light-dark(${e},${o})`:e}const Xm=/^(transparent|none|inherit|initial|unset|currentcolor)$/i;function ue(e,t,n){const r=(e??"").trim();if(n&&!t&&Zr[n].seeds.includes(Wt(r)))return{};if(n&&!t&&Kc(r))return{};if(n&&!t&&/gradient\(/i.test(r)&&Jm(r,Jc(Zr[n].role)))return{};const o=!!r&&!Xm.test(Wt(r))&&!/^rgba?\(.*,\s*0\)$/i.test(Wt(r)),a=!!t&&t.trim()!==""&&t.trim()!=="none";return o||a?{"data-pp-surface":"fixed"}:{}}function ie(e){return e??void 0}function pi(){return e=>e??void 0}const Rl=e=>{const t=fo(e.trim(),"text");return t?`light-dark(${e.trim()},${t})`:null},Qm=/<font\b([^>]*)>/gi,Tl=/\scolor\s*=\s*(?:"([^"]*)"|'([^']*)')/i,El=/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/i,eb=/(\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,tb=/(^|[;\s])color\s*:\s*([^;]+?)(\s*!important)?\s*(?=;|$)/gi;function nb(e){if(!e||!/color/i.test(e))return e;let t=e.replace(Qm,(n,r)=>{const o=Tl.exec(r);if(!o)return n;const a=Rl(o[1]??o[2]??"");if(!a)return n;const i=r.replace(Tl,""),l=El.exec(i);if(l){const s=l[1]??l[2]??"";return`<font${i.replace(El,` style="color:${a};${s}"`)}>`}return`<font${i} style="color:${a}">`});return t=t.replace(eb,(n,r,o,a)=>{const i=o!==void 0?'"':"'",l=o??a??"";if(!/color/i.test(l))return n;const s=l.replace(tb,(u,c,h,d)=>{const f=Rl(h);return f?`${c}color:${f}${d??""}`:u});return s===l?n:`${r}${i}${s}${i}`}),t}function eu(e){return nb(e)}const Mr="--pp-text:#e6e6e6;--pp-text-strong:#f5f5f5;--pp-text-muted:#a3a3a3;--pp-link:#7aa7ff;--pp-surface:#121212;--pp-surface-alt:#1e1e1e;--pp-track:#2e2e2e;--pp-border:#3a3a3a;--pp-border-subtle:rgba(255,255,255,.12);--pp-icon-filter:invert(1) hue-rotate(180deg);--pp-scheme:dark",Gn="--pp-text:initial;--pp-text-strong:initial;--pp-text-muted:initial;--pp-link:initial;--pp-surface:initial;--pp-surface-alt:initial;--pp-track:initial;--pp-border:initial;--pp-border-subtle:initial;--pp-icon-filter:initial;--pp-scheme:light",tu=e=>e.replace(/--pp-scheme:[a-z]+/,"").replace(/--pp-icon-filter:[^;]+;/,"").replace(/--pp-/g,"--pp-g-"),yo=tu(Mr),wr=tu(Gn),Nl=e=>`[data-theme=${e}],[data-bs-theme=${e}],[data-mui-color-scheme=${e}],[data-color-mode=${e}]`,rb=`:where(html.dark,body.dark){${Mr};${yo}}:where(html.light,body.light){${Gn};${wr}}:where(html,body):where(${Nl("dark")}){${Mr};${yo}}:where(html,body):where(${Nl("light")}){${Gn};${wr}}:where([data-pp-surface=fixed]>*){${wr}}:where([data-pp-theme=dark]){${Mr};${yo}}:where([data-pp-theme=light]){${Gn};${wr}}:where([data-pp-surface=fixed]){${Gn};color:#262626}:where([data-ahd-tpl-root],[data-pp-scope],[data-pp-theme],[data-pp-surface=fixed]){color-scheme:var(--pp-scheme,light)}`;let ob=0;function ab({hoverEffect:e,children:t}){const n=G.useMemo(()=>`ahd-hv-wrap-${++ob}`,[]),r=jt(n,e,{themedBorderColor:z(e==null?void 0:e.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0});return r?m.jsxs("div",{className:n,style:{display:"contents"},children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),t]}):m.jsx(m.Fragment,{children:t})}const Un={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},ir=Object.values(Un);let nu=null;function Ml(e){nu=e}function ib(){return nu}function gi(){return"desktop"}const Ue=1024,qe=640,Ct=`@media (max-width: ${Ue}px)`,Xe=`@media (max-width: ${qe}px)`,ln=`@media (min-width: ${qe+1}px) and (max-width: ${Ue}px)`,Ve=A({tablet:yn($(),Jn()).optional().nullable(),mobile:yn($(),Jn()).optional().nullable()}).optional().nullable(),lb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ub=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},db=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},fb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},pb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},gb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},bb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},xb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},vb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},kb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},wb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Sb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},$b=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},_b=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:m.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function Cb(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return m.jsx(lb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return m.jsx(db,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return m.jsx(mb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return m.jsx(hb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return m.jsx(sb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return m.jsx(cb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return m.jsx(ub,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return m.jsx(fb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return m.jsx(pb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return m.jsx(gb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return m.jsx(vb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return m.jsx(wb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return m.jsx($b,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return m.jsx(bb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return m.jsx(kb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return m.jsx(Sb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return m.jsx(_b,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return m.jsx(xb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const Ab=4,Bt=e=>({[e==="left"?"marginRight":"marginLeft"]:Ab,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),yb=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),Sr=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Xn="data-ahd-var",ru=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,Ib=/[&<>"']/g,Rb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function $n(e){return e.replace(Ib,t=>Rb[t])}function po(e){return!e||e.indexOf("{{")===-1?e:e.replace(ru,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Xn}="${a}">{{${o}}}</span>`})}function mi(e){return!e||e.indexOf("{{")===-1?e:$n(e).replace(ru,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Xn}="${a}">{{${o}}}</span>`})}const Tb=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function Eb(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const r=new URLSearchParams(n||"");return e.replace(Tb,(o,a)=>{const i=r.get(a);return i!==null?encodeURIComponent(i):o})}function Nb(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),r=e.querySelectorAll(`[${Xn}]`);for(let o=0;o<r.length;o++){const a=r[o],i=n.get(a.getAttribute(Xn)||"");i!==null&&(a.textContent=i)}}const pa="data-ahd-date",ou="data-ahd-date-format";function ga(e,t){const n=$n(e),r=t??"",o=$n(r),a=au(r)||`{{${n}}}`;return`<span ${Xn}="${n}" ${pa}="${o}" ${ou}="relative">${$n(a)}</span>`}function au(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const r=864e5,o=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),a=Math.round((o(n)-o(t))/r);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function Mb(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${pa}][${ou}="relative"]`);for(let r=0;r<n.length;r++){const o=n[r],a=o.getAttribute(pa)||"",i=au(a,t);i&&(o.textContent=i)}}const Pb=T(["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 Io(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 Lb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ob=$().regex(/^rgba?\([^\)]+\)$/i),zb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),jb=ae("transparent"),Xt=H([Lb,Ob,zb,jb]).nullable().optional(),Bb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Db=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Fb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hb=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Gb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ub=A({color:Xt,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function Zb(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 qb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Zb(t)}`}}const Vb=A({style:A({backgroundColor:Xt,fontSize:g().min(0).optional().nullable(),fontFamily:Pb,fontWeight:T(["bold","normal",...ir]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),buttonTextAlign:T(["left","center","right"]).optional().nullable(),padding:Bb,margin:Db}).optional().nullable(),props:A({buttonBackground:Xt,hoverBackground:Xt,hoverTextColor:Xt,borderRadius:Hb,borderWidth:Fb,borderColor:Xt,boxShadow:Ub,buttonTextColor:Xt,fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:T(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:T(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:T(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:T(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:$().optional().nullable(),actionPayload:yn($(),Jn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:T(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),hoverEffect:yt,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ve});function Pl(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 Me={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function Yb({style:e,props:t}){var Ki;const r=`bh-${G.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??Me.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,i=(He,dt)=>a?m.jsx("span",{style:He,"data-action":dt,dangerouslySetInnerHTML:{__html:mi(o)}}):m.jsx("span",{style:He,"data-action":dt,children:o}),l=(t==null?void 0:t.url)??Me.url,s=Eb(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??Me.fullWidth,h=(t==null?void 0:t.widthType)??Me.widthType,d=(t==null?void 0:t.width)??Me.width,f=(t==null?void 0:t.widthUnit)??Me.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,k=(t==null?void 0:t.widthTypeTablet)??h,S=(t==null?void 0:t.widthTypeMobile)??k,v=(t==null?void 0:t.size)??Me.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??Me.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??Me.buttonBackground,L=Kc(E),M=!/gradient\(/i.test(R??"")&&(L||Gm(E)),P=M?z(R,"buttonText"):ie(R),B=L?z(E,"bgAdaptive"):ie(E),F=M?"currentColor":P,W=(t==null?void 0:t.iconEnabled)??Me.iconEnabled,D=(t==null?void 0:t.iconName)??Me.iconName,U=(t==null?void 0:t.iconAlignment)??Me.iconAlignment,J=(t==null?void 0:t.iconUrl)??null,Q=!!(W&&(J||D)),X=(t==null?void 0:t.ariaLabel)??null,ee=typeof o=="string"&&o.trim().length>0,ge=X&&X.trim().length>0?X:!ee&&W&&D?D:void 0,$e=(t==null?void 0:t.action)??Me.action,ke=(t==null?void 0:t.openInNewTab)??Me.openInNewTab,K=((t==null?void 0:t.customAction)??Me.customAction)||$e,q=(t==null?void 0:t.actionPayload)??Me.actionPayload,V=(t==null?void 0:t.goToStep)??Me.goToStep,j=(t==null?void 0:t.postMessageEvent)??Me.postMessageEvent,Y=q||(K==="goToStep"?{goToStep:V||""}:null)||(K==="postMessageEvent"?{postMessageEvent:j||""}:null),de=Y?JSON.stringify(Y):void 0,we=(t==null?void 0:t.borderRadius)??Me.borderRadius,he=(t==null?void 0:t.borderWidth)??Me.borderWidth,me=(t==null?void 0:t.borderColor)??Me.borderColor,Ie=ie(me),le=(t==null?void 0:t.boxShadow)??Me.boxShadow,Te=qb(le),De=(t==null?void 0:t.hoverBackground)??null,Oe=(t==null?void 0:t.hoverTextColor)??null,_e=Pl(v),Ye=He=>typeof He=="number"?`${He}px`:`${He.topLeft}px ${He.topRight}px ${He.bottomRight}px ${He.bottomLeft}px`,te=(He,dt)=>{if(typeof He=="number")return`${Math.max(0,He-dt)}px`;const ko=Math.max(0,(He.topLeft||0)-dt),wo=Math.max(0,(He.topRight||0)-dt),dn=Math.max(0,(He.bottomRight||0)-dt),hn=Math.max(0,(He.bottomLeft||0)-dt);return`${ko}px ${wo}px ${dn}px ${hn}px`},We=me&&(me.includes("linear-gradient")||me.includes("radial-gradient")||me.includes("repeating-linear-gradient")),Fe=he&&((he.top??0)>0||(he.right??0)>0||(he.bottom??0)>0||(he.left??0)>0),se={top:(he==null?void 0:he.top)??0,right:(he==null?void 0:he.right)??0,bottom:(he==null?void 0:he.bottom)??0,left:(he==null?void 0:he.left)??0},je=(()=>{if(c)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),tt=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",Qe=tt==="center"?"center":tt==="right"?"flex-end":"flex-start",Vt=()=>!me||me==="transparent"||!Fe?{border:"none"}:We?{borderTop:`${se.top}px solid transparent`,borderRight:`${se.right}px solid transparent`,borderBottom:`${se.bottom}px solid transparent`,borderLeft:`${se.left}px solid transparent`,borderImage:`${Ie} `,borderRadius:"0px"}:{borderTop:`${se.top}px solid ${Ie}`,borderRight:`${se.right}px solid ${Ie}`,borderBottom:`${se.bottom}px solid ${Ie}`,borderLeft:`${se.left}px solid ${Ie}`},Rt=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),xt=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),ct=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),Yt={backgroundColor:ct?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:ct?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Gb(e==null?void 0:e.padding),margin:Wb(e==null?void 0:e.margin)},vt=Vt(),nt={...xt?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},textDecoration:(e==null?void 0:e.textDecoration)??"none"},ut=Rt?void 0:B,Tt=Rt?B:void 0,ne=(e==null?void 0:e.fontSize)??16,ye=`${ne}px`,ze=()=>J?m.jsx("span",{"aria-hidden":"true",style:yb(J,ne,xt?"currentColor":F||"currentColor")}):Cb(D,{strokeColor:xt?void 0:F,fontSize:ne}),Et={fontSize:ye,fontFamily:Io(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Un.REGULAR,backgroundColor:ut,backgroundImage:Tt,borderRadius:We?"0px":Ye(we),...vt,...We&&Fe?{}:Te,display:je==="100%"?"block":"inline-block",width:je,padding:`${_e[0]}px ${_e[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:Qe,lineHeight:"normal"},ce=We&&Fe?m.jsx("div",{style:{display:je==="100%"?"block":"inline-block",padding:`${se.top}px ${se.right}px ${se.bottom}px ${se.left}px`,background:Ie,borderRadius:Ye(we),width:je,boxSizing:"border-box",...Te},children:m.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:te(we,Math.max(se.top,se.right,se.bottom,se.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Un.REGULAR,fontFamily:Io(e==null?void 0:e.fontFamily),backgroundImage:Tt,backgroundColor:ut,textAlign:tt,textDecoration:"none",fontSize:ye,padding:`${_e[0]}px ${_e[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Sr(Qe)},"data-action":K,"data-action-payload":de,"data-goto-step":K==="goToStep"&&V?V:void 0,"data-post-message-event":K==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":ge,children:[Q&&U==="left"?m.jsx("span",{style:Bt("left"),"data-action":K,children:ze()}):null,i({...nt,pointerEvents:"none"},K),Q&&U==="right"?m.jsx("span",{style:Bt("right"),"data-action":K,children:ze()}):null]})}):m.jsxs("button",{style:{cursor:"pointer",...vt,...Te,borderRadius:Ye(we),width:je,fontWeight:(e==null?void 0:e.fontWeight)??Un.REGULAR,fontFamily:Io(e==null?void 0:e.fontFamily),backgroundColor:ut,backgroundImage:Tt,textAlign:tt,textDecoration:"none",fontSize:ye,padding:`${_e[0]}px ${_e[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Sr(Qe)},"data-action":K,"data-action-payload":de,"data-goto-step":K==="goToStep"&&V?V:void 0,"data-post-message-event":K==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":ge,children:[Q&&U==="left"?m.jsx("span",{style:Bt("left"),"data-action":K,children:ze()}):null,i({...nt,pointerEvents:"none"},K),Q&&U==="right"?m.jsx("span",{style:Bt("right"),"data-action":K,children:ze()}):null]}),be=!!De&&(De.includes("linear-gradient")||De.includes("radial-gradient")||De.includes("repeating-linear-gradient")),Ke=!!Oe&&(Oe.includes("linear-gradient")||Oe.includes("radial-gradient")||Oe.includes("repeating-linear-gradient")),rt=[];De&&(be?rt.push(`background-image: ${De} !important; background-color: transparent !important;`):rt.push(`background-color: ${De} !important; background-image: none !important;`)),Oe&&!Ke&&rt.push(`color: ${Oe} !important;`);const Nt=Oe?Ke?`background-image: ${Oe} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${Oe} !important; -webkit-text-fill-color: ${Oe} !important;`:"",Kt=rt.length>0||Nt?`#${r} a:hover, #${r} button:hover { ${rt.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${Nt} }`:null,qi=(He,dt,ko,wo)=>{const dn=[],hn=c||dt==="fill"?"100%":dt==="fixed"?`${ko}${f}`:"auto";dn.push(`width: ${hn} !important;`,"max-width: 100% !important;"),dn.push(`display: ${hn==="100%"?"block":"inline-block"} !important;`);const[Ji,Od]=Pl(wo);return dn.push(`padding: ${Ji}px ${Od}px !important;`),`${He} { #${r} a, #${r} button { ${dn.join(" ")} } #${r} > div { width: ${hn} !important; max-width: 100% !important; display: ${hn==="100%"?"block":"inline-block"} !important; } }`},Vi=k!==h||_!==v||k==="fixed"&&x!==d,Yi=S!==h||y!==v||S==="fixed"&&w!==d,pr=Vi||Yi?[Vi?qi(Ct,k,x,_):"",Yi?qi(Xe,S,w,y):""].filter(Boolean).join(`
66
- `):null,gr=jt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((Ki=t==null?void 0:t.hoverEffect)==null?void 0:Ki.borderColor,"borderAdaptive"),scaleTarget:" :is(a, button)",borderTarget:" :is(a, button)",scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});if($e!=="link")return m.jsxs("div",{id:r,className:`button-block ${r}`,style:Yt,children:[Kt&&m.jsx("style",{children:Kt}),gr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:gr}}),pr&&m.jsx("style",{children:pr}),ce]});const Ld=We&&Fe?m.jsx("div",{style:{display:je==="100%"?"block":"inline-block",padding:`${se.top}px ${se.right}px ${se.bottom}px ${se.left}px`,background:Ie,borderRadius:Ye(we),width:je,boxSizing:"border-box",...Te},children:m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Et,border:"none",borderRadius:te(we,Math.max(se.top,se.right,se.bottom,se.left)),width:"100%",...Sr(Qe)},target:ke?"_blank":void 0,rel:ke?"noopener noreferrer":void 0,"aria-label":ge,children:[Q&&U==="left"?m.jsx("span",{style:Bt("left"),children:ze()}):null,i({...nt,pointerEvents:"none"}),Q&&U==="right"?m.jsx("span",{style:Bt("right"),children:ze()}):null]})}):m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Et,borderRadius:Ye(we),...Sr(Qe)},target:ke?"_blank":void 0,rel:ke?"noopener noreferrer":void 0,"aria-label":ge,children:[Q&&U==="left"?m.jsx("span",{style:Bt("left"),children:ze()}):null,i({...nt,pointerEvents:"none"}),Q&&U==="right"?m.jsx("span",{style:Bt("right"),children:ze()}):null]});return m.jsxs("div",{id:r,className:`button-block ${r}`,style:Yt,children:[Kt&&m.jsx("style",{children:Kt}),gr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:gr}}),pr&&m.jsx("style",{children:pr}),Ld]})}const Kb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Jb=$().regex(/^rgba?\([^\)]+\)$/i),Xb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Qb=ae("transparent"),Ll=H([Kb,Jb,Xb,Qb]).nullable().optional(),e0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),t0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),n0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,r0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,o0=A({style:A({backgroundColor:Ll,padding:e0,margin:t0}).optional().nullable(),props:A({lineColor:Ll,lineHeight:g().optional().nullable()}).optional().nullable()}),Ol={lineHeight:1,lineColor:"#333333"};function a0({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Ol.lineHeight,r=z((t==null?void 0:t.lineColor)??Ol.lineColor,"divider"),o={padding:n0(e==null?void 0:e.padding),margin:r0(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),"--ahd-divider-thickness":`${n}px`};return m.jsx("div",{className:"divider-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:m.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const i0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),l0=$().regex(/^rgba?\([^\)]+\)$/i),s0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),c0=ae("transparent"),Ro=H([i0,l0,s0,c0]).nullable().optional(),u0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),d0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),h0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,f0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,p0=T(["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 g0(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 m0=A({props:A({text:$().optional().nullable(),level:T(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:T(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:O().optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:yt}).optional().nullable(),style:A({color:Ro,textColor:Ro,backgroundColor:Ro,fontFamily:p0,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),fontStyle:T(["italic","normal"]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:u0,margin:d0}).optional().nullable(),responsive:Ve}),Pn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};let b0=0;function x0({props:e,style:t}){var U;const n=G.useMemo(()=>`ahd-hv-heading-${++b0}`,[]),r=jt(n,e==null?void 0:e.hoverEffect,{themedBorderColor:z((U=e==null?void 0:e.hoverEffect)==null?void 0:U.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),o=(e==null?void 0:e.level)??Pn.level,a=(e==null?void 0:e.text)??Pn.text,i=typeof a=="string"&&a.indexOf("{{")!==-1,l=(e==null?void 0:e.linkType)??Pn.linkType,s=(e==null?void 0:e.url)??Pn.url,u=(e==null?void 0:e.openInNewTab)??Pn.openInNewTab,c=l==="link"&&s,h=(t==null?void 0:t.fontSize)??v0(o),d=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),f=z(d,"blockText"),p=d&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(d),b=(t==null?void 0:t.textDecoration)??"none",x=p&&(b==="underline"||b==="underline line-through"),w=p&&(b==="line-through"||b==="underline line-through"),k=t==null?void 0:t.lineClamp,S=k&&k>0?{display:"-webkit-box",WebkitLineClamp:k,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},v={fontWeight:(t==null?void 0:t.fontWeight)??Un.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:p?"none":b,margin:0,fontFamily:g0(t==null?void 0:t.fontFamily),fontSize:h,...S},_=!!(k&&k>0),y=p?{lineHeight:"normal ",backgroundImage:f,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",..._?{}:{display:"inline-block"},...x?{paddingBottom:"0.08em"}:{}}:{color:f??void 0},C={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:f??void 0,pointerEvents:"none"},I={...C,bottom:0},R={...C,top:"50%",transform:"translateY(-50%)"},E=(t==null?void 0:t.backgroundColor)??void 0,L=z(E,"bgAdaptive"),M=typeof E=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(E),P=t==null?void 0:t.margin,B=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),F={padding:h0(t==null?void 0:t.padding),margin:f0(t==null?void 0:t.margin),display:"block",width:B>0?`calc(100% - ${B}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...M?{backgroundImage:L,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:L}},W=o,D=m.jsx(W,{className:"heading-block",style:v,children:m.jsxs("span",{style:y,children:[i?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:mi(a)}}):a,x?m.jsx("span",{style:I}):null,w?m.jsx("span",{style:R}):null]})});return m.jsxs("div",{className:`heading-block-wrapper${r?` ${n}`:""}`,...ue(E,void 0,"bgAdaptive"),style:F,children:[r&&m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),c?m.jsx("a",{href:s,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!p&&f?f:void 0},children:D}):D]})}function v0(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 19;case"h4":return 16;case"h5":return 13;case"h6":return 11}}var iu="comm",lu="rule",su="decl",k0="@import",w0="@namespace",S0="@keyframes",$0="@layer",_0=Math.abs,Zn=String.fromCharCode;function cu(e){return e.trim()}function ma(e,t,n){return e.replace(t,n)}function _n(e,t){return e.charCodeAt(t)|0}function In(e,t,n){return e.slice(t,n)}function _t(e){return e.length}function C0(e){return e.length}function $r(e,t){return t.push(e),e}var go=1,Rn=1,uu=0,ot=0,Be=0,En="";function bi(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:go,column:Rn,length:i,return:"",siblings:l}}function A0(){return Be}function y0(){return Be=ot>0?_n(En,--ot):0,Rn--,Be===10&&(Rn=1,go--),Be}function mt(){return Be=ot<uu?_n(En,ot++):0,Rn++,Be===10&&(Rn=1,go++),Be}function Gt(){return _n(En,ot)}function Pr(){return ot}function mo(e,t){return In(En,e,t)}function Qn(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 I0(e){return go=Rn=1,uu=_t(En=e),ot=0,[]}function R0(e){return En="",e}function To(e){return cu(mo(ot-1,ba(e===91?e+2:e===40?e+1:e)))}function T0(e){for(;(Be=Gt())&&Be<33;)mt();return Qn(e)>2||Qn(Be)>3?"":" "}function E0(e,t){for(;--t&&mt()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return mo(e,Pr()+(t<6&&Gt()==32&&mt()==32))}function ba(e){for(;mt();)switch(Be){case e:return ot;case 34:case 39:e!==34&&e!==39&&ba(Be);break;case 40:e===41&&ba(e);break;case 92:mt();break}return ot}function N0(e,t){for(;mt()&&e+Be!==57;)if(e+Be===84&&Gt()===47)break;return"/*"+mo(t,ot-1)+"*"+Zn(e===47?e:mt())}function M0(e){for(;!Qn(Gt());)mt();return mo(e,ot)}function P0(e){return R0(Lr("",null,null,null,[""],e=I0(e),0,[0],e))}function Lr(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,h=i,d=0,f=0,p=0,b=1,x=1,w=1,k=0,S=0,v="",_=o,y=a,C=r,I=v;x;)switch(p=S,S=mt()){case 40:p!=108&&_n(I,h-1)==58?(k++,I+="("):I+=To(S);break;case 41:k--,I+=")";break;case 34:case 39:case 91:I+=To(S);break;case 9:case 10:case 13:case 32:if(k>0){I+=Zn(S);break}I+=T0(p);break;case 92:I+=E0(Pr()-1,7);continue;case 47:switch(Gt()){case 42:case 47:$r(L0(N0(mt(),Pr()),t,n,s),s),(Qn(p||1)==5||Qn(Gt()||1)==5)&&_t(I)&&In(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=_t(I)*w;case 125*b:case 59:case 0:if(k>0&&S){I+=Zn(S);break}switch(S){case 0:case 125:x=0;case 59+c:w==-1&&(I=ma(I,/\f/g,"")),f>0&&(_t(I)-h||b===0)&&$r(f>32?jl(I+";",r,n,h-1,s):jl(ma(I," ","")+";",r,n,h-2,s),s);break;case 59:I+=";";default:if($r(C=zl(I,t,n,u,c,o,l,v,_=[],y=[],h,a),a),S===123)if(c===0)Lr(I,t,C,C,_,a,h,l,y);else{switch(d){case 99:if(_n(I,3)===110)break;case 108:if(_n(I,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Lr(e,C,C,r&&$r(zl(e,C,C,0,0,o,l,v,o,_=[],h,y),y),o,y,h,l,r?_:y):Lr(I,C,C,C,[""],y,0,l,y)}}u=c=f=0,b=w=1,v=I="",h=i;break;case 58:h=1+_t(I),f=p;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&y0()==125)continue}switch(I+=Zn(S),S*b){case 38:w=c>0?1:(I+="\f",-1);break;case 44:if(k>0)break;l[u++]=(_t(I)-1)*w,w=1;break;case 64:Gt()===45&&(I+=To(mt())),d=Gt(),c=h=_t(v=I+=M0(Pr())),S++;break;case 45:p===45&&_t(I)==2&&(b=0)}}return a}function zl(e,t,n,r,o,a,i,l,s,u,c,h){for(var d=o-1,f=o===0?a:[""],p=C0(f),b=0,x=0,w=0;b<r;++b)for(var k=0,S=In(e,d+1,d=_0(x=i[b])),v=e;k<p;++k)(v=cu(x>0?f[k]+" "+S:ma(S,/&\f/g,f[k])))&&(s[w++]=v);return bi(e,t,n,o===0?lu:l,s,u,c,h)}function L0(e,t,n,r){return bi(e,t,n,iu,Zn(A0()),In(e,2,-2),0,r)}function jl(e,t,n,r,o){return bi(e,t,n,su,In(e,0,r),In(e,r+1,-1),r,o)}function xa(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function O0(e,t,n,r){switch(e.type){case $0:if(e.children.length)break;case k0:case w0:case su:return e.return=e.return||e.value;case iu:return"";case S0:return e.return=e.value+"{"+xa(e.children,r)+"}";case lu:if(!_t(e.value=e.props.join(",")))return""}return _t(n=xa(e.children,r))?e.return=e.value+"{"+n+"}":""}const z0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),j0=$().regex(/^rgba?\([^\)]+\)$/i),B0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),D0=ae("transparent"),Bl=H([z0,j0,B0,D0]).nullable().optional(),F0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),H0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),G0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,W0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,U0=T(["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 Z0(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 q0=A({style:A({color:Bl,backgroundColor:Bl,fontFamily:U0,fontSize:g().min(0).optional().nullable(),textAlign:T(["left","right","center"]).optional().nullable(),padding:F0,margin:H0}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),V0=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Y0(e,t){let n="";const r=e.replace(V0,(a,i)=>(n+=i,""));if(!n.trim())return{markup:r,css:""};const o=xa(P0(`[${t}]{${n}}`),O0);return{markup:r,css:o}}function K0({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=G.useState(!1),i=`data-html-scope-${G.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=G.useMemo(()=>n?Y0(n,i):{markup:"",css:""},[n,i]),u={color:z(e==null?void 0:e.color,"blockText"),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontFamily:Z0(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:G0(e==null?void 0:e.padding),margin:W0(e==null?void 0:e.margin)},c=G.useRef(null);G.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const h=b=>{r||o(!0)},d=()=>{o(!1)},f=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,children:m.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${po(l)}`;return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,onClick:h,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:p}})}const J0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),X0=$().regex(/^rgba?\([^\)]+\)$/i),Q0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ex=ae("transparent"),tx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),nx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),rx=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Or=H([J0,X0,Q0,ex]).nullable().optional(),ox=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ax=A({color:Or,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function ix(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 lx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${ix(t)}`}}const sx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,cx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ux(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 dx(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const hx=A({style:A({padding:tx,margin:nx,backgroundColor:Or.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthUnitTablet:T(["px","%"]).optional().nullable(),widthUnitMobile:T(["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:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),borderRadius:rx,borderColor:Or.default(null),borderWidth:ox,boxShadow:ax,iconName:$().optional().nullable(),iconFillColor:Or.default(null),rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:yt,lazyLoad:fi}).optional().nullable()}),Ge={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,lazyLoad:!0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let fx=0;function px({style:e,props:t}){const n=G.useMemo(()=>`ahd-img-${++fx}`,[]),r=gi(),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s={padding:sx(e==null?void 0:e.padding),margin:cx(e==null?void 0:e.margin),...ux(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:a,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},u=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:Ge.showLink),c=(t==null?void 0:t.linkHref)??Ge.linkHref,h=u&&c?c:null,d=(t==null?void 0:t.linkTarget)??Ge.linkTarget,f=(t==null?void 0:t.widthType)??Ge.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??Ge.width,w=(t==null?void 0:t.widthUnit)??Ge.widthUnit,k=(t==null?void 0:t.widthUnitTablet)??w,S=(t==null?void 0:t.widthUnitMobile)??k,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??Ge.height,R=(t==null?void 0:t.heightTablet)??null,E=(t==null?void 0:t.heightMobile)??null,L=R??I,M=E??L,P=I,B=(t==null?void 0:t.url)??Ge.url,F=ar((t==null?void 0:t.lazyLoad)??Ge.lazyLoad),W=(t==null?void 0:t.urlTablet)??null,D=(t==null?void 0:t.urlMobile)??null,U=!h&&((t==null?void 0:t.decorative)??Ge.decorative),J=U?"":(t==null?void 0:t.alt)??Ge.alt,Q=U?{role:"presentation","aria-hidden":!0}:{},X=(t==null?void 0:t.contentAlignment)??Ge.contentAlignment,ee=(t==null?void 0:t.borderRadius)??Ge.borderRadius,ge=ie((t==null?void 0:t.borderColor)??Ge.borderColor),$e=(t==null?void 0:t.borderWidth)??Ge.borderWidth,ke=(t==null?void 0:t.boxShadow)??Ge.boxShadow,Le=lx(ke),K=(t==null?void 0:t.rotation)??Ge.rotation,q=(t==null?void 0:t.rotationTablet)??null,V=(t==null?void 0:t.rotationMobile)??null,j=q??K,Y=V??j,de=ne=>{const ye=ne*Math.PI/180,ze=ne%180!==0?1/(Math.abs(Math.cos(ye))+Math.abs(Math.sin(ye))):1;return`rotate(${ne}deg) scale(${ze})`},we=K,he=we?{transform:de(we),transformOrigin:"center"}:{},Ie=q!=null||V!=null?`
67
- ${Ct} { .${n} img, .${n} > div { transform: ${de(j)} !important; transform-origin: center !important; } }
68
- ${Xe} { .${n} img, .${n} > div { transform: ${de(Y)} !important; transform-origin: center !important; } }
69
- `.trim():null,le=dx(ge,$e),Te=ne=>typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`,De=(ne,ye)=>{const ze=Math.max((ye==null?void 0:ye.top)||0,(ye==null?void 0:ye.right)||0,(ye==null?void 0:ye.bottom)||0,(ye==null?void 0:ye.left)||0);if(typeof ne=="number")return`${Math.max(0,ne-ze)}px`;const Et=Math.max(0,(ne.topLeft||0)-ze),ce=Math.max(0,(ne.topRight||0)-ze),be=Math.max(0,(ne.bottomRight||0)-ze),Ke=Math.max(0,(ne.bottomLeft||0)-ze);return`${Et}px ${ce}px ${be}px ${Ke}px`},_e=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),te=f==="fixed"&&typeof x=="number"&&x>0&&x<=48&&(w??"px")==="px"?{filter:"var(--pp-icon-filter, none)"}:{},We=ne=>ne==="mobile"?b:ne==="tablet"?p:f,Fe=ne=>ne==="mobile"?S:ne==="tablet"?k:w,se=ne=>{const ye=We(ne);if(ye==="fill")return"100%";if(ye==="fit")return"auto";const ze=ne==="mobile"?C:ne==="tablet"?y:x,Et=Fe(ne);return`${ze}${Et}`},It=se(r),je=Fe(r),tt=typeof It=="string"&&It.endsWith("%")?{display:"block",width:"100%",textAlign:o??"left"}:{},Qe=B,Rt=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
64
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(t===c[0]){a(c);continue}if(e.external){const f=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&f){a(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){a(c);continue}if(h.cycle){a(c);continue}if(h.count>1&&e.reused==="ref"){a(c);continue}}}function Lc(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){r(b);const w=e.seen.get(b),k=w.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(k.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){r(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const k in f)k==="$ref"||k==="allOf"||k in w.def&&JSON.stringify(f[k])===JSON.stringify(w.def[k])&&delete f[k]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,n.def??n.schema);const a=(u=e.metadataRegistry.get(t))==null?void 0:u.id;a!==void 0&&o.id===a&&delete o.id;const i=((c=e.external)==null?void 0:c.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ur(t,"input",e.processors),output:Ur(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Je(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Je(r.element,n);if(r.type==="set")return Je(r.valueType,n);if(r.type==="lazy")return Je(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Je(r.innerType,n);if(r.type==="intersection")return Je(r.left,n)||Je(r.right,n);if(r.type==="record"||r.type==="map")return Je(r.keyType,n)||Je(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Je(r.in,n)||Je(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Je(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Je(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Je(o,n))return!0;return!!(r.rest&&Je(r.rest,n))}return!1}const Wp=(e,t={})=>n=>{const r=Mc({...n,processors:t});return Ee(e,r),Pc(r,e),Lc(r,e)},Ur=(e,t,n={})=>r=>{const{libraryOptions:o,target:a}=r??{},i=Mc({...o??{},target:a,io:t,processors:n});return Ee(e,i),Pc(i,e),Lc(i,e)},Up={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Zp=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:a,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(o.minLength=a),typeof i=="number"&&(o.maxLength=i),l&&(o.format=Up[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},qp=(e,t,n,r)=>{const o=n,{minimum:a,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const h=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof a=="number"&&(o.minimum=a),d?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof s=="number"&&(o.multipleOf=s)},Vp=(e,t,n,r)=>{n.type="boolean"},Yp=(e,t,n,r)=>{n.not={}},Kp=(e,t,n,r)=>{},Jp=(e,t,n,r)=>{},Xp=(e,t,n,r)=>{const o=e._zod.def,a=dc(o.entries);a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),n.enum=a},Qp=(e,t,n,r)=>{const o=e._zod.def,a=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){const i=a[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),a.every(i=>typeof i=="boolean")&&(n.type="boolean"),a.every(i=>i===null)&&(n.type="null"),n.enum=a},eg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},tg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ng=(e,t,n,r)=>{const o=n,a=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=Ee(a.element,t,{...r,path:[...r.path,"items"]})},rg=(e,t,n,r)=>{var u;const o=n,a=e._zod.def;o.type="object",o.properties={};const i=a.shape;for(const c in i)o.properties[c]=Ee(i[c],t,{...r,path:[...r.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const h=a.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((u=a.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:a.catchall?a.catchall&&(o.additionalProperties=Ee(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},og=(e,t,n,r)=>{const o=e._zod.def,a=o.inclusive===!1,i=o.options.map((l,s)=>Ee(l,t,{...r,path:[...r.path,a?"oneOf":"anyOf",s]}));a?n.oneOf=i:n.anyOf=i},ag=(e,t,n,r)=>{const o=e._zod.def,a=Ee(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Ee(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(a)?a.allOf:[a],...l(i)?i.allOf:[i]];n.allOf=s},ig=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=a.items.map((d,f)=>Ee(d,t,{...r,path:[...r.path,i,f]})),u=a.rest?Ee(a.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:s},u&&o.items.anyOf.push(u),o.minItems=s.length,u||(o.maxItems=s.length)):(o.items=s,u&&(o.additionalItems=u));const{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h)},lg=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="object";const i=a.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(a.mode==="loose"&&s&&s.size>0){const c=Ee(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const h of s)o.patternProperties[h.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Ee(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Ee(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(h=>typeof h=="string"||typeof h=="number");c.length>0&&(o.required=c)}},sg=(e,t,n,r)=>{const o=e._zod.def,a=Ee(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},cg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},ug=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},dg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},hg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},fg=(e,t,n,r)=>{const o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?a?o.out:o.in:o.out;Ee(i,t,r);const l=t.seen.get(e);l.ref=i},pg=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.readOnly=!0},Oc=(e,t,n,r)=>{const o=e._zod.def;Ee(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},gg=(e,t,n,r)=>{const o=e._zod.innerType;Ee(o,t,r);const a=t.seen.get(e);a.ref=o},mg=N("ZodISODateTime",(e,t)=>{uf.init(e,t),Ne.init(e,t)});function bg(e){return vp(mg,e)}const xg=N("ZodISODate",(e,t)=>{df.init(e,t),Ne.init(e,t)});function vg(e){return kp(xg,e)}const kg=N("ZodISOTime",(e,t)=>{hf.init(e,t),Ne.init(e,t)});function wg(e){return wp(kg,e)}const Sg=N("ZodISODuration",(e,t)=>{ff.init(e,t),Ne.init(e,t)});function $g(e){return Sp(Sg,e)}const _g=(e,t)=>{gc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>th(e,n)},flatten:{value:n=>eh(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,da,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,da,2)}},isEmpty:{get(){return e.issues.length===0}}})},at=N("ZodError",_g,{Parent:Error}),Cg=ui(at),Ag=di(at),yg=co(at),Ig=uo(at),Rg=oh(at),Tg=ah(at),Eg=ih(at),Ng=lh(at),Mg=sh(at),Pg=ch(at),Lg=uh(at),Og=dh(at),xl=new WeakMap;function or(e,t,n){const r=Object.getPrototypeOf(e);let o=xl.get(r);if(o||(o=new Set,xl.set(r,o)),!o.has(t)){o.add(t);for(const a in n){const i=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const Ce=N("ZodType",(e,t)=>(Se.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ur(e,"input"),output:Ur(e,"output")}}),e.toJSONSchema=Wp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Cg(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>yg(e,n,r),e.parseAsync=async(n,r)=>Ag(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Ig(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Rg(e,n,r),e.decode=(n,r)=>Tg(e,n,r),e.encodeAsync=async(n,r)=>Eg(e,n,r),e.decodeAsync=async(n,r)=>Ng(e,n,r),e.safeEncode=(n,r)=>Mg(e,n,r),e.safeDecode=(n,r)=>Pg(e,n,r),e.safeEncodeAsync=async(n,r)=>Lg(e,n,r),e.safeDecodeAsync=async(n,r)=>Og(e,n,r),or(e,"ZodType",{check(...n){const r=this.def;return this.clone(Ut(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Zt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Nm(n,r))},superRefine(n,r){return this.check(Mm(n,r))},overwrite(n){return this.check(Tn(n))},optional(){return $l(this)},exactOptional(){return bm(this)},nullable(){return _l(this)},nullish(){return $l(_l(this))},nonoptional(n){return $m(this,n)},array(){return oe(this)},or(n){return H([this,n])},and(n){return hm(this,n)},transform(n){return Cl(this,Fc(n))},default(n){return km(this,n)},prefault(n){return Sm(this,n)},catch(n){return Cm(this,n)},pipe(n){return Cl(this,n)},readonly(){return Im(this)},describe(n){const r=this.clone();return Hn.add(r,{description:n}),r},meta(...n){if(n.length===0)return Hn.get(this);const r=this.clone();return Hn.add(r,n[0]),r},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=Hn.get(e))==null?void 0:n.description},configurable:!0}),e)),zc=N("_ZodString",(e,t)=>{hi.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Zp(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,or(e,"_ZodString",{regex(...r){return this.check(Rp(...r))},includes(...r){return this.check(Np(...r))},startsWith(...r){return this.check(Mp(...r))},endsWith(...r){return this.check(Pp(...r))},min(...r){return this.check(Wr(...r))},max(...r){return this.check(Ec(...r))},length(...r){return this.check(Nc(...r))},nonempty(...r){return this.check(Wr(1,...r))},lowercase(r){return this.check(Tp(r))},uppercase(r){return this.check(Ep(r))},trim(){return this.check(Op())},normalize(...r){return this.check(Lp(...r))},toLowerCase(){return this.check(zp())},toUpperCase(){return this.check(jp())},slugify(){return this.check(Bp())}})}),zg=N("ZodString",(e,t)=>{hi.init(e,t),zc.init(e,t),e.email=n=>e.check(Xf(jg,n)),e.url=n=>e.check(rp(Bg,n)),e.jwt=n=>e.check(xp(em,n)),e.emoji=n=>e.check(op(Dg,n)),e.guid=n=>e.check(pl(vl,n)),e.uuid=n=>e.check(Qf(xr,n)),e.uuidv4=n=>e.check(ep(xr,n)),e.uuidv6=n=>e.check(tp(xr,n)),e.uuidv7=n=>e.check(np(xr,n)),e.nanoid=n=>e.check(ap(Fg,n)),e.guid=n=>e.check(pl(vl,n)),e.cuid=n=>e.check(ip(Hg,n)),e.cuid2=n=>e.check(lp(Gg,n)),e.ulid=n=>e.check(sp(Wg,n)),e.base64=n=>e.check(gp(Jg,n)),e.base64url=n=>e.check(mp(Xg,n)),e.xid=n=>e.check(cp(Ug,n)),e.ksuid=n=>e.check(up(Zg,n)),e.ipv4=n=>e.check(dp(qg,n)),e.ipv6=n=>e.check(hp(Vg,n)),e.cidrv4=n=>e.check(fp(Yg,n)),e.cidrv6=n=>e.check(pp(Kg,n)),e.e164=n=>e.check(bp(Qg,n)),e.datetime=n=>e.check(bg(n)),e.date=n=>e.check(vg(n)),e.time=n=>e.check(wg(n)),e.duration=n=>e.check($g(n))});function $(e){return Jf(zg,e)}const Ne=N("ZodStringFormat",(e,t)=>{Re.init(e,t),zc.init(e,t)}),jg=N("ZodEmail",(e,t)=>{ef.init(e,t),Ne.init(e,t)}),vl=N("ZodGUID",(e,t)=>{Xh.init(e,t),Ne.init(e,t)}),xr=N("ZodUUID",(e,t)=>{Qh.init(e,t),Ne.init(e,t)}),Bg=N("ZodURL",(e,t)=>{tf.init(e,t),Ne.init(e,t)}),Dg=N("ZodEmoji",(e,t)=>{nf.init(e,t),Ne.init(e,t)}),Fg=N("ZodNanoID",(e,t)=>{rf.init(e,t),Ne.init(e,t)}),Hg=N("ZodCUID",(e,t)=>{of.init(e,t),Ne.init(e,t)}),Gg=N("ZodCUID2",(e,t)=>{af.init(e,t),Ne.init(e,t)}),Wg=N("ZodULID",(e,t)=>{lf.init(e,t),Ne.init(e,t)}),Ug=N("ZodXID",(e,t)=>{sf.init(e,t),Ne.init(e,t)}),Zg=N("ZodKSUID",(e,t)=>{cf.init(e,t),Ne.init(e,t)}),qg=N("ZodIPv4",(e,t)=>{pf.init(e,t),Ne.init(e,t)}),Vg=N("ZodIPv6",(e,t)=>{gf.init(e,t),Ne.init(e,t)}),Yg=N("ZodCIDRv4",(e,t)=>{mf.init(e,t),Ne.init(e,t)}),Kg=N("ZodCIDRv6",(e,t)=>{bf.init(e,t),Ne.init(e,t)}),Jg=N("ZodBase64",(e,t)=>{xf.init(e,t),Ne.init(e,t)}),Xg=N("ZodBase64URL",(e,t)=>{kf.init(e,t),Ne.init(e,t)}),Qg=N("ZodE164",(e,t)=>{wf.init(e,t),Ne.init(e,t)}),em=N("ZodJWT",(e,t)=>{$f.init(e,t),Ne.init(e,t)}),jc=N("ZodNumber",(e,t)=>{Cc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(r,o,a)=>qp(e,r,o),or(e,"ZodNumber",{gt(r,o){return this.check(ml(r,o))},gte(r,o){return this.check($o(r,o))},min(r,o){return this.check($o(r,o))},lt(r,o){return this.check(gl(r,o))},lte(r,o){return this.check(So(r,o))},max(r,o){return this.check(So(r,o))},int(r){return this.check(kl(r))},safe(r){return this.check(kl(r))},positive(r){return this.check(ml(0,r))},nonnegative(r){return this.check($o(0,r))},negative(r){return this.check(gl(0,r))},nonpositive(r){return this.check(So(0,r))},multipleOf(r,o){return this.check(bl(r,o))},step(r,o){return this.check(bl(r,o))},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 $p(jc,e)}const tm=N("ZodNumberFormat",(e,t)=>{_f.init(e,t),jc.init(e,t)});function kl(e){return _p(tm,e)}const nm=N("ZodBoolean",(e,t)=>{Cf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vp(e,n,r)});function O(e){return Cp(nm,e)}const rm=N("ZodAny",(e,t)=>{Af.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp()});function Jn(){return Ap(rm)}const om=N("ZodUnknown",(e,t)=>{yf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp()});function wl(){return yp(om)}const am=N("ZodNever",(e,t)=>{If.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r)});function im(e){return Ip(am,e)}const lm=N("ZodArray",(e,t)=>{Rf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ng(e,n,r,o),e.element=t.element,or(e,"ZodArray",{min(n,r){return this.check(Wr(n,r))},nonempty(n){return this.check(Wr(1,n))},max(n,r){return this.check(Ec(n,r))},length(n,r){return this.check(Nc(n,r))},unwrap(){return this.element}})});function oe(e,t){return Dp(lm,e,t)}const sm=N("ZodObject",(e,t)=>{Ef.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rg(e,n,r,o),pe(e,"shape",()=>t.shape),or(e,"ZodObject",{keyof(){return T(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:wl()})},loose(){return this.clone({...this._zod.def,catchall:wl()})},strict(){return this.clone({...this._zod.def,catchall:im()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Vd(this,n)},safeExtend(n){return Yd(this,n)},merge(n){return Kd(this,n)},pick(n){return Zd(this,n)},omit(n){return qd(this,n)},partial(...n){return Jd(Hc,this,n[0])},required(...n){return Xd(Gc,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...W(t)};return new sm(n)}const Bc=N("ZodUnion",(e,t)=>{Ic.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>og(e,n,r,o),e.options=t.options});function H(e,t){return new Bc({type:"union",options:e,...W(t)})}const cm=N("ZodDiscriminatedUnion",(e,t)=>{Bc.init(e,t),Nf.init(e,t)});function um(e,t,n){return new cm({type:"union",options:t,discriminator:e,...W(n)})}const dm=N("ZodIntersection",(e,t)=>{Mf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ag(e,n,r,o)});function hm(e,t){return new dm({type:"intersection",left:e,right:t})}const fm=N("ZodTuple",(e,t)=>{Pf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ig(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Dc(e,t,n){const r=t instanceof Se,o=r?n:t,a=r?t:null;return new fm({type:"tuple",items:e,rest:a,...W(o)})}const Sl=N("ZodRecord",(e,t)=>{Lf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lg(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function yn(e,t,n){return!t||!t._zod?new Sl({type:"record",keyType:$(),valueType:e,...W(t)}):new Sl({type:"record",keyType:e,valueType:t,...W(n)})}const fa=N("ZodEnum",(e,t)=>{Of.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Xp(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(n.has(i))a[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new fa({...t,checks:[],...W(o),entries:a})},e.exclude=(r,o)=>{const a={...t.entries};for(const i of r)if(n.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new fa({...t,checks:[],...W(o),entries:a})}});function T(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new fa({type:"enum",entries:n,...W(t)})}const pm=N("ZodLiteral",(e,t)=>{zf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ae(e,t){return new pm({type:"literal",values:Array.isArray(e)?e:[e],...W(t)})}const gm=N("ZodTransform",(e,t)=>{jf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tg(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new uc(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Kn(a,n.value,t));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Kn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function Fc(e){return new gm({type:"transform",transform:e})}const Hc=N("ZodOptional",(e,t)=>{Rc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Oc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function $l(e){return new Hc({type:"optional",innerType:e})}const mm=N("ZodExactOptional",(e,t)=>{Bf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Oc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function bm(e){return new mm({type:"optional",innerType:e})}const xm=N("ZodNullable",(e,t)=>{Df.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function _l(e){return new xm({type:"nullable",innerType:e})}const vm=N("ZodDefault",(e,t)=>{Ff.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ug(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function km(e,t){return new vm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():fc(t)}})}const wm=N("ZodPrefault",(e,t)=>{Hf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>dg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Sm(e,t){return new wm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():fc(t)}})}const Gc=N("ZodNonOptional",(e,t)=>{Gf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function $m(e,t){return new Gc({type:"nonoptional",innerType:e,...W(t)})}const _m=N("ZodCatch",(e,t)=>{Wf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Cm(e,t){return new _m({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Wc=N("ZodPipe",(e,t)=>{Tc.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fg(e,n,r,o),e.in=t.in,e.out=t.out});function Cl(e,t){return new Wc({type:"pipe",in:e,out:t})}const Am=N("ZodPreprocess",(e,t)=>{Wc.init(e,t),Uf.init(e,t)}),ym=N("ZodReadonly",(e,t)=>{Zf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Im(e){return new ym({type:"readonly",innerType:e})}const Rm=N("ZodLazy",(e,t)=>{qf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gg(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function Tm(e){return new Rm({type:"lazy",getter:e})}const Em=N("ZodCustom",(e,t)=>{Vf.init(e,t),Ce.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eg(e,n)});function Nm(e,t={}){return Fp(Em,e,t)}function Mm(e,t){return Hp(e,t)}function Uc(e,t){return new Am({type:"pipe",in:Fc(e),out:t})}var Pm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Lm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Al=A({style:A({textAlign:T(["left","center","right"]).optional().nullable(),padding:Pm}).optional().nullable(),props:A({size:g().gt(0).optional().nullable(),shape:T(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Om(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var vr={size:64,imageUrl:"",alt:"",shape:"square"};function zm({style:e,props:t}){var n,r,o,a,i;const l=(n=t==null?void 0:t.size)!=null?n:vr.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:vr.imageUrl,u=(o=t==null?void 0:t.alt)!=null?o:vr.alt,c=(a=t==null?void 0:t.shape)!=null?a:vr.shape,h={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:Lm(e==null?void 0:e.padding)};return G.createElement("div",{style:h},G.createElement("img",{alt:u,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:Om(c,l)}}))}const fi=O().optional().nullable(),ar=e=>e===!1?{loading:"eager",decoding:"auto"}:{loading:"lazy",decoding:"async"};function Zc(e,t){var r;if(!G.isValidElement(e))return e;const n=e;return n.type==="img"?G.cloneElement(n,ar(t)):((r=n.props)==null?void 0:r.children)===void 0?n:G.cloneElement(n,{children:G.Children.map(n.props.children,o=>Zc(o,t))})}function yl(e){var t;return m.jsx(m.Fragment,{children:Zc(zm(e),(t=e==null?void 0:e.props)==null?void 0:t.lazyLoad)})}const jm=A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),Bm=$().regex(/^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})|rgba?\([^\)]+\))$/i),yt=A({enabled:O(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable(),borderColor:Bm.optional().nullable(),borderWidth:g().min(0).max(20).optional().nullable(),borderStyle:T(["solid","dashed","dotted"]).optional().nullable(),textDecoration:T(["none","underline","overline","line-through"]).optional().nullable()}).optional().nullable(),kr=(e,t,n)=>{const r=`.${e}:hover${t}`;return n?`${r}, .container-block:hover:not(:has(.container-block .${e})) .${e}${t}`:r};function jt(e,t,{themedBorderColor:n,scaleTarget:r="",borderTarget:o="",scaleFromContainer:a=!1,borderFromContainer:i=!1,defaultScale:l=1.05,scaleBaseCss:s=""}={}){if(!(t!=null&&t.enabled)||!e)return null;const u=`${t.duration??500}ms ${t.easing??"ease-in-out"}`,c=`transition: transform ${u}, outline-color ${u};`,h=[],d=t.scale??l;d>1&&(h.push(`.${e}${r} { ${s} ${c} }`),h.push(`${kr(e,r,a)} { transform: scale(${d}); }`));const f=t.borderWidth??1;if(t.borderColor&&n&&f>0&&(h.push(`.${e}${o} { outline: ${f}px ${t.borderStyle??"solid"} transparent !important; outline-offset: -${f}px; ${c} }`),h.push(`${kr(e,o,i)} { outline-color: ${n} !important; }`)),t.textDecoration&&t.textDecoration!=="none"){const p=`${kr(e,"",!0)}, ${kr(e," *",!0)}`;h.push(`${p} { text-decoration: ${t.textDecoration} !important; }`)}return h.join(`
65
+ `)||null}const Dm=Al.extend({props:Al.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),hoverEffect:yt,lazyLoad:fi,animation:jm}).optional().nullable()});function Wt(e){if(!e)return"";let t=String(e).trim().toLowerCase().replace(/\s+/g,"");const n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(t);return n&&(t=`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`),t}const re=(e,t=[],n)=>({role:e,seeds:t.map(Wt),nullFallback:n}),Zr={pageText:re("text",[],"#262626"),containerFill:re("surface",[],"#ffffff"),layoutText:re("text",["#262626","#1f2937"],"#262626"),canvas:re("surface",["#ffffff"]),closeIcon:re("text",["#000000","#262626"],"#262626"),brandingText:re("text-muted",[],"#8a8a8a"),blockText:re("text",["#262626"]),listText:re("text"),link:re("link",[],"#2563eb"),codeBg:re("surface-alt",[],"#f3f4f6"),quoteBorder:re("text-muted",[],"#9ca3af"),divider:re("border",["#cccccc","#333333"],"#cccccc"),tableText:re("text",["#262626"]),tableBorder:re("border",["#e5e7eb"]),tableHeaderBg:re("surface-alt",["#f3f4f6"]),tableHeaderText:re("text-strong",["#111827"]),tableStripe:re("surface-alt",["#f8f6f6"]),track:re("track",["#e5e7eb"]),trackText:re("text",["#262626"]),timerText:re("text",[],"#1f1f1f"),timerLabel:re("text-muted",[],"#6b7280"),timerTrack:re("track",[],"#e5e7eb"),breadcrumbText:re("text-muted",["#595959"]),menuText:re("text",["#000000"],"#000000"),menuSurface:re("surface",[],"#ffffff"),carouselArrow:re("text",[],"#262626"),carouselArrowBg:re("surface",[],"#ffffff"),carouselArrowBorder:re("border-subtle",[],"rgba(0,0,0,.12)"),carouselDot:re("track",[],"#d4d4d4"),carouselDotActive:re("text",[],"#262626"),paginationBg:re("surface",["#ffffff"],"#ffffff"),paginationText:re("text",["#262626"],"#262626"),paginationBorder:re("border-subtle",["rgba(0,0,0,.12)"],"rgba(0,0,0,.12)"),surface:re("surface",[],"#ffffff"),surfaceLiteral:re("surface"),bgAdaptive:re("surface"),buttonText:re("text"),borderAdaptive:re("border"),borderSubtle:re("border-subtle",[],"rgba(0,0,0,.12)"),surfaceAlt:re("surface-alt"),tabsRing:re("border",[],"#d0d5dd")},qc=e=>/gradient\(|url\(/i.test(e);function qr(e){const t=Wt(e);let n=/^#([0-9a-f]{6})([0-9a-f]{2})?$/.exec(t);if(n){const r=parseInt(n[1],16);return{r:r>>16&255,g:r>>8&255,b:r&255,a:n[2]?parseInt(n[2],16)/255:1}}return n=/^rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(?:,([\d.]+))?\)$/.exec(t),n?{r:+n[1],g:+n[2],b:+n[3],a:n[4]!==void 0?+n[4]:1}:null}function Il({r:e,g:t,b:n}){const r=o=>{const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function Fm({r:e,g:t,b:n}){const r=e/255,o=t/255,a=n/255,i=Math.max(r,o,a),l=Math.min(r,o,a),s=(i+l)/2,u=i-l;if(u===0)return{h:0,s:0,l:s};const c=u/(1-Math.abs(2*s-1));return{h:((i===r?(o-a)/u%6:i===o?(a-r)/u+2:(r-o)/u+4)*60+360)%360,s:c,l:s}}function _o(e,t,n,r){const o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(e/60%2-1)),i=n-o/2,[l,s,u]=e<60?[o,a,0]:e<120?[a,o,0]:e<180?[0,o,a]:e<240?[0,a,o]:e<300?[a,0,o]:[o,0,a],c=h=>Math.round((h+i)*255).toString(16).padStart(2,"0");return`#${c(l)}${c(s)}${c(u)}${r<1?Math.round(r*255).toString(16).padStart(2,"0"):""}`}function fo(e,t){const n=qr(e);if(!n||n.a===0)return null;const{h:r,s:o,l:a}=Fm(n);if(t==="text"){if(Il(n)>=.2)return null;let i=a,l=_o(r,o,i,n.a);const s=o<.1?.75:.4;for(;i<.97&&Il(qr(l))<s;)i=Math.min(.97,i+.02),l=_o(r,o,i,n.a);return l}return a<=.82?null:_o(r,o*.5,Math.min(.18,Math.max(.07,1-a)),n.a)}const Vc=["text","text-strong","text-muted","link"],Yc=["surface","surface-alt","track"],Hm=e=>Vc.includes(e)?"text":Yc.includes(e)?"bg":null;function Gm(e){if(!e||!e.trim()||/^(transparent|none)$/i.test(e.trim()))return!0;const t=qr(e);return!!t&&t.a===0}function Kc(e){return!!e&&!qc(e)&&fo(e,"bg")!==null}const Wm={text:["text","text-strong","text-muted","link"],bg:["surface","surface-alt","track"],border:["border","border-subtle","surface","surface-alt","track"]};let Co=null;function Um(){if(Co)return Co;const e=new Map;return Object.values(Zr).forEach(t=>{e.has(t.role)||e.set(t.role,new Set),t.seeds.forEach(n=>e.get(t.role).add(n)),t.nullFallback&&e.get(t.role).add(Wt(t.nullFallback))}),Co=e,e}function Zm(e,t){var r;const n=Um();for(const o of Wm[t])if((r=n.get(o))!=null&&r.has(e))return o;return null}const Jc=e=>Vc.includes(e)?"text":Yc.includes(e)?"bg":"border",Ao=/(?:repeating-)?(?:linear|radial|conic)-gradient\(/gi,qm=/^(to\s|[-+]?[\d.]+(?:deg|grad|rad|turn)\b|circle\b|ellipse\b|closest-|farthest-|at\s|from\s|in\s)/i;function Xc(e,t){let n=0;for(let r=t;r<e.length;r+=1)if(e[r]==="(")n+=1;else if(e[r]===")"&&(n-=1,n===0))return r;return-1}function Vm(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o+=1)e[o]==="("?n+=1:e[o]===")"?n-=1:e[o]===","&&n===0&&(t.push(e.slice(r,o)),r=o+1);return t.push(e.slice(r)),t}function Ym(e,t,n){const r=/^\s*/.exec(e)[0],o=e.slice(r.length);if(!o||qm.test(o))return e;let a="";const i=/^#[0-9a-fA-F]{3,8}(?![0-9a-zA-Z])/.exec(o);if(i)a=i[0];else if(/^rgba?\(/i.test(o)){const c=Xc(o,o.indexOf("("));c>0&&(a=o.slice(0,c+1))}if(!a)return/^(transparent)\b/i.test(o)||(n.literal+=1),e;const l=qr(a),s=Zm(Wt(a),t);if(s)return n.adapted+=1,`${r}var(--pp-g-${s},${a})${o.slice(a.length)}`;const u=t==="border"?null:fo(a,t);return u?(n.adapted+=1,`${r}light-dark(${a},${u})${o.slice(a.length)}`):((!l||l.a>0)&&(n.literal+=1),e)}function Qc(e,t,n){let r="",o=0;Ao.lastIndex=0;let a;for(;(a=Ao.exec(e))!==null;){const i=a.index+a[0].length-1,l=Xc(e,i);if(l<0)break;const s=e.slice(i+1,l),u=Vm(s).map(c=>Ym(c,t,n)).join(",");r+=e.slice(o,i+1)+u,o=l,Ao.lastIndex=l+1}return r+e.slice(o)}function Km(e,t="bg"){const n={adapted:0,literal:0},r=Qc(e,t,n);return n.adapted?r:e}function Jm(e,t="bg"){const n={adapted:0,literal:0};return Qc(e,t,n),n.adapted>0&&n.literal===0}function z(e,t){const n=typeof t=="string"?Zr[t]:t;if(e==null||e==="")return n.nullFallback?`var(--pp-${n.role},${n.nullFallback})`:void 0;if(qc(e))return/gradient\(/i.test(e)?Km(e,Jc(n.role)):e;if(n.seeds.includes(Wt(e)))return`var(--pp-${n.role},${e})`;const r=Hm(n.role),o=r?fo(e,r):null;return o?`light-dark(${e},${o})`:e}const Xm=/^(transparent|none|inherit|initial|unset|currentcolor)$/i;function ue(e,t,n){const r=(e??"").trim();if(n&&!t&&Zr[n].seeds.includes(Wt(r)))return{};if(n&&!t&&Kc(r))return{};if(n&&!t&&/gradient\(/i.test(r)&&Jm(r,Jc(Zr[n].role)))return{};const o=!!r&&!Xm.test(Wt(r))&&!/^rgba?\(.*,\s*0\)$/i.test(Wt(r)),a=!!t&&t.trim()!==""&&t.trim()!=="none";return o||a?{"data-pp-surface":"fixed"}:{}}function ie(e){return e??void 0}function pi(){return e=>e??void 0}const Rl=e=>{const t=fo(e.trim(),"text");return t?`light-dark(${e.trim()},${t})`:null},Qm=/<font\b([^>]*)>/gi,Tl=/\scolor\s*=\s*(?:"([^"]*)"|'([^']*)')/i,El=/\sstyle\s*=\s*(?:"([^"]*)"|'([^']*)')/i,eb=/(\sstyle\s*=\s*)(?:"([^"]*)"|'([^']*)')/gi,tb=/(^|[;\s])color\s*:\s*([^;]+?)(\s*!important)?\s*(?=;|$)/gi;function nb(e){if(!e||!/color/i.test(e))return e;let t=e.replace(Qm,(n,r)=>{const o=Tl.exec(r);if(!o)return n;const a=Rl(o[1]??o[2]??"");if(!a)return n;const i=r.replace(Tl,""),l=El.exec(i);if(l){const s=l[1]??l[2]??"";return`<font${i.replace(El,` style="color:${a};${s}"`)}>`}return`<font${i} style="color:${a}">`});return t=t.replace(eb,(n,r,o,a)=>{const i=o!==void 0?'"':"'",l=o??a??"";if(!/color/i.test(l))return n;const s=l.replace(tb,(u,c,h,d)=>{const f=Rl(h);return f?`${c}color:${f}${d??""}`:u});return s===l?n:`${r}${i}${s}${i}`}),t}function eu(e){return nb(e)}const Mr="--pp-text:#e6e6e6;--pp-text-strong:#f5f5f5;--pp-text-muted:#a3a3a3;--pp-link:#7aa7ff;--pp-surface:#121212;--pp-surface-alt:#1e1e1e;--pp-track:#2e2e2e;--pp-border:#3a3a3a;--pp-border-subtle:rgba(255,255,255,.12);--pp-icon-filter:invert(1) hue-rotate(180deg);--pp-scheme:dark",Gn="--pp-text:initial;--pp-text-strong:initial;--pp-text-muted:initial;--pp-link:initial;--pp-surface:initial;--pp-surface-alt:initial;--pp-track:initial;--pp-border:initial;--pp-border-subtle:initial;--pp-icon-filter:initial;--pp-scheme:light",tu=e=>e.replace(/--pp-scheme:[a-z]+/,"").replace(/--pp-icon-filter:[^;]+;/,"").replace(/--pp-/g,"--pp-g-"),yo=tu(Mr),wr=tu(Gn),Nl=e=>`[data-theme=${e}],[data-bs-theme=${e}],[data-mui-color-scheme=${e}],[data-color-mode=${e}]`,rb=`:where(html.dark,body.dark){${Mr};${yo}}:where(html.light,body.light){${Gn};${wr}}:where(html,body):where(${Nl("dark")}){${Mr};${yo}}:where(html,body):where(${Nl("light")}){${Gn};${wr}}:where([data-pp-surface=fixed]>*){${wr}}:where([data-pp-theme=dark]){${Mr};${yo}}:where([data-pp-theme=light]){${Gn};${wr}}:where([data-pp-surface=fixed]){${Gn};color:#262626}:where([data-ahd-tpl-root],[data-pp-scope],[data-pp-theme],[data-pp-surface=fixed]){color-scheme:var(--pp-scheme,light)}`;let ob=0;function ab({hoverEffect:e,children:t}){const n=G.useMemo(()=>`ahd-hv-wrap-${++ob}`,[]),r=jt(n,e,{themedBorderColor:z(e==null?void 0:e.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0});return r?m.jsxs("div",{className:n,style:{display:"contents"},children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),t]}):m.jsx(m.Fragment,{children:t})}const Un={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},ir=Object.values(Un);let nu=null;function Ml(e){nu=e}function ib(){return nu}function gi(){return"desktop"}const Ue=1024,qe=640,Ct=`@media (max-width: ${Ue}px)`,Xe=`@media (max-width: ${qe}px)`,ln=`@media (min-width: ${qe+1}px) and (max-width: ${Ue}px)`,Ve=A({tablet:yn($(),Jn()).optional().nullable(),mobile:yn($(),Jn()).optional().nullable()}).optional().nullable(),lb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ub=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},db=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},fb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},pb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},gb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},bb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},xb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},vb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},kb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},wb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Sb=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},$b=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},_b=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:m.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function Cb(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return m.jsx(lb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return m.jsx(db,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return m.jsx(mb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return m.jsx(hb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return m.jsx(sb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return m.jsx(cb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return m.jsx(ub,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return m.jsx(fb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return m.jsx(pb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return m.jsx(gb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return m.jsx(vb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return m.jsx(wb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return m.jsx($b,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return m.jsx(bb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return m.jsx(kb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return m.jsx(Sb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return m.jsx(_b,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return m.jsx(xb,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const Ab=4,Bt=e=>({[e==="left"?"marginRight":"marginLeft"]:Ab,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),yb=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),Sr=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Xn="data-ahd-var",ru=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,Ib=/[&<>"']/g,Rb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function $n(e){return e.replace(Ib,t=>Rb[t])}function po(e){return!e||e.indexOf("{{")===-1?e:e.replace(ru,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Xn}="${a}">{{${o}}}</span>`})}function mi(e){return!e||e.indexOf("{{")===-1?e:$n(e).replace(ru,(t,n,r,o)=>{if(n)return n;const a=$n(o);return`<span ${Xn}="${a}">{{${o}}}</span>`})}const Tb=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function Eb(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const r=new URLSearchParams(n||"");return e.replace(Tb,(o,a)=>{const i=r.get(a);return i!==null?encodeURIComponent(i):o})}function Nb(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),r=e.querySelectorAll(`[${Xn}]`);for(let o=0;o<r.length;o++){const a=r[o],i=n.get(a.getAttribute(Xn)||"");i!==null&&(a.textContent=i)}}const pa="data-ahd-date",ou="data-ahd-date-format";function ga(e,t){const n=$n(e),r=t??"",o=$n(r),a=au(r)||`{{${n}}}`;return`<span ${Xn}="${n}" ${pa}="${o}" ${ou}="relative">${$n(a)}</span>`}function au(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const r=864e5,o=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),a=Math.round((o(n)-o(t))/r);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function Mb(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${pa}][${ou}="relative"]`);for(let r=0;r<n.length;r++){const o=n[r],a=o.getAttribute(pa)||"",i=au(a,t);i&&(o.textContent=i)}}const Pb=T(["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 Io(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 Lb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ob=$().regex(/^rgba?\([^\)]+\)$/i),zb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),jb=ae("transparent"),Xt=H([Lb,Ob,zb,jb]).nullable().optional(),Bb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Db=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Fb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hb=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Gb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ub=A({color:Xt,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function Zb(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 qb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Zb(t)}`}}const Vb=A({style:A({backgroundColor:Xt,fontSize:g().min(0).optional().nullable(),fontFamily:Pb,fontWeight:T(["bold","normal",...ir]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),buttonTextAlign:T(["left","center","right"]).optional().nullable(),padding:Bb,margin:Db}).optional().nullable(),props:A({buttonBackground:Xt,hoverBackground:Xt,hoverTextColor:Xt,borderRadius:Hb,borderWidth:Fb,borderColor:Xt,boxShadow:Ub,buttonTextColor:Xt,fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:T(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:T(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:T(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:T(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:$().optional().nullable(),actionPayload:yn($(),Jn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:T(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),hoverEffect:yt,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:Ve});function Pl(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 Me={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function Yb({style:e,props:t}){var Ki;const r=`bh-${G.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??Me.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,i=(He,dt)=>a?m.jsx("span",{style:He,"data-action":dt,dangerouslySetInnerHTML:{__html:mi(o)}}):m.jsx("span",{style:He,"data-action":dt,children:o}),l=(t==null?void 0:t.url)??Me.url,s=Eb(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??Me.fullWidth,h=(t==null?void 0:t.widthType)??Me.widthType,d=(t==null?void 0:t.width)??Me.width,f=(t==null?void 0:t.widthUnit)??Me.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,k=(t==null?void 0:t.widthTypeTablet)??h,S=(t==null?void 0:t.widthTypeMobile)??k,v=(t==null?void 0:t.size)??Me.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??Me.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??Me.buttonBackground,L=Kc(E),M=!/gradient\(/i.test(R??"")&&(L||Gm(E)),P=M?z(R,"buttonText"):ie(R),B=L?z(E,"bgAdaptive"):ie(E),F=M?"currentColor":P,U=(t==null?void 0:t.iconEnabled)??Me.iconEnabled,K=(t==null?void 0:t.iconName)??Me.iconName,D=(t==null?void 0:t.iconAlignment)??Me.iconAlignment,J=(t==null?void 0:t.iconUrl)??null,q=!!(U&&(J||K)),Q=(t==null?void 0:t.ariaLabel)??null,ee=typeof o=="string"&&o.trim().length>0,de=Q&&Q.trim().length>0?Q:!ee&&U&&K?K:void 0,$e=(t==null?void 0:t.action)??Me.action,ke=(t==null?void 0:t.openInNewTab)??Me.openInNewTab,X=((t==null?void 0:t.customAction)??Me.customAction)||$e,Z=(t==null?void 0:t.actionPayload)??Me.actionPayload,V=(t==null?void 0:t.goToStep)??Me.goToStep,j=(t==null?void 0:t.postMessageEvent)??Me.postMessageEvent,Y=Z||(X==="goToStep"?{goToStep:V||""}:null)||(X==="postMessageEvent"?{postMessageEvent:j||""}:null),he=Y?JSON.stringify(Y):void 0,we=(t==null?void 0:t.borderRadius)??Me.borderRadius,fe=(t==null?void 0:t.borderWidth)??Me.borderWidth,me=(t==null?void 0:t.borderColor)??Me.borderColor,Ie=ie(me),le=(t==null?void 0:t.boxShadow)??Me.boxShadow,Te=qb(le),De=(t==null?void 0:t.hoverBackground)??null,Oe=(t==null?void 0:t.hoverTextColor)??null,_e=Pl(v),Ye=He=>typeof He=="number"?`${He}px`:`${He.topLeft}px ${He.topRight}px ${He.bottomRight}px ${He.bottomLeft}px`,te=(He,dt)=>{if(typeof He=="number")return`${Math.max(0,He-dt)}px`;const ko=Math.max(0,(He.topLeft||0)-dt),wo=Math.max(0,(He.topRight||0)-dt),dn=Math.max(0,(He.bottomRight||0)-dt),hn=Math.max(0,(He.bottomLeft||0)-dt);return`${ko}px ${wo}px ${dn}px ${hn}px`},We=me&&(me.includes("linear-gradient")||me.includes("radial-gradient")||me.includes("repeating-linear-gradient")),Fe=fe&&((fe.top??0)>0||(fe.right??0)>0||(fe.bottom??0)>0||(fe.left??0)>0),se={top:(fe==null?void 0:fe.top)??0,right:(fe==null?void 0:fe.right)??0,bottom:(fe==null?void 0:fe.bottom)??0,left:(fe==null?void 0:fe.left)??0},je=(()=>{if(c)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),tt=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",Qe=tt==="center"?"center":tt==="right"?"flex-end":"flex-start",Vt=()=>!me||me==="transparent"||!Fe?{border:"none"}:We?{borderTop:`${se.top}px solid transparent`,borderRight:`${se.right}px solid transparent`,borderBottom:`${se.bottom}px solid transparent`,borderLeft:`${se.left}px solid transparent`,borderImage:`${Ie} `,borderRadius:"0px"}:{borderTop:`${se.top}px solid ${Ie}`,borderRight:`${se.right}px solid ${Ie}`,borderBottom:`${se.bottom}px solid ${Ie}`,borderLeft:`${se.left}px solid ${Ie}`},Rt=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),xt=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),ct=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),Yt={backgroundColor:ct?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:ct?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Gb(e==null?void 0:e.padding),margin:Wb(e==null?void 0:e.margin)},vt=Vt(),nt={...xt?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},textDecoration:(e==null?void 0:e.textDecoration)??"none"},ut=Rt?void 0:B,Tt=Rt?B:void 0,ne=(e==null?void 0:e.fontSize)??16,ye=`${ne}px`,ze=()=>J?m.jsx("span",{"aria-hidden":"true",style:yb(J,ne,xt?"currentColor":F||"currentColor")}):Cb(K,{strokeColor:xt?void 0:F,fontSize:ne}),Et={fontSize:ye,fontFamily:Io(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Un.REGULAR,backgroundColor:ut,backgroundImage:Tt,borderRadius:We?"0px":Ye(we),...vt,...We&&Fe?{}:Te,display:je==="100%"?"block":"inline-block",width:je,padding:`${_e[0]}px ${_e[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:Qe,lineHeight:"normal"},ce=We&&Fe?m.jsx("div",{style:{display:je==="100%"?"block":"inline-block",padding:`${se.top}px ${se.right}px ${se.bottom}px ${se.left}px`,background:Ie,borderRadius:Ye(we),width:je,boxSizing:"border-box",...Te},children:m.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:te(we,Math.max(se.top,se.right,se.bottom,se.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Un.REGULAR,fontFamily:Io(e==null?void 0:e.fontFamily),backgroundImage:Tt,backgroundColor:ut,textAlign:tt,textDecoration:"none",fontSize:ye,padding:`${_e[0]}px ${_e[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Sr(Qe)},"data-action":X,"data-action-payload":he,"data-goto-step":X==="goToStep"&&V?V:void 0,"data-post-message-event":X==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":de,children:[q&&D==="left"?m.jsx("span",{style:Bt("left"),"data-action":X,children:ze()}):null,i({...nt,pointerEvents:"none"},X),q&&D==="right"?m.jsx("span",{style:Bt("right"),"data-action":X,children:ze()}):null]})}):m.jsxs("button",{style:{cursor:"pointer",...vt,...Te,borderRadius:Ye(we),width:je,fontWeight:(e==null?void 0:e.fontWeight)??Un.REGULAR,fontFamily:Io(e==null?void 0:e.fontFamily),backgroundColor:ut,backgroundImage:Tt,textAlign:tt,textDecoration:"none",fontSize:ye,padding:`${_e[0]}px ${_e[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Sr(Qe)},"data-action":X,"data-action-payload":he,"data-goto-step":X==="goToStep"&&V?V:void 0,"data-post-message-event":X==="postMessageEvent"&&j?j:void 0,type:"button","aria-label":de,children:[q&&D==="left"?m.jsx("span",{style:Bt("left"),"data-action":X,children:ze()}):null,i({...nt,pointerEvents:"none"},X),q&&D==="right"?m.jsx("span",{style:Bt("right"),"data-action":X,children:ze()}):null]}),be=!!De&&(De.includes("linear-gradient")||De.includes("radial-gradient")||De.includes("repeating-linear-gradient")),Ke=!!Oe&&(Oe.includes("linear-gradient")||Oe.includes("radial-gradient")||Oe.includes("repeating-linear-gradient")),rt=[];De&&(be?rt.push(`background-image: ${De} !important; background-color: transparent !important;`):rt.push(`background-color: ${De} !important; background-image: none !important;`)),Oe&&!Ke&&rt.push(`color: ${Oe} !important;`);const Nt=Oe?Ke?`background-image: ${Oe} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${Oe} !important; -webkit-text-fill-color: ${Oe} !important;`:"",Kt=rt.length>0||Nt?`#${r} a:hover, #${r} button:hover { ${rt.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${Nt} }`:null,qi=(He,dt,ko,wo)=>{const dn=[],hn=c||dt==="fill"?"100%":dt==="fixed"?`${ko}${f}`:"auto";dn.push(`width: ${hn} !important;`,"max-width: 100% !important;"),dn.push(`display: ${hn==="100%"?"block":"inline-block"} !important;`);const[Ji,Od]=Pl(wo);return dn.push(`padding: ${Ji}px ${Od}px !important;`),`${He} { #${r} a, #${r} button { ${dn.join(" ")} } #${r} > div { width: ${hn} !important; max-width: 100% !important; display: ${hn==="100%"?"block":"inline-block"} !important; } }`},Vi=k!==h||_!==v||k==="fixed"&&x!==d,Yi=S!==h||y!==v||S==="fixed"&&w!==d,pr=Vi||Yi?[Vi?qi(Ct,k,x,_):"",Yi?qi(Xe,S,w,y):""].filter(Boolean).join(`
66
+ `):null,gr=jt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((Ki=t==null?void 0:t.hoverEffect)==null?void 0:Ki.borderColor,"borderAdaptive"),scaleTarget:" :is(a, button)",borderTarget:" :is(a, button)",scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});if($e!=="link")return m.jsxs("div",{id:r,className:`button-block ${r}`,style:Yt,children:[Kt&&m.jsx("style",{children:Kt}),gr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:gr}}),pr&&m.jsx("style",{children:pr}),ce]});const Ld=We&&Fe?m.jsx("div",{style:{display:je==="100%"?"block":"inline-block",padding:`${se.top}px ${se.right}px ${se.bottom}px ${se.left}px`,background:Ie,borderRadius:Ye(we),width:je,boxSizing:"border-box",...Te},children:m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Et,border:"none",borderRadius:te(we,Math.max(se.top,se.right,se.bottom,se.left)),width:"100%",...Sr(Qe)},target:ke?"_blank":void 0,rel:ke?"noopener noreferrer":void 0,"aria-label":de,children:[q&&D==="left"?m.jsx("span",{style:Bt("left"),children:ze()}):null,i({...nt,pointerEvents:"none"}),q&&D==="right"?m.jsx("span",{style:Bt("right"),children:ze()}):null]})}):m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Et,borderRadius:Ye(we),...Sr(Qe)},target:ke?"_blank":void 0,rel:ke?"noopener noreferrer":void 0,"aria-label":de,children:[q&&D==="left"?m.jsx("span",{style:Bt("left"),children:ze()}):null,i({...nt,pointerEvents:"none"}),q&&D==="right"?m.jsx("span",{style:Bt("right"),children:ze()}):null]});return m.jsxs("div",{id:r,className:`button-block ${r}`,style:Yt,children:[Kt&&m.jsx("style",{children:Kt}),gr&&m.jsx("style",{dangerouslySetInnerHTML:{__html:gr}}),pr&&m.jsx("style",{children:pr}),Ld]})}const Kb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Jb=$().regex(/^rgba?\([^\)]+\)$/i),Xb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Qb=ae("transparent"),Ll=H([Kb,Jb,Xb,Qb]).nullable().optional(),e0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),t0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),n0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,r0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,o0=A({style:A({backgroundColor:Ll,padding:e0,margin:t0}).optional().nullable(),props:A({lineColor:Ll,lineHeight:g().optional().nullable()}).optional().nullable()}),Ol={lineHeight:1,lineColor:"#333333"};function a0({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??Ol.lineHeight,r=z((t==null?void 0:t.lineColor)??Ol.lineColor,"divider"),o={padding:n0(e==null?void 0:e.padding),margin:r0(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),"--ahd-divider-thickness":`${n}px`};return m.jsx("div",{className:"divider-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:m.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const i0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),l0=$().regex(/^rgba?\([^\)]+\)$/i),s0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),c0=ae("transparent"),Ro=H([i0,l0,s0,c0]).nullable().optional(),u0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),d0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),h0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,f0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,p0=T(["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 g0(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 m0=A({props:A({text:$().optional().nullable(),level:T(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:T(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:O().optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:yt}).optional().nullable(),style:A({color:Ro,textColor:Ro,backgroundColor:Ro,fontFamily:p0,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),fontStyle:T(["italic","normal"]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:u0,margin:d0}).optional().nullable(),responsive:Ve}),Pn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};let b0=0;function x0({props:e,style:t}){var D;const n=G.useMemo(()=>`ahd-hv-heading-${++b0}`,[]),r=jt(n,e==null?void 0:e.hoverEffect,{themedBorderColor:z((D=e==null?void 0:e.hoverEffect)==null?void 0:D.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),o=(e==null?void 0:e.level)??Pn.level,a=(e==null?void 0:e.text)??Pn.text,i=typeof a=="string"&&a.indexOf("{{")!==-1,l=(e==null?void 0:e.linkType)??Pn.linkType,s=(e==null?void 0:e.url)??Pn.url,u=(e==null?void 0:e.openInNewTab)??Pn.openInNewTab,c=l==="link"&&s,h=(t==null?void 0:t.fontSize)??v0(o),d=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),f=z(d,"blockText"),p=d&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(d),b=(t==null?void 0:t.textDecoration)??"none",x=p&&(b==="underline"||b==="underline line-through"),w=p&&(b==="line-through"||b==="underline line-through"),k=t==null?void 0:t.lineClamp,S=k&&k>0?{display:"-webkit-box",WebkitLineClamp:k,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},v={fontWeight:(t==null?void 0:t.fontWeight)??Un.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:p?"none":b,margin:0,fontFamily:g0(t==null?void 0:t.fontFamily),fontSize:h,...S},_=!!(k&&k>0),y=p?{lineHeight:"normal ",backgroundImage:f,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",..._?{}:{display:"inline-block"},...x?{paddingBottom:"0.08em"}:{}}:{color:f??void 0},C={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:f??void 0,pointerEvents:"none"},I={...C,bottom:0},R={...C,top:"50%",transform:"translateY(-50%)"},E=(t==null?void 0:t.backgroundColor)??void 0,L=z(E,"bgAdaptive"),M=typeof E=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(E),P=t==null?void 0:t.margin,B=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),F={padding:h0(t==null?void 0:t.padding),margin:f0(t==null?void 0:t.margin),display:"block",width:B>0?`calc(100% - ${B}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...M?{backgroundImage:L,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:L}},U=o,K=m.jsx(U,{className:"heading-block",style:v,children:m.jsxs("span",{style:y,children:[i?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:mi(a)}}):a,x?m.jsx("span",{style:I}):null,w?m.jsx("span",{style:R}):null]})});return m.jsxs("div",{className:`heading-block-wrapper${r?` ${n}`:""}`,...ue(E,void 0,"bgAdaptive"),style:F,children:[r&&m.jsx("style",{dangerouslySetInnerHTML:{__html:r}}),c?m.jsx("a",{href:s,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!p&&f?f:void 0},children:K}):K]})}function v0(e){switch(e){case"h1":return 32;case"h2":return 24;case"h3":return 19;case"h4":return 16;case"h5":return 13;case"h6":return 11}}var iu="comm",lu="rule",su="decl",k0="@import",w0="@namespace",S0="@keyframes",$0="@layer",_0=Math.abs,Zn=String.fromCharCode;function cu(e){return e.trim()}function ma(e,t,n){return e.replace(t,n)}function _n(e,t){return e.charCodeAt(t)|0}function In(e,t,n){return e.slice(t,n)}function _t(e){return e.length}function C0(e){return e.length}function $r(e,t){return t.push(e),e}var go=1,Rn=1,uu=0,ot=0,Be=0,En="";function bi(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:go,column:Rn,length:i,return:"",siblings:l}}function A0(){return Be}function y0(){return Be=ot>0?_n(En,--ot):0,Rn--,Be===10&&(Rn=1,go--),Be}function mt(){return Be=ot<uu?_n(En,ot++):0,Rn++,Be===10&&(Rn=1,go++),Be}function Gt(){return _n(En,ot)}function Pr(){return ot}function mo(e,t){return In(En,e,t)}function Qn(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 I0(e){return go=Rn=1,uu=_t(En=e),ot=0,[]}function R0(e){return En="",e}function To(e){return cu(mo(ot-1,ba(e===91?e+2:e===40?e+1:e)))}function T0(e){for(;(Be=Gt())&&Be<33;)mt();return Qn(e)>2||Qn(Be)>3?"":" "}function E0(e,t){for(;--t&&mt()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return mo(e,Pr()+(t<6&&Gt()==32&&mt()==32))}function ba(e){for(;mt();)switch(Be){case e:return ot;case 34:case 39:e!==34&&e!==39&&ba(Be);break;case 40:e===41&&ba(e);break;case 92:mt();break}return ot}function N0(e,t){for(;mt()&&e+Be!==57;)if(e+Be===84&&Gt()===47)break;return"/*"+mo(t,ot-1)+"*"+Zn(e===47?e:mt())}function M0(e){for(;!Qn(Gt());)mt();return mo(e,ot)}function P0(e){return R0(Lr("",null,null,null,[""],e=I0(e),0,[0],e))}function Lr(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,h=i,d=0,f=0,p=0,b=1,x=1,w=1,k=0,S=0,v="",_=o,y=a,C=r,I=v;x;)switch(p=S,S=mt()){case 40:p!=108&&_n(I,h-1)==58?(k++,I+="("):I+=To(S);break;case 41:k--,I+=")";break;case 34:case 39:case 91:I+=To(S);break;case 9:case 10:case 13:case 32:if(k>0){I+=Zn(S);break}I+=T0(p);break;case 92:I+=E0(Pr()-1,7);continue;case 47:switch(Gt()){case 42:case 47:$r(L0(N0(mt(),Pr()),t,n,s),s),(Qn(p||1)==5||Qn(Gt()||1)==5)&&_t(I)&&In(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=_t(I)*w;case 125*b:case 59:case 0:if(k>0&&S){I+=Zn(S);break}switch(S){case 0:case 125:x=0;case 59+c:w==-1&&(I=ma(I,/\f/g,"")),f>0&&(_t(I)-h||b===0)&&$r(f>32?jl(I+";",r,n,h-1,s):jl(ma(I," ","")+";",r,n,h-2,s),s);break;case 59:I+=";";default:if($r(C=zl(I,t,n,u,c,o,l,v,_=[],y=[],h,a),a),S===123)if(c===0)Lr(I,t,C,C,_,a,h,l,y);else{switch(d){case 99:if(_n(I,3)===110)break;case 108:if(_n(I,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Lr(e,C,C,r&&$r(zl(e,C,C,0,0,o,l,v,o,_=[],h,y),y),o,y,h,l,r?_:y):Lr(I,C,C,C,[""],y,0,l,y)}}u=c=f=0,b=w=1,v=I="",h=i;break;case 58:h=1+_t(I),f=p;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&y0()==125)continue}switch(I+=Zn(S),S*b){case 38:w=c>0?1:(I+="\f",-1);break;case 44:if(k>0)break;l[u++]=(_t(I)-1)*w,w=1;break;case 64:Gt()===45&&(I+=To(mt())),d=Gt(),c=h=_t(v=I+=M0(Pr())),S++;break;case 45:p===45&&_t(I)==2&&(b=0)}}return a}function zl(e,t,n,r,o,a,i,l,s,u,c,h){for(var d=o-1,f=o===0?a:[""],p=C0(f),b=0,x=0,w=0;b<r;++b)for(var k=0,S=In(e,d+1,d=_0(x=i[b])),v=e;k<p;++k)(v=cu(x>0?f[k]+" "+S:ma(S,/&\f/g,f[k])))&&(s[w++]=v);return bi(e,t,n,o===0?lu:l,s,u,c,h)}function L0(e,t,n,r){return bi(e,t,n,iu,Zn(A0()),In(e,2,-2),0,r)}function jl(e,t,n,r,o){return bi(e,t,n,su,In(e,0,r),In(e,r+1,-1),r,o)}function xa(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function O0(e,t,n,r){switch(e.type){case $0:if(e.children.length)break;case k0:case w0:case su:return e.return=e.return||e.value;case iu:return"";case S0:return e.return=e.value+"{"+xa(e.children,r)+"}";case lu:if(!_t(e.value=e.props.join(",")))return""}return _t(n=xa(e.children,r))?e.return=e.value+"{"+n+"}":""}const z0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),j0=$().regex(/^rgba?\([^\)]+\)$/i),B0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),D0=ae("transparent"),Bl=H([z0,j0,B0,D0]).nullable().optional(),F0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),H0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),G0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,W0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,U0=T(["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 Z0(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 q0=A({style:A({color:Bl,backgroundColor:Bl,fontFamily:U0,fontSize:g().min(0).optional().nullable(),textAlign:T(["left","right","center"]).optional().nullable(),padding:F0,margin:H0}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),V0=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Y0(e,t){let n="";const r=e.replace(V0,(a,i)=>(n+=i,""));if(!n.trim())return{markup:r,css:""};const o=xa(P0(`[${t}]{${n}}`),O0);return{markup:r,css:o}}function K0({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=G.useState(!1),i=`data-html-scope-${G.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=G.useMemo(()=>n?Y0(n,i):{markup:"",css:""},[n,i]),u={color:z(e==null?void 0:e.color,"blockText"),backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontFamily:Z0(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:G0(e==null?void 0:e.padding),margin:W0(e==null?void 0:e.margin)},c=G.useRef(null);G.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const h=b=>{r||o(!0)},d=()=>{o(!1)},f=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,children:m.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${po(l)}`;return m.jsx("div",{ref:c,className:"html-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:u,onClick:h,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:p}})}const J0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),X0=$().regex(/^rgba?\([^\)]+\)$/i),Q0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ex=ae("transparent"),tx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),nx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),rx=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Or=H([J0,X0,Q0,ex]).nullable().optional(),ox=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ax=A({color:Or,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function ix(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 lx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${ix(t)}`}}const sx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,cx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ux(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 dx(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const hx=A({style:A({padding:tx,margin:nx,backgroundColor:Or.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthUnitTablet:T(["px","%"]).optional().nullable(),widthUnitMobile:T(["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:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),borderRadius:rx,borderColor:Or.default(null),borderWidth:ox,boxShadow:ax,iconName:$().optional().nullable(),iconFillColor:Or.default(null),rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:yt,lazyLoad:fi}).optional().nullable()}),Ge={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,lazyLoad:!0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let fx=0;function px({style:e,props:t}){const n=G.useMemo(()=>`ahd-img-${++fx}`,[]),r=gi(),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s={padding:sx(e==null?void 0:e.padding),margin:cx(e==null?void 0:e.margin),...ux(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:a,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},u=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:Ge.showLink),c=(t==null?void 0:t.linkHref)??Ge.linkHref,h=u&&c?c:null,d=(t==null?void 0:t.linkTarget)??Ge.linkTarget,f=(t==null?void 0:t.widthType)??Ge.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??Ge.width,w=(t==null?void 0:t.widthUnit)??Ge.widthUnit,k=(t==null?void 0:t.widthUnitTablet)??w,S=(t==null?void 0:t.widthUnitMobile)??k,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??Ge.height,R=(t==null?void 0:t.heightTablet)??null,E=(t==null?void 0:t.heightMobile)??null,L=R??I,M=E??L,P=I,B=(t==null?void 0:t.url)??Ge.url,F=ar((t==null?void 0:t.lazyLoad)??Ge.lazyLoad),U=(t==null?void 0:t.urlTablet)??null,K=(t==null?void 0:t.urlMobile)??null,D=!h&&((t==null?void 0:t.decorative)??Ge.decorative),J=D?"":(t==null?void 0:t.alt)??Ge.alt,q=D?{role:"presentation","aria-hidden":!0}:{},Q=(t==null?void 0:t.contentAlignment)??Ge.contentAlignment,ee=(t==null?void 0:t.borderRadius)??Ge.borderRadius,de=ie((t==null?void 0:t.borderColor)??Ge.borderColor),$e=(t==null?void 0:t.borderWidth)??Ge.borderWidth,ke=(t==null?void 0:t.boxShadow)??Ge.boxShadow,Le=lx(ke),X=(t==null?void 0:t.rotation)??Ge.rotation,Z=(t==null?void 0:t.rotationTablet)??null,V=(t==null?void 0:t.rotationMobile)??null,j=Z??X,Y=V??j,he=ne=>{const ye=ne*Math.PI/180,ze=ne%180!==0?1/(Math.abs(Math.cos(ye))+Math.abs(Math.sin(ye))):1;return`rotate(${ne}deg) scale(${ze})`},we=X,fe=we?{transform:he(we),transformOrigin:"center"}:{},Ie=Z!=null||V!=null?`
67
+ ${Ct} { .${n} img, .${n} > div { transform: ${he(j)} !important; transform-origin: center !important; } }
68
+ ${Xe} { .${n} img, .${n} > div { transform: ${he(Y)} !important; transform-origin: center !important; } }
69
+ `.trim():null,le=dx(de,$e),Te=ne=>typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`,De=(ne,ye)=>{const ze=Math.max((ye==null?void 0:ye.top)||0,(ye==null?void 0:ye.right)||0,(ye==null?void 0:ye.bottom)||0,(ye==null?void 0:ye.left)||0);if(typeof ne=="number")return`${Math.max(0,ne-ze)}px`;const Et=Math.max(0,(ne.topLeft||0)-ze),ce=Math.max(0,(ne.topRight||0)-ze),be=Math.max(0,(ne.bottomRight||0)-ze),Ke=Math.max(0,(ne.bottomLeft||0)-ze);return`${Et}px ${ce}px ${be}px ${Ke}px`},_e=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),te=f==="fixed"&&typeof x=="number"&&x>0&&x<=48&&(w??"px")==="px"?{filter:"var(--pp-icon-filter, none)"}:{},We=ne=>ne==="mobile"?b:ne==="tablet"?p:f,Fe=ne=>ne==="mobile"?S:ne==="tablet"?k:w,se=ne=>{const ye=We(ne);if(ye==="fill")return"100%";if(ye==="fit")return"auto";const ze=ne==="mobile"?C:ne==="tablet"?y:x,Et=Fe(ne);return`${ze}${Et}`},It=se(r),je=Fe(r),tt=typeof It=="string"&&It.endsWith("%")?{display:"block",width:"100%",textAlign:o??"left"}:{},Qe=B,Rt=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
70
70
  ${Ct} { .${n} img { width: ${se("tablet")} !important; max-width: 100% !important; } }
71
71
  ${Xe} { .${n} img { width: ${se("mobile")} !important; max-width: 100% !important; } }
72
72
  `.trim():null,xt=R!=null||E!=null?`
73
73
  ${Ct} { .${n} img { height: ${L?`${L}px`:"auto"} !important; } }
74
74
  ${Xe} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
75
75
  `.trim():null,ct=(t==null?void 0:t.hoverEffect)??Ge.hoverEffect,Yt=jt(n,ct,{themedBorderColor:z(ct==null?void 0:ct.borderColor,"borderAdaptive"),scaleTarget:" picture",scaleBaseCss:"display: inline-block;",borderTarget:" img",borderFromContainer:!0}),vt=[Rt,xt,Ie,Yt].filter(Boolean).join(`
76
- `)||null,fr=ge&&(ge.includes("linear-gradient")||ge.includes("radial-gradient")||ge.includes("repeating-linear-gradient")),nt=(D||W)&&m.jsxs(m.Fragment,{children:[D&&m.jsx("source",{media:Xe.replace("@media ",""),srcSet:D}),(W??D)&&m.jsx("source",{media:Ct.replace("@media ",""),srcSet:W??D??B})]}),ut=m.jsxs("picture",{style:tt,children:[nt,m.jsx("img",{alt:J,...Q,...F,src:Qe,width:typeof _e=="number"&&je==="px"?_e:void 0,height:P!==null?P:void 0,style:{width:It??(_e==="100%"?"100%":typeof _e=="number"?`${_e}${je}`:"auto"),height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:X,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:ee?Te(ee):void 0,...te}})]}),Tt=fr?m.jsx("div",{style:{borderRadius:ee?Te(ee):void 0,...le,...Le,...he},children:m.jsxs("picture",{children:[nt,m.jsx("img",{alt:J,...Q,...F,src:Qe,width:typeof _e=="number"&&je==="px"?_e:void 0,height:P!==null?P:void 0,style:{width:"100%",height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:X,display:"block",maxWidth:It??(typeof _e=="number"?`${_e}${je}`:"auto"),boxSizing:"border-box",borderRadius:ee?De(ee,$e):void 0,...te}})]})}):ge?m.jsx("div",{style:{borderRadius:ee?Te(ee):void 0,...le,...Le,...he},children:ut}):Le.boxShadow?m.jsx("div",{style:{borderRadius:ee?Te(ee):void 0,...Le,...he},children:ut}):G.cloneElement(ut,{children:G.Children.map(ut.props.children,ne=>(ne==null?void 0:ne.type)==="img"?G.cloneElement(ne,{style:{...ne.props.style,...he}}):ne)});return h?m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[vt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:vt}}),m.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:Tt})]}):m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[vt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:vt}}),Tt]})}const gx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),mx=$().regex(/^rgba?\([^\)]+\)$/i),bx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),xx=ae("transparent"),xn=H([gx,mx,bx,xx]).nullable().optional(),vx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),kx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),wx=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Sx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$x=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_x=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Cx(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 Ax(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}}const Eo=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,yx=A({color:xn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function Ix(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 Rx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Ix(t)}`}}const Tx=A({style:A({padding:vx,margin:kx,backgroundColor:xn.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:wx,borderColor:xn.default(null),borderWidth:Sx,boxShadow:yx,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:xn.default(null),iconFillColorTablet:xn.default(null),iconFillColorMobile:xn.default(null),hoverEffect:yt,lazyLoad:fi,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),ht={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let Ex=0;function Nx({style:e,props:t}){var F;const n=(t==null?void 0:t.url)??ht.url,r=(t==null?void 0:t.urlTablet)??null,o=(t==null?void 0:t.urlMobile)??null,a=(t==null?void 0:t.showLink)??ht.showLink,i=(t==null?void 0:t.linkHref)??ht.linkHref,l=a&&i?i:null,s=(t==null?void 0:t.linkTarget)??ht.linkTarget,u=!l&&((t==null?void 0:t.decorative)??ht.decorative),c=u?"":(t==null?void 0:t.alt)??ht.alt,h=u?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??ht.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??ht.borderRadius,x=ie((t==null?void 0:t.borderColor)??ht.borderColor),w=(t==null?void 0:t.borderWidth)??ht.borderWidth,k=(t==null?void 0:t.boxShadow)??ht.boxShadow,S=Rx(k),v=f??d,_=p??v,y=d,C=n,I=`ahd-logo-${++Ex}`,R=jt(I,t==null?void 0:t.hoverEffect,{themedBorderColor:z((F=t==null?void 0:t.hoverEffect)==null?void 0:F.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0}),E=`
76
+ `)||null,fr=de&&(de.includes("linear-gradient")||de.includes("radial-gradient")||de.includes("repeating-linear-gradient")),nt=(K||U)&&m.jsxs(m.Fragment,{children:[K&&m.jsx("source",{media:Xe.replace("@media ",""),srcSet:K}),(U??K)&&m.jsx("source",{media:Ct.replace("@media ",""),srcSet:U??K??B})]}),ut=m.jsxs("picture",{style:tt,children:[nt,m.jsx("img",{alt:J,...q,...F,src:Qe,width:typeof _e=="number"&&je==="px"?_e:void 0,height:P!==null?P:void 0,style:{width:It??(_e==="100%"?"100%":typeof _e=="number"?`${_e}${je}`:"auto"),height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Q,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:ee?Te(ee):void 0,...te}})]}),Tt=fr?m.jsx("div",{style:{borderRadius:ee?Te(ee):void 0,...le,...Le,...fe},children:m.jsxs("picture",{children:[nt,m.jsx("img",{alt:J,...q,...F,src:Qe,width:typeof _e=="number"&&je==="px"?_e:void 0,height:P!==null?P:void 0,style:{width:"100%",height:P?`${P}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:Q,display:"block",maxWidth:It??(typeof _e=="number"?`${_e}${je}`:"auto"),boxSizing:"border-box",borderRadius:ee?De(ee,$e):void 0,...te}})]})}):de?m.jsx("div",{style:{borderRadius:ee?Te(ee):void 0,...le,...Le,...fe},children:ut}):Le.boxShadow?m.jsx("div",{style:{borderRadius:ee?Te(ee):void 0,...Le,...fe},children:ut}):G.cloneElement(ut,{children:G.Children.map(ut.props.children,ne=>(ne==null?void 0:ne.type)==="img"?G.cloneElement(ne,{style:{...ne.props.style,...fe}}):ne)});return h?m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[vt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:vt}}),m.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:Tt})]}):m.jsxs("div",{className:`image-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:s,children:[vt&&m.jsx("style",{dangerouslySetInnerHTML:{__html:vt}}),Tt]})}const gx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),mx=$().regex(/^rgba?\([^\)]+\)$/i),bx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),xx=ae("transparent"),xn=H([gx,mx,bx,xx]).nullable().optional(),vx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),kx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),wx=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Sx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$x=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_x=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Cx(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 Ax(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}}const Eo=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,yx=A({color:xn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function Ix(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 Rx(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Ix(t)}`}}const Tx=A({style:A({padding:vx,margin:kx,backgroundColor:xn.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:wx,borderColor:xn.default(null),borderWidth:Sx,boxShadow:yx,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:xn.default(null),iconFillColorTablet:xn.default(null),iconFillColorMobile:xn.default(null),hoverEffect:yt,lazyLoad:fi,animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),ht={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let Ex=0;function Nx({style:e,props:t}){var F;const n=(t==null?void 0:t.url)??ht.url,r=(t==null?void 0:t.urlTablet)??null,o=(t==null?void 0:t.urlMobile)??null,a=(t==null?void 0:t.showLink)??ht.showLink,i=(t==null?void 0:t.linkHref)??ht.linkHref,l=a&&i?i:null,s=(t==null?void 0:t.linkTarget)??ht.linkTarget,u=!l&&((t==null?void 0:t.decorative)??ht.decorative),c=u?"":(t==null?void 0:t.alt)??ht.alt,h=u?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??ht.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??ht.borderRadius,x=ie((t==null?void 0:t.borderColor)??ht.borderColor),w=(t==null?void 0:t.borderWidth)??ht.borderWidth,k=(t==null?void 0:t.boxShadow)??ht.boxShadow,S=Rx(k),v=f??d,_=p??v,y=d,C=n,I=`ahd-logo-${++Ex}`,R=jt(I,t==null?void 0:t.hoverEffect,{themedBorderColor:z((F=t==null?void 0:t.hoverEffect)==null?void 0:F.borderColor,"borderAdaptive"),scaleTarget:" img",borderTarget:" img",borderFromContainer:!0}),E=`
77
77
  ${Ct} { .${I} img { width: ${v}px !important; max-width: 100% !important; } }
78
78
  ${Xe} { .${I} img { width: ${_}px !important; max-width: 100% !important; } }
79
79
  ${R??""}
80
80
  `.trim(),L={padding:$x(e==null?void 0:e.padding),margin:_x(e==null?void 0:e.margin),...Cx(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},M={width:`${y}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},P=m.jsxs("picture",{children:[o&&m.jsx("source",{media:Xe.replace("@media ",""),srcSet:o}),r&&m.jsx("source",{media:Ct.replace("@media ",""),srcSet:r}),m.jsx("img",{alt:c,...h,...ar(t==null?void 0:t.lazyLoad),src:C,width:y,style:M})]}),B=x&&x!=="transparent"?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Eo(b):void 0,...Ax(x,w),...S},children:P}):S.boxShadow?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Eo(b):void 0,...S},children:P}):P;return l?m.jsxs("div",{className:`logo-block ${I}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:L,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":u?"Logo":c||"Logo",children:B})]}):m.jsxs("div",{className:`logo-block ${I}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:L,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),B]})}const Mx=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Px=$().regex(/^rgba?\([^\)]+\)$/i),Lx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ox=ae("transparent"),zx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),jx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Bx=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Dx=H([Mx,Px,Lx,Ox]).nullable().optional(),Fx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Hx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Gx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Wx(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 Ux(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Zx=A({style:A({padding:zx,margin:jx,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:H([g(),$()]).optional().nullable(),height:H([g(),$()]).optional().nullable(),widthTablet:H([g(),$()]).optional().nullable(),widthMobile:H([g(),$()]).optional().nullable(),heightTablet:H([g(),$()]).optional().nullable(),heightMobile:H([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:Bx,borderColor:Dx.default(null),borderWidth:Fx}).optional().nullable()});function qx(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Vx(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 Yx=0;function Kx({style:e,props:t}){const n=`ahd-video-${++Yx}`,r=(e==null?void 0:e.textAlign)??"left",o={padding:Hx(e==null?void 0:e.padding),margin:Gx(e==null?void 0:e.margin),...Wx(z(e==null?void 0:e.backgroundColor,"bgAdaptive")),display:"flex",justifyContent:qx(r),textAlign:r},a=(t==null?void 0:t.width)??"100%",i=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=l??a,c=s??a,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??i,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??i,f=a,p=i,b=M=>M==null?void 0:typeof M=="number"?`${M}px`:M,x=`
81
81
  ${ln} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
82
82
  ${Xe} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
83
- `.trim(),w=(t==null?void 0:t.linkHref)??null,k=(t==null?void 0:t.borderRadius)??0,S=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,v=(M,P)=>{const B=Math.max((P==null?void 0:P.top)||0,(P==null?void 0:P.right)||0,(P==null?void 0:P.bottom)||0,(P==null?void 0:P.left)||0);if(typeof M=="number")return`${Math.max(0,M-B)}px`;const F=Math.max(0,(M.topLeft||0)-B),W=Math.max(0,(M.topRight||0)-B),D=Math.max(0,(M.bottomRight||0)-B),U=Math.max(0,(M.bottomLeft||0)-B);return`${F}px ${W}px ${D}px ${U}px`},_=ie((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,C=Ux(_,y),I=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=Vx(t==null?void 0:t.url),E=R?m.jsx("iframe",{width:f,height:p,src:R,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:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:S(k)}},R):m.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:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:S(k),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),L=I?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:R?m.jsx("iframe",{width:f,height:p,src:R,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:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:v(k,y)}},R):m.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:v(k,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:E}):E;return w?m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:L})]}):m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),L]})}var Jx=A({props:A({height:g().gte(0).optional().nullish()}).optional().nullable()}),Xx={height:16};const bt=[{key:"inherit",label:"Inherit",value:"inherit"},{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'}],Qx={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]},ev=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Qx).map(([e,t])=>`family=${ev(e,t)}`).join("&")}`;const du=bt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));du.map(e=>e.css);const tv=e=>e.replace(/"/g,'\\"'),nv=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(bt.filter(e=>e.key!=="inherit").map(e=>nv(e.value)));const Dl=bt.find(e=>e.key==="INTER");Dl&&Dl.value;du.map(e=>{const t=tv(e.css);return`
83
+ `.trim(),w=(t==null?void 0:t.linkHref)??null,k=(t==null?void 0:t.borderRadius)??0,S=M=>typeof M=="number"?`${M}px`:`${M.topLeft}px ${M.topRight}px ${M.bottomRight}px ${M.bottomLeft}px`,v=(M,P)=>{const B=Math.max((P==null?void 0:P.top)||0,(P==null?void 0:P.right)||0,(P==null?void 0:P.bottom)||0,(P==null?void 0:P.left)||0);if(typeof M=="number")return`${Math.max(0,M-B)}px`;const F=Math.max(0,(M.topLeft||0)-B),U=Math.max(0,(M.topRight||0)-B),K=Math.max(0,(M.bottomRight||0)-B),D=Math.max(0,(M.bottomLeft||0)-B);return`${F}px ${U}px ${K}px ${D}px`},_=ie((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,C=Ux(_,y),I=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=Vx(t==null?void 0:t.url),E=R?m.jsx("iframe",{width:f,height:p,src:R,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:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:S(k)}},R):m.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:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:S(k),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),L=I?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:R?m.jsx("iframe",{width:f,height:p,src:R,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:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:v(k,y)}},R):m.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:v(k,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:E}):E;return w?m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:L})]}):m.jsxs("div",{className:`video-block ${n}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),L]})}var Jx=A({props:A({height:g().gte(0).optional().nullish()}).optional().nullable()}),Xx={height:16};const bt=[{key:"inherit",label:"Inherit",value:"inherit"},{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'}],Qx={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]},ev=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Qx).map(([e,t])=>`family=${ev(e,t)}`).join("&")}`;const du=bt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));du.map(e=>e.css);const tv=e=>e.replace(/"/g,'\\"'),nv=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(bt.filter(e=>e.key!=="inherit").map(e=>nv(e.value)));const Dl=bt.find(e=>e.key==="INTER");Dl&&Dl.value;du.map(e=>{const t=tv(e.css);return`
84
84
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
85
85
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
86
86
  content: '${e.label}';
@@ -232,13 +232,13 @@ ${f}
232
232
  @media (max-width: ${Ue}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
233
233
  @media (max-width: ${qe}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
234
234
  ${y}
235
- `.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return m.jsxs("div",{className:`grid-block ${f}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),m.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,E)=>m.jsx("div",{className:`grid-cell ${f}-cell-${E}`,style:I(),children:R.childrenIds.map(L=>m.jsx(Pe,{id:L},L))},E))})]})}const G1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),W1=$().regex(/^rgba?\([^\)]+\)$/i),U1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Z1=ae("transparent"),va=Uc(e=>typeof e=="string"?e.trim():e,H([G1,W1,U1,Z1]).nullable().optional()),q1=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),V1=$().includes("{{"),Y1=H([q1,V1]).nullable().optional(),K1=$().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(),J1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),X1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Q1=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),ek=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Yl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function gu(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function tk(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:gu(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function nk(e,t){const n=e&&gu(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function rk(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const ok=A({color:va,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function ak(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 ik(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${ak(t)}`}}function lk(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 r=Math.max(0,(e.topLeft||0)-n),o=Math.max(0,(e.topRight||0)-n),a=Math.max(0,(e.bottomRight||0)-n),i=Math.max(0,(e.bottomLeft||0)-n);return`${r}px ${o}px ${a}px ${i}px`}const sk=A({style:A({backgroundColor:va,backgroundImage:Y1,backgroundSize:K1,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable(),borderColor:va,borderRadius:Q1,padding:J1,margin:X1,borderWidth:ek,boxShadow:ok}).optional().nullable(),props:A({fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:H([g().min(0),ae("auto")]).optional().nullable(),heightMobile:H([g().min(0),ae("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),hoverEffect:yt}).optional().nullable()}),fn={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function ck({style:e,props:t,children:n,blockId:r}){const o=gi(),a=(t==null?void 0:t.fullWidth)??fn.fullWidth,i=(t==null?void 0:t.widthType)??fn.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,u=l??i,c=s??u,h=(t==null?void 0:t.width)??fn.width,d=(t==null?void 0:t.widthUnit)??fn.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,w=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,v=k==="auto"?null:k??w,_=S==="auto"?null:S??(k==="auto"?null:v),y=(t==null?void 0:t.overflow)===!0,C=(t==null?void 0:t.alignment)??fn.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,E=I??C,L=R??E,M=C,P=(t==null?void 0:t.ariaLabel)??void 0,B=(t==null?void 0:t.elementId)??void 0,F=!!(t!=null&&t.showLink),W=(t==null?void 0:t.linkHref)??null,D=typeof W=="string"?W.trim():W,U=F&&typeof D=="string"&&D.length>0,J=(t==null?void 0:t.linkTarget)??"_blank",Q=U?"a":(t==null?void 0:t.tag)??"div",X=U?{href:D,target:J,...J==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},ee=(ce,be,Ke=!1)=>{if(Ke&&a)return"100%";switch(ce){case"fill":return"100%";case"fixed":return`${be}${d}`;case"fit":default:return"auto"}},ge=ce=>((ce==null?void 0:ce.left)??0)+((ce==null?void 0:ce.right)??0),$e=(ce,be,Ke)=>{const rt=(be==null?void 0:be.top)??0,Nt=(be==null?void 0:be.bottom)??0;if(Ke)return{marginTop:rt,marginBottom:Nt,marginLeft:(be==null?void 0:be.left)??0,marginRight:(be==null?void 0:be.right)??0};switch(ce){case"center":return{marginTop:rt,marginBottom:Nt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:rt,marginBottom:Nt,marginLeft:"auto",marginRight:(be==null?void 0:be.right)??0};case"left":default:return{marginTop:rt,marginBottom:Nt,marginLeft:(be==null?void 0:be.left)??0,marginRight:"auto"}}},ke=(ce,be)=>{const Ke=ge(be);return Ke<=0?ce:ce==="100%"?`calc(100% - ${Ke}px)`:ce},Le=i,K=h,q=w,V=ee(Le,K,o==="desktop"),j=ke(V,e==null?void 0:e.margin),de=V==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},we=(ce,be,Ke)=>ee(be,Ke)==="100%"||ce==="left"?"left":ce==="right"?"right":"center",he=l!=null||s!=null||f!=null||p!=null||k!=null||S!=null||I!=null||R!=null,me=(t==null?void 0:t.hoverEffect)??fn.hoverEffect,Ie=!!(me!=null&&me.enabled),le=(he||Ie)&&r?`ahd-cb-${r}`:"",Te=le?`${le}-align`:"",De=v!=null?`height: ${v}px !important; --ahd-cb-h: ${v}px !important;`:k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",Oe=_!=null?`height: ${_}px !important; --ahd-cb-h: ${_}px !important;`:S==="auto"||S==null&&k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",_e=he?`
235
+ `.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return m.jsxs("div",{className:`grid-block ${f}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),m.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,E)=>m.jsx("div",{className:`grid-cell ${f}-cell-${E}`,style:I(),children:R.childrenIds.map(L=>m.jsx(Pe,{id:L},L))},E))})]})}const G1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),W1=$().regex(/^rgba?\([^\)]+\)$/i),U1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Z1=ae("transparent"),va=Uc(e=>typeof e=="string"?e.trim():e,H([G1,W1,U1,Z1]).nullable().optional()),q1=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),V1=$().includes("{{"),Y1=H([q1,V1]).nullable().optional(),K1=$().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(),J1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),X1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Q1=H([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),ek=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Yl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function gu(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function tk(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:gu(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function nk(e,t){const n=e&&gu(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function rk(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)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const ok=A({color:va,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable();function ak(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 ik(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${ak(t)}`}}function lk(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 r=Math.max(0,(e.topLeft||0)-n),o=Math.max(0,(e.topRight||0)-n),a=Math.max(0,(e.bottomRight||0)-n),i=Math.max(0,(e.bottomLeft||0)-n);return`${r}px ${o}px ${a}px ${i}px`}const sk=A({style:A({backgroundColor:va,backgroundImage:Y1,backgroundSize:K1,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable(),borderColor:va,borderRadius:Q1,padding:J1,margin:X1,borderWidth:ek,boxShadow:ok}).optional().nullable(),props:A({fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:H([g().min(0),ae("auto")]).optional().nullable(),heightMobile:H([g().min(0),ae("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),hoverEffect:yt}).optional().nullable()}),fn={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function ck({style:e,props:t,children:n,blockId:r}){const o=gi(),a=(t==null?void 0:t.fullWidth)??fn.fullWidth,i=(t==null?void 0:t.widthType)??fn.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,u=l??i,c=s??u,h=(t==null?void 0:t.width)??fn.width,d=(t==null?void 0:t.widthUnit)??fn.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,w=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,v=k==="auto"?null:k??w,_=S==="auto"?null:S??(k==="auto"?null:v),y=(t==null?void 0:t.overflow)===!0,C=(t==null?void 0:t.alignment)??fn.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,E=I??C,L=R??E,M=C,P=(t==null?void 0:t.ariaLabel)??void 0,B=(t==null?void 0:t.elementId)??void 0,F=!!(t!=null&&t.showLink),U=(t==null?void 0:t.linkHref)??null,K=typeof U=="string"?U.trim():U,D=F&&typeof K=="string"&&K.length>0,J=(t==null?void 0:t.linkTarget)??"_blank",q=D?"a":(t==null?void 0:t.tag)??"div",Q=D?{href:K,target:J,...J==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},ee=(ce,be,Ke=!1)=>{if(Ke&&a)return"100%";switch(ce){case"fill":return"100%";case"fixed":return`${be}${d}`;case"fit":default:return"auto"}},de=ce=>((ce==null?void 0:ce.left)??0)+((ce==null?void 0:ce.right)??0),$e=(ce,be,Ke)=>{const rt=(be==null?void 0:be.top)??0,Nt=(be==null?void 0:be.bottom)??0;if(Ke)return{marginTop:rt,marginBottom:Nt,marginLeft:(be==null?void 0:be.left)??0,marginRight:(be==null?void 0:be.right)??0};switch(ce){case"center":return{marginTop:rt,marginBottom:Nt,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:rt,marginBottom:Nt,marginLeft:"auto",marginRight:(be==null?void 0:be.right)??0};case"left":default:return{marginTop:rt,marginBottom:Nt,marginLeft:(be==null?void 0:be.left)??0,marginRight:"auto"}}},ke=(ce,be)=>{const Ke=de(be);return Ke<=0?ce:ce==="100%"?`calc(100% - ${Ke}px)`:ce},Le=i,X=h,Z=w,V=ee(Le,X,o==="desktop"),j=ke(V,e==null?void 0:e.margin),he=V==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},we=(ce,be,Ke)=>ee(be,Ke)==="100%"||ce==="left"?"left":ce==="right"?"right":"center",fe=l!=null||s!=null||f!=null||p!=null||k!=null||S!=null||I!=null||R!=null,me=(t==null?void 0:t.hoverEffect)??fn.hoverEffect,Ie=!!(me!=null&&me.enabled),le=(fe||Ie)&&r?`ahd-cb-${r}`:"",Te=le?`${le}-align`:"",De=v!=null?`height: ${v}px !important; --ahd-cb-h: ${v}px !important;`:k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",Oe=_!=null?`height: ${_}px !important; --ahd-cb-h: ${_}px !important;`:S==="auto"||S==null&&k==="auto"?"height: auto !important; --ahd-cb-h: auto !important;":"",_e=fe?`
236
236
  ${Ct} { .${le} { width: ${ke(ee(u,b),e==null?void 0:e.margin)} !important; ${De} max-width: 100% !important; } }
237
237
  ${Xe} { .${le} { width: ${ke(ee(c,x),e==null?void 0:e.margin)} !important; ${Oe} max-width: 100% !important; } }
238
238
  ${Ct} { .${Te} { text-align: ${we(E,u,b)} !important; } }
239
239
  ${Xe} { .${Te} { text-align: ${we(L,c,x)} !important; } }
240
240
  `.trim():null,Ye=jt(le,me,{themedBorderColor:z(me==null?void 0:me.borderColor,"borderAdaptive")}),te=[_e,Ye].filter(Boolean).join(`
241
- `)||null,We=ce=>{if(ce!=null)return typeof ce=="number"?`${ce}px`:`${ce.topLeft}px ${ce.topRight}px ${ce.bottomRight}px ${ce.bottomLeft}px`},Fe=(e==null?void 0:e.borderColor)??null,se=(e==null?void 0:e.borderWidth)??null,It=rk(z(Fe,"borderAdaptive"),se),je=ik(e==null?void 0:e.boxShadow),tt=z(e==null?void 0:e.backgroundColor,"bgAdaptive")??"",Qe=tk(tt),Vt=(e==null?void 0:e.backgroundSize)==="none",Rt=!Vt&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,xt=nk(tt,Rt),ct=ue(e==null?void 0:e.backgroundColor,Rt,"bgAdaptive"),Yt=Vt?void 0:(e==null?void 0:e.backgroundSize)??void 0,vt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",fr=Fe&&(Fe.includes("linear-gradient")||Fe.includes("radial-gradient")||Fe.includes("repeating-linear-gradient")),nt=q!=null,ut=nt?{"--ahd-cb-h":`${q}px`}:{},Tt=nt?" container-block-has-height":"";if(fr){const ce={...It,borderRadius:We(e==null?void 0:e.borderRadius),width:j,maxWidth:"100%",minWidth:0,height:nt?`${q}px`:void 0,boxSizing:"border-box",...$e(M,e==null?void 0:e.margin,V==="100%"),...de?{display:"inline-block"}:{},...je,...ut},be={...Qe,backgroundImage:xt,backgroundSize:Yt,backgroundRepeat:vt,borderRadius:lk((e==null?void 0:e.borderRadius)??0,se),overflow:y?"auto":"hidden",padding:Yl(e==null?void 0:e.padding),width:"100%",height:nt?"100%":void 0,boxSizing:"border-box"},Ke=`container-block${y?" container-block-overflow":""}${Tt}${le?` ${le}`:""}`,rt=`container-block-inner${y?" container-block-overflow":""}`,Nt=U?{...ce,...X.style,...de?{display:"inline-block"}:{}}:ce,Kt=m.jsx(Q,{className:Ke,"aria-label":P,id:B,...ct,...X,style:Nt,children:m.jsx("div",{className:rt,style:be,children:n})});return m.jsxs(m.Fragment,{children:[te&&m.jsx("style",{dangerouslySetInnerHTML:{__html:te}}),de?m.jsx("div",{className:Te,style:de,children:Kt}):Kt]})}const ne={...Qe,backgroundImage:xt,backgroundSize:Yt,backgroundRepeat:vt,...It,borderRadius:We(e==null?void 0:e.borderRadius),padding:Yl(e==null?void 0:e.padding),...$e(M,e==null?void 0:e.margin,V==="100%"),width:j,maxWidth:"100%",minWidth:0,height:nt?`${q}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...de?{display:"inline-block"}:{},...je,...ut},ye=`container-block${y?" container-block-overflow":""}${Tt}${le?` ${le}`:""}`,ze=U?{...ne,...X.style,...de?{display:"inline-block"}:{}}:ne;if(!n){const ce=m.jsx(Q,{className:ye,"aria-label":P,id:B,...ct,...X,style:ze});return m.jsxs(m.Fragment,{children:[te&&m.jsx("style",{dangerouslySetInnerHTML:{__html:te}}),de?m.jsx("div",{className:Te,style:de,children:ce}):ce]})}const Et=m.jsx(Q,{className:ye,"aria-label":P,id:B,...ct,...X,style:ze,children:n});return m.jsxs(m.Fragment,{children:[te&&m.jsx("style",{dangerouslySetInnerHTML:{__html:te}}),de?m.jsx("div",{className:Te,style:de,children:Et}):Et]})}const uk=A({style:sk.shape.style,responsive:Ve,props:A({childrenIds:oe($()).optional().nullable(),fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:H([g().min(0),ae("auto")]).optional().nullable(),heightMobile:H([g().min(0),ae("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:yt}).optional().nullable()});function mu({style:e,props:t,responsive:n,blockId:r}){var l,s,u,c;const o=(t==null?void 0:t.childrenIds)??[],a=(s=(l=n==null?void 0:n.tablet)==null?void 0:l.props)==null?void 0:s.heightTablet,i=(c=(u=n==null?void 0:n.mobile)==null?void 0:u.props)==null?void 0:c.heightMobile;return m.jsx(ck,{style:e,blockId:r,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)??a??void 0,heightMobile:(t==null?void 0:t.heightMobile)??i??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:o.map(h=>m.jsx(Pe,{id:h},h))})}const dk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),hk=$().regex(/^rgba?\([^\)]+\)$/i),fk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),pk=ae("transparent"),kn=H([dk,hk,fk,pk]).nullable().optional(),gk=T(["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(),mk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Oo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),zo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bk=$().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(),xk=A({color:kn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable(),vk=A({position:T(["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:O().optional().default(!0),selector:$().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:kn,closeIconPosition:T(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),kk=oe(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),Kl=A({formFields:kk,backdropColor:kn.default(null),borderColor:kn.default(null),borderRadius:g().optional().nullable(),canvasColor:kn.default(null),textColor:kn,hostTheme:T(["follow","light"]).optional().nullable(),fontFamily:gk,childrenIds:oe($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Oo,margin:zo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Oo,paddingMobile:Oo,marginTablet:zo,marginMobile:zo,borderWidth:mk,boxShadow:xk,behaviour:vk,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:bk,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable()}),wk=()=>null,Sk="INTER";function $k(e){return e||Sk}function pn(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function _r(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return pn(o)?o:null;const a=r[`${t}Tablet`];if(n==="tablet")return pn(a)?a:pn(o)?o:null;const i=r[`${t}Mobile`];return pn(i)?i:pn(a)?a:pn(o)?o:null}function jo(e,t){return{maxWidth:_r(e,"maxWidth",t)??null,maxHeight:_r(e,"maxHeight",t)??null,padding:_r(e,"padding",t)??null,margin:_r(e,"margin",t)??null}}function _k(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Ck(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Bo(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:${_k(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Ck(t.margin)};}`),n.join("")}function Ak(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},a=jo(t,"desktop"),i=Bo(o,{...a,maxWidth:a.maxWidth??n??null}),l=Bo(o,jo(t,"tablet")),s=Bo(o,jo(t,"mobile")),u=(c,h)=>h?`@media (max-width:${c}px){${h}}@container ahd-page (max-width:${c}px){${h}}`:"";return[i,u(Ue,l),u(qe,s)].filter(Boolean).join("")}const yk="Made with Page Pilot",Ik="https://pagepilot.fabbuilder.com";let Rk=0;function Tk(e){switch($k(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'}}function Ek(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),a=r??0,i=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:a?i(a):void 0};if(o){const s=z(e.canvasColor,"canvas"),u=!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:`${u}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:a?i(a):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:a?i(a):void 0}}function Nk(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Jl(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e,l=Nk(t);return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${l}`}}function Mk(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 Pk(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 Lk(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Ok(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Lk(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function zk({position:e,color:t}){const o="20px",a={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:o,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:o,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return m.jsx("div",{"aria-hidden":!0,style:{...a,...c}})}function jk({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const a=z(e,"closeIcon"),i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof r=="number"?r:2}:i==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return m.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...c,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none",stroke:a},children:[m.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),m.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Bk(){const e=z(null,"brandingText");return m.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:m.jsx("a",{href:Ik,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:yk})})}function Dk(e){var ke,Le,K,q,V,j,Y,de,we,he,me,Ie,le,Te,De,Oe,_e,Ye;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),a=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||a,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=ib(),d=(ke=wk())==null?void 0:ke.getState(),f=(q=(K=(Le=d==null?void 0:d.appBanner)==null?void 0:Le.view)==null?void 0:K.record)==null?void 0:q.type,p=h??f,b=r==="page"||h==="page",x=o&&(p==="floater"||((V=e.behaviour)==null?void 0:V.bannerSubType)==="floater"||c.includes((j=e.behaviour)==null?void 0:j.position)),w=o&&(p==="modal"||((Y=e.behaviour)==null?void 0:Y.bannerSubType)==="modal"),k=(u||x||w)&&((de=e.behaviour)==null?void 0:de.showCloseIcon)!==!1,v=u&&!0,_=o&&e.linkHref?e.linkHref:null,y=G.useMemo(()=>`ahd-layout-${Rk+=1}`,[]),I=Ak(y,e,b||i?"100%":o&&!x?"900px":"320px"),R=(o||a)&&!!e.backgroundImage;e.borderRadius;const E=e.borderRadius??0,L=te=>typeof te=="number"?`${te}px`:`${te.topLeft}px ${te.topRight}px ${te.bottomRight}px ${te.bottomLeft}px`,P=(te=>te==null?!1:typeof te=="number"?te>0:(te.topLeft??0)>0||(te.topRight??0)>0||(te.bottomRight??0)>0||(te.bottomLeft??0)>0)(E),B=te=>_?m.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:te}):te,F=Ek({...e,borderColor:z(e.borderColor,"borderAdaptive")??null}),W=o&&!!((we=e.boxShadow)!=null&&we.color)&&!!e.boxShadow.inset,D=o&&!W?Jl(e.boxShadow):{},U=W?Jl(e.boxShadow):{},J=Pk(((he=e.behaviour)==null?void 0:he.position)??"right"),Q=u&&!x&&!w&&((me=e.behaviour)==null?void 0:me.isCaret)!==!1,X=z(e.canvasColor,"canvas"),ee=Ok(X,J),ge=(((Ie=e.margin)==null?void 0:Ie.left)??0)+(((le=e.margin)==null?void 0:le.right)??0),$e=ge>0?`calc(100% - ${ge}px)`:"100%";return B(m.jsxs("div",{className:y,...e.hostTheme==="light"?{"data-pp-theme":"light"}:null,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),m.jsx("div",{style:{color:z(e.textColor,"layoutText"),fontFamily:Tk(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:m.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[Q&&m.jsx(zk,{position:J,color:ee}),m.jsxs("div",{style:{position:"relative",borderRadius:L(E),...P?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...D},children:[W&&m.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:L(E),zIndex:1,...U}}),k&&m.jsx(jk,{color:(Te=e.behaviour)==null?void 0:Te.iconCloseColor,position:(De=e.behaviour)==null?void 0:De.closeIconPosition,paddingTop:(Oe=e.behaviour)==null?void 0:Oe.closeIconPaddingTop,paddingLeft:(_e=e.behaviour)==null?void 0:_e.closeIconPaddingLeft,paddingRight:(Ye=e.behaviour)==null?void 0:Ye.closeIconPaddingRight}),m.jsx("table",{width:"100%",className:"ahd-layout-table",...ue(e.canvasColor,e.backgroundImage,"canvas"),style:{width:$e,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",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Mk(X,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...F,borderRadius:L(E),overflow:P?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:m.jsx("tbody",{children:m.jsx("tr",{style:{width:"100%"},children:m.jsxs("td",{className:"email-layout-content",children:[t.map(te=>m.jsx(Pe,{id:te},te)),v&&m.jsx(Bk,{})]})})})})]})]})})]}))}const Fk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hk=$().regex(/^rgba?\([^\)]+\)$/i),Gk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Wk=ae("transparent"),Cr=H([Fk,Hk,Gk,Wk]).nullable().optional(),Uk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Zk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),qk=T(["left","center","right"]).optional().nullable(),Vr={min:1,max:20},Yr={min:4,max:48},bu=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Vk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Yk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,On=(e,t,n)=>Math.min(Math.max(e,t),n),Xl=e=>e?bu(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Kk=A({style:A({backgroundColor:Cr,textAlign:qk,padding:Uk,margin:Zk}).optional().nullable(),props:A({stepperType:T(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(Vr.min).max(Vr.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:Cr,inactiveColor:Cr,dotSize:g().min(Yr.min).max(Yr.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:Cr,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:T(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),kt={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Jk({style:e,props:t}){const r=gi()==="mobile",a=typeof window<"u"&&window.location.pathname.includes("page")&&r,i=On((t==null?void 0:t.totalDots)??kt.totalDots,Vr.min,Vr.max),l=On((t==null?void 0:t.dotSize)??kt.dotSize,Yr.min,Yr.max),s=On((t==null?void 0:t.dotSpacing)??kt.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??kt.activeIndex,c=On(u,1,i),h=ie((t==null?void 0:t.activeColor)??kt.activeColor),d=ie((t==null?void 0:t.inactiveColor)??kt.inactiveColor),f=(t==null?void 0:t.stepperType)??kt.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??kt.numericColor,w=ie(x),k=On((t==null?void 0:t.numericFontSize)??kt.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??kt.numericPosition,_={...Xl((e==null?void 0:e.backgroundColor)??void 0),padding:Vk(e==null?void 0:e.padding,a),margin:Yk(e==null?void 0:e.margin,a),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(S==="above"||S==="below"),C={display:"inline-flex",flexDirection:y?"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:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${c}/${i}`,E=bu(x),L={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?m.jsx("span",{style:L,children:R}):null,P=()=>m.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:i}).map((B,F)=>{const W=F===c-1,D={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:W?"scale(1.1)":"scale(1)",...Xl(W?h:d)};return m.jsx("span",{style:D,"data-active":W?"true":"false"},F)})});return m.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:m.jsxs("div",{style:C,children:[p&&S==="above"&&M(),p&&S==="left"&&M(),b&&P(),p&&S==="right"&&M(),p&&S==="below"&&M()]})})}const Xk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Qk=$().regex(/^rgba?\([^\)]+\)$/i),ew=ae("transparent"),Do=H([Xk,Qk,ew]).nullable().optional(),xu=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tw=xu,nw=T(["left","center","right"]).optional().nullable(),rw=["disc","circle","square","dash","arrow","check","cross","none"],ow=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Ql={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},aw=A({text:$()}),iw=A({style:A({color:Do,backgroundColor:Do,textAlign:nw,fontSize:g().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:H([g(),$()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:xu,margin:tw}).optional().nullable(),props:A({listType:T(["unordered","ordered"]).optional().nullable(),marker:T([...rw,...ow]).optional().nullable(),numberSuffix:Uc(e=>e===""?void 0:e,T([".",")"]).optional().nullable()),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:Do,markerSize:g().min(1).max(200).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:oe(aw).optional().nullable()}).optional().nullable(),responsive:Ve}),Dt={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"}]},es=(e,t,n)=>Math.min(Math.max(e,t),n),ts=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ns=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="",r=e;for(const[o,a]of t)for(;r>=o;)n+=a,r-=o;return n},rs=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},lw=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${rs(o)}${r}`;case"upper-alpha":return`${rs(o).toUpperCase()}${r}`;case"lower-roman":return`${ns(o).toLowerCase()}${r}`;case"upper-roman":return`${ns(o)}${r}`;case"decimal":default:return`${o}${r}`}};function sw({style:e,props:t,renderItemText:n}){var k;const o=((t==null?void 0:t.listType)??Dt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":Dt.marker),i=(t==null?void 0:t.numberSuffix)??Dt.numberSuffix,l=(t==null?void 0:t.startNumber)??Dt.startNumber,s=(t==null?void 0:t.markerColor)??Dt.markerColor,u=es((t==null?void 0:t.markerSize)??Dt.markerSize,1,200),c=es((t==null?void 0:t.itemGap)??Dt.itemGap,0,64),h=(k=t==null?void 0:t.items)!=null&&k.length?t.items:Dt.items.map(S=>({...S})),d=z(e==null?void 0:e.color,"listText"),f=(e==null?void 0:e.textAlign)??"left",p={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:ts(e==null?void 0:e.padding),margin:ts(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:d,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},b={textAlign:"left"},x={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(s,"listText"),fontSize:`${u}px`},w=S=>a==="none"?null:o?lw(a,S,l,i):Ql[a]??Ql.disc;return m.jsx("div",{className:"list-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:m.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:f==="left"?"100%":"auto",maxWidth:"100%",marginLeft:f==="left"?void 0:"auto",marginRight:f==="center"?"auto":void 0},children:m.jsx("tbody",{children:h.map((S,v)=>{const _=w(v),y=typeof S.text=="string"&&S.text.indexOf("{{")!==-1;return m.jsxs("tr",{children:[a!=="none"&&m.jsx("td",{style:x,children:_}),m.jsx("td",{style:{...b,paddingBottom:v<h.length-1?`${c}px`:0,width:f==="left"?"100%":void 0},children:(n==null?void 0:n(S,v))??(y?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:mi(S.text)}}):S.text)})]},v)})})})})}const cw=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),uw=$().regex(/^rgba?\([^\)]+\)$/i),dw=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),hw=ae("transparent"),fw=H([cw,uw,dw,hw]).nullable().optional(),pw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),gw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ka=A({style:A({backgroundColor:fw,padding:pw,margin:gw}).optional().nullable(),props:A({direction:T(["row","column"]).optional().nullable(),directionTablet:T(["row","column"]).optional().nullable(),directionMobile:T(["row","column"]).optional().nullable(),gap:g().optional().nullable(),gapTablet:g().optional().nullable(),gapMobile:g().optional().nullable(),alignment:T(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:T(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:T(["start","center","end","space-between"]).optional().nullable(),wrap:O().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ve}),Ar={direction:"row",gap:12,alignment:"start",wrap:!0},Kr={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},mw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,bw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function os(e,t,n,r){const o=e==="row"?Kr[t]:"flex-start",a=e==="column"?Kr[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${a}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${r}px!important;`}let xw=0;function vw({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??Ar.direction,o=(n==null?void 0:n.directionTablet)??r,a=(n==null?void 0:n.directionMobile)??o,i=(n==null?void 0:n.gap)??Ar.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??Ar.alignment,c=(n==null?void 0:n.alignmentTablet)??u,h=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??Ar.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=r,b=u,x=i,w=e==null?void 0:e.margin,k=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),S={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?Kr[b]:"flex-start",alignItems:p==="column"?Kr[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:mw(e==null?void 0:e.padding),margin:bw(e==null?void 0:e.margin),boxSizing:"border-box",width:k>0?`max(0px, calc(100% - ${k}px))`:"100%"},v=G.useMemo(()=>`ahd-bg-${xw+=1}`,[]),_=G.useMemo(()=>{const y=`.${v}`;let C="";return(o!==r||c!==u||l!==i)&&(C+=`@media (max-width:${Ue}px){${y}{${os(o,c,d,l)}}}`),(a!==o||h!==c||s!==l)&&(C+=`@media (max-width:${qe}px){${y}{${os(a,h,d,s)}}}`),C},[v,r,o,a,u,c,h,i,l,s,d]);return m.jsxs("div",{className:`button-group ${v}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,role:"group","aria-label":f,children:[_&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const kw=ka.shape.props.unwrap().unwrap().shape,ww=A({style:ka.shape.style,props:A({...kw,childrenIds:oe($()).optional().nullable()}).optional().nullable(),responsive:ka.shape.responsive});function Sw({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(a=>m.jsx(Pe,{id:a},a));return m.jsx(vw,{style:e,props:r,buttons:o})}const $w=A({titleChildrenIds:oe($()).optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),_w=A({responsive:Ve,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({items:oe($w).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function Cw(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 as=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function Aw(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),r=e.split(" ").map(o=>Math.max(0,parseFloat(o)-n));return r.length===1?`${r[0]}px`:r.map(o=>`${o}px`).join(" ")}function yw({style:e,props:t}){const n=G.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=G.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,a=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=ie(s),h=ie(u),d=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),f=z(null,"surface"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=Cw(e==null?void 0:e.borderRadius),w=as(u),k=as(s),S=w||k,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),S?(v.padding=b,w?v.background=z(u,"borderAdaptive"):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(S?f:void 0),borderRadius:S?Aw(x,p):void 0,padding:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,overflow:S&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(k?y.push(`#${r}:checked + .email-accordion-root { background:${z(s,"borderAdaptive")}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${r}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${c}!important; border-width:${b}!important; ${S?"padding:0!important;":""} }`)),m.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[m.jsx("style",{children:`
241
+ `)||null,We=ce=>{if(ce!=null)return typeof ce=="number"?`${ce}px`:`${ce.topLeft}px ${ce.topRight}px ${ce.bottomRight}px ${ce.bottomLeft}px`},Fe=(e==null?void 0:e.borderColor)??null,se=(e==null?void 0:e.borderWidth)??null,It=rk(z(Fe,"borderAdaptive"),se),je=ik(e==null?void 0:e.boxShadow),tt=z(e==null?void 0:e.backgroundColor,"bgAdaptive")??"",Qe=tk(tt),Vt=(e==null?void 0:e.backgroundSize)==="none",Rt=!Vt&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,xt=nk(tt,Rt),ct=ue(e==null?void 0:e.backgroundColor,Rt,"bgAdaptive"),Yt=Vt?void 0:(e==null?void 0:e.backgroundSize)??void 0,vt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",fr=Fe&&(Fe.includes("linear-gradient")||Fe.includes("radial-gradient")||Fe.includes("repeating-linear-gradient")),nt=Z!=null,ut=nt?{"--ahd-cb-h":`${Z}px`}:{},Tt=nt?" container-block-has-height":"";if(fr){const ce={...It,borderRadius:We(e==null?void 0:e.borderRadius),width:j,maxWidth:"100%",minWidth:0,height:nt?`${Z}px`:void 0,boxSizing:"border-box",...$e(M,e==null?void 0:e.margin,V==="100%"),...he?{display:"inline-block"}:{},...je,...ut},be={...Qe,backgroundImage:xt,backgroundSize:Yt,backgroundRepeat:vt,borderRadius:lk((e==null?void 0:e.borderRadius)??0,se),overflow:y?"auto":"hidden",padding:Yl(e==null?void 0:e.padding),width:"100%",height:nt?"100%":void 0,boxSizing:"border-box"},Ke=`container-block${y?" container-block-overflow":""}${Tt}${le?` ${le}`:""}`,rt=`container-block-inner${y?" container-block-overflow":""}`,Nt=D?{...ce,...Q.style,...he?{display:"inline-block"}:{}}:ce,Kt=m.jsx(q,{className:Ke,"aria-label":P,id:B,...ct,...Q,style:Nt,children:m.jsx("div",{className:rt,style:be,children:n})});return m.jsxs(m.Fragment,{children:[te&&m.jsx("style",{dangerouslySetInnerHTML:{__html:te}}),he?m.jsx("div",{className:Te,style:he,children:Kt}):Kt]})}const ne={...Qe,backgroundImage:xt,backgroundSize:Yt,backgroundRepeat:vt,...It,borderRadius:We(e==null?void 0:e.borderRadius),padding:Yl(e==null?void 0:e.padding),...$e(M,e==null?void 0:e.margin,V==="100%"),width:j,maxWidth:"100%",minWidth:0,height:nt?`${Z}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...he?{display:"inline-block"}:{},...je,...ut},ye=`container-block${y?" container-block-overflow":""}${Tt}${le?` ${le}`:""}`,ze=D?{...ne,...Q.style,...he?{display:"inline-block"}:{}}:ne;if(!n){const ce=m.jsx(q,{className:ye,"aria-label":P,id:B,...ct,...Q,style:ze});return m.jsxs(m.Fragment,{children:[te&&m.jsx("style",{dangerouslySetInnerHTML:{__html:te}}),he?m.jsx("div",{className:Te,style:he,children:ce}):ce]})}const Et=m.jsx(q,{className:ye,"aria-label":P,id:B,...ct,...Q,style:ze,children:n});return m.jsxs(m.Fragment,{children:[te&&m.jsx("style",{dangerouslySetInnerHTML:{__html:te}}),he?m.jsx("div",{className:Te,style:he,children:Et}):Et]})}const uk=A({style:sk.shape.style,responsive:Ve,props:A({childrenIds:oe($()).optional().nullable(),fullWidth:O().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:H([g().min(0),ae("auto")]).optional().nullable(),heightMobile:H([g().min(0),ae("auto")]).optional().nullable(),overflow:O().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:O().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),hoverEffect:yt}).optional().nullable()});function mu({style:e,props:t,responsive:n,blockId:r}){var l,s,u,c;const o=(t==null?void 0:t.childrenIds)??[],a=(s=(l=n==null?void 0:n.tablet)==null?void 0:l.props)==null?void 0:s.heightTablet,i=(c=(u=n==null?void 0:n.mobile)==null?void 0:u.props)==null?void 0:c.heightMobile;return m.jsx(ck,{style:e,blockId:r,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)??a??void 0,heightMobile:(t==null?void 0:t.heightMobile)??i??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:o.map(h=>m.jsx(Pe,{id:h},h))})}const dk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),hk=$().regex(/^rgba?\([^\)]+\)$/i),fk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),pk=ae("transparent"),kn=H([dk,hk,fk,pk]).nullable().optional(),gk=T(["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(),mk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Oo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),zo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bk=$().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(),xk=A({color:kn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:O().default(!1)}).partial().optional().nullable(),vk=A({position:T(["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:O().optional().default(!0),selector:$().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:kn,closeIconPosition:T(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),kk=oe(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),Kl=A({formFields:kk,backdropColor:kn.default(null),borderColor:kn.default(null),borderRadius:g().optional().nullable(),canvasColor:kn.default(null),textColor:kn,hostTheme:T(["follow","light"]).optional().nullable(),fontFamily:gk,childrenIds:oe($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Oo,margin:zo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Oo,paddingMobile:Oo,marginTablet:zo,marginMobile:zo,borderWidth:mk,boxShadow:xk,behaviour:vk,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:bk,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable()}),wk=()=>null,Sk="INTER";function $k(e){return e||Sk}function pn(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function _r(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return pn(o)?o:null;const a=r[`${t}Tablet`];if(n==="tablet")return pn(a)?a:pn(o)?o:null;const i=r[`${t}Mobile`];return pn(i)?i:pn(a)?a:pn(o)?o:null}function jo(e,t){return{maxWidth:_r(e,"maxWidth",t)??null,maxHeight:_r(e,"maxHeight",t)??null,padding:_r(e,"padding",t)??null,margin:_r(e,"margin",t)??null}}function _k(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Ck(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Bo(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:${_k(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Ck(t.margin)};}`),n.join("")}function Ak(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},a=jo(t,"desktop"),i=Bo(o,{...a,maxWidth:a.maxWidth??n??null}),l=Bo(o,jo(t,"tablet")),s=Bo(o,jo(t,"mobile")),u=(c,h)=>h?`@media (max-width:${c}px){${h}}@container ahd-page (max-width:${c}px){${h}}`:"";return[i,u(Ue,l),u(qe,s)].filter(Boolean).join("")}const yk="Made with Page Pilot",Ik="https://pagepilot.fabbuilder.com";let Rk=0;function Tk(e){switch($k(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'}}function Ek(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),a=r??0,i=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:a?i(a):void 0};if(o){const s=z(e.canvasColor,"canvas"),u=!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:`${u}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:a?i(a):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:a?i(a):void 0}}function Nk(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Jl(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e,l=Nk(t);return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${l}`}}function Mk(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 Pk(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 Lk(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Ok(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Lk(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function zk({position:e,color:t}){const o="20px",a={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:o,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:o,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return m.jsx("div",{"aria-hidden":!0,style:{...a,...c}})}function jk({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const a=z(e,"closeIcon"),i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof r=="number"?r:2}:i==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return m.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...c,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none",stroke:a},children:[m.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),m.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Bk(){const e=z(null,"brandingText");return m.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:m.jsx("a",{href:Ik,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:yk})})}function Dk(e){var ke,Le,X,Z,V,j,Y,he,we,fe,me,Ie,le,Te,De,Oe,_e,Ye;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),a=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||a,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=ib(),d=(ke=wk())==null?void 0:ke.getState(),f=(Z=(X=(Le=d==null?void 0:d.appBanner)==null?void 0:Le.view)==null?void 0:X.record)==null?void 0:Z.type,p=h??f,b=r==="page"||h==="page",x=o&&(p==="floater"||((V=e.behaviour)==null?void 0:V.bannerSubType)==="floater"||c.includes((j=e.behaviour)==null?void 0:j.position)),w=o&&(p==="modal"||((Y=e.behaviour)==null?void 0:Y.bannerSubType)==="modal"),k=(u||x||w)&&((he=e.behaviour)==null?void 0:he.showCloseIcon)!==!1,v=u&&!0,_=o&&e.linkHref?e.linkHref:null,y=G.useMemo(()=>`ahd-layout-${Rk+=1}`,[]),I=Ak(y,e,b||i?"100%":o&&!x?"900px":"320px"),R=(o||a)&&!!e.backgroundImage;e.borderRadius;const E=e.borderRadius??0,L=te=>typeof te=="number"?`${te}px`:`${te.topLeft}px ${te.topRight}px ${te.bottomRight}px ${te.bottomLeft}px`,P=(te=>te==null?!1:typeof te=="number"?te>0:(te.topLeft??0)>0||(te.topRight??0)>0||(te.bottomRight??0)>0||(te.bottomLeft??0)>0)(E),B=te=>_?m.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:te}):te,F=Ek({...e,borderColor:z(e.borderColor,"borderAdaptive")??null}),U=o&&!!((we=e.boxShadow)!=null&&we.color)&&!!e.boxShadow.inset,K=o&&!U?Jl(e.boxShadow):{},D=U?Jl(e.boxShadow):{},J=Pk(((fe=e.behaviour)==null?void 0:fe.position)??"right"),q=u&&!x&&!w&&((me=e.behaviour)==null?void 0:me.isCaret)!==!1,Q=z(e.canvasColor,"canvas"),ee=Ok(Q,J),de=(((Ie=e.margin)==null?void 0:Ie.left)??0)+(((le=e.margin)==null?void 0:le.right)??0),$e=de>0?`calc(100% - ${de}px)`:"100%";return B(m.jsxs("div",{className:y,...e.hostTheme==="light"?{"data-pp-theme":"light"}:null,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),m.jsx("div",{style:{color:z(e.textColor,"layoutText"),fontFamily:Tk(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:m.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[q&&m.jsx(zk,{position:J,color:ee}),m.jsxs("div",{style:{position:"relative",borderRadius:L(E),...P?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...K},children:[U&&m.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:L(E),zIndex:1,...D}}),k&&m.jsx(jk,{color:(Te=e.behaviour)==null?void 0:Te.iconCloseColor,position:(De=e.behaviour)==null?void 0:De.closeIconPosition,paddingTop:(Oe=e.behaviour)==null?void 0:Oe.closeIconPaddingTop,paddingLeft:(_e=e.behaviour)==null?void 0:_e.closeIconPaddingLeft,paddingRight:(Ye=e.behaviour)==null?void 0:Ye.closeIconPaddingRight}),m.jsx("table",{width:"100%",className:"ahd-layout-table",...ue(e.canvasColor,e.backgroundImage,"canvas"),style:{width:$e,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",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Mk(Q,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...F,borderRadius:L(E),overflow:P?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:m.jsx("tbody",{children:m.jsx("tr",{style:{width:"100%"},children:m.jsxs("td",{className:"email-layout-content",children:[t.map(te=>m.jsx(Pe,{id:te},te)),v&&m.jsx(Bk,{})]})})})})]})]})})]}))}const Fk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hk=$().regex(/^rgba?\([^\)]+\)$/i),Gk=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Wk=ae("transparent"),Cr=H([Fk,Hk,Gk,Wk]).nullable().optional(),Uk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Zk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),qk=T(["left","center","right"]).optional().nullable(),Vr={min:1,max:20},Yr={min:4,max:48},bu=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Vk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Yk=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,On=(e,t,n)=>Math.min(Math.max(e,t),n),Xl=e=>e?bu(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Kk=A({style:A({backgroundColor:Cr,textAlign:qk,padding:Uk,margin:Zk}).optional().nullable(),props:A({stepperType:T(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(Vr.min).max(Vr.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:Cr,inactiveColor:Cr,dotSize:g().min(Yr.min).max(Yr.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:Cr,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:T(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),kt={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Jk({style:e,props:t}){const r=gi()==="mobile",a=typeof window<"u"&&window.location.pathname.includes("page")&&r,i=On((t==null?void 0:t.totalDots)??kt.totalDots,Vr.min,Vr.max),l=On((t==null?void 0:t.dotSize)??kt.dotSize,Yr.min,Yr.max),s=On((t==null?void 0:t.dotSpacing)??kt.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??kt.activeIndex,c=On(u,1,i),h=ie((t==null?void 0:t.activeColor)??kt.activeColor),d=ie((t==null?void 0:t.inactiveColor)??kt.inactiveColor),f=(t==null?void 0:t.stepperType)??kt.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??kt.numericColor,w=ie(x),k=On((t==null?void 0:t.numericFontSize)??kt.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??kt.numericPosition,_={...Xl((e==null?void 0:e.backgroundColor)??void 0),padding:Vk(e==null?void 0:e.padding,a),margin:Yk(e==null?void 0:e.margin,a),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(S==="above"||S==="below"),C={display:"inline-flex",flexDirection:y?"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:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${c}/${i}`,E=bu(x),L={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?m.jsx("span",{style:L,children:R}):null,P=()=>m.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:i}).map((B,F)=>{const U=F===c-1,K={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:U?"scale(1.1)":"scale(1)",...Xl(U?h:d)};return m.jsx("span",{style:K,"data-active":U?"true":"false"},F)})});return m.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:m.jsxs("div",{style:C,children:[p&&S==="above"&&M(),p&&S==="left"&&M(),b&&P(),p&&S==="right"&&M(),p&&S==="below"&&M()]})})}const Xk=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Qk=$().regex(/^rgba?\([^\)]+\)$/i),ew=ae("transparent"),Do=H([Xk,Qk,ew]).nullable().optional(),xu=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tw=xu,nw=T(["left","center","right"]).optional().nullable(),rw=["disc","circle","square","dash","arrow","check","cross","none"],ow=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Ql={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},aw=A({text:$()}),iw=A({style:A({color:Do,backgroundColor:Do,textAlign:nw,fontSize:g().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:H([g(),$()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:xu,margin:tw}).optional().nullable(),props:A({listType:T(["unordered","ordered"]).optional().nullable(),marker:T([...rw,...ow]).optional().nullable(),numberSuffix:Uc(e=>e===""?void 0:e,T([".",")"]).optional().nullable()),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:Do,markerSize:g().min(1).max(200).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:oe(aw).optional().nullable()}).optional().nullable(),responsive:Ve}),Dt={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"}]},es=(e,t,n)=>Math.min(Math.max(e,t),n),ts=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ns=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="",r=e;for(const[o,a]of t)for(;r>=o;)n+=a,r-=o;return n},rs=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},lw=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${rs(o)}${r}`;case"upper-alpha":return`${rs(o).toUpperCase()}${r}`;case"lower-roman":return`${ns(o).toLowerCase()}${r}`;case"upper-roman":return`${ns(o)}${r}`;case"decimal":default:return`${o}${r}`}};function sw({style:e,props:t,renderItemText:n}){var k;const o=((t==null?void 0:t.listType)??Dt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":Dt.marker),i=(t==null?void 0:t.numberSuffix)??Dt.numberSuffix,l=(t==null?void 0:t.startNumber)??Dt.startNumber,s=(t==null?void 0:t.markerColor)??Dt.markerColor,u=es((t==null?void 0:t.markerSize)??Dt.markerSize,1,200),c=es((t==null?void 0:t.itemGap)??Dt.itemGap,0,64),h=(k=t==null?void 0:t.items)!=null&&k.length?t.items:Dt.items.map(S=>({...S})),d=z(e==null?void 0:e.color,"listText"),f=(e==null?void 0:e.textAlign)??"left",p={backgroundColor:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:ts(e==null?void 0:e.padding),margin:ts(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:d,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},b={textAlign:"left"},x={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(s,"listText"),fontSize:`${u}px`},w=S=>a==="none"?null:o?lw(a,S,l,i):Ql[a]??Ql.disc;return m.jsx("div",{className:"list-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:m.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:f==="left"?"100%":"auto",maxWidth:"100%",marginLeft:f==="left"?void 0:"auto",marginRight:f==="center"?"auto":void 0},children:m.jsx("tbody",{children:h.map((S,v)=>{const _=w(v),y=typeof S.text=="string"&&S.text.indexOf("{{")!==-1;return m.jsxs("tr",{children:[a!=="none"&&m.jsx("td",{style:x,children:_}),m.jsx("td",{style:{...b,paddingBottom:v<h.length-1?`${c}px`:0,width:f==="left"?"100%":void 0},children:(n==null?void 0:n(S,v))??(y?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:mi(S.text)}}):S.text)})]},v)})})})})}const cw=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),uw=$().regex(/^rgba?\([^\)]+\)$/i),dw=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),hw=ae("transparent"),fw=H([cw,uw,dw,hw]).nullable().optional(),pw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),gw=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ka=A({style:A({backgroundColor:fw,padding:pw,margin:gw}).optional().nullable(),props:A({direction:T(["row","column"]).optional().nullable(),directionTablet:T(["row","column"]).optional().nullable(),directionMobile:T(["row","column"]).optional().nullable(),gap:g().optional().nullable(),gapTablet:g().optional().nullable(),gapMobile:g().optional().nullable(),alignment:T(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:T(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:T(["start","center","end","space-between"]).optional().nullable(),wrap:O().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:Ve}),Ar={direction:"row",gap:12,alignment:"start",wrap:!0},Kr={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},mw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,bw=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function os(e,t,n,r){const o=e==="row"?Kr[t]:"flex-start",a=e==="column"?Kr[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${a}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${r}px!important;`}let xw=0;function vw({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??Ar.direction,o=(n==null?void 0:n.directionTablet)??r,a=(n==null?void 0:n.directionMobile)??o,i=(n==null?void 0:n.gap)??Ar.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??Ar.alignment,c=(n==null?void 0:n.alignmentTablet)??u,h=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??Ar.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=r,b=u,x=i,w=e==null?void 0:e.margin,k=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),S={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?Kr[b]:"flex-start",alignItems:p==="column"?Kr[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),padding:mw(e==null?void 0:e.padding),margin:bw(e==null?void 0:e.margin),boxSizing:"border-box",width:k>0?`max(0px, calc(100% - ${k}px))`:"100%"},v=G.useMemo(()=>`ahd-bg-${xw+=1}`,[]),_=G.useMemo(()=>{const y=`.${v}`;let C="";return(o!==r||c!==u||l!==i)&&(C+=`@media (max-width:${Ue}px){${y}{${os(o,c,d,l)}}}`),(a!==o||h!==c||s!==l)&&(C+=`@media (max-width:${qe}px){${y}{${os(a,h,d,s)}}}`),C},[v,r,o,a,u,c,h,i,l,s,d]);return m.jsxs("div",{className:`button-group ${v}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:S,role:"group","aria-label":f,children:[_&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const kw=ka.shape.props.unwrap().unwrap().shape,ww=A({style:ka.shape.style,props:A({...kw,childrenIds:oe($()).optional().nullable()}).optional().nullable(),responsive:ka.shape.responsive});function Sw({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(a=>m.jsx(Pe,{id:a},a));return m.jsx(vw,{style:e,props:r,buttons:o})}const $w=A({titleChildrenIds:oe($()).optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),_w=A({responsive:Ve,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({items:oe($w).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function Cw(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 as=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function Aw(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),r=e.split(" ").map(o=>Math.max(0,parseFloat(o)-n));return r.length===1?`${r[0]}px`:r.map(o=>`${o}px`).join(" ")}function yw({style:e,props:t}){const n=G.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=G.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,a=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=ie(s),h=ie(u),d=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),f=z(null,"surface"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=Cw(e==null?void 0:e.borderRadius),w=as(u),k=as(s),S=w||k,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),S?(v.padding=b,w?v.background=z(u,"borderAdaptive"):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(S?f:void 0),borderRadius:S?Aw(x,p):void 0,padding:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,overflow:S&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(k?y.push(`#${r}:checked + .email-accordion-root { background:${z(s,"borderAdaptive")}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${r}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${c}!important; border-width:${b}!important; ${S?"padding:0!important;":""} }`)),m.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[m.jsx("style",{children:`
242
242
  .email-accordion-root { width:100%; }
243
243
  .email-accordion-toggle { display:none; }
244
244
  .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; }
@@ -249,39 +249,39 @@ ${y}
249
249
  .email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
250
250
  ${y.join(`
251
251
  `)}
252
- `}),m.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),m.jsx("div",{className:"email-accordion-root",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:v,children:m.jsxs("div",{className:"email-accordion-inner",style:_,children:[m.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[m.jsx("div",{className:"title",children:n.titleChildrenIds.map(C=>m.jsx(Pe,{id:C},C))}),m.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor,"blockText")},children:m.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:m.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"})})})]}),m.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(C=>m.jsx(Pe,{id:C},C))})]})})]})}const Iw=A({label:$().optional().nullable(),cardChildrenIds:oe($()).optional().nullable(),detailChildrenIds:oe($()).optional().nullable()}),Rw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:O().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:T(["left","center","right"]).optional().nullable(),cardHoverBgColor:$().optional().nullable(),cardHoverShadow:$().optional().nullable(),activeCardBgColor:$().optional().nullable(),activeCardBorderColor:$().optional().nullable(),activeCardShadow:$().optional().nullable(),activeCardTextColor:$().optional().nullable(),arrowColor:$().optional().nullable(),arrowActiveColor:$().optional().nullable(),arrowSize:g().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:A({items:oe(Iw).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:O().optional().nullable(),detailPosition:T(["bottom","right"]).optional().nullable()}).optional().nullable()});function Tw(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 Ew({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]),r=G.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.accordionEnabled)??!1,a=(t==null?void 0:t.defaultOpenIndex)??null,i=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,u=z(e==null?void 0:e.cardBgColor,"surface"),c=z(e==null?void 0:e.cardBorderColor,"borderSubtle"),h=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,f=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=ie((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",k=(e==null?void 0:e.cardFontWeight)??"inherit",S=(e==null?void 0:e.cardTextAlign)??"left",v=ie((e==null?void 0:e.cardHoverBgColor)??null),_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=ie(e==null?void 0:e.activeCardBgColor)??u,C=ie(e==null?void 0:e.activeCardBorderColor)??c,I=(e==null?void 0:e.activeCardShadow)??p,R=ie(e==null?void 0:e.activeCardTextColor)??b,E=ie((e==null?void 0:e.arrowColor)??"currentColor"),L=ie(e==null?void 0:e.arrowActiveColor)??E,M=(e==null?void 0:e.arrowSize)??13,P=z(e==null?void 0:e.detailBgColor,{role:"surface-alt",seeds:[],nullFallback:"#f8fafc"}),B=z(e==null?void 0:e.detailBorderColor,{role:"border-subtle",seeds:[],nullFallback:"rgba(0,0,0,0.08)"}),F=(e==null?void 0:e.detailBorderWidth)??1,W=(e==null?void 0:e.detailBorderRadius)??12,D=(e==null?void 0:e.detailPadding)??24,U=(e==null?void 0:e.detailShadow)??"none",J=(e==null?void 0:e.detailGap)??12,Q=(e==null?void 0:e.rightCardWidth)??280,X=e==null?void 0:e.padding,ee={width:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:Tw(e==null?void 0:e.borderRadius),padding:X?`${X.top}px ${X.right}px ${X.bottom}px ${X.left}px`:void 0},ge=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,$e=x?`${x}px`:"inherit";if(!o){const K=`
253
- .pacc-grid{display:grid;grid-template-columns:${ge};gap:${l}px;width:100%;box-sizing:border-box}
252
+ `}),m.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),m.jsx("div",{className:"email-accordion-root",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:v,children:m.jsxs("div",{className:"email-accordion-inner",style:_,children:[m.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[m.jsx("div",{className:"title",children:n.titleChildrenIds.map(C=>m.jsx(Pe,{id:C},C))}),m.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor,"blockText")},children:m.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:m.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"})})})]}),m.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(C=>m.jsx(Pe,{id:C},C))})]})})]})}const Iw=A({label:$().optional().nullable(),cardChildrenIds:oe($()).optional().nullable(),detailChildrenIds:oe($()).optional().nullable()}),Rw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:O().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:T(["left","center","right"]).optional().nullable(),cardHoverBgColor:$().optional().nullable(),cardHoverShadow:$().optional().nullable(),activeCardBgColor:$().optional().nullable(),activeCardBorderColor:$().optional().nullable(),activeCardShadow:$().optional().nullable(),activeCardTextColor:$().optional().nullable(),arrowColor:$().optional().nullable(),arrowActiveColor:$().optional().nullable(),arrowSize:g().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:A({items:oe(Iw).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:O().optional().nullable(),detailPosition:T(["bottom","right"]).optional().nullable()}).optional().nullable()});function Tw(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 Ew({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]),r=G.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.accordionEnabled)??!1,a=(t==null?void 0:t.defaultOpenIndex)??null,i=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,u=z(e==null?void 0:e.cardBgColor,"surface"),c=z(e==null?void 0:e.cardBorderColor,"borderSubtle"),h=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,f=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=ie((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",k=(e==null?void 0:e.cardFontWeight)??"inherit",S=(e==null?void 0:e.cardTextAlign)??"left",v=ie((e==null?void 0:e.cardHoverBgColor)??null),_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=ie(e==null?void 0:e.activeCardBgColor)??u,C=ie(e==null?void 0:e.activeCardBorderColor)??c,I=(e==null?void 0:e.activeCardShadow)??p,R=ie(e==null?void 0:e.activeCardTextColor)??b,E=ie((e==null?void 0:e.arrowColor)??"currentColor"),L=ie(e==null?void 0:e.arrowActiveColor)??E,M=(e==null?void 0:e.arrowSize)??13,P=z(e==null?void 0:e.detailBgColor,{role:"surface-alt",seeds:[],nullFallback:"#f8fafc"}),B=z(e==null?void 0:e.detailBorderColor,{role:"border-subtle",seeds:[],nullFallback:"rgba(0,0,0,0.08)"}),F=(e==null?void 0:e.detailBorderWidth)??1,U=(e==null?void 0:e.detailBorderRadius)??12,K=(e==null?void 0:e.detailPadding)??24,D=(e==null?void 0:e.detailShadow)??"none",J=(e==null?void 0:e.detailGap)??12,q=(e==null?void 0:e.rightCardWidth)??280,Q=e==null?void 0:e.padding,ee={width:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:Tw(e==null?void 0:e.borderRadius),padding:Q?`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`:void 0},de=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,$e=x?`${x}px`:"inherit";if(!o){const X=`
253
+ .pacc-grid{display:grid;grid-template-columns:${de};gap:${l}px;width:100%;box-sizing:border-box}
254
254
  .pacc-grid-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${$e};font-family:${w};font-weight:${k};text-align:${S}}
255
255
  ${v?`.pacc-grid-card:hover{background:${v};box-shadow:${_}}`:`.pacc-grid-card:hover{box-shadow:${_}}`}
256
256
  @media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
257
- `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ee,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:K}}),m.jsx("div",{className:"pacc-grid",children:n.map((q,V)=>m.jsx("div",{className:"pacc-grid-card",children:(q.cardChildrenIds??[]).map(j=>m.jsx(Pe,{id:j},j))},V))})]})}if(i==="bottom"){const K=n.map((V,j)=>{const Y=`#${r}-cb${j}:checked ~ .pacc-wrap`;return`${Y}{grid-template-columns:1fr}`+n.map((de,we)=>we!==j?`${Y} .pacc-item:nth-child(${we+1}){display:none}`:"").join("")+`${Y} .pacc-item:nth-child(${j+1}){display:block}${Y} .pacc-item:nth-child(${j+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${I};color:${R}}${Y} .pacc-item:nth-child(${j+1}) .pacc-arrow{transform:rotate(180deg);color:${L}}${Y} .pacc-item:nth-child(${j+1}) .pacc-detail{display:block}`}).join(""),q=`
257
+ `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ee,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:X}}),m.jsx("div",{className:"pacc-grid",children:n.map((Z,V)=>m.jsx("div",{className:"pacc-grid-card",children:(Z.cardChildrenIds??[]).map(j=>m.jsx(Pe,{id:j},j))},V))})]})}if(i==="bottom"){const X=n.map((V,j)=>{const Y=`#${r}-cb${j}:checked ~ .pacc-wrap`;return`${Y}{grid-template-columns:1fr}`+n.map((he,we)=>we!==j?`${Y} .pacc-item:nth-child(${we+1}){display:none}`:"").join("")+`${Y} .pacc-item:nth-child(${j+1}){display:block}${Y} .pacc-item:nth-child(${j+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${I};color:${R}}${Y} .pacc-item:nth-child(${j+1}) .pacc-arrow{transform:rotate(180deg);color:${L}}${Y} .pacc-item:nth-child(${j+1}) .pacc-detail{display:block}`}).join(""),Z=`
258
258
  .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}
259
- .pacc-wrap{display:grid;grid-template-columns:${ge};gap:${l}px;width:100%;box-sizing:border-box}
259
+ .pacc-wrap{display:grid;grid-template-columns:${de};gap:${l}px;width:100%;box-sizing:border-box}
260
260
  .pacc-item{box-sizing:border-box}
261
261
  .pacc-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;padding-right:${f+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:${S};color:${b};font-size:${$e};font-family:${w};font-weight:${k};box-shadow:${p}}
262
262
  ${v?`.pacc-card:hover{background:${v};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
263
263
  .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:${E}}
264
264
  .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
265
- .pacc-detail{display:none;margin-top:${J}px;background:${P};border:${F}px solid ${B};border-radius:${W}px;padding:${D}px;box-sizing:border-box;box-shadow:${U}}
265
+ .pacc-detail{display:none;margin-top:${J}px;background:${P};border:${F}px solid ${B};border-radius:${U}px;padding:${K}px;box-sizing:border-box;box-shadow:${D}}
266
266
  @media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
267
- ${K}
268
- `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ee,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:q}}),n.map((V,j)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${j}`,className:"pacc-cb",defaultChecked:j===a},j)),m.jsx("div",{className:"pacc-wrap",children:n.map((V,j)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${j}`,className:"pacc-card",children:[(V.cardChildrenIds??[]).map(Y=>m.jsx(Pe,{id:Y},Y)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-down"})})]}),m.jsx("div",{className:"pacc-detail",children:(V.detailChildrenIds??[]).map(Y=>m.jsx(Pe,{id:Y},Y))})]},j))})]})}const ke=n.map((K,q)=>{const V=`#${r}-cb${q}:checked ~ .pacc-wrap`;return`${V}{grid-template-columns:1fr}`+n.map((j,Y)=>Y!==q?`${V} .pacc-item:nth-child(${Y+1}){display:none}`:"").join("")+`${V} .pacc-item:nth-child(${q+1}){display:flex;flex-direction:row;gap:${J}px;align-items:flex-start}${V} .pacc-item:nth-child(${q+1}) .pacc-card{flex-shrink:0;width:${Q}px;background:${y};border-color:${C};box-shadow:${I};color:${R}}${V} .pacc-item:nth-child(${q+1}) .pacc-arrow{transform:rotate(90deg);color:${L}}${V} .pacc-item:nth-child(${q+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),Le=`
267
+ ${X}
268
+ `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ee,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Z}}),n.map((V,j)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${j}`,className:"pacc-cb",defaultChecked:j===a},j)),m.jsx("div",{className:"pacc-wrap",children:n.map((V,j)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${j}`,className:"pacc-card",children:[(V.cardChildrenIds??[]).map(Y=>m.jsx(Pe,{id:Y},Y)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-down"})})]}),m.jsx("div",{className:"pacc-detail",children:(V.detailChildrenIds??[]).map(Y=>m.jsx(Pe,{id:Y},Y))})]},j))})]})}const ke=n.map((X,Z)=>{const V=`#${r}-cb${Z}:checked ~ .pacc-wrap`;return`${V}{grid-template-columns:1fr}`+n.map((j,Y)=>Y!==Z?`${V} .pacc-item:nth-child(${Y+1}){display:none}`:"").join("")+`${V} .pacc-item:nth-child(${Z+1}){display:flex;flex-direction:row;gap:${J}px;align-items:flex-start}${V} .pacc-item:nth-child(${Z+1}) .pacc-card{flex-shrink:0;width:${q}px;background:${y};border-color:${C};box-shadow:${I};color:${R}}${V} .pacc-item:nth-child(${Z+1}) .pacc-arrow{transform:rotate(90deg);color:${L}}${V} .pacc-item:nth-child(${Z+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),Le=`
269
269
  .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}
270
- .pacc-wrap{display:grid;grid-template-columns:${ge};gap:${l}px;width:100%;box-sizing:border-box}
270
+ .pacc-wrap{display:grid;grid-template-columns:${de};gap:${l}px;width:100%;box-sizing:border-box}
271
271
  .pacc-item{box-sizing:border-box}
272
272
  .pacc-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;padding-right:${f+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:${S};color:${b};font-size:${$e};font-family:${w};font-weight:${k};box-shadow:${p}}
273
273
  ${v?`.pacc-card:hover{background:${v};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
274
274
  .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:${E}}
275
275
  .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${M}px;line-height:1}
276
- .pacc-detail{display:none;background:${P};border:${F}px solid ${B};border-radius:${W}px;padding:${D}px;box-sizing:border-box;box-shadow:${U}}
276
+ .pacc-detail{display:none;background:${P};border:${F}px solid ${B};border-radius:${U}px;padding:${K}px;box-sizing:border-box;box-shadow:${D}}
277
277
  @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}}
278
278
  ${ke}
279
- `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ee,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Le}}),n.map((K,q)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${q}`,className:"pacc-cb",defaultChecked:q===a},q)),m.jsx("div",{className:"pacc-wrap",children:n.map((K,q)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${q}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(V=>m.jsx(Pe,{id:V},V)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-right"})})]}),m.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(V=>m.jsx(Pe,{id:V},V))})]},q))})]})}const Nw=160,Mw=A({label:$().optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),Pw=A({responsive:Ve,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:g().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:g().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:g().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),lineHeight:H([$(),g()]).optional().nullable(),activeFontSize:H([$(),g()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:T(["horizontal","vertical"]).optional().nullable(),orientationTablet:T(["horizontal","vertical"]).optional().nullable(),orientationMobile:T(["horizontal","vertical"]).optional().nullable(),behavior:T(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:T(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:O().optional().nullable(),items:oe(Mw).min(1).max(20).optional().nullable()}).optional().nullable()});function Lw(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Ow(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 is(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const zw={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},jw={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function At(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Jr(e,t=!1){const n=t?"!important":"";return e?At(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function Xr(e,t=!1){const n=t?"!important":"";return At(e)?`color:transparent${n}`:`color:${e}${n}`}function Qr(e,t=!1){const n=t?"!important":"";return At(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function wa(e,t,n,r=!1){const o=r?"!important":"";return At(e)?`border-${n}-style:solid${o};border-${n}-width:${t}${o};border-image-source:${e}${o};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${o}`:`border-${n}-color:${e}${o}`}function Bw(e,t,n=!1){const r=n?"!important":"";return e?At(e)?`box-sizing:border-box${r};border:${t}px solid transparent${r};border-image-source:${e}${r};border-image-slice:1${r};box-shadow:none${r}`:`box-shadow:inset 0 0 0 ${t}px ${e}${r}`:`box-shadow:none${r}`}function gn(e,t,n,r,o,a,i,l){const s=At(l),u=s?wa(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?wa(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${r};align-items:center;justify-content:${a};width:100%;${u};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .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:${o};margin-left:0}`;const h=`${i??Nw}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${o};align-items:start}${e} > .ahd-tabs-dd-wrap > .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;${f};min-width:0;overflow:visible;${c};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${r};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function Dw(e,t,n,r,o,a,i,l,s,u,c,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Jr(i,!0)};${Xr(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${Qr(l,!0)}}${y}:hover{${Jr(i,!0)}}`}const k=`${e} > .ahd-tabs-dd-wrap`,S=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${k}:focus-within`,v=s?`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${k}{display:block!important;position:relative!important;width:100%!important}${k} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${r};background:${o};color:${a};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${k} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${r}!important;background:var(--pp-surface,#fff)!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${S} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${k} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${Xr(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${k} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${Qr(u??"inherit",!0)}}${k} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${k} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Fo(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function Fw({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??"vertical",i=((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]),u=G.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=ie(e==null?void 0:e.tabActiveColor),h=ie(e==null?void 0:e.tabActiveBgColor),d=ie(e==null?void 0:e.tabInactiveTextColor),f=ie(e==null?void 0:e.tabInactiveBgColor),p=ie(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=ie(e==null?void 0:e.tabTextColor),k=ie((e==null?void 0:e.tabBgColor)??"transparent"),S=ie(e==null?void 0:e.navBorderColor),v=S?"2px":"0px",_=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?is(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?c||"currentColor":"transparent",P=(t==null?void 0:t.tabsAlign)??"left",B=P==="center"?"center":P==="right"?"flex-end":"flex-start",F=(t==null?void 0:t.dropdown)??!1,W=(t==null?void 0:t.dropdownTablet)??F,D=(t==null?void 0:t.dropdownMobile)??W,U=e==null?void 0:e.padding,J=e==null?void 0:e.margin,Q=((J==null?void 0:J.left)??0)+((J==null?void 0:J.right)??0),X=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},ee=`${X.top}px ${X.right}px ${X.bottom}px ${X.left}px`,ge=At(e==null?void 0:e.borderColor),$e=e!=null&&e.borderColor?ge?{borderStyle:"solid",borderColor:"transparent",borderWidth:ee,borderImageSource:e.borderColor,borderImageSlice:1}:{borderStyle:"solid",borderColor:e.borderColor,borderWidth:ee}:{},ke={width:Q>0?`calc(100% - ${Q}px)`:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),...$e,borderRadius:Ow(e==null?void 0:e.borderRadius),padding:U?`${U.top}px ${U.right}px ${U.bottom}px ${U.left}px`:void 0,margin:J?`${J.top}px ${J.right}px ${J.bottom}px ${J.left}px`:void 0,fontFamily:Lw(e==null?void 0:e.fontFamily),fontSize:is(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:w,"--ahd-tabs-nav-border":S??"transparent"},Le=()=>s.map((j,Y)=>m.jsx("input",{type:"radio",id:`${u}-r${Y}`,name:u,className:"ahd-tabs-radio",defaultChecked:Y===0,style:zw},Y)),K=G.useMemo(()=>{const j=`.${u}`,Y=c||"currentColor",de=w||"inherit",we=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,he=`${we} > .ahd-tabs-label-text`,me=`${j} > .ahd-tabs-panels > .ahd-tabs-panel`,Ie=d??de;let le=`${we}{${Xr(Ie)};${Jr(f)};${Bw(p,b)};border-radius:${x}}${he}{${Qr(Ie)}}`+(i?"":`${me}{display:none}`)+`${j} > .ahd-tabs-dd-wrap{display:contents}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((It,je)=>{const tt=`#${u}-r${je}:checked`,Qe=`${tt} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${je+1})`,Vt=`${tt} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${je+1})`,Rt=At(M),xt=`${Xr(Y,!0)};${Jr(h,!0)};box-shadow:none!important`+(Rt?`;${wa(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);le+=`${Qe}{${xt}}`,le+=`${Qe} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${Qr(Y,!0)}}`,i||(le+=`${Vt}{display:block!important}`),le+=`${tt} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${je+1}){display:inline}`}),le+=gn(j,n,v,I,R,B,C!=null?String(C):void 0,S??void 0),r!==n&&(le+=`${Ho}{${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),o!==r&&(le+=`${Go}{${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`);const Te=p||S||z(null,"tabsRing"),De=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",Oe=z(e==null?void 0:e.tabBgColor,{role:"surface",seeds:[],nullFallback:"#fff"}),_e=w??"inherit",Ye=h??"transparent",te=c??"inherit",We=p?At(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",Fe=At(p)?p:void 0,se=Dw(j,Te,R,De,Oe,_e,Ye,te,E,d,f,We,I,u,s.length,Fe,b);return l&&(le+=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),F?(le+=se,W||(le+=`${Ho}{${Fo(j,x)}${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),!D&&W&&(le+=`${Go}{${Fo(j,x)}${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)):(W&&(le+=`${Ho}{${se}}`),D!==W&&(le+=`${Go}{${D?se:Fo(j,x)+gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)),le},[s,u,c,h,x,w,E,M,n,r,o,i,v,S,C,I,R,B,d,f,p,b,F,W,D,l]),q=j=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:R}:{display:j===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},V=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return m.jsxs("div",{className:`${u} ahd-tabs ${V}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ke,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:K}}),Le(),m.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[m.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[m.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((j,Y)=>m.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":Y,children:j.label??`Tab ${Y+1}`},Y))}),m.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),m.jsx("div",{className:"ahd-tabs-nav",style:{background:k,...l?{position:"sticky",top:0}:{}},children:s.map((j,Y)=>m.jsx("label",{htmlFor:`${u}-r${Y}`,className:"ahd-tabs-label","data-ahd-tab-index":Y,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:m.jsx("span",{className:"ahd-tabs-label-text",style:jw,children:j.label??`Tab ${Y+1}`})},Y))})]}),m.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,Y)=>m.jsx("div",{id:`${u}-panel-${Y}`,className:"ahd-tabs-panel","data-ahd-tab-index":Y,style:q(Y),children:(j.contentChildrenIds??[]).map(de=>m.jsx(Pe,{id:de},de))},Y))})]})}const Ho=`@media (max-width:${Ue}px)`,Go=`@media (max-width:${qe}px)`,Hw=A({contentChildrenIds:oe($()).optional().nullable()}),Gw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({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:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:oe(Hw).min(1).max(20).optional().nullable()}).optional().nullable()});function Ww(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 Uw="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",Zw="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",ls=({d:e,size:t=20})=>m.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{d:e})});function qw({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]),r=G.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),a=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),i=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,u=(t==null?void 0:t.autoplay)??!1,c=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=z(e==null?void 0:e.arrowColor,"carouselArrow"),b=z(e==null?void 0:e.arrowBgColor,"carouselArrowBg"),x=z(e==null?void 0:e.arrowBorderColor,"carouselArrowBorder"),w=(e==null?void 0:e.arrowSize)??40,k=z(e==null?void 0:e.dotColor,"carouselDot"),S=z(e==null?void 0:e.dotActiveColor,"carouselDotActive"),v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Ww(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},E=G.useMemo(()=>{const B=`.${r}`,F=W=>`calc((100% - ${f*(W-1)}px) / ${W})`;return`${B} .ahd-carousel-viewport{overflow:hidden;width:100%}${B} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${B} .ahd-carousel-slide{flex:0 0 ${F(o)};min-width:0;box-sizing:border-box}${B} .ahd-carousel-prev svg,${B} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Ue}px){${B} .ahd-carousel-slide{flex-basis:${F(a)}}}@media (max-width:${qe}px){${B} .ahd-carousel-slide{flex-basis:${F(i)}}}`},[r,f,d,o,a,i,_]),L={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${w}px)`,height:`var(--ahd-carousel-arrow-size, ${w}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${w}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(o,a,i),P=Math.max(1,n.length-M+1);return m.jsxs("div",{className:`${r} ahd-carousel`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:R,"data-per-view":o,"data-per-view-tablet":a,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":h?"1":"0",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&m.jsx("button",{type:"button",className:"ahd-carousel-prev",style:L,"aria-label":"Previous slide",children:m.jsx(ls,{d:Uw,size:_})}),m.jsx("div",{className:"ahd-carousel-viewport",children:m.jsx("div",{className:"ahd-carousel-track",children:n.map((B,F)=>m.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":F,children:(B.contentChildrenIds??[]).map(W=>m.jsx(Pe,{id:W},W))},F))})}),l&&m.jsx("button",{type:"button",className:"ahd-carousel-next",style:L,"aria-label":"Next slide",children:m.jsx(ls,{d:Zw,size:_})})]}),s&&P>1&&m.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":k,"data-dot-active-color":S,children:Array.from({length:P}).map((B,F)=>m.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":F,"aria-label":`Go to slide ${F+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:F===0?S:k,backgroundImage:"none"}},F))})]})}const Vw=T(["left","center","right","space-between"]),Yw=A({contentChildrenIds:oe($()).optional().nullable()}),Kw=A({childrenIds:oe($())}),Jw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({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:Vw.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:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:oe(Yw).min(1).max(50).optional().nullable(),cells:oe(Kw).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:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:O().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:O().optional().nullable(),showNumbers:O().optional().nullable(),showPrevNext:O().optional().nullable(),showFirstLast:O().optional().nullable(),maxVisiblePages:g().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:O().optional().nullable(),explicitFirstPage:O().optional().nullable()}).optional().nullable()}),Sa={columnsCount:2,rowsCount:2};function Wo(e,t="desktop"){const n=Sa,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;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(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,a*i,l.length),u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:a,rowsCount:i,cells:u}}function Uo(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)??Sa.columnsCount,r=(e==null?void 0:e.rowsCount)??Sa.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*a)}function Xw(e,t,n){const r=Math.max(1,e),o=Math.min(Math.max(1,n),r*Math.max(1,t));return Math.max(1,Math.ceil(o/r))}function Qw(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const eS={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 tS({style:e,props:t}){const n=eS;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 r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),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 nS(e){return Math.max(1,e)}function rS(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const r=[],o=Math.max(1,n-2),a=Math.floor(o/2);let i=Math.max(2,e-a),l=Math.min(t-1,i+o-1);i=Math.max(2,Math.min(i,l-o+1)),r.push(1),i>2&&r.push("ellipsis");for(let s=i;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function oS(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 aS({style:e,props:t}){const n=tS({style:e,props:t}),r=Wo(t,"desktop"),o=Wo(t,"tablet"),a=Wo(t,"mobile"),i=Math.max(Uo(t,"desktop"),Uo(t,"tablet"),Uo(t,"mobile")),l=G.useMemo(()=>r.cells.length>=i?r.cells:Array.from({length:i},(D,U)=>r.cells[U]??{childrenIds:[]}),[r.cells,i]),s=G.useMemo(()=>Qw(l,i),[l,i]),u=nS(s.length),c=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=G.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=G.useMemo(()=>rS(1,u,n.maxVisiblePages),[u,n.maxVisiblePages]),p=pi(),b=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),x=p(e==null?void 0:e.borderColor),w=z(n.buttonBg,"paginationBg"),k=z(n.buttonColor,"paginationText"),S=z(n.buttonBorderColor,"paginationBorder"),v=z(n.arrowColor,"paginationText"),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,E=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),L={width:E>0?`calc(100% - ${E}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:oS(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",P={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 ${S}`,backgroundColor:w,backgroundImage:"none",color:k,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},B={...P,color:v},F=G.useMemo(()=>{const D=Q=>`grid-template-columns:repeat(${Q.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Xw(Q.columnsCount,Q.rowsCount,i)},auto)`,U=(Q,X)=>{const ee=Math.min(Math.max(1,X.columnsCount*X.rowsCount),Math.max(1,i));return ee>=i?"":`${Q} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${ee+1}){display:none}`},J=`.${d}`;return`${J} .ahd-pgn-item{display:grid;${D(r)};column-gap:${c}px;row-gap:${h}px}${J} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+U(J,r)+`@media (max-width:${Ue}px){${J} .ahd-pgn-item{${D(o)}}${J} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+U(J,o)+`}@media (max-width:${qe}px){${J} .ahd-pgn-item{${D(a)}}${J} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+U(J,a)+"}"},[d,r,o,a,i,c,h,n.itemGap]),W=(D,U,J)=>m.jsx("button",{type:"button",className:`ahd-pgn-btn ${D}`,"data-ahd-page":J,style:B,"aria-label":U,children:U});return m.jsxs("div",{className:`${d} ahd-pagination`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:L,"data-total-pages":u,"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":w,"data-btn-color":k,"data-btn-border":S,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:F}}),m.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((D,U)=>m.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":U,style:U===0?void 0:{display:"none"},children:D.map((J,Q)=>m.jsx("div",{className:"ahd-pgn-cell",children:(J.childrenIds??[]).map(X=>m.jsx(Pe,{id:X},X))},Q))},U))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&m.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:M,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&&W("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&W("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&m.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((D,U)=>D==="ellipsis"?m.jsx("span",{className:"ahd-pgn-ellipsis",style:{...P,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${U}`):m.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":D,"aria-label":`Page ${D}`,"aria-current":D===1?"true":void 0,style:D===1?{...P,backgroundColor:_,color:y,border:`1px solid ${C}`}:P,children:D},D))}),n.showPrevNext&&W("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&W("ahd-pgn-last",n.lastLabel,u)]})]})}const iS=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),ss="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 lS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function sS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function cS({fillPct:e,size:t,filledColor:n,emptyColor:r}){return m.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:[m.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:m.jsx("path",{d:ss})}),m.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:m.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:m.jsx("path",{d:ss})})})]})}function uS({style:e,props:t}){const n=G.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(w,k)=>{if(typeof w=="number")return Number.isFinite(w)?w:k;const S=parseFloat(String(w??""));return Number.isFinite(S)?S:k},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),a=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=ie((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb","track"),u=(e==null?void 0:e.starSize)??24,c=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626","trackText"),d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:lS(e==null?void 0:e.fontFamily),fontSize:sS(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const k=a-w;return k>=1?100:k>=.5?50:k>0?Math.round(k*100):0};return m.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[m.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${c}px)`},children:Array.from({length:o}).map((w,k)=>m.jsx(cS,{fillPct:x(k),size:u,filledColor:l,emptyColor:s},k))}),i&&m.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(a)?a:a.toFixed(1),m.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const dS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),hS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),fS=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),barHeight:g().min(2).max(60).optional().nullable(),barRadius:g().min(0).max(40).optional().nullable(),circleSize:g().min(40).max(320).optional().nullable(),strokeWidth:g().min(2).max(40).optional().nullable(),stepSize:g().min(4).max(48).optional().nullable(),stepGap:g().min(0).max(40).optional().nullable(),padding:dS,margin:hS}).optional().nullable(),props:A({variant:T(["linear","circular","steps"]).optional().nullable(),value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:T(["percent","fraction"]).optional().nullable(),steps:g().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function pS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function gS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function cs(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function us(e,t,n,r){return r==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function mS({pct:e,label:t,trackColor:n,fillColor:r,barHeight:o,barRadius:a,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const h=i&&l;return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&m.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),m.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:o,borderRadius:a,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:m.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:a,backgroundColor:r,backgroundImage:i?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&m.jsx("span",{children:t})]})}function bS({pct:e,label:t,trackColor:n,fillColor:r,size:o,strokeWidth:a,textColor:i,fontWeight:l,ariaLabel:s,value:u,max:c}){const h=(o-a)/2,d=2*Math.PI*h,f=d*(1-e/100),p=o/2;return m.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{position:"relative",width:o,height:o,display:"inline-flex"},children:[m.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:a}),m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:a,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&m.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:i,fontWeight:l??600},children:t})]})}function xS({steps:e,activeIndex:t,trackColor:n,fillColor:r,stepSize:o,stepGap:a,label:i,ariaLabel:l,value:s,max:u}){return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[m.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:a},children:Array.from({length:e}).map((c,h)=>m.jsx("span",{"data-active":h<t?"true":"false",style:{width:o,height:o,borderRadius:"50%",backgroundColor:h<t?r:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),i!=null&&m.jsx("span",{children:i})]})}function vS({style:e,props:t}){const n=G.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.variant)??"linear",o=Math.max(1,cs(t==null?void 0:t.max,100)),a=Math.max(0,Math.min(o,cs(t==null?void 0:t.value,0))),i=a/o*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?us(i,a,o,s):null,c=`Progress: ${us(i,a,o,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb","track"),d=ie((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626","trackText"),p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:pS(e==null?void 0:e.fontFamily),fontSize:gS((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},k=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),S=Math.round(i/100*k);return m.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:r==="circular"?m.jsx(bS,{pct:i,label:u,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:c,value:a,max:o}):r==="steps"?m.jsx(xS,{steps:k,activeIndex:S,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:a,max:o}):m.jsx(mS,{pct:i,label:u,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:c,value:a,max:o})})}const kS=A({responsive:Ve,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable(),viewportHeight:g().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:T(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:O().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:T(["top","middle","bottom"]).optional().nullable(),hoverEffect:yt,items:oe(A({contentChildrenIds:oe($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),wS=40,SS=32,$S=200,vu=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,ku=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,_S=e=>Math.max(2,Math.round(1200/e)),CS=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),wu=e=>e==="up"||e==="down",AS=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",eo=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function yS(e,t){return{speed:ku(t==null?void 0:t.speed,wS),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??SS,viewportHeight:vu(e==null?void 0:e.viewportHeight,$S)}}function IS(e,t,n){var o,a,i,l,s;const r=e==null?void 0:e[t];return{speed:ku((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((a=r==null?void 0:r.props)==null?void 0:a.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=r==null?void 0:r.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:vu((s=r==null?void 0:r.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const RS=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},ds=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${_S(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,TS=(e,t)=>e.fadeEdges?`-webkit-mask-image:${eo(t)}!important;mask-image:${eo(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function ES({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:a}){const i=`.${e}`,l=wu(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":AS(a),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!RS(o,x))return"";const w=IS(o,x,r);return`${b}{${i}{${ds(w)};${TS(w,l)}}}`},p=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${ds(r)}}`+p+`${i} .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 ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(ln,"tablet")+f(Xe,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function NS(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 MS(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function PS({style:e,props:t,responsive:n}){var S;const r=G.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],a=(t==null?void 0:t.direction)??"left",i=CS(t==null?void 0:t.repeat),l=wu(a),s=yS(e,t),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=ie(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:u??void 0,...MS(c,e==null?void 0:e.borderWidth),borderRadius:NS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:eo(l),maskImage:eo(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=G.useMemo(()=>ES({instanceId:r,direction:a,repeat:i,desktop:s,responsive:n,verticalAlign:b}),[r,a,i,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=jt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((S=t==null?void 0:t.hoverEffect)==null?void 0:S.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),k=v=>m.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:o.map((_,y)=>m.jsx("div",{className:"ahd-marquee-item",children:(_.contentChildrenIds??[]).map(C=>m.jsx(Pe,{id:C},C))},y))},v);return m.jsxs("div",{className:`${r} ahd-marquee`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{className:"ahd-marquee-viewport",children:m.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:i}).map((v,_)=>k(_))})})]})}const LS=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),OS=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),zS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:LS,margin:OS}).optional().nullable(),props:A({layout:T(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:T(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:O().default(!1),hoverEffect:yt}).optional().nullable()});function jS(e){return String(Math.max(0,e)).padStart(2,"0")}function BS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:u="#6b7280",fallbackOnAccent:c="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[m.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:a??s,color:l??c,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:jS(d.value)}),o&&m.jsx("span",{style:{fontSize:11,color:i??u,textTransform:"uppercase"},children:d.label})]},d.label))})}function DS(e){return String(Math.max(0,e)).padStart(2,"0")}const $a=26,hs=2*Math.PI*$a;function FS({value:e,max:t,accentColor:n,numberColor:r,numberFontWeight:o,unit:a,trackColor:i}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=hs*(1-l);return m.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[m.jsx("circle",{cx:32,cy:32,r:$a,fill:"none",stroke:i,strokeWidth:5}),m.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:$a,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:hs,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),m.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:o??700,fill:r,children:DS(e)})]})}function HS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,numberFontWeight:s,fallbackInk:u="#1f1f1f",fallbackMuted:c="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=a??h,p=l??u,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[m.jsx(FS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),o&&m.jsx("span",{style:{fontSize:11,color:i??c,textTransform:"uppercase"},children:x.label})]},x.label))})}function Jt(e){return String(Math.max(0,e)).padStart(2,"0")}function GS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const u=[{key:"days",text:o?`${e}d`:Jt(e)},{key:"hours",text:o?`${Jt(t)}h`:Jt(t)},{key:"minutes",text:o?`${Jt(n)}m`:Jt(n)},{key:"seconds",text:o?`${Jt(r)}s`:Jt(r)}],c=o?" ":" : ";return m.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:i??l},children:[m.jsx("span",{style:{color:a??s,marginRight:6},children:"Ends in"}),u.map((h,d)=>m.jsxs(G.Fragment,{children:[d>0&&c,m.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}let WS=0;function US(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 ZS(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 r=Math.max(0,n-t),o=r<=0,a=Math.floor(r/1e3);return{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:a%60,completed:o}}function qS({style:e,props:t}){var M;const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,a=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=ZS(n.targetDate),s=l.completed,u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=ie(e==null?void 0:e.borderColor),h=ie(e==null?void 0:e.accentColor),d=ie(e==null?void 0:e.textColor),f=ie(e==null?void 0:e.numberColor),p=z(null,"timerText"),b=z(null,"timerLabel"),x=ie("#7c3aed")??"#7c3aed",w=ie("#ffffff")??"#ffffff",k=z(null,"timerTrack"),S=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:u??void 0,border:c?`1px solid ${c}`:void 0,borderRadius:US(e==null?void 0:e.borderRadius),padding:S?`${S.top}px ${S.right}px ${S.bottom}px ${S.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:k,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&a==="showMessage",R=s&&a==="hide",E=G.useMemo(()=>`ahd-hv-timer-${++WS}`,[]),L=jt(E,n.hoverEffect,{themedBorderColor:z((M=n.hoverEffect)==null?void 0:M.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});return m.jsxs("div",{className:`ahd-timer ${E}`,"data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":a,"data-ahd-timer-expired-message":i,"data-ahd-timer-show-labels":o?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...y,display:R?"none":void 0},children:[L&&m.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),m.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:i}),m.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[r==="digitalFlip"&&m.jsx(BS,{...C}),r==="circularProgress"&&m.jsx(HS,{...C}),r==="textInline"&&m.jsx(GS,{...C})]})]})}function Su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var VS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},YS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},KS=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,JS=/[&<>"']/g;function XS(e){return VS[e]}function QS(e){return YS[e]}function _a(e){return e==null?"":String(e).replace(JS,XS)}function Ca(e){return e==null?"":String(e).replace(KS,QS)}_a.options=Ca.options={};var $u={encode:_a,escape:_a,decode:Ca,unescape:Ca,version:"1.0.0-browser"};function _u(e){for(var t=Array.prototype.slice.call(arguments,1),n,r;t.length;){n=t.shift();for(r in n)n.hasOwnProperty(r)&&(Object.prototype.toString.call(e[r])==="[object Object]"?e[r]=_u(e[r],n[r]):e[r]=n[r])}return e}var e$=_u,Cu=function(t){return typeof t=="string"?t.toLowerCase():t};function t$(e){return e.reduce(n$,{})}function n$(e,t){return e[t]=!0,e}var Au=t$,r$=Au,o$=["background","base","cite","href","longdesc","src","usemap"],a$={uris:r$(o$)},i$=Au,l$=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"],yu={voids:i$(l$)},s$=$u,fs=Cu,c$=yu,u$=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,d$=/^<\s*\/\s*([\w:-]+)[^>]*>/,h$=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,f$=/^</,p$=/^<\s*\//;function g$(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function m$(e,t){for(var n=g$(),r=e,o;e;)a();h();function a(){o=!0,i();var d=e===r;r=e,d&&(e="")}function i(){e.substr(0,4)==="<!--"?s():p$.test(e)?l(d$,h):f$.test(e)&&l(u$,c),u()}function l(d,f){var p=e.match(d);p&&(e=e.substring(p[0].length),p[0].replace(d,f),o=!1)}function s(){var d=e.indexOf("-->");d>=0&&(t.comment&&t.comment(e.substring(4,d)),e=e.substring(d+3),o=!1)}function u(){if(o){var d,f=e.indexOf("<");f>=0?(d=e.substring(0,f),e=e.substring(f)):(d=e,e=""),t.chars&&t.chars(d)}}function c(d,f,p,b){var x={},w=fs(f),k=c$.voids[w]||!!b;p.replace(h$,S),k||n.push(w),t.start&&t.start(w,x,k);function S(v,_,y,C,I){y===void 0&&C===void 0&&I===void 0?x[_]=void 0:x[_]=s$.decode(y||C||I||"")}}function h(d,f){var p,b=0,x=fs(f);if(x)for(b=n.length-1;b>=0&&n[b]!==x;b--);if(b>=0){for(p=n.length-1;p>=b;p--)t.end&&t.end(n[p]);n.length=b}}}var b$=m$,x$=$u,Zo=Cu,v$=a$,k$=yu;function w$(e,t){var n,r=t||{};return h(),{start:a,end:i,chars:s};function o(d){e.push(d)}function a(d,f,p){var b=Zo(d);if(n.ignoring){u(b);return}if((r.allowedTags||[]).indexOf(b)===-1){u(b);return}if(r.filter&&!r.filter({tag:b,attrs:f})){u(b);return}o("<"),o(b),Object.keys(f).forEach(x),o(p?"/>":">");function x(w){var k=f[w],S=(r.allowedClasses||{})[b]||[],v=(r.allowedAttributes||{})[b]||[],_,y=Zo(w);y==="class"&&v.indexOf(y)===-1?(k=k.split(" ").filter(C).join(" ").trim(),_=k.length):_=v.indexOf(y)!==-1&&(v$.uris[y]!==!0||l(k)),_&&(o(" "),o(w),typeof k=="string"&&(o('="'),o(x$.encode(k)),o('"')));function C(I){return S&&S.indexOf(I)!==-1}}}function i(d){var f=Zo(d),p=(r.allowedTags||[]).indexOf(f)!==-1;p&&n.ignoring===!1?(o("</"),o(f),o(">")):c(f)}function l(d){var f=d[0];if(f==="#"||f==="/")return!0;var p=d.indexOf(":");if(p===-1)return!0;var b=d.indexOf("?");if(b!==-1&&p>b)return!0;var x=d.indexOf("#");if(x!==-1&&p>x)return!0;return r.allowedSchemes.some(w);function w(k){return d.indexOf(k+":")===0}}function s(d){n.ignoring===!1&&o(r.transformText?r.transformText(d):d)}function u(d){k$.voids[d]||(n.ignoring===!1?n={ignoring:d,depth:1}:n.ignoring===d&&n.depth++)}function c(d){n.ignoring===d&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}var S$=w$,$$={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null},_$=$$,C$=e$,A$=b$,y$=S$,Iu=_$;function Ru(e,t,n){var r=[],o=n===!0?t:C$({},Iu,t),a=y$(r,o);return A$(e,a),r.join("")}Ru.defaults=Iu;var I$=Ru;const R$=Su(I$);function wi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sn=wi();function Tu(e){sn=e}var nn={exec:()=>null};function mn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function pe(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(Ze.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var T$=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:mn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:mn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:mn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:mn(e=>new RegExp(`^ {0,${e}}>`))},E$=/^(?:[ \t]*(?:\n|$))+/,N$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,M$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,P$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Si=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Eu=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Nu=pe(Eu).replace(/bull/g,Si).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L$=pe(Eu).replace(/bull/g,Si).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),$i=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,O$=/^[^\n]+/,_i=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,z$=pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_i).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),j$=pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Si).getRegex(),bo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ci=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,B$=pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ci).replace("tag",bo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mu=pe($i).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),D$=pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mu).getRegex(),Ai={blockquote:D$,code:N$,def:z$,fences:M$,heading:P$,hr:lr,html:B$,lheading:Nu,list:j$,newline:E$,paragraph:Mu,table:nn,text:O$},ps=pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),F$={...Ai,lheading:L$,table:ps,paragraph:pe($i).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ps).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex()},H$={...Ai,html:pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ci).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pe($i).replace("hr",lr).replace("heading",` *#{1,6} *[^
280
- ]`).replace("lheading",Nu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},G$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pu=/^( {2,}|\\)\n(?!\s*$)/,U$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nn=/[\p{P}\p{S}]/u,xo=/[\s\p{P}\p{S}]/u,yi=/[^\s\p{P}\p{S}]/u,Z$=pe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,xo).getRegex(),Lu=/(?!~)[\p{P}\p{S}]/u,q$=/(?!~)[\s\p{P}\p{S}]/u,V$=/(?:[^\s\p{P}\p{S}]|~)/u,Y$=pe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",T$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ou=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,K$=pe(Ou,"u").replace(/punct/g,Nn).getRegex(),J$=pe(Ou,"u").replace(/punct/g,Lu).getRegex(),zu="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",X$=pe(zu,"gu").replace(/notPunctSpace/g,yi).replace(/punctSpace/g,xo).replace(/punct/g,Nn).getRegex(),Q$=pe(zu,"gu").replace(/notPunctSpace/g,V$).replace(/punctSpace/g,q$).replace(/punct/g,Lu).getRegex(),e2=pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yi).replace(/punctSpace/g,xo).replace(/punct/g,Nn).getRegex(),t2=pe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Nn).getRegex(),n2="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",r2=pe(n2,"gu").replace(/notPunctSpace/g,yi).replace(/punctSpace/g,xo).replace(/punct/g,Nn).getRegex(),o2=pe(/\\(punct)/,"gu").replace(/punct/g,Nn).getRegex(),a2=pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),i2=pe(Ci).replace("(?:-->|$)","-->").getRegex(),l2=pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",i2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),to=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,s2=pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",to).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ju=pe(/^!?\[(label)\]\[(ref)\]/).replace("label",to).replace("ref",_i).getRegex(),Bu=pe(/^!?\[(ref)\](?:\[\])?/).replace("ref",_i).getRegex(),c2=pe("reflink|nolink(?!\\()","g").replace("reflink",ju).replace("nolink",Bu).getRegex(),gs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ii={_backpedal:nn,anyPunctuation:o2,autolink:a2,blockSkip:Y$,br:Pu,code:W$,del:nn,delLDelim:nn,delRDelim:nn,emStrongLDelim:K$,emStrongRDelimAst:X$,emStrongRDelimUnd:e2,escape:G$,link:s2,nolink:Bu,punctuation:Z$,reflink:ju,reflinkSearch:c2,tag:l2,text:U$,url:nn},u2={...Ii,link:pe(/^!?\[(label)\]\((.*?)\)/).replace("label",to).getRegex(),reflink:pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",to).getRegex()},Aa={...Ii,emStrongRDelimAst:Q$,emStrongLDelim:J$,delLDelim:t2,delRDelim:r2,url:pe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gs).getRegex()},d2={...Aa,br:pe(Pu).replace("{2,}","*").getRegex(),text:pe(Aa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yr={normal:Ai,gfm:F$,pedantic:H$},zn={normal:Ii,gfm:Aa,breaks:d2,pedantic:u2},h2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ms=e=>h2[e];function $t(e,t){if(t){if(Ze.escapeTest.test(e))return e.replace(Ze.escapeReplace,ms)}else if(Ze.escapeTestNoEncode.test(e))return e.replace(Ze.escapeReplaceNoEncode,ms);return e}function bs(e){try{e=encodeURI(e).replace(Ze.percentDecode,"%")}catch{return null}return e}function xs(e,t){var a;let n=e.replace(Ze.findPipe,(i,l,s)=>{let u=!1,c=l;for(;--c>=0&&s[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(Ze.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(Ze.slashPipe,"|");return r}function Ft(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function vs(e){let t=e.split(`
279
+ `;return m.jsxs("div",{...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ee,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Le}}),n.map((X,Z)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${Z}`,className:"pacc-cb",defaultChecked:Z===a},Z)),m.jsx("div",{className:"pacc-wrap",children:n.map((X,Z)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${Z}`,className:"pacc-card",children:[(X.cardChildrenIds??[]).map(V=>m.jsx(Pe,{id:V},V)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-right"})})]}),m.jsx("div",{className:"pacc-detail",children:(X.detailChildrenIds??[]).map(V=>m.jsx(Pe,{id:V},V))})]},Z))})]})}const Nw=160,Mw=A({label:$().optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),Pw=A({responsive:Ve,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:g().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:g().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:g().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),lineHeight:H([$(),g()]).optional().nullable(),activeFontSize:H([$(),g()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:T(["horizontal","vertical"]).optional().nullable(),orientationTablet:T(["horizontal","vertical"]).optional().nullable(),orientationMobile:T(["horizontal","vertical"]).optional().nullable(),behavior:T(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:T(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:O().optional().nullable(),items:oe(Mw).min(1).max(20).optional().nullable()}).optional().nullable()});function Lw(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Ow(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 is(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const zw={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},jw={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function At(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Jr(e,t=!1){const n=t?"!important":"";return e?At(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function Xr(e,t=!1){const n=t?"!important":"";return At(e)?`color:transparent${n}`:`color:${e}${n}`}function Qr(e,t=!1){const n=t?"!important":"";return At(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function wa(e,t,n,r=!1){const o=r?"!important":"";return At(e)?`border-${n}-style:solid${o};border-${n}-width:${t}${o};border-image-source:${e}${o};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${o}`:`border-${n}-color:${e}${o}`}function Bw(e,t,n=!1){const r=n?"!important":"";return e?At(e)?`box-sizing:border-box${r};border:${t}px solid transparent${r};border-image-source:${e}${r};border-image-slice:1${r};box-shadow:none${r}`:`box-shadow:inset 0 0 0 ${t}px ${e}${r}`:`box-shadow:none${r}`}function gn(e,t,n,r,o,a,i,l){const s=At(l),u=s?wa(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?wa(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${r};align-items:center;justify-content:${a};width:100%;${u};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .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:${o};margin-left:0}`;const h=`${i??Nw}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${o};align-items:start}${e} > .ahd-tabs-dd-wrap > .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;${f};min-width:0;overflow:visible;${c};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${r};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function Dw(e,t,n,r,o,a,i,l,s,u,c,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Jr(i,!0)};${Xr(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${Qr(l,!0)}}${y}:hover{${Jr(i,!0)}}`}const k=`${e} > .ahd-tabs-dd-wrap`,S=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${k}:focus-within`,v=s?`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${k}{display:block!important;position:relative!important;width:100%!important}${k} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${r};background:${o};color:${a};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${k} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${r}!important;background:var(--pp-surface,#fff)!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${S} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${k} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${Xr(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${k} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${Qr(u??"inherit",!0)}}${k} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${k} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Fo(e,t){return`${e} > .ahd-tabs-dd-wrap{display:contents!important;position:static!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{border-radius:${t}!important;margin-top:0!important;box-shadow:none!important}`}function Fw({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??"vertical",i=((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]),u=G.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=ie(e==null?void 0:e.tabActiveColor),h=ie(e==null?void 0:e.tabActiveBgColor),d=ie(e==null?void 0:e.tabInactiveTextColor),f=ie(e==null?void 0:e.tabInactiveBgColor),p=ie(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=ie(e==null?void 0:e.tabTextColor),k=ie((e==null?void 0:e.tabBgColor)??"transparent"),S=ie(e==null?void 0:e.navBorderColor),v=S?"2px":"0px",_=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?is(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?c||"currentColor":"transparent",P=(t==null?void 0:t.tabsAlign)??"left",B=P==="center"?"center":P==="right"?"flex-end":"flex-start",F=(t==null?void 0:t.dropdown)??!1,U=(t==null?void 0:t.dropdownTablet)??F,K=(t==null?void 0:t.dropdownMobile)??U,D=e==null?void 0:e.padding,J=e==null?void 0:e.margin,q=((J==null?void 0:J.left)??0)+((J==null?void 0:J.right)??0),Q=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},ee=`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,de=At(e==null?void 0:e.borderColor),$e=e!=null&&e.borderColor?de?{borderStyle:"solid",borderColor:"transparent",borderWidth:ee,borderImageSource:e.borderColor,borderImageSlice:1}:{borderStyle:"solid",borderColor:e.borderColor,borderWidth:ee}:{},ke={width:q>0?`calc(100% - ${q}px)`:"100%",boxSizing:"border-box",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),...$e,borderRadius:Ow(e==null?void 0:e.borderRadius),padding:D?`${D.top}px ${D.right}px ${D.bottom}px ${D.left}px`:void 0,margin:J?`${J.top}px ${J.right}px ${J.bottom}px ${J.left}px`:void 0,fontFamily:Lw(e==null?void 0:e.fontFamily),fontSize:is(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:w,"--ahd-tabs-nav-border":S??"transparent"},Le=()=>s.map((j,Y)=>m.jsx("input",{type:"radio",id:`${u}-r${Y}`,name:u,className:"ahd-tabs-radio",defaultChecked:Y===0,style:zw},Y)),X=G.useMemo(()=>{const j=`.${u}`,Y=c||"currentColor",he=w||"inherit",we=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,fe=`${we} > .ahd-tabs-label-text`,me=`${j} > .ahd-tabs-panels > .ahd-tabs-panel`,Ie=d??he;let le=`${we}{${Xr(Ie)};${Jr(f)};${Bw(p,b)};border-radius:${x}}${fe}{${Qr(Ie)}}`+(i?"":`${me}{display:none}`)+`${j} > .ahd-tabs-dd-wrap{display:contents}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((It,je)=>{const tt=`#${u}-r${je}:checked`,Qe=`${tt} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${je+1})`,Vt=`${tt} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${je+1})`,Rt=At(M),xt=`${Xr(Y,!0)};${Jr(h,!0)};box-shadow:none!important`+(Rt?`;${wa(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);le+=`${Qe}{${xt}}`,le+=`${Qe} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${Qr(Y,!0)}}`,i||(le+=`${Vt}{display:block!important}`),le+=`${tt} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${je+1}){display:inline}`}),le+=gn(j,n,v,I,R,B,C!=null?String(C):void 0,S??void 0),r!==n&&(le+=`${Ho}{${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),o!==r&&(le+=`${Go}{${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`);const Te=p||S||z(null,"tabsRing"),De=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",Oe=z(e==null?void 0:e.tabBgColor,{role:"surface",seeds:[],nullFallback:"#fff"}),_e=w??"inherit",Ye=h??"transparent",te=c??"inherit",We=p?At(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",Fe=At(p)?p:void 0,se=Dw(j,Te,R,De,Oe,_e,Ye,te,E,d,f,We,I,u,s.length,Fe,b);return l&&(le+=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),F?(le+=se,U||(le+=`${Ho}{${Fo(j,x)}${gn(j,r,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`),!K&&U&&(le+=`${Go}{${Fo(j,x)}${gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)):(U&&(le+=`${Ho}{${se}}`),K!==U&&(le+=`${Go}{${K?se:Fo(j,x)+gn(j,o,v,I,R,B,C!=null?String(C):void 0,S??void 0)}}`)),le},[s,u,c,h,x,w,E,M,n,r,o,i,v,S,C,I,R,B,d,f,p,b,F,U,K,l]),Z=j=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:R}:{display:j===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},V=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return m.jsxs("div",{className:`${u} ahd-tabs ${V}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:ke,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:X}}),Le(),m.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[m.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[m.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((j,Y)=>m.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":Y,children:j.label??`Tab ${Y+1}`},Y))}),m.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),m.jsx("div",{className:"ahd-tabs-nav",style:{background:k,...l?{position:"sticky",top:0}:{}},children:s.map((j,Y)=>m.jsx("label",{htmlFor:`${u}-r${Y}`,className:"ahd-tabs-label","data-ahd-tab-index":Y,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:m.jsx("span",{className:"ahd-tabs-label-text",style:jw,children:j.label??`Tab ${Y+1}`})},Y))})]}),m.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,Y)=>m.jsx("div",{id:`${u}-panel-${Y}`,className:"ahd-tabs-panel","data-ahd-tab-index":Y,style:Z(Y),children:(j.contentChildrenIds??[]).map(he=>m.jsx(Pe,{id:he},he))},Y))})]})}const Ho=`@media (max-width:${Ue}px)`,Go=`@media (max-width:${qe}px)`,Hw=A({contentChildrenIds:oe($()).optional().nullable()}),Gw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({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:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:oe(Hw).min(1).max(20).optional().nullable()}).optional().nullable()});function Ww(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 Uw="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",Zw="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",ls=({d:e,size:t=20})=>m.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{d:e})});function qw({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]),r=G.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),a=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),i=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,u=(t==null?void 0:t.autoplay)??!1,c=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=z(e==null?void 0:e.arrowColor,"carouselArrow"),b=z(e==null?void 0:e.arrowBgColor,"carouselArrowBg"),x=z(e==null?void 0:e.arrowBorderColor,"carouselArrowBorder"),w=(e==null?void 0:e.arrowSize)??40,k=z(e==null?void 0:e.dotColor,"carouselDot"),S=z(e==null?void 0:e.dotActiveColor,"carouselDotActive"),v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Ww(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},E=G.useMemo(()=>{const B=`.${r}`,F=U=>`calc((100% - ${f*(U-1)}px) / ${U})`;return`${B} .ahd-carousel-viewport{overflow:hidden;width:100%}${B} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${B} .ahd-carousel-slide{flex:0 0 ${F(o)};min-width:0;box-sizing:border-box}${B} .ahd-carousel-prev svg,${B} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Ue}px){${B} .ahd-carousel-slide{flex-basis:${F(a)}}}@media (max-width:${qe}px){${B} .ahd-carousel-slide{flex-basis:${F(i)}}}`},[r,f,d,o,a,i,_]),L={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${w}px)`,height:`var(--ahd-carousel-arrow-size, ${w}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${w}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(o,a,i),P=Math.max(1,n.length-M+1);return m.jsxs("div",{className:`${r} ahd-carousel`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:R,"data-per-view":o,"data-per-view-tablet":a,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":h?"1":"0",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&m.jsx("button",{type:"button",className:"ahd-carousel-prev",style:L,"aria-label":"Previous slide",children:m.jsx(ls,{d:Uw,size:_})}),m.jsx("div",{className:"ahd-carousel-viewport",children:m.jsx("div",{className:"ahd-carousel-track",children:n.map((B,F)=>m.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":F,children:(B.contentChildrenIds??[]).map(U=>m.jsx(Pe,{id:U},U))},F))})}),l&&m.jsx("button",{type:"button",className:"ahd-carousel-next",style:L,"aria-label":"Next slide",children:m.jsx(ls,{d:Zw,size:_})})]}),s&&P>1&&m.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":k,"data-dot-active-color":S,children:Array.from({length:P}).map((B,F)=>m.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":F,"aria-label":`Go to slide ${F+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:F===0?S:k,backgroundImage:"none"}},F))})]})}const Vw=T(["left","center","right","space-between"]),Yw=A({contentChildrenIds:oe($()).optional().nullable()}),Kw=A({childrenIds:oe($())}),Jw=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({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:Vw.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:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:oe(Yw).min(1).max(50).optional().nullable(),cells:oe(Kw).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:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:O().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:O().optional().nullable(),showNumbers:O().optional().nullable(),showPrevNext:O().optional().nullable(),showFirstLast:O().optional().nullable(),maxVisiblePages:g().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:O().optional().nullable(),explicitFirstPage:O().optional().nullable()}).optional().nullable()}),Sa={columnsCount:2,rowsCount:2};function Wo(e,t="desktop"){const n=Sa,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;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(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,a*i,l.length),u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:a,rowsCount:i,cells:u}}function Uo(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)??Sa.columnsCount,r=(e==null?void 0:e.rowsCount)??Sa.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*a)}function Xw(e,t,n){const r=Math.max(1,e),o=Math.min(Math.max(1,n),r*Math.max(1,t));return Math.max(1,Math.ceil(o/r))}function Qw(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const eS={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 tS({style:e,props:t}){const n=eS;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 r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),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 nS(e){return Math.max(1,e)}function rS(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const r=[],o=Math.max(1,n-2),a=Math.floor(o/2);let i=Math.max(2,e-a),l=Math.min(t-1,i+o-1);i=Math.max(2,Math.min(i,l-o+1)),r.push(1),i>2&&r.push("ellipsis");for(let s=i;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function oS(e,t,n){return t<=1&&!n?"?":`?${encodeURIComponent(e)}=${t}`}function aS(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 iS({style:e,props:t}){const n=tS({style:e,props:t}),r=Wo(t,"desktop"),o=Wo(t,"tablet"),a=Wo(t,"mobile"),i=Math.max(Uo(t,"desktop"),Uo(t,"tablet"),Uo(t,"mobile")),l=G.useMemo(()=>r.cells.length>=i?r.cells:Array.from({length:i},(D,J)=>r.cells[J]??{childrenIds:[]}),[r.cells,i]),s=G.useMemo(()=>Qw(l,i),[l,i]),u=nS(s.length),c=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=G.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=G.useMemo(()=>rS(1,u,n.maxVisiblePages),[u,n.maxVisiblePages]),p=pi(),b=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),x=p(e==null?void 0:e.borderColor),w=z(n.buttonBg,"paginationBg"),k=z(n.buttonColor,"paginationText"),S=z(n.buttonBorderColor,"paginationBorder"),v=z(n.arrowColor,"paginationText"),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,E=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),L={width:E>0?`calc(100% - ${E}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:aS(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",P={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 ${S}`,backgroundColor:w,backgroundImage:"none",color:k,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box",textDecoration:"none"},B=D=>oS(n.pageParam,D,n.explicitFirstPage),F={...P,color:v},U=G.useMemo(()=>{const D=Q=>`grid-template-columns:repeat(${Q.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Xw(Q.columnsCount,Q.rowsCount,i)},auto)`,J=(Q,ee)=>{const de=Math.min(Math.max(1,ee.columnsCount*ee.rowsCount),Math.max(1,i));return de>=i?"":`${Q} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${de+1}){display:none}`},q=`.${d}`;return`${q} .ahd-pgn-item{display:grid;${D(r)};column-gap:${c}px;row-gap:${h}px}${q} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+J(q,r)+`@media (max-width:${Ue}px){${q} .ahd-pgn-item{${D(o)}}${q} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+J(q,o)+`}@media (max-width:${qe}px){${q} .ahd-pgn-item{${D(a)}}${q} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+J(q,a)+"}"},[d,r,o,a,i,c,h,n.itemGap]),K=(D,J,q)=>m.jsx("a",{href:B(q),className:`ahd-pgn-btn ${D}`,"data-ahd-page":q,style:F,"aria-label":J,children:J});return m.jsxs("div",{className:`${d} ahd-pagination`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:L,"data-total-pages":u,"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":w,"data-btn-color":k,"data-btn-border":S,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:U}}),m.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((D,J)=>m.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":J,style:J===0?void 0:{display:"none"},children:D.map((q,Q)=>m.jsx("div",{className:"ahd-pgn-cell",children:(q.childrenIds??[]).map(ee=>m.jsx(Pe,{id:ee},ee))},Q))},J))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&m.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:M,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&&K("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&K("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&m.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((D,J)=>D==="ellipsis"?m.jsx("span",{className:"ahd-pgn-ellipsis",style:{...P,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${J}`):m.jsx("a",{href:B(D),className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":D,"aria-label":`Page ${D}`,"aria-current":D===1?"true":void 0,style:D===1?{...P,backgroundColor:_,color:y,border:`1px solid ${C}`}:P,children:D},D))}),n.showPrevNext&&K("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&K("ahd-pgn-last",n.lastLabel,u)]})]})}const lS=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),ss="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 sS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function cS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function uS({fillPct:e,size:t,filledColor:n,emptyColor:r}){return m.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:[m.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:m.jsx("path",{d:ss})}),m.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:m.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:m.jsx("path",{d:ss})})})]})}function dS({style:e,props:t}){const n=G.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(w,k)=>{if(typeof w=="number")return Number.isFinite(w)?w:k;const S=parseFloat(String(w??""));return Number.isFinite(S)?S:k},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),a=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=ie((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb","track"),u=(e==null?void 0:e.starSize)??24,c=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626","trackText"),d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:sS(e==null?void 0:e.fontFamily),fontSize:cS(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const k=a-w;return k>=1?100:k>=.5?50:k>0?Math.round(k*100):0};return m.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[m.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${c}px)`},children:Array.from({length:o}).map((w,k)=>m.jsx(uS,{fillPct:x(k),size:u,filledColor:l,emptyColor:s},k))}),i&&m.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(a)?a:a.toFixed(1),m.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const hS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),fS=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),pS=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:H([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),barHeight:g().min(2).max(60).optional().nullable(),barRadius:g().min(0).max(40).optional().nullable(),circleSize:g().min(40).max(320).optional().nullable(),strokeWidth:g().min(2).max(40).optional().nullable(),stepSize:g().min(4).max(48).optional().nullable(),stepGap:g().min(0).max(40).optional().nullable(),padding:hS,margin:fS}).optional().nullable(),props:A({variant:T(["linear","circular","steps"]).optional().nullable(),value:H([g(),$()]).optional().nullable(),max:H([g(),$()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:T(["percent","fraction"]).optional().nullable(),steps:g().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function gS(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function mS(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function cs(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function us(e,t,n,r){return r==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function bS({pct:e,label:t,trackColor:n,fillColor:r,barHeight:o,barRadius:a,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const h=i&&l;return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&m.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),m.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:o,borderRadius:a,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:m.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:a,backgroundColor:r,backgroundImage:i?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&m.jsx("span",{children:t})]})}function xS({pct:e,label:t,trackColor:n,fillColor:r,size:o,strokeWidth:a,textColor:i,fontWeight:l,ariaLabel:s,value:u,max:c}){const h=(o-a)/2,d=2*Math.PI*h,f=d*(1-e/100),p=o/2;return m.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{position:"relative",width:o,height:o,display:"inline-flex"},children:[m.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:a}),m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:a,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&m.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:i,fontWeight:l??600},children:t})]})}function vS({steps:e,activeIndex:t,trackColor:n,fillColor:r,stepSize:o,stepGap:a,label:i,ariaLabel:l,value:s,max:u}){return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[m.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:a},children:Array.from({length:e}).map((c,h)=>m.jsx("span",{"data-active":h<t?"true":"false",style:{width:o,height:o,borderRadius:"50%",backgroundColor:h<t?r:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),i!=null&&m.jsx("span",{children:i})]})}function kS({style:e,props:t}){const n=G.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.variant)??"linear",o=Math.max(1,cs(t==null?void 0:t.max,100)),a=Math.max(0,Math.min(o,cs(t==null?void 0:t.value,0))),i=a/o*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?us(i,a,o,s):null,c=`Progress: ${us(i,a,o,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb","track"),d=ie((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626","trackText"),p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:gS(e==null?void 0:e.fontFamily),fontSize:mS((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},k=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),S=Math.round(i/100*k);return m.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:r==="circular"?m.jsx(xS,{pct:i,label:u,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:c,value:a,max:o}):r==="steps"?m.jsx(vS,{steps:k,activeIndex:S,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:a,max:o}):m.jsx(bS,{pct:i,label:u,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:c,value:a,max:o})})}const wS=A({responsive:Ve,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable(),viewportHeight:g().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:T(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:O().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:T(["top","middle","bottom"]).optional().nullable(),hoverEffect:yt,items:oe(A({contentChildrenIds:oe($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),SS=40,$S=32,_S=200,vu=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,ku=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,CS=e=>Math.max(2,Math.round(1200/e)),AS=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),wu=e=>e==="up"||e==="down",yS=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",eo=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function IS(e,t){return{speed:ku(t==null?void 0:t.speed,SS),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??$S,viewportHeight:vu(e==null?void 0:e.viewportHeight,_S)}}function RS(e,t,n){var o,a,i,l,s;const r=e==null?void 0:e[t];return{speed:ku((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((a=r==null?void 0:r.props)==null?void 0:a.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=r==null?void 0:r.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:vu((s=r==null?void 0:r.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const TS=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},ds=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${CS(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,ES=(e,t)=>e.fadeEdges?`-webkit-mask-image:${eo(t)}!important;mask-image:${eo(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function NS({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:a}){const i=`.${e}`,l=wu(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":yS(a),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!TS(o,x))return"";const w=RS(o,x,r);return`${b}{${i}{${ds(w)};${ES(w,l)}}}`},p=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${ds(r)}}`+p+`${i} .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 ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(ln,"tablet")+f(Xe,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function MS(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 PS(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function LS({style:e,props:t,responsive:n}){var S;const r=G.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],a=(t==null?void 0:t.direction)??"left",i=AS(t==null?void 0:t.repeat),l=wu(a),s=IS(e,t),u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=ie(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:u??void 0,...PS(c,e==null?void 0:e.borderWidth),borderRadius:MS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:eo(l),maskImage:eo(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=G.useMemo(()=>NS({instanceId:r,direction:a,repeat:i,desktop:s,responsive:n,verticalAlign:b}),[r,a,i,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=jt(r,t==null?void 0:t.hoverEffect,{themedBorderColor:z((S=t==null?void 0:t.hoverEffect)==null?void 0:S.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1}),k=v=>m.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:o.map((_,y)=>m.jsx("div",{className:"ahd-marquee-item",children:(_.contentChildrenIds??[]).map(C=>m.jsx(Pe,{id:C},C))},y))},v);return m.jsxs("div",{className:`${r} ahd-marquee`,...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{className:"ahd-marquee-viewport",children:m.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:i}).map((v,_)=>k(_))})})]})}const OS=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),zS=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),jS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:H([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:OS,margin:zS}).optional().nullable(),props:A({layout:T(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:T(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:O().default(!1),hoverEffect:yt}).optional().nullable()});function BS(e){return String(Math.max(0,e)).padStart(2,"0")}function DS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:u="#6b7280",fallbackOnAccent:c="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[m.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:a??s,color:l??c,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:BS(d.value)}),o&&m.jsx("span",{style:{fontSize:11,color:i??u,textTransform:"uppercase"},children:d.label})]},d.label))})}function FS(e){return String(Math.max(0,e)).padStart(2,"0")}const $a=26,hs=2*Math.PI*$a;function HS({value:e,max:t,accentColor:n,numberColor:r,numberFontWeight:o,unit:a,trackColor:i}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=hs*(1-l);return m.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[m.jsx("circle",{cx:32,cy:32,r:$a,fill:"none",stroke:i,strokeWidth:5}),m.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:$a,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:hs,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),m.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:o??700,fill:r,children:FS(e)})]})}function GS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,numberFontWeight:s,fallbackInk:u="#1f1f1f",fallbackMuted:c="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=a??h,p=l??u,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[m.jsx(HS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),o&&m.jsx("span",{style:{fontSize:11,color:i??c,textTransform:"uppercase"},children:x.label})]},x.label))})}function Jt(e){return String(Math.max(0,e)).padStart(2,"0")}function WS({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const u=[{key:"days",text:o?`${e}d`:Jt(e)},{key:"hours",text:o?`${Jt(t)}h`:Jt(t)},{key:"minutes",text:o?`${Jt(n)}m`:Jt(n)},{key:"seconds",text:o?`${Jt(r)}s`:Jt(r)}],c=o?" ":" : ";return m.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:i??l},children:[m.jsx("span",{style:{color:a??s,marginRight:6},children:"Ends in"}),u.map((h,d)=>m.jsxs(G.Fragment,{children:[d>0&&c,m.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}let US=0;function ZS(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 qS(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 r=Math.max(0,n-t),o=r<=0,a=Math.floor(r/1e3);return{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:a%60,completed:o}}function VS({style:e,props:t}){var M;const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,a=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=qS(n.targetDate),s=l.completed,u=z(e==null?void 0:e.backgroundColor,"bgAdaptive"),c=ie(e==null?void 0:e.borderColor),h=ie(e==null?void 0:e.accentColor),d=ie(e==null?void 0:e.textColor),f=ie(e==null?void 0:e.numberColor),p=z(null,"timerText"),b=z(null,"timerLabel"),x=ie("#7c3aed")??"#7c3aed",w=ie("#ffffff")??"#ffffff",k=z(null,"timerTrack"),S=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:u??void 0,border:c?`1px solid ${c}`:void 0,borderRadius:ZS(e==null?void 0:e.borderRadius),padding:S?`${S.top}px ${S.right}px ${S.bottom}px ${S.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:k,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&a==="showMessage",R=s&&a==="hide",E=G.useMemo(()=>`ahd-hv-timer-${++US}`,[]),L=jt(E,n.hoverEffect,{themedBorderColor:z((M=n.hoverEffect)==null?void 0:M.borderColor,"borderAdaptive"),scaleFromContainer:!0,borderFromContainer:!0,defaultScale:1});return m.jsxs("div",{className:`ahd-timer ${E}`,"data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":a,"data-ahd-timer-expired-message":i,"data-ahd-timer-show-labels":o?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...y,display:R?"none":void 0},children:[L&&m.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),m.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:i}),m.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[r==="digitalFlip"&&m.jsx(DS,{...C}),r==="circularProgress"&&m.jsx(GS,{...C}),r==="textInline"&&m.jsx(WS,{...C})]})]})}function Su(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var YS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},KS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},JS=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,XS=/[&<>"']/g;function QS(e){return YS[e]}function e$(e){return KS[e]}function _a(e){return e==null?"":String(e).replace(XS,QS)}function Ca(e){return e==null?"":String(e).replace(JS,e$)}_a.options=Ca.options={};var $u={encode:_a,escape:_a,decode:Ca,unescape:Ca,version:"1.0.0-browser"};function _u(e){for(var t=Array.prototype.slice.call(arguments,1),n,r;t.length;){n=t.shift();for(r in n)n.hasOwnProperty(r)&&(Object.prototype.toString.call(e[r])==="[object Object]"?e[r]=_u(e[r],n[r]):e[r]=n[r])}return e}var t$=_u,Cu=function(t){return typeof t=="string"?t.toLowerCase():t};function n$(e){return e.reduce(r$,{})}function r$(e,t){return e[t]=!0,e}var Au=n$,o$=Au,a$=["background","base","cite","href","longdesc","src","usemap"],i$={uris:o$(a$)},l$=Au,s$=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"],yu={voids:l$(s$)},c$=$u,fs=Cu,u$=yu,d$=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,h$=/^<\s*\/\s*([\w:-]+)[^>]*>/,f$=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,p$=/^</,g$=/^<\s*\//;function m$(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function b$(e,t){for(var n=m$(),r=e,o;e;)a();h();function a(){o=!0,i();var d=e===r;r=e,d&&(e="")}function i(){e.substr(0,4)==="<!--"?s():g$.test(e)?l(h$,h):p$.test(e)&&l(d$,c),u()}function l(d,f){var p=e.match(d);p&&(e=e.substring(p[0].length),p[0].replace(d,f),o=!1)}function s(){var d=e.indexOf("-->");d>=0&&(t.comment&&t.comment(e.substring(4,d)),e=e.substring(d+3),o=!1)}function u(){if(o){var d,f=e.indexOf("<");f>=0?(d=e.substring(0,f),e=e.substring(f)):(d=e,e=""),t.chars&&t.chars(d)}}function c(d,f,p,b){var x={},w=fs(f),k=u$.voids[w]||!!b;p.replace(f$,S),k||n.push(w),t.start&&t.start(w,x,k);function S(v,_,y,C,I){y===void 0&&C===void 0&&I===void 0?x[_]=void 0:x[_]=c$.decode(y||C||I||"")}}function h(d,f){var p,b=0,x=fs(f);if(x)for(b=n.length-1;b>=0&&n[b]!==x;b--);if(b>=0){for(p=n.length-1;p>=b;p--)t.end&&t.end(n[p]);n.length=b}}}var x$=b$,v$=$u,Zo=Cu,k$=i$,w$=yu;function S$(e,t){var n,r=t||{};return h(),{start:a,end:i,chars:s};function o(d){e.push(d)}function a(d,f,p){var b=Zo(d);if(n.ignoring){u(b);return}if((r.allowedTags||[]).indexOf(b)===-1){u(b);return}if(r.filter&&!r.filter({tag:b,attrs:f})){u(b);return}o("<"),o(b),Object.keys(f).forEach(x),o(p?"/>":">");function x(w){var k=f[w],S=(r.allowedClasses||{})[b]||[],v=(r.allowedAttributes||{})[b]||[],_,y=Zo(w);y==="class"&&v.indexOf(y)===-1?(k=k.split(" ").filter(C).join(" ").trim(),_=k.length):_=v.indexOf(y)!==-1&&(k$.uris[y]!==!0||l(k)),_&&(o(" "),o(w),typeof k=="string"&&(o('="'),o(v$.encode(k)),o('"')));function C(I){return S&&S.indexOf(I)!==-1}}}function i(d){var f=Zo(d),p=(r.allowedTags||[]).indexOf(f)!==-1;p&&n.ignoring===!1?(o("</"),o(f),o(">")):c(f)}function l(d){var f=d[0];if(f==="#"||f==="/")return!0;var p=d.indexOf(":");if(p===-1)return!0;var b=d.indexOf("?");if(b!==-1&&p>b)return!0;var x=d.indexOf("#");if(x!==-1&&p>x)return!0;return r.allowedSchemes.some(w);function w(k){return d.indexOf(k+":")===0}}function s(d){n.ignoring===!1&&o(r.transformText?r.transformText(d):d)}function u(d){w$.voids[d]||(n.ignoring===!1?n={ignoring:d,depth:1}:n.ignoring===d&&n.depth++)}function c(d){n.ignoring===d&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}var $$=S$,_$={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null},C$=_$,A$=t$,y$=x$,I$=$$,Iu=C$;function Ru(e,t,n){var r=[],o=n===!0?t:A$({},Iu,t),a=I$(r,o);return y$(e,a),r.join("")}Ru.defaults=Iu;var R$=Ru;const T$=Su(R$);function wi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sn=wi();function Tu(e){sn=e}var nn={exec:()=>null};function mn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function ge(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(Ze.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var E$=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mn(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mn(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:mn(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:mn(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:mn(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:mn(e=>new RegExp(`^ {0,${e}}>`))},N$=/^(?:[ \t]*(?:\n|$))+/,M$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,P$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,lr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,L$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Si=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Eu=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Nu=ge(Eu).replace(/bull/g,Si).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),O$=ge(Eu).replace(/bull/g,Si).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),$i=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,z$=/^[^\n]+/,_i=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,j$=ge(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_i).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),B$=ge(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Si).getRegex(),bo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ci=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,D$=ge("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ci).replace("tag",bo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mu=ge($i).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),F$=ge(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mu).getRegex(),Ai={blockquote:F$,code:M$,def:j$,fences:P$,heading:L$,hr:lr,html:D$,lheading:Nu,list:B$,newline:N$,paragraph:Mu,table:nn,text:z$},ps=ge("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex(),H$={...Ai,lheading:O$,table:ps,paragraph:ge($i).replace("hr",lr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ps).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bo).getRegex()},G$={...Ai,html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ci).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ge($i).replace("hr",lr).replace("heading",` *#{1,6} *[^
280
+ ]`).replace("lheading",Nu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},W$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,U$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pu=/^( {2,}|\\)\n(?!\s*$)/,Z$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Nn=/[\p{P}\p{S}]/u,xo=/[\s\p{P}\p{S}]/u,yi=/[^\s\p{P}\p{S}]/u,q$=ge(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,xo).getRegex(),Lu=/(?!~)[\p{P}\p{S}]/u,V$=/(?!~)[\s\p{P}\p{S}]/u,Y$=/(?:[^\s\p{P}\p{S}]|~)/u,K$=ge(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",E$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ou=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,J$=ge(Ou,"u").replace(/punct/g,Nn).getRegex(),X$=ge(Ou,"u").replace(/punct/g,Lu).getRegex(),zu="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Q$=ge(zu,"gu").replace(/notPunctSpace/g,yi).replace(/punctSpace/g,xo).replace(/punct/g,Nn).getRegex(),e2=ge(zu,"gu").replace(/notPunctSpace/g,Y$).replace(/punctSpace/g,V$).replace(/punct/g,Lu).getRegex(),t2=ge("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yi).replace(/punctSpace/g,xo).replace(/punct/g,Nn).getRegex(),n2=ge(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Nn).getRegex(),r2="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",o2=ge(r2,"gu").replace(/notPunctSpace/g,yi).replace(/punctSpace/g,xo).replace(/punct/g,Nn).getRegex(),a2=ge(/\\(punct)/,"gu").replace(/punct/g,Nn).getRegex(),i2=ge(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),l2=ge(Ci).replace("(?:-->|$)","-->").getRegex(),s2=ge("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",l2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),to=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,c2=ge(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",to).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ju=ge(/^!?\[(label)\]\[(ref)\]/).replace("label",to).replace("ref",_i).getRegex(),Bu=ge(/^!?\[(ref)\](?:\[\])?/).replace("ref",_i).getRegex(),u2=ge("reflink|nolink(?!\\()","g").replace("reflink",ju).replace("nolink",Bu).getRegex(),gs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ii={_backpedal:nn,anyPunctuation:a2,autolink:i2,blockSkip:K$,br:Pu,code:U$,del:nn,delLDelim:nn,delRDelim:nn,emStrongLDelim:J$,emStrongRDelimAst:Q$,emStrongRDelimUnd:t2,escape:W$,link:c2,nolink:Bu,punctuation:q$,reflink:ju,reflinkSearch:u2,tag:s2,text:Z$,url:nn},d2={...Ii,link:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",to).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",to).getRegex()},Aa={...Ii,emStrongRDelimAst:e2,emStrongLDelim:X$,delLDelim:n2,delRDelim:o2,url:ge(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gs).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ge(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gs).getRegex()},h2={...Aa,br:ge(Pu).replace("{2,}","*").getRegex(),text:ge(Aa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yr={normal:Ai,gfm:H$,pedantic:G$},zn={normal:Ii,gfm:Aa,breaks:h2,pedantic:d2},f2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ms=e=>f2[e];function $t(e,t){if(t){if(Ze.escapeTest.test(e))return e.replace(Ze.escapeReplace,ms)}else if(Ze.escapeTestNoEncode.test(e))return e.replace(Ze.escapeReplaceNoEncode,ms);return e}function bs(e){try{e=encodeURI(e).replace(Ze.percentDecode,"%")}catch{return null}return e}function xs(e,t){var a;let n=e.replace(Ze.findPipe,(i,l,s)=>{let u=!1,c=l;for(;--c>=0&&s[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(Ze.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(Ze.slashPipe,"|");return r}function Ft(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function vs(e){let t=e.split(`
281
281
  `),n=t.length-1;for(;n>=0&&Ze.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
282
- `)}function f2(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function p2(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=o,n++;return r}function ks(e,t,n,r,o){let a=t.href,i=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}function g2(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
282
+ `)}function p2(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function g2(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=o,n++;return r}function ks(e,t,n,r,o){let a=t.href,i=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}function m2(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
283
283
  `).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=o.length?a.slice(o.length):a}).join(`
284
- `)}var no=class{constructor(e){ve(this,"options");ve(this,"rules");ve(this,"lexer");this.options=e||sn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:vs(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=g2(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ft(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ft(t[0],`
284
+ `)}var no=class{constructor(e){ve(this,"options");ve(this,"rules");ve(this,"lexer");this.options=e||sn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:vs(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=m2(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ft(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ft(t[0],`
285
285
  `),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ft(t[0],`
286
286
  `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Ft(t[0],`
287
287
  `).split(`
@@ -294,7 +294,7 @@ ${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
294
294
  `),b=this.blockquote(p);a[a.length-1]=b,r=r.substring(0,r.length-f.raw.length)+b.raw,o=o.substring(0,o.length-f.text.length)+b.text;break}else if((d==null?void 0:d.type)==="list"){let f=d,p=f.raw+`
295
295
  `+n.join(`
296
296
  `),b=this.list(p);a[a.length-1]=b,r=r.substring(0,r.length-d.raw.length)+b.raw,o=o.substring(0,o.length-f.raw.length)+b.raw,n=p.substring(a.at(-1).raw.length).split(`
297
- `);continue}}return{type:"blockquote",raw:r,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;e;){let s=!1,u="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=p2(t[2].split(`
297
+ `);continue}}return{type:"blockquote",raw:r,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;e;){let s=!1,u="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=g2(t[2].split(`
298
298
  `,1)[0],t[1].length),d=e.split(`
299
299
  `,1)[0],f=!h.trim(),p=0;if(this.options.pedantic?(p=2,c=h.trimStart()):f?p=t[1].length+1:(p=h.search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=h.slice(p),p+=t[1].length),f&&this.rules.other.blankLine.test(d)&&(u+=d+`
300
300
  `,e=e.substring(d.length+1),s=!0),!s){let b=this.rules.other.nextBulletRegex(p),x=this.rules.other.hrRegex(p),w=this.rules.other.fencesBeginRegex(p),k=this.rules.other.headingBeginRegex(p),S=this.rules.other.htmlBeginRegex(p),v=this.rules.other.blockquoteBeginRegex(p);for(;e;){let _=e.split(`
@@ -306,7 +306,7 @@ ${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
306
306
  `):[],a={type:"table",raw:Ft(t[0],`
307
307
  `),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(xs(l,a.header.length).map((s,u)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:Ft(t[0],`
308
308
  `),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
309
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=Ft(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=f2(t[2],"()");if(a===-2)return;if(a>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),ks(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return ks(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(r=u.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=[...a].length,r[3]||r[4]){l+=i;continue}else if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+s);let c=[...r[0]][0].length,h=e.slice(0,o+r.index+c+i);if(Math.min(o,i)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+o);(r=s.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(i=[...a].length,i!==o))continue;if(r[3]||r[4]){l+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l);let u=[...r[0]][0].length,c=e.slice(0,o+r.index+u+i),h=c.slice(o,-o);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},pt=class ya{constructor(t){ve(this,"tokens");ve(this,"options");ve(this,"state");ve(this,"inlineQueue");ve(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||sn,this.options.tokenizer=this.options.tokenizer||new no,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ze,block:yr.normal,inline:zn.normal};this.options.pedantic?(n.block=yr.pedantic,n.inline=zn.pedantic):this.options.gfm&&(n.block=yr.gfm,this.options.breaks?n.inline=zn.breaks:n.inline=zn.gfm),this.tokenizer.rules=n}static get rules(){return{block:yr,inline:zn}}static lex(t,n){return new ya(n).lex(t)}static lexInline(t,n){return new ya(n).inlineTokens(t)}lex(t){t=t.replace(Ze.carriageReturn,`
309
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=Ft(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=p2(t[2],"()");if(a===-2)return;if(a>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),ks(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return ks(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(r=u.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=[...a].length,r[3]||r[4]){l+=i;continue}else if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+s);let c=[...r[0]][0].length,h=e.slice(0,o+r.index+c+i);if(Math.min(o,i)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+o);(r=s.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(i=[...a].length,i!==o))continue;if(r[3]||r[4]){l+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l);let u=[...r[0]][0].length,c=e.slice(0,o+r.index+u+i),h=c.slice(o,-o);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},pt=class ya{constructor(t){ve(this,"tokens");ve(this,"options");ve(this,"state");ve(this,"inlineQueue");ve(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||sn,this.options.tokenizer=this.options.tokenizer||new no,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ze,block:yr.normal,inline:zn.normal};this.options.pedantic?(n.block=yr.pedantic,n.inline=zn.pedantic):this.options.gfm&&(n.block=yr.gfm,this.options.breaks?n.inline=zn.breaks:n.inline=zn.gfm),this.tokenizer.rules=n}static get rules(){return{block:yr,inline:zn}}static lex(t,n){return new ya(n).lex(t)}static lexInline(t,n){return new ya(n).inlineTokens(t)}lex(t){t=t.replace(Ze.carriageReturn,`
310
310
  `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var a,i,l;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ze.tabCharGlobal," ").replace(Ze.spaceLine,""));let o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let s;if((i=(a=this.options.extensions)==null?void 0:a.block)!=null&&i.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let c=n.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
311
311
  `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
312
312
  `)?"":`
@@ -338,13 +338,13 @@ ${this.parser.parse(e)}</blockquote>
338
338
  `}tablerow({text:e}){return`<tr>
339
339
  ${e}</tr>
340
340
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
341
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${$t(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=bs(e);if(o===null)return r;e=o;let a='<a href="'+e+'"';return t&&(a+=' title="'+$t(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=bs(e);if(o===null)return $t(n);e=o;let a=`<img src="${e}" alt="${$t(n)}"`;return t&&(a+=` title="${$t(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:$t(e.text)}},Ri=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},gt=class Ia{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||sn,this.options.renderer=this.options.renderer||new er,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ri}static parse(t,n){return new Ia(n).parse(t)}static parseInline(t,n){return new Ia(n).parseInline(t)}parse(t){var r,o;this.renderer.parser=this;let n="";for(let a=0;a<t.length;a++){let i=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=u||"";continue}}let l=i;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){var o,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let l=t[i];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[l.type]){let u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=u||"";continue}}let s=l;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},Nr,Wn=(Nr=class{constructor(e){ve(this,"options");ve(this,"block");this.options=e||sn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?pt.lex:pt.lexInline}provideParser(e=this.block){return e?gt.parse:gt.parseInline}},ve(Nr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(Nr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Nr),m2=class{constructor(...e){ve(this,"defaults",wi());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",gt);ve(this,"Renderer",er);ve(this,"TextRenderer",Ri);ve(this,"Lexer",pt);ve(this,"Tokenizer",no);ve(this,"Hooks",Wn);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let i=a;for(let l of i.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of i.rows)for(let s of l)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=a;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=a;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(l=>{let s=i[l].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=t.renderers[o.name];a?t.renderers[o.name]=function(...i){let l=o.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new er(this.defaults);for(let a in n.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=n.renderer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new no(this.defaults);for(let a in n.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=n.tokenizer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Wn;for(let a in n.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=n.hooks[i],s=o[i];Wn.passThroughHooks.has(a)?o[i]=u=>{if(this.defaults.async&&Wn.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await l.call(o,u);return s.call(o,h)})();let c=l.call(o,u);return s.call(o,c)}:o[i]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(o,u);return h===!1&&(h=await s.apply(o,u)),h})();let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),o&&(l=l.concat(o.call(this,i))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pt.lex(e,t??this.defaults)}parser(e,t){return gt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let i=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(i,o),s=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(s,o.walkTokens));let u=await(o.hooks?await o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(s,o);return o.hooks?await o.hooks.postprocess(u):u})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let i=(o.hooks?o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(t,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(i,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(e,t){return n=>{if(n.message+=`
342
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+$t(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},rn=new m2;function xe(e,t){return rn.parse(e,t)}xe.options=xe.setOptions=function(e){return rn.setOptions(e),xe.defaults=rn.defaults,Tu(xe.defaults),xe};xe.getDefaults=wi;xe.defaults=sn;xe.use=function(...e){return rn.use(...e),xe.defaults=rn.defaults,Tu(xe.defaults),xe};xe.walkTokens=function(e,t){return rn.walkTokens(e,t)};xe.parseInline=rn.parseInline;xe.Parser=gt;xe.parser=gt.parse;xe.Renderer=er;xe.TextRenderer=Ri;xe.Lexer=pt;xe.lexer=pt.lex;xe.Tokenizer=no;xe.Hooks=Wn;xe.parse=xe;xe.options;xe.setOptions;xe.use;xe.walkTokens;xe.parseInline;gt.parse;pt.lex;function b2(e,t){return"<pre><code>"+(r=>r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))(e??"")+"</code></pre>"}const ws=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],Mt=["style","title"];function x2(e){return R$(e,{allowedTags:ws,allowedAttributes:{...ws.reduce((t,n)=>(t[n]=[...Mt],t),{}),code:["class",...Mt],img:["src","srcset","alt","width","height",...Mt],table:["width",...Mt],td:["align","width",...Mt],th:["align","width",...Mt],a:["href","target",...Mt],ol:["start",...Mt],ul:["start",...Mt]}})}class v2 extends er{table({header:t,rows:n}){const r=this.tablerow({text:t.map(a=>this.tablecell(a)).join("")}),o=n.map(a=>this.tablerow({text:a.map(i=>this.tablecell(i)).join("")})).join("");return`<table width="100%">
341
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${$t(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=bs(e);if(o===null)return r;e=o;let a='<a href="'+e+'"';return t&&(a+=' title="'+$t(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=bs(e);if(o===null)return $t(n);e=o;let a=`<img src="${e}" alt="${$t(n)}"`;return t&&(a+=` title="${$t(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:$t(e.text)}},Ri=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},gt=class Ia{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||sn,this.options.renderer=this.options.renderer||new er,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ri}static parse(t,n){return new Ia(n).parse(t)}static parseInline(t,n){return new Ia(n).parseInline(t)}parse(t){var r,o;this.renderer.parser=this;let n="";for(let a=0;a<t.length;a++){let i=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=u||"";continue}}let l=i;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){var o,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let l=t[i];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[l.type]){let u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=u||"";continue}}let s=l;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},Nr,Wn=(Nr=class{constructor(e){ve(this,"options");ve(this,"block");this.options=e||sn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?pt.lex:pt.lexInline}provideParser(e=this.block){return e?gt.parse:gt.parseInline}},ve(Nr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(Nr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Nr),b2=class{constructor(...e){ve(this,"defaults",wi());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",gt);ve(this,"Renderer",er);ve(this,"TextRenderer",Ri);ve(this,"Lexer",pt);ve(this,"Tokenizer",no);ve(this,"Hooks",Wn);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let i=a;for(let l of i.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of i.rows)for(let s of l)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=a;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=a;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(l=>{let s=i[l].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=t.renderers[o.name];a?t.renderers[o.name]=function(...i){let l=o.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new er(this.defaults);for(let a in n.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=n.renderer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new no(this.defaults);for(let a in n.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=n.tokenizer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Wn;for(let a in n.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=n.hooks[i],s=o[i];Wn.passThroughHooks.has(a)?o[i]=u=>{if(this.defaults.async&&Wn.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await l.call(o,u);return s.call(o,h)})();let c=l.call(o,u);return s.call(o,c)}:o[i]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(o,u);return h===!1&&(h=await s.apply(o,u)),h})();let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),o&&(l=l.concat(o.call(this,i))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pt.lex(e,t??this.defaults)}parser(e,t){return gt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let i=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(i,o),s=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(s,o.walkTokens));let u=await(o.hooks?await o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(s,o);return o.hooks?await o.hooks.postprocess(u):u})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let i=(o.hooks?o.hooks.provideLexer(e):e?pt.lex:pt.lexInline)(t,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(e):e?gt.parse:gt.parseInline)(i,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(e,t){return n=>{if(n.message+=`
342
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+$t(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},rn=new b2;function xe(e,t){return rn.parse(e,t)}xe.options=xe.setOptions=function(e){return rn.setOptions(e),xe.defaults=rn.defaults,Tu(xe.defaults),xe};xe.getDefaults=wi;xe.defaults=sn;xe.use=function(...e){return rn.use(...e),xe.defaults=rn.defaults,Tu(xe.defaults),xe};xe.walkTokens=function(e,t){return rn.walkTokens(e,t)};xe.parseInline=rn.parseInline;xe.Parser=gt;xe.parser=gt.parse;xe.Renderer=er;xe.TextRenderer=Ri;xe.Lexer=pt;xe.lexer=pt.lex;xe.Tokenizer=no;xe.Hooks=Wn;xe.parse=xe;xe.options;xe.setOptions;xe.use;xe.walkTokens;xe.parseInline;gt.parse;pt.lex;function x2(e,t){return"<pre><code>"+(r=>r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))(e??"")+"</code></pre>"}const ws=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],Mt=["style","title"];function v2(e){return T$(e,{allowedTags:ws,allowedAttributes:{...ws.reduce((t,n)=>(t[n]=[...Mt],t),{}),code:["class",...Mt],img:["src","srcset","alt","width","height",...Mt],table:["width",...Mt],td:["align","width",...Mt],th:["align","width",...Mt],a:["href","target",...Mt],ol:["start",...Mt],ul:["start",...Mt]}})}class k2 extends er{table({header:t,rows:n}){const r=this.tablerow({text:t.map(a=>this.tablecell(a)).join("")}),o=n.map(a=>this.tablerow({text:a.map(i=>this.tablecell(i)).join("")})).join("");return`<table width="100%">
343
343
  <thead>
344
344
  ${r}</thead>
345
345
  <tbody>
346
346
  ${o}</tbody>
347
- </table>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),a=n?` title="${n}"`:"";return`<a href="${t}"${a} target="_blank" rel="noopener noreferrer">${o}</a>`}code({text:t,lang:n}){return b2(t)}}function k2(e){return e.replace(/^---[\s\S]*?---\s*\n?/,"")}function w2(e){return e.replace(/\^([^^]+)\^/g,"<sup>$1</sup>").replace(new RegExp("(?<!~)~(?!~)([^~]+)(?<!~)~(?!~)","g"),"<sub>$1</sub>")}function S2(e){const t=k2(e),n=w2(t),r=xe.parse(n,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new v2});if(typeof r!="string")throw new Error("marked.parse did not return a string");return x2(r)}function $2({markdown:e,...t}){const n=G.useMemo(()=>S2(e),[e]);return m.jsx("div",{...t,dangerouslySetInnerHTML:{__html:n}})}const _2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),C2=$().regex(/^rgba?\([^\)]+\)$/i),A2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ss=H([_2,C2,A2,ae("transparent")]).nullable().optional(),y2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),I2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),R2=A({style:A({color:Ss,backgroundColor:Ss,fontSize:g().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:y2,margin:I2}).optional().nullable(),props:A({markdown:$().optional().nullable(),html:$().optional().nullable()}).optional().nullable(),responsive:Ve}),T2={markdown:""};function E2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function N2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function M2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:E2(e==null?void 0:e.padding),margin:N2(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.markdown)??T2.markdown,o=t==null?void 0:t.html,a=m.jsx("style",{children:".mdx-block ul,.mdx-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}"});return o?m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx("div",{dangerouslySetInnerHTML:{__html:po(o)}})]}):m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx($2,{markdown:r,style:n})]})}const P2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e},L2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),O2=$().regex(/^rgba?\([^\)]+\)$/i),z2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),j2=ae("transparent"),$s=H([L2,O2,z2,j2]).nullable().optional(),B2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),D2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),F2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,H2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,G2=A({style:A({color:$s,backgroundColor:$s,fontSize:g().gte(0).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:B2,margin:D2}).optional().nullable(),props:A({text:$().optional().nullable()}).optional().nullable(),responsive:Ve}),W2={text:""};function U2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:P2(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:F2(e==null?void 0:e.padding)??0,margin:H2(e==null?void 0:e.margin)??0,wordBreak:"break-word",overflowWrap:"break-word"},r=eu(po((t==null?void 0:t.text)??W2.text));return m.jsxs("div",{className:"quill-block ql-editor",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...n,maxWidth:"100%",boxSizing:"border-box"},children:[m.jsx("style",{children:".quill-block ul,.quill-block ol{margin:0.5em 0;padding-left:2.5em}.quill-block li:not(.ql-direction-rtl)::before{margin-left:-2.5em}.quill-block blockquote{border-left:4px solid var(--pp-text-muted,#9ca3af);margin:0;padding:0.25em 0 0.25em 12px;font-style:italic;color:inherit}.quill-block *:not(blockquote)+blockquote{margin-top:0.75em}.quill-block blockquote+*:not(blockquote){margin-top:0.75em}.quill-block blockquote p{margin:0}.quill-block pre,.quill-block .ql-code-block-container,.quill-block .ql-code-block{background:var(--pp-surface-alt,#f3f4f6);border-radius:4px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.9em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}.quill-block img{max-width:100%;height:auto;display:block}"}),m.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const _s=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Z2=A({responsive:Ve,style:A({padding:_s,margin:_s,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:H([g(),$()]).optional().nullable(),height:H([g(),$()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),Cs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,q2=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,qo=1440,Vo=830,V2=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:a,borderColor:i,borderWidth:l}=t??{},s={padding:Cs(e==null?void 0:e.padding),margin:Cs(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return m.jsx(m.Fragment,{});const u=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return m.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:u},children:m.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${q2(o,"100%")})`,aspectRatio:`${qo} / ${Vo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${a??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:m.jsx("div",{id:"demoScaler",style:{width:qo,height:Vo,transformOrigin:"top left"},children:m.jsx("iframe",{src:r,style:{width:qo,height:Vo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},Du=Tm(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),pageId:$().optional().nullable(),menuImage:$().optional(),children:oe(Du).optional()})),Yo=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),Y2=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),K2=A({menuId:$().default(""),useCustomMenu:O().default(!1),navRole:T(["header","footer"]).optional().nullable(),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:T(["left","center","right"]).default("left"),orientation:T(["horizontal","vertical","columns"]).default("horizontal"),menuItems:oe(Du).optional().nullable(),startChildrenIds:oe($()).optional().nullable(),endChildrenIds:oe($()).optional().nullable(),layout:T(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:g().optional().nullable(),submenuIconSize:g().optional().nullable(),submenuTextColor:$().optional().nullable(),submenuFontSize:$().optional().nullable(),submenuFontWeight:$().optional().nullable(),submenuPadding:Yo,submenuItemPadding:Yo,submenuMinWidth:g().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:Yo,blockMargin:Y2,gap:$().default("16px"),showIcons:O().default(!0),iconSize:$().default("24px")}),J2=A({style:A({}).passthrough().optional().nullable(),responsive:Ve,props:K2.optional().nullable()}),X2={left:"flex-start",center:"center",right:"flex-end"},Fu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Q2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,e_=e=>e?e.left+e.right:0,t_=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Ti=e=>t_(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},Hu=(e,t,n=!1,r,o)=>{const a=e_(o);return{...Ti(e),width:`calc(100% - ${a}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Fu(r),margin:Q2(o),justifyContent:n?"space-between":X2[t]||"flex-start"}},Ko=(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}),n_=(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"}),r_={position:"relative"},Gu=(e,t,n,r,o,a,i,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:r,fontWeight:(l==null?void 0:l.fontWeight)??o,fontFamily:i||void 0,padding:(l==null?void 0:l.padding)??a,textDecoration:"none",whiteSpace:"nowrap",...Ti(l==null?void 0:l.backgroundColor),...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}),Wu=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),o_=e=>({paddingLeft:e===0?"0":"12px"}),a_=(e,t,n,r,o)=>({...Ti(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Fu(r)??"8px",minWidth:`${o??260}px`}),i_=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),l_="M6 9l6 6 6-6",Uu={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},s_=e=>({color:e});function c_(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",a=[`${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}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].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:${r};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-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${o}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!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(""),l=`(max-width:${Ue}px)`;return a+`@media ${l}{${i}}@container ahd-page ${l}{${i}}`}const u_=(e,t)=>{const n=!!t.stickyNav,r=t.stickyNavTablet??n,o=t.stickyNavMobile??r,a=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let i=n?a(!0):"";if(r!==n){const l=`(max-width:${Ue}px)`;i+=`@media ${l}{${a(r)}}`,i+=`@container ahd-page ${l}{${a(r)}}`}if(o!==r){const l=`(max-width:${qe}px)`;i+=`@media ${l}{${a(o)}}`,i+=`@container ahd-page ${l}{${a(o)}}`}return i},d_=({p:e,menuItems:t,menuKey:n,textColor:r,submenuTextColor:o,submenuFontSize:a,backgroundColor:i,fontFamily:l,start:s,end:u})=>{const{fontSize:c="14px",fontWeight:h="400",padding:d="8px 16px",gap:f="16px",showIcons:p=!0,iconSize:b="24px",blockPadding:x,blockMargin:w,borderColor:k,borderWidth:S,borderRadius:v,submenuItemPadding:_}=e||{},y=o||(e==null?void 0:e.submenuTextColor)||r,C=a||(e==null?void 0:e.submenuFontSize)||c,I=(e==null?void 0:e.submenuFontWeight)||h,R=_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:d,E=(L,M,P=!1)=>m.jsx("li",{style:{listStyle:"none"},children:m.jsxs("a",{href:L.href||"#",style:Gu(p,!!L.menuImage,P?y:r,P?C:c,P?I:h,P?R:d,l,L),children:[p&&L.menuImage&&m.jsx("img",{...ar(),src:L.menuImage,alt:"","aria-hidden":"true",style:Wu(b)}),L.name||L.label||""]})},L.id||M);return m.jsxs("nav",{className:`ahd-menu-cols ahd-menu-cols-${n}`,"data-block":"menu","data-layout":"columns","aria-label":"Footer navigation",style:{...Hu(i,"left",!0,x,w),alignItems:"flex-start",flexWrap:"wrap",gap:"32px",boxSizing:"border-box",...k?{borderStyle:"solid",borderColor:k,borderWidth:S?`${S.top??1}px ${S.right??1}px ${S.bottom??1}px ${S.left??1}px`:"1px"}:{},...v!=null?{borderRadius:typeof v=="number"?`${v}px`:`${(v==null?void 0:v.topLeft)??0}px ${(v==null?void 0:v.topRight)??0}px ${(v==null?void 0:v.bottomRight)??0}px ${(v==null?void 0:v.bottomLeft)??0}px`}:{}},children:[s&&m.jsx("div",{className:"ahd-menu-cols-start",style:{flex:"1 1 240px",minWidth:0},children:s}),m.jsx("div",{className:"ahd-menu-cols-grid",style:{flex:"2 1 420px",minWidth:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:f},children:t.map((L,M)=>m.jsxs("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:f},children:[E(L,M),(Array.isArray(L.children)?L.children:[]).map((P,B)=>E(P,B,!0))]},L.id||M))}),u&&m.jsx("div",{className:"ahd-menu-cols-end",style:{flex:"0 0 auto",minWidth:0},children:u})]})},h_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ra=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},As=({size:e,className:t})=>m.jsx("span",{className:t,style:i_(e),"aria-hidden":"true",children:m.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:l_})})}),Ta=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:r,fontSize:o,fontWeight:a,padding:i,orientation:l,gap:s,showIcons:u,iconSize:c,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:k,submenuPadding:S,submenuItemPadding:v,submenuMinWidth:_,submenuTextColor:y,submenuFontSize:C,submenuFontWeight:I}=t,R=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:i,E=n>0&&y?y:r,L=n>0&&C?C:o,M=n>0&&I?I:a;return m.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:n_(l,n,s),children:e.map((P,B)=>{const F=Array.isArray(P.children)?P.children:[],W=F.length>0,D=`ahd-submenu-${p}-${n}-${P.id||B}`,U=P.name||P.label||"",J=m.jsxs("a",{href:P.href||"#",style:Gu(u,!!P.menuImage,E,L,M,R,f,P),children:[u&&P.menuImage&&m.jsx("img",{...ar(),src:P.menuImage,alt:"","aria-hidden":"true",style:Wu(c)}),U,W&&m.jsx(As,{size:k,className:"ahd-menu-caret"})]}),Q=W?m.jsxs("span",{className:"ahd-menu-item-row",children:[m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:X=>X.stopPropagation(),children:J}),m.jsx("label",{htmlFor:D,className:"ahd-menu-sub-caret","aria-label":`Toggle ${U} submenu`,onClick:Ra(D),children:m.jsx(As,{size:k,className:"ahd-menu-sub-caret-icon"})})]}):m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:X=>X.stopPropagation(),children:J});return m.jsxs("li",{style:r_,children:[W&&m.jsx("input",{type:"checkbox",id:D,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Uu,onClick:X=>X.stopPropagation()}),Q,W&&m.jsx("div",{className:"ahd-menu-submenu",style:o_(n),children:m.jsx("div",{style:a_(b,x,w,S,_),children:Ta(F,{...t,orientation:"vertical"},n+1)})})]},P.id||B)})})},f_=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,stickyNavTablet:o,stickyNavMobile:a,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:k="8px 16px",blockPadding:S,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:E,submenuBackgroundColor:L,submenuRadius:M,submenuIconSize:P,submenuPadding:B,submenuItemPadding:F,submenuMinWidth:W,submenuTextColor:D,submenuFontSize:U,submenuFontWeight:J,bare:Q}=e??{},X=pi(),ee=z(d,"bgAdaptive")??d,ge=z(f,"menuText")??f,$e=X(I),ke=X(p),Le=X(L),K=X(D),q=z(null,"menuSurface");if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return m.jsx(m.Fragment,{});const j=u==="logo-menu"||u==="logo-menu-cta",Y=u==="menu-cta"||u==="logo-menu-cta",de=j||Y,we=c==="right"?"end":c==="center"?"center":"start",he=G.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),me=t||he,Ie=(Q==null?void 0:Q.toggleId)??`ahd-menu-toggle-${me}`,le=(Q==null?void 0:Q.listId)??`ahd-menu-list-${me}`,Te=h_(x),De=Q?Q.toggleId.replace(/^ahd-menu-toggle-/,""):me,Oe={textColor:ge,fontSize:b,fontWeight:w,padding:k,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:Ie,listId:le,fontFamily:Te,menuKey:De,submenuBackground:Le||ke||(d!=="transparent"?ee:q),submenuRadius:M??8,submenuBorderColor:$e??null,submenuIconSize:P??14,submenuPadding:B??null,submenuItemPadding:F??null,submenuMinWidth:W??null,submenuTextColor:K||null,submenuFontSize:U||null,submenuFontWeight:J||null};if(h==="columns"&&!Q){const te=We=>We!=null&&We.length?We.map(Fe=>m.jsx(Pe,{id:Fe},Fe)):null;return m.jsx(d_,{p:{...e,borderColor:$e},menuItems:i,menuKey:me,textColor:ge,submenuTextColor:K||null,submenuFontSize:U||null,backgroundColor:ee,fontFamily:Te,start:j?te(l):null,end:Y?te(s):null})}if(Q)return m.jsx(m.Fragment,{children:Ta(i,Oe)});const _e=u_(me,{stickyNav:r,stickyNavTablet:o,stickyNavMobile:a}),Ye=c_(me,{dropdownBackground:ke??(d!=="transparent"?ee:null),hasSubmenuItemPadding:!!F});return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Ye}},me),_e&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_e}}),m.jsxs("nav",{className:`ahd-menu ahd-menu-${me} ahd-menu-sticky-${me}`,"data-block":"menu","data-layout":u,...ue(d,void 0,"bgAdaptive"),style:{...Hu(ee,c,de,S,v),...$e?{borderStyle:"solid",borderColor:$e,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...E!=null?{borderRadius:typeof E=="number"?`${E}px`:`${(E==null?void 0:E.topLeft)??0}px ${(E==null?void 0:E.topRight)??0}px ${(E==null?void 0:E.bottomRight)??0}px ${(E==null?void 0:E.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[m.jsx("input",{type:"checkbox",id:Ie,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":le,style:Uu,onClick:te=>te.stopPropagation()}),m.jsx("label",{htmlFor:Ie,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Ra(Ie)}),j&&m.jsx("div",{className:"ahd-menu-start",style:Ko("start"),children:(l??[]).map(te=>m.jsx(Pe,{id:te},te))}),m.jsx("div",{className:"ahd-menu-center",style:Ko(we,de),children:Ta(i,Oe)}),Y&&m.jsx("div",{className:"ahd-menu-end",style:Ko("end"),children:(s??[]).map(te=>m.jsx(Pe,{id:te},te))}),m.jsxs("label",{htmlFor:Ie,className:"ahd-menu-burger","aria-hidden":"true",style:s_(ge),onClick:Ra(Ie),children:[m.jsx("span",{}),m.jsx("span",{}),m.jsx("span",{})]})]})]})},p_=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),g_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),m_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),b_=A({items:oe(p_).optional().nullable(),separator:T(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:O().default(!1),homeHref:$().default("/"),collapseOnMobile:O().default(!0),currentItemLinked:O().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:g_,blockMargin:m_}),x_=A({style:A({}).passthrough().optional().nullable(),responsive:Ve,props:b_.optional().nullable()}),Jo={slash:"/",chevron:"›",dot:"•",pipe:"|"};function v_(e,t){return e==="custom"?t||"›":e&&Jo[e]?Jo[e]:Jo.chevron}function k_(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),r=`(max-width:${qe}px)`;return`@media ${r}{${n}}@container ahd-page ${r}{${n}}`}const w_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Zu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,S_=Zu,$_="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",__=({size:e,color:t})=>m.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:m.jsx("path",{d:$_,fill:t})}),C_=({color:e,fontSize:t})=>m.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),A_=({props:e,renderLabel:t})=>{const{items:n,separator:r="chevron",customSeparator:o,showHomeIcon:a=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},k=pi(),S=z(u,"breadcrumbText"),v=k(c),_=k(h);if(!(Array.isArray(n)&&n.length>0))return m.jsx(m.Fragment,{});const C=w_(f),I=v_(r,o),R=n.length-1,E=G.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),L=l?k_(E):"",M=(P,B,F)=>{const W=(F?v:null)||k(P.textColor)||S,D=!F||s,U={color:W,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:P,index:B,isLast:F,style:U}):D?m.jsx("a",{href:P.href||"#",style:U,"aria-current":F?"page":void 0,children:P.label||""}):m.jsx("span",{style:U,"aria-current":"page",children:P.label||""})};return m.jsxs(m.Fragment,{children:[L&&m.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),m.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${E}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Zu(x),margin:S_(w)},children:m.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[a&&m.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[m.jsx("a",{href:i||"/",style:{display:"flex",color:S},children:m.jsx(__,{size:parseInt(d,10)||14,color:S})}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]}),n.map((P,B)=>{const F=B===R,W=l&&B!==0&&!F;return m.jsxs("li",{className:W?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(P,B,F),!F&&m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]},P.id||B)}),l&&n.length>2&&m.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[m.jsx(C_,{color:S,fontSize:d}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]})]})})]})},y_=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:O().default(!1),alignment:T(["left","center","right"]).default("left")}).optional().nullable()}),I_=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return`form-${Math.abs(t).toString(36)}`},R_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},T_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},E_=({props:e,style:t})=>{var S,v;const{formId:n,iframeSrc:r,width:o,height:a,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!r)return m.jsx(m.Fragment,{});const h=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=hv(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:R_(d.padding),margin:T_(d.margin),backgroundColor:z(d.backgroundColor,"bgAdaptive")||void 0,borderRadius:p},x=I_(`${n}|${r??""}`),w=!s&&(i||l)?`
347
+ </table>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),a=n?` title="${n}"`:"";return`<a href="${t}"${a} target="_blank" rel="noopener noreferrer">${o}</a>`}code({text:t,lang:n}){return x2(t)}}function w2(e){return e.replace(/^---[\s\S]*?---\s*\n?/,"")}function S2(e){return e.replace(/\^([^^]+)\^/g,"<sup>$1</sup>").replace(new RegExp("(?<!~)~(?!~)([^~]+)(?<!~)~(?!~)","g"),"<sub>$1</sub>")}function $2(e){const t=w2(e),n=S2(t),r=xe.parse(n,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new k2});if(typeof r!="string")throw new Error("marked.parse did not return a string");return v2(r)}function _2({markdown:e,...t}){const n=G.useMemo(()=>$2(e),[e]);return m.jsx("div",{...t,dangerouslySetInnerHTML:{__html:n}})}const C2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),A2=$().regex(/^rgba?\([^\)]+\)$/i),y2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ss=H([C2,A2,y2,ae("transparent")]).nullable().optional(),I2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),R2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),T2=A({style:A({color:Ss,backgroundColor:Ss,fontSize:g().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:I2,margin:R2}).optional().nullable(),props:A({markdown:$().optional().nullable(),html:$().optional().nullable()}).optional().nullable(),responsive:Ve}),E2={markdown:""};function N2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function M2(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function P2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:N2(e==null?void 0:e.padding),margin:M2(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.markdown)??E2.markdown,o=t==null?void 0:t.html,a=m.jsx("style",{children:".mdx-block ul,.mdx-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}"});return o?m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx("div",{dangerouslySetInnerHTML:{__html:po(o)}})]}):m.jsxs("div",{className:"mdx-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:n,children:[a,m.jsx(_2,{markdown:r,style:n})]})}const L2=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e},O2=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),z2=$().regex(/^rgba?\([^\)]+\)$/i),j2=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),B2=ae("transparent"),$s=H([O2,z2,j2,B2]).nullable().optional(),D2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),F2=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),H2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,G2=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,W2=A({style:A({color:$s,backgroundColor:$s,fontSize:g().gte(0).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:T(["bold","normal",...ir]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:D2,margin:F2}).optional().nullable(),props:A({text:$().optional().nullable()}).optional().nullable(),responsive:Ve}),U2={text:""};function Z2({style:e,props:t}){const n={color:z(e==null?void 0:e.color,"blockText"),background:z(e==null?void 0:e.backgroundColor,"bgAdaptive"),fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:L2(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:H2(e==null?void 0:e.padding)??0,margin:G2(e==null?void 0:e.margin)??0,wordBreak:"break-word",overflowWrap:"break-word"},r=eu(po((t==null?void 0:t.text)??U2.text));return m.jsxs("div",{className:"quill-block ql-editor",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:{...n,maxWidth:"100%",boxSizing:"border-box"},children:[m.jsx("style",{children:".quill-block ul,.quill-block ol{margin:0.5em 0;padding-left:2.5em}.quill-block li:not(.ql-direction-rtl)::before{margin-left:-2.5em}.quill-block blockquote{border-left:4px solid var(--pp-text-muted,#9ca3af);margin:0;padding:0.25em 0 0.25em 12px;font-style:italic;color:inherit}.quill-block *:not(blockquote)+blockquote{margin-top:0.75em}.quill-block blockquote+*:not(blockquote){margin-top:0.75em}.quill-block blockquote p{margin:0}.quill-block pre,.quill-block .ql-code-block-container,.quill-block .ql-code-block{background:var(--pp-surface-alt,#f3f4f6);border-radius:4px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.9em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}.quill-block img{max-width:100%;height:auto;display:block}"}),m.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const _s=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),q2=A({responsive:Ve,style:A({padding:_s,margin:_s,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:H([g(),$()]).optional().nullable(),height:H([g(),$()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),Cs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,V2=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,qo=1440,Vo=830,Y2=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:a,borderColor:i,borderWidth:l}=t??{},s={padding:Cs(e==null?void 0:e.padding),margin:Cs(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return m.jsx(m.Fragment,{});const u=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return m.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:u},children:m.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${V2(o,"100%")})`,aspectRatio:`${qo} / ${Vo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${a??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:m.jsx("div",{id:"demoScaler",style:{width:qo,height:Vo,transformOrigin:"top left"},children:m.jsx("iframe",{src:r,style:{width:qo,height:Vo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},Du=Tm(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),pageId:$().optional().nullable(),menuImage:$().optional(),children:oe(Du).optional()})),Yo=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),K2=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),J2=A({menuId:$().default(""),useCustomMenu:O().default(!1),navRole:T(["header","footer"]).optional().nullable(),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:T(["left","center","right"]).default("left"),orientation:T(["horizontal","vertical","columns"]).default("horizontal"),menuItems:oe(Du).optional().nullable(),startChildrenIds:oe($()).optional().nullable(),endChildrenIds:oe($()).optional().nullable(),layout:T(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:g().optional().nullable(),submenuIconSize:g().optional().nullable(),submenuTextColor:$().optional().nullable(),submenuFontSize:$().optional().nullable(),submenuFontWeight:$().optional().nullable(),submenuPadding:Yo,submenuItemPadding:Yo,submenuMinWidth:g().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:Yo,blockMargin:K2,gap:$().default("16px"),showIcons:O().default(!0),iconSize:$().default("24px")}),X2=A({style:A({}).passthrough().optional().nullable(),responsive:Ve,props:J2.optional().nullable()}),Q2={left:"flex-start",center:"center",right:"flex-end"},Fu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,e_=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,t_=e=>e?e.left+e.right:0,n_=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Ti=e=>n_(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},Hu=(e,t,n=!1,r,o)=>{const a=t_(o);return{...Ti(e),width:`calc(100% - ${a}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Fu(r),margin:e_(o),justifyContent:n?"space-between":Q2[t]||"flex-start"}},Ko=(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}),r_=(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"}),o_={position:"relative"},Gu=(e,t,n,r,o,a,i,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:r,fontWeight:(l==null?void 0:l.fontWeight)??o,fontFamily:i||void 0,padding:(l==null?void 0:l.padding)??a,textDecoration:"none",whiteSpace:"nowrap",...Ti(l==null?void 0:l.backgroundColor),...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}),Wu=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),a_=e=>({paddingLeft:e===0?"0":"12px"}),i_=(e,t,n,r,o)=>({...Ti(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Fu(r)??"8px",minWidth:`${o??260}px`}),l_=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),s_="M6 9l6 6 6-6",Uu={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},c_=e=>({color:e});function u_(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",a=[`${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}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].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:${r};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-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${o}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!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(""),l=`(max-width:${Ue}px)`;return a+`@media ${l}{${i}}@container ahd-page ${l}{${i}}`}const d_=(e,t)=>{const n=!!t.stickyNav,r=t.stickyNavTablet??n,o=t.stickyNavMobile??r,a=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let i=n?a(!0):"";if(r!==n){const l=`(max-width:${Ue}px)`;i+=`@media ${l}{${a(r)}}`,i+=`@container ahd-page ${l}{${a(r)}}`}if(o!==r){const l=`(max-width:${qe}px)`;i+=`@media ${l}{${a(o)}}`,i+=`@container ahd-page ${l}{${a(o)}}`}return i},h_=({p:e,menuItems:t,menuKey:n,textColor:r,submenuTextColor:o,submenuFontSize:a,backgroundColor:i,fontFamily:l,start:s,end:u})=>{const{fontSize:c="14px",fontWeight:h="400",padding:d="8px 16px",gap:f="16px",showIcons:p=!0,iconSize:b="24px",blockPadding:x,blockMargin:w,borderColor:k,borderWidth:S,borderRadius:v,submenuItemPadding:_}=e||{},y=o||(e==null?void 0:e.submenuTextColor)||r,C=a||(e==null?void 0:e.submenuFontSize)||c,I=(e==null?void 0:e.submenuFontWeight)||h,R=_?`${_.top}px ${_.right}px ${_.bottom}px ${_.left}px`:d,E=(L,M,P=!1)=>m.jsx("li",{style:{listStyle:"none"},children:m.jsxs("a",{href:L.href||"#",style:Gu(p,!!L.menuImage,P?y:r,P?C:c,P?I:h,P?R:d,l,L),children:[p&&L.menuImage&&m.jsx("img",{...ar(),src:L.menuImage,alt:"","aria-hidden":"true",style:Wu(b)}),L.name||L.label||""]})},L.id||M);return m.jsxs("nav",{className:`ahd-menu-cols ahd-menu-cols-${n}`,"data-block":"menu","data-layout":"columns","aria-label":"Footer navigation",style:{...Hu(i,"left",!0,x,w),alignItems:"flex-start",flexWrap:"wrap",gap:"32px",boxSizing:"border-box",...k?{borderStyle:"solid",borderColor:k,borderWidth:S?`${S.top??1}px ${S.right??1}px ${S.bottom??1}px ${S.left??1}px`:"1px"}:{},...v!=null?{borderRadius:typeof v=="number"?`${v}px`:`${(v==null?void 0:v.topLeft)??0}px ${(v==null?void 0:v.topRight)??0}px ${(v==null?void 0:v.bottomRight)??0}px ${(v==null?void 0:v.bottomLeft)??0}px`}:{}},children:[s&&m.jsx("div",{className:"ahd-menu-cols-start",style:{flex:"1 1 240px",minWidth:0},children:s}),m.jsx("div",{className:"ahd-menu-cols-grid",style:{flex:"2 1 420px",minWidth:0,display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:f},children:t.map((L,M)=>m.jsxs("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:f},children:[E(L,M),(Array.isArray(L.children)?L.children:[]).map((P,B)=>E(P,B,!0))]},L.id||M))}),u&&m.jsx("div",{className:"ahd-menu-cols-end",style:{flex:"0 0 auto",minWidth:0},children:u})]})},f_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ra=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},As=({size:e,className:t})=>m.jsx("span",{className:t,style:l_(e),"aria-hidden":"true",children:m.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:s_})})}),Ta=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:r,fontSize:o,fontWeight:a,padding:i,orientation:l,gap:s,showIcons:u,iconSize:c,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:k,submenuPadding:S,submenuItemPadding:v,submenuMinWidth:_,submenuTextColor:y,submenuFontSize:C,submenuFontWeight:I}=t,R=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:i,E=n>0&&y?y:r,L=n>0&&C?C:o,M=n>0&&I?I:a;return m.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:r_(l,n,s),children:e.map((P,B)=>{const F=Array.isArray(P.children)?P.children:[],U=F.length>0,K=`ahd-submenu-${p}-${n}-${P.id||B}`,D=P.name||P.label||"",J=m.jsxs("a",{href:P.href||"#",style:Gu(u,!!P.menuImage,E,L,M,R,f,P),children:[u&&P.menuImage&&m.jsx("img",{...ar(),src:P.menuImage,alt:"","aria-hidden":"true",style:Wu(c)}),D,U&&m.jsx(As,{size:k,className:"ahd-menu-caret"})]}),q=U?m.jsxs("span",{className:"ahd-menu-item-row",children:[m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:Q=>Q.stopPropagation(),children:J}),m.jsx("label",{htmlFor:K,className:"ahd-menu-sub-caret","aria-label":`Toggle ${D} submenu`,onClick:Ra(K),children:m.jsx(As,{size:k,className:"ahd-menu-sub-caret-icon"})})]}):m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:Q=>Q.stopPropagation(),children:J});return m.jsxs("li",{style:o_,children:[U&&m.jsx("input",{type:"checkbox",id:K,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Uu,onClick:Q=>Q.stopPropagation()}),q,U&&m.jsx("div",{className:"ahd-menu-submenu",style:a_(n),children:m.jsx("div",{style:i_(b,x,w,S,_),children:Ta(F,{...t,orientation:"vertical"},n+1)})})]},P.id||B)})})},p_=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,stickyNavTablet:o,stickyNavMobile:a,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:k="8px 16px",blockPadding:S,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:E,submenuBackgroundColor:L,submenuRadius:M,submenuIconSize:P,submenuPadding:B,submenuItemPadding:F,submenuMinWidth:U,submenuTextColor:K,submenuFontSize:D,submenuFontWeight:J,bare:q}=e??{},Q=pi(),ee=z(d,"bgAdaptive")??d,de=z(f,"menuText")??f,$e=Q(I),ke=Q(p),Le=Q(L),X=Q(K),Z=z(null,"menuSurface");if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return m.jsx(m.Fragment,{});const j=u==="logo-menu"||u==="logo-menu-cta",Y=u==="menu-cta"||u==="logo-menu-cta",he=j||Y,we=c==="right"?"end":c==="center"?"center":"start",fe=G.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),me=t||fe,Ie=(q==null?void 0:q.toggleId)??`ahd-menu-toggle-${me}`,le=(q==null?void 0:q.listId)??`ahd-menu-list-${me}`,Te=f_(x),De=q?q.toggleId.replace(/^ahd-menu-toggle-/,""):me,Oe={textColor:de,fontSize:b,fontWeight:w,padding:k,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:Ie,listId:le,fontFamily:Te,menuKey:De,submenuBackground:Le||ke||(d!=="transparent"?ee:Z),submenuRadius:M??8,submenuBorderColor:$e??null,submenuIconSize:P??14,submenuPadding:B??null,submenuItemPadding:F??null,submenuMinWidth:U??null,submenuTextColor:X||null,submenuFontSize:D||null,submenuFontWeight:J||null};if(h==="columns"&&!q){const te=We=>We!=null&&We.length?We.map(Fe=>m.jsx(Pe,{id:Fe},Fe)):null;return m.jsx(h_,{p:{...e,borderColor:$e},menuItems:i,menuKey:me,textColor:de,submenuTextColor:X||null,submenuFontSize:D||null,backgroundColor:ee,fontFamily:Te,start:j?te(l):null,end:Y?te(s):null})}if(q)return m.jsx(m.Fragment,{children:Ta(i,Oe)});const _e=d_(me,{stickyNav:r,stickyNavTablet:o,stickyNavMobile:a}),Ye=u_(me,{dropdownBackground:ke??(d!=="transparent"?ee:null),hasSubmenuItemPadding:!!F});return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Ye}},me),_e&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_e}}),m.jsxs("nav",{className:`ahd-menu ahd-menu-${me} ahd-menu-sticky-${me}`,"data-block":"menu","data-layout":u,...ue(d,void 0,"bgAdaptive"),style:{...Hu(ee,c,he,S,v),...$e?{borderStyle:"solid",borderColor:$e,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...E!=null?{borderRadius:typeof E=="number"?`${E}px`:`${(E==null?void 0:E.topLeft)??0}px ${(E==null?void 0:E.topRight)??0}px ${(E==null?void 0:E.bottomRight)??0}px ${(E==null?void 0:E.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[m.jsx("input",{type:"checkbox",id:Ie,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":le,style:Uu,onClick:te=>te.stopPropagation()}),m.jsx("label",{htmlFor:Ie,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Ra(Ie)}),j&&m.jsx("div",{className:"ahd-menu-start",style:Ko("start"),children:(l??[]).map(te=>m.jsx(Pe,{id:te},te))}),m.jsx("div",{className:"ahd-menu-center",style:Ko(we,he),children:Ta(i,Oe)}),Y&&m.jsx("div",{className:"ahd-menu-end",style:Ko("end"),children:(s??[]).map(te=>m.jsx(Pe,{id:te},te))}),m.jsxs("label",{htmlFor:Ie,className:"ahd-menu-burger","aria-hidden":"true",style:c_(de),onClick:Ra(Ie),children:[m.jsx("span",{}),m.jsx("span",{}),m.jsx("span",{})]})]})]})},g_=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),m_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),b_=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),x_=A({items:oe(g_).optional().nullable(),separator:T(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:O().default(!1),homeHref:$().default("/"),collapseOnMobile:O().default(!0),currentItemLinked:O().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:m_,blockMargin:b_}),v_=A({style:A({}).passthrough().optional().nullable(),responsive:Ve,props:x_.optional().nullable()}),Jo={slash:"/",chevron:"›",dot:"•",pipe:"|"};function k_(e,t){return e==="custom"?t||"›":e&&Jo[e]?Jo[e]:Jo.chevron}function w_(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),r=`(max-width:${qe}px)`;return`@media ${r}{${n}}@container ahd-page ${r}{${n}}`}const S_=e=>{if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Zu=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$_=Zu,__="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",C_=({size:e,color:t})=>m.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:m.jsx("path",{d:__,fill:t})}),A_=({color:e,fontSize:t})=>m.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),y_=({props:e,renderLabel:t})=>{const{items:n,separator:r="chevron",customSeparator:o,showHomeIcon:a=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},k=pi(),S=z(u,"breadcrumbText"),v=k(c),_=k(h);if(!(Array.isArray(n)&&n.length>0))return m.jsx(m.Fragment,{});const C=S_(f),I=k_(r,o),R=n.length-1,E=G.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),L=l?w_(E):"",M=(P,B,F)=>{const U=(F?v:null)||k(P.textColor)||S,K=!F||s,D={color:U,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:P,index:B,isLast:F,style:D}):K?m.jsx("a",{href:P.href||"#",style:D,"aria-current":F?"page":void 0,children:P.label||""}):m.jsx("span",{style:D,"aria-current":"page",children:P.label||""})};return m.jsxs(m.Fragment,{children:[L&&m.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),m.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${E}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Zu(x),margin:$_(w)},children:m.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[a&&m.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[m.jsx("a",{href:i||"/",style:{display:"flex",color:S},children:m.jsx(C_,{size:parseInt(d,10)||14,color:S})}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]}),n.map((P,B)=>{const F=B===R,U=l&&B!==0&&!F;return m.jsxs("li",{className:U?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(P,B,F),!F&&m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]},P.id||B)}),l&&n.length>2&&m.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[m.jsx(A_,{color:S,fontSize:d}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]})]})})]})},I_=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:O().default(!1),alignment:T(["left","center","right"]).default("left")}).optional().nullable()}),R_=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return`form-${Math.abs(t).toString(36)}`},T_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},E_=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},N_=({props:e,style:t})=>{var S,v;const{formId:n,iframeSrc:r,width:o,height:a,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!r)return m.jsx(m.Fragment,{});const h=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=hv(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:T_(d.padding),margin:E_(d.margin),backgroundColor:z(d.backgroundColor,"bgAdaptive")||void 0,borderRadius:p},x=R_(`${n}|${r??""}`),w=!s&&(i||l)?`
348
348
  ${i?`${ln} { #${x} { height: ${i} !important; } }`:""}
349
349
  ${l?`${Xe} { #${x} { height: ${l} !important; } }`:""}
350
350
  `:"",k=s?`
@@ -360,7 +360,7 @@ ${o}</tbody>
360
360
  el.style.height = Math.ceil(h) + 'px';
361
361
  });
362
362
  })();
363
- `:"";return m.jsxs(m.Fragment,{children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{...ue(d.backgroundColor,void 0,"bgAdaptive"),style:b,children:m.jsx("div",{style:{width:o||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:m.jsx("iframe",{id:x,src:r,title:c||"Form",style:{width:"100%",height:s?"auto":a||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),k&&m.jsx("script",{dangerouslySetInnerHTML:{__html:k}})]})},N_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().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:T(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),wt={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 M_=0;function qu({style:e,props:t}){var w,k;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||wt.text,r=((k=t==null?void 0:t.targetId)==null?void 0:k.trim())||wt.targetId,o=(t==null?void 0:t.backgroundColor)??wt.backgroundColor,a=(t==null?void 0:t.textColor)??wt.textColor,i=(t==null?void 0:t.fontSize)??wt.fontSize,l=(t==null?void 0:t.borderRadius)??wt.borderRadius,s=(t==null?void 0:t.paddingX)??wt.paddingX,u=(t==null?void 0:t.paddingY)??wt.paddingY,c=(t==null?void 0:t.marginX)??wt.marginX,h=(t==null?void 0:t.marginY)??wt.marginY,d="always-visible",f=`skip-link-${++M_}`,p={padding:vi(e==null?void 0:e.padding),margin:ki(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
363
+ `:"";return m.jsxs(m.Fragment,{children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{...ue(d.backgroundColor,void 0,"bgAdaptive"),style:b,children:m.jsx("div",{style:{width:o||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:m.jsx("iframe",{id:x,src:r,title:c||"Form",style:{width:"100%",height:s?"auto":a||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),k&&m.jsx("script",{dangerouslySetInnerHTML:{__html:k}})]})},M_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().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:T(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),wt={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 P_=0;function qu({style:e,props:t}){var w,k;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||wt.text,r=((k=t==null?void 0:t.targetId)==null?void 0:k.trim())||wt.targetId,o=(t==null?void 0:t.backgroundColor)??wt.backgroundColor,a=(t==null?void 0:t.textColor)??wt.textColor,i=(t==null?void 0:t.fontSize)??wt.fontSize,l=(t==null?void 0:t.borderRadius)??wt.borderRadius,s=(t==null?void 0:t.paddingX)??wt.paddingX,u=(t==null?void 0:t.paddingY)??wt.paddingY,c=(t==null?void 0:t.marginX)??wt.marginX,h=(t==null?void 0:t.marginY)??wt.marginY,d="always-visible",f=`skip-link-${++P_}`,p={padding:vi(e==null?void 0:e.padding),margin:ki(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
364
364
  display:inline-block;
365
365
  background:${o};
366
366
  color:${a};
@@ -373,7 +373,7 @@ ${o}</tbody>
373
373
  line-height:1.2;
374
374
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
375
375
  `,x=`.${f}{${b}}
376
- .${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return m.jsxs("div",{className:"skip-link-block",style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:`#${r}`,className:f,"data-skip-link":d,children:n})]})}const P_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:T(["inline","floating"]).optional().nullable(),position:T(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:O().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:T(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:O().optional().nullable(),invert:O().optional().nullable(),saturation:O().optional().nullable(),highlightLinks:O().optional().nullable(),textSize:O().optional().nullable(),textSpacing:O().optional().nullable(),lineHeight:O().optional().nullable(),hideImages:O().optional().nullable(),bigCursor:O().optional().nullable(),reset:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),St={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 L_(e){return e&&Xo[e]?Xo[e]:Xo.accessibility}function O_(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${L_(e)}"/></svg>`}const z_={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function j_(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 Vu(e){const{containerPos:t}=j_(e.position);return`
376
+ .${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return m.jsxs("div",{className:"skip-link-block",style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:`#${r}`,className:f,"data-skip-link":d,children:n})]})}const L_=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:T(["inline","floating"]).optional().nullable(),position:T(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:O().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:T(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:O().optional().nullable(),invert:O().optional().nullable(),saturation:O().optional().nullable(),highlightLinks:O().optional().nullable(),textSize:O().optional().nullable(),textSpacing:O().optional().nullable(),lineHeight:O().optional().nullable(),hideImages:O().optional().nullable(),bigCursor:O().optional().nullable(),reset:O().optional().nullable()}).optional().nullable()}).optional().nullable()}),St={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 O_(e){return e&&Xo[e]?Xo[e]:Xo.accessibility}function z_(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${O_(e)}"/></svg>`}const j_={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function B_(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 Vu(e){const{containerPos:t}=B_(e.position);return`
377
377
  /* Accessibility Tools widget */
378
378
  .ahd-a11y-widget{position:relative;display:inline-block}
379
379
  .ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
@@ -405,7 +405,7 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
405
405
  html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
406
406
  html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
407
407
  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}
408
- `.trim()}function Yu(e){const t={...z_,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,r=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>`:"",o=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>`:"",a=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>`:"",i=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=O_(e.icon??"accessibility"),u=fv(e.triggerText,e.showLabelText!==!1,"Accessibility"),c=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
408
+ `.trim()}function Yu(e){const t={...j_,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,r=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>`:"",o=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>`:"",a=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>`:"",i=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=z_(e.icon??"accessibility"),u=fv(e.triggerText,e.showLabelText!==!1,"Accessibility"),c=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
409
409
  <div class="ahd-a11y-widget ahd-a11y-${l}">
410
410
  <button type="button" class="ahd-a11y-trigger" aria-label="${c}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${u!==null?`<span>${u}</span>`:""}</button>
411
411
  <div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
@@ -521,11 +521,11 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
521
521
  init();
522
522
  }
523
523
  })();
524
- `.trim()}function Ju({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??St.renderMode,r=(t==null?void 0:t.position)??St.position,o=(t==null?void 0:t.features)??void 0,a=(t==null?void 0:t.triggerBg)??St.triggerBg,i=(t==null?void 0:t.triggerColor)??St.triggerColor,l=(t==null?void 0:t.triggerLabel)??St.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,u=(t==null?void 0:t.triggerFontSize)??St.triggerFontSize,c=(t==null?void 0:t.triggerBorderRadius)??St.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??St.triggerPadding,d=(t==null?void 0:t.triggerMargin)??St.triggerMargin,f=(t==null?void 0:t.icon)??St.icon,p={padding:vi(e==null?void 0:e.padding),margin:ki(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:r,features:o,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Vu(b),w=`.ahd-a11y-trigger{background:${a};color:${i};font-size:${u}px;border-radius:${c}px;padding:${h.top}px ${h.right}px ${h.bottom}px ${h.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,k=Yu(b),S=Ku();return m.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),m.jsx("div",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("script",{dangerouslySetInnerHTML:{__html:S}}),m.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}const B_=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:yn($(),Jn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),D_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},F_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},H_=({props:e})=>{const{bannerId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?n&&n.root?m.jsx("div",{className:"app-banner-picker-block",style:{...D_(r),...F_(o)},children:m.jsx(rr,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{}):m.jsx(m.Fragment,{})},G_=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:yn($(),Jn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),W_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},U_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Z_=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?!n||!n.root?m.jsx(m.Fragment,{}):m.jsx("div",{className:"faq-picker-block",style:{...W_(r),...U_(o)},children:m.jsx(rr,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{})},q_=A({responsive:Ve,style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),tableAlign:T(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:O().optional().nullable(),cells:oe($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:O().optional().nullable(),enableScrollTablet:O().optional().nullable(),enableScrollMobile:O().optional().nullable()}).optional().nullable()}),ft={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function V_(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Xu(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Ir(e){return e?Xu(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Qo(e){return e?Xu(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function Y_({style:e,props:t,renderCell:n}){const r=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ft.rows)),o=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ft.columns)),a=(t==null?void 0:t.hasHeader)??ft.hasHeader,i=(t==null?void 0:t.cells)??[],l=r*o,s=i.length===l?i:Array.from({length:l},(q,V)=>i[V]??""),u=z((e==null?void 0:e.borderColor)??ft.borderColor,"tableBorder"),c=(e==null?void 0:e.borderWidth)??ft.borderWidth,h=(e==null?void 0:e.cellPadding)??ft.cellPadding,d=z((e==null?void 0:e.headerBackground)??ft.headerBackground,"tableHeaderBg"),f=z((e==null?void 0:e.headerColor)??ft.headerColor,"tableHeaderText"),p=z((e==null?void 0:e.color)??ft.color,"tableText"),b=(e==null?void 0:e.fontSize)??ft.fontSize,x=z((e==null?void 0:e.backgroundColor)??null,"bgAdaptive"),w=z((e==null?void 0:e.stripedRowColor)===void 0?ft.stripedRowColor:e.stripedRowColor,"tableStripe"),k=ie((e==null?void 0:e.stripedColColor)??null),S=`ahd-table-${G.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:vi(e==null?void 0:e.padding),margin:ki(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},C=V_(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},E={border:`${c}px solid ${u}`,padding:h,verticalAlign:"top"},L={...E,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=C?`.${S}, .${S} * { font-family: ${C} !important; }`:"",P=`${S}-scroll`,B=(t==null?void 0:t.enableScroll)??!1,F=(t==null?void 0:t.enableScrollTablet)??B,W=(t==null?void 0:t.enableScrollMobile)??B,D=q=>q?`.${P} > .${S} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${P} > .${S} { table-layout: fixed; width: 100% !important; max-width: 100%; }
525
- .${P} > .${S} .ahd-table-cell-text { overflow-wrap: anywhere; }`,J=[D(B),F!==B?`@media (max-width: 1024px) { ${D(F)} }
526
- @container ahd-page (max-width: 1024px) { ${D(F)} }`:"",W!==F?`@media (max-width: 640px) { ${D(W)} }
527
- @container ahd-page (max-width: 640px) { ${D(W)} }`:""].filter(Boolean).join(`
528
- `),Q=`
524
+ `.trim()}function Ju({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??St.renderMode,r=(t==null?void 0:t.position)??St.position,o=(t==null?void 0:t.features)??void 0,a=(t==null?void 0:t.triggerBg)??St.triggerBg,i=(t==null?void 0:t.triggerColor)??St.triggerColor,l=(t==null?void 0:t.triggerLabel)??St.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,u=(t==null?void 0:t.triggerFontSize)??St.triggerFontSize,c=(t==null?void 0:t.triggerBorderRadius)??St.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??St.triggerPadding,d=(t==null?void 0:t.triggerMargin)??St.triggerMargin,f=(t==null?void 0:t.icon)??St.icon,p={padding:vi(e==null?void 0:e.padding),margin:ki(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:r,features:o,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Vu(b),w=`.ahd-a11y-trigger{background:${a};color:${i};font-size:${u}px;border-radius:${c}px;padding:${h.top}px ${h.right}px ${h.bottom}px ${h.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,k=Yu(b),S=Ku();return m.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),m.jsx("div",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("script",{dangerouslySetInnerHTML:{__html:S}}),m.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}const D_=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:yn($(),Jn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),F_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},H_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},G_=({props:e})=>{const{bannerId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?n&&n.root?m.jsx("div",{className:"app-banner-picker-block",style:{...F_(r),...H_(o)},children:m.jsx(rr,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{}):m.jsx(m.Fragment,{})},W_=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:yn($(),Jn()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),U_=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Z_=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},q_=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?!n||!n.root?m.jsx(m.Fragment,{}):m.jsx("div",{className:"faq-picker-block",style:{...U_(r),...Z_(o)},children:m.jsx(rr,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{})},V_=A({responsive:Ve,style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),tableAlign:T(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:O().optional().nullable(),cells:oe($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:O().optional().nullable(),enableScrollTablet:O().optional().nullable(),enableScrollMobile:O().optional().nullable()}).optional().nullable()}),ft={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function Y_(e){if(!e)return;const t=bt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Xu(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Ir(e){return e?Xu(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Qo(e){return e?Xu(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function K_({style:e,props:t,renderCell:n}){const r=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ft.rows)),o=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ft.columns)),a=(t==null?void 0:t.hasHeader)??ft.hasHeader,i=(t==null?void 0:t.cells)??[],l=r*o,s=i.length===l?i:Array.from({length:l},(Z,V)=>i[V]??""),u=z((e==null?void 0:e.borderColor)??ft.borderColor,"tableBorder"),c=(e==null?void 0:e.borderWidth)??ft.borderWidth,h=(e==null?void 0:e.cellPadding)??ft.cellPadding,d=z((e==null?void 0:e.headerBackground)??ft.headerBackground,"tableHeaderBg"),f=z((e==null?void 0:e.headerColor)??ft.headerColor,"tableHeaderText"),p=z((e==null?void 0:e.color)??ft.color,"tableText"),b=(e==null?void 0:e.fontSize)??ft.fontSize,x=z((e==null?void 0:e.backgroundColor)??null,"bgAdaptive"),w=z((e==null?void 0:e.stripedRowColor)===void 0?ft.stripedRowColor:e.stripedRowColor,"tableStripe"),k=ie((e==null?void 0:e.stripedColColor)??null),S=`ahd-table-${G.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:vi(e==null?void 0:e.padding),margin:ki(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},C=Y_(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},E={border:`${c}px solid ${u}`,padding:h,verticalAlign:"top"},L={...E,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=C?`.${S}, .${S} * { font-family: ${C} !important; }`:"",P=`${S}-scroll`,B=(t==null?void 0:t.enableScroll)??!1,F=(t==null?void 0:t.enableScrollTablet)??B,U=(t==null?void 0:t.enableScrollMobile)??B,K=Z=>Z?`.${P} > .${S} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${P} > .${S} { table-layout: fixed; width: 100% !important; max-width: 100%; }
525
+ .${P} > .${S} .ahd-table-cell-text { overflow-wrap: anywhere; }`,J=[K(B),F!==B?`@media (max-width: 1024px) { ${K(F)} }
526
+ @container ahd-page (max-width: 1024px) { ${K(F)} }`:"",U!==F?`@media (max-width: 640px) { ${K(U)} }
527
+ @container ahd-page (max-width: 640px) { ${K(U)} }`:""].filter(Boolean).join(`
528
+ `),q=`
529
529
  .${P} {
530
530
  overflow-x: auto;
531
531
  -webkit-overflow-scrolling: touch;
@@ -564,27 +564,27 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
564
564
  background-clip: content-box;
565
565
  }
566
566
  ${J}
567
- `,X=w?`.${S} > tbody > tr:nth-child(even) > td { ${Ir(w)} }`:"",ee=k?`.${S} > tbody > tr > td:nth-child(even) { ${Ir(k)} }`:"",ge=`
567
+ `,Q=w?`.${S} > tbody > tr:nth-child(even) > td { ${Ir(w)} }`:"",ee=k?`.${S} > tbody > tr > td:nth-child(even) { ${Ir(k)} }`:"",de=`
568
568
  .${S} { ${Ir(x)} }
569
569
  ${M}
570
570
  .${S} > tbody > tr > td > .ahd-table-cell-text { ${Qo(p)} display: block; }
571
571
  .${S} > thead > tr > th { ${Ir(d)} }
572
572
  .${S} > thead > tr > th > .ahd-table-cell-text { ${Qo(f)} display: block; }
573
573
  .${S} > caption > .ahd-table-cell-text { ${Qo(p)} display: block; }
574
- ${X}
575
- ${ee}
576
574
  ${Q}
577
- `,$e=Array.from({length:r},(q,V)=>V),ke=Array.from({length:o},(q,V)=>V),Le=q=>q.includes("<"),K=(q,V,j,Y)=>n?n({row:q,col:V,value:j,isHeader:Y}):Le(j)?m.jsx("span",{dangerouslySetInnerHTML:{__html:j}}):j.split(`
578
- `).map((de,we,he)=>m.jsxs(G.Fragment,{children:[de,we<he.length-1?m.jsx("br",{}):null]},we));return m.jsxs("div",{className:"table-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:y,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ge}}),m.jsx("div",{className:P,style:R,children:m.jsxs("table",{className:S,style:I,role:"table",children:[t!=null&&t.caption?m.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:m.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,a?m.jsx("thead",{children:m.jsx("tr",{children:ke.map(q=>m.jsx("th",{scope:"col",style:L,children:m.jsx("div",{className:"ahd-table-cell-text",children:K(0,q,s[q]??"",!0)})},q))})}):null,m.jsx("tbody",{children:$e.slice(a?1:0).map(q=>m.jsx("tr",{children:ke.map(V=>m.jsx("td",{style:E,children:m.jsx("div",{className:"ahd-table-cell-text",children:K(q,V,s[q*o+V]??"",!1)})},V))},q))})]})})]})}var Ea={exports:{}},Na={exports:{}},it={},Ae={};Ae.__esModule=!0;Ae.extend=Qu;Ae.indexOf=eC;Ae.escapeExpression=tC;Ae.isEmpty=nC;Ae.createFrame=rC;Ae.blockParams=oC;Ae.appendContextPath=aC;var K_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},J_=/[&<>"'`=]/g,X_=/[&<>"'`=]/;function Q_(e){return K_[e]}function Qu(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 Ei=Object.prototype.toString;Ae.toString=Ei;var Ma=function(t){return typeof t=="function"};Ma(/x/)&&(Ae.isFunction=Ma=function(e){return typeof e=="function"&&Ei.call(e)==="[object Function]"});Ae.isFunction=Ma;var ed=Array.isArray||function(e){return e&&typeof e=="object"?Ei.call(e)==="[object Array]":!1};Ae.isArray=ed;function eC(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function tC(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return X_.test(e)?e.replace(J_,Q_):e}function nC(e){return!e&&e!==0?!0:!!(ed(e)&&e.length===0)}function rC(e){var t=Qu({},e);return t._parent=e,t}function oC(e,t){return e.path=t,e}function aC(e,t){return(e?e+".":"")+t}var Pa={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(o,a){var i=a&&a.loc,l=void 0,s=void 0,u=void 0,c=void 0;i&&(l=i.start.line,s=i.end.line,u=i.start.column,c=i.end.column,o+=" - "+l+":"+u);for(var h=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=u,this.endColumn=c))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(Pa,Pa.exports);var lt=Pa.exports,sr={},La={exports:{}};(function(e,t){t.__esModule=!0;var n=Ae;t.default=function(r){r.registerHelper("blockHelperMissing",function(o,a){var i=a.inverse,l=a.fn;if(o===!0)return l(this);if(o===!1||o==null)return i(this);if(n.isArray(o))return o.length>0?(a.ids&&(a.ids=[a.name]),r.helpers.each(o,a)):i(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return l(o,a)})},e.exports=t.default})(La,La.exports);var iC=La.exports,Oa={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ae,o=lt,a=n(o);t.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new a.default("Must pass iterator to #each");var u=s.fn,c=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),s.data&&(f=r.createFrame(s.data));function b(v,_,y){f&&(f.key=v,f.index=_,f.first=_===0,f.last=!!y,p&&(f.contextPath=p+v)),d=d+u(l[v],{data:f,blockParams:r.blockParams([l[v],v],[p+v,null])})}if(l&&typeof l=="object")if(r.isArray(l))for(var x=l.length;h<x;h++)h in l&&b(h,h,h===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var w=[],k=l[Symbol.iterator](),S=k.next();!S.done;S=k.next())w.push(S.value);l=w;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var v=void 0;Object.keys(l).forEach(function(_){v!==void 0&&b(v,h-1),v=_,h++}),v!==void 0&&b(v,h-1,!0)})();return h===0&&(d=c(this)),d})},e.exports=t.default})(Oa,Oa.exports);var lC=Oa.exports,za={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=lt,o=n(r);t.default=function(a){a.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(za,za.exports);var sC=za.exports,ja={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ae,o=lt,a=n(o);t.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new a.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||r.isEmpty(l)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new a.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(ja,ja.exports);var cC=ja.exports,Ba={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],o=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)r.push(arguments[a]);var i=1;o.hash.level!=null?i=o.hash.level:o.data&&o.data.level!=null&&(i=o.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(Ba,Ba.exports);var uC=Ba.exports,Da={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,o,a){return r&&a.lookupProperty(r,o)})},e.exports=t.default})(Da,Da.exports);var dC=Da.exports,Fa={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ae,o=lt,a=n(o);t.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new a.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var u=s.fn;if(r.isEmpty(l))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=r.createFrame(s.data),c.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),u(l,{data:c,blockParams:r.blockParams([l],[c&&c.contextPath])})})},e.exports=t.default})(Fa,Fa.exports);var hC=Fa.exports;sr.__esModule=!0;sr.registerDefaultHelpers=yC;sr.moveHelperToHooks=IC;function cn(e){return e&&e.__esModule?e:{default:e}}var fC=iC,pC=cn(fC),gC=lC,mC=cn(gC),bC=sC,xC=cn(bC),vC=cC,kC=cn(vC),wC=uC,SC=cn(wC),$C=dC,_C=cn($C),CC=hC,AC=cn(CC);function yC(e){pC.default(e),mC.default(e),xC.default(e),kC.default(e),SC.default(e),_C.default(e),AC.default(e)}function IC(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Ni={},Ha={exports:{}};(function(e,t){t.__esModule=!0;var n=Ae;t.default=function(r){r.registerDecorator("inline",function(o,a,i,l){var s=o;return a.partials||(a.partials={},s=function(u,c){var h=i.partials;i.partials=n.extend({},h,a.partials);var d=o(u,c);return i.partials=h,d}),a.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Ha,Ha.exports);var RC=Ha.exports;Ni.__esModule=!0;Ni.registerDefaultDecorators=MC;function TC(e){return e&&e.__esModule?e:{default:e}}var EC=RC,NC=TC(EC);function MC(e){NC.default(e)}var Ga={exports:{}};(function(e,t){t.__esModule=!0;var n=Ae,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if(typeof a=="string"){var i=n.indexOf(r.methodMap,a.toLowerCase());i>=0?a=i:a=parseInt(a,10)}return a},log:function(a){if(a=r.lookupLevel(a),typeof console<"u"&&r.lookupLevel(r.level)<=a){var i=r.methodMap[a];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})(Ga,Ga.exports);var td=Ga.exports,Mn={};Mn.__esModule=!0;Mn.createProtoAccessControl=zC;Mn.resultIsAllowed=jC;Mn.resetLoggedProperties=DC;function PC(e){return e&&e.__esModule?e:{default:e}}var ys=Ae,LC=td,OC=PC(LC),ro=Object.create(null);function zC(e){var t=Object.create(null);t.__proto__=!1,ys.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,ys.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function jC(e,t,n){return Is(typeof e=="function"?t.methods:t.properties,n)}function Is(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(BC(t),!1)}function BC(e){ro[e]!==!0&&(ro[e]=!0,OC.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
575
+ ${ee}
576
+ ${q}
577
+ `,$e=Array.from({length:r},(Z,V)=>V),ke=Array.from({length:o},(Z,V)=>V),Le=Z=>Z.includes("<"),X=(Z,V,j,Y)=>n?n({row:Z,col:V,value:j,isHeader:Y}):Le(j)?m.jsx("span",{dangerouslySetInnerHTML:{__html:j}}):j.split(`
578
+ `).map((he,we,fe)=>m.jsxs(G.Fragment,{children:[he,we<fe.length-1?m.jsx("br",{}):null]},we));return m.jsxs("div",{className:"table-block",...ue(e==null?void 0:e.backgroundColor,void 0,"bgAdaptive"),style:y,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:de}}),m.jsx("div",{className:P,style:R,children:m.jsxs("table",{className:S,style:I,role:"table",children:[t!=null&&t.caption?m.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:m.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,a?m.jsx("thead",{children:m.jsx("tr",{children:ke.map(Z=>m.jsx("th",{scope:"col",style:L,children:m.jsx("div",{className:"ahd-table-cell-text",children:X(0,Z,s[Z]??"",!0)})},Z))})}):null,m.jsx("tbody",{children:$e.slice(a?1:0).map(Z=>m.jsx("tr",{children:ke.map(V=>m.jsx("td",{style:E,children:m.jsx("div",{className:"ahd-table-cell-text",children:X(Z,V,s[Z*o+V]??"",!1)})},V))},Z))})]})})]})}var Ea={exports:{}},Na={exports:{}},it={},Ae={};Ae.__esModule=!0;Ae.extend=Qu;Ae.indexOf=tC;Ae.escapeExpression=nC;Ae.isEmpty=rC;Ae.createFrame=oC;Ae.blockParams=aC;Ae.appendContextPath=iC;var J_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},X_=/[&<>"'`=]/g,Q_=/[&<>"'`=]/;function eC(e){return J_[e]}function Qu(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 Ei=Object.prototype.toString;Ae.toString=Ei;var Ma=function(t){return typeof t=="function"};Ma(/x/)&&(Ae.isFunction=Ma=function(e){return typeof e=="function"&&Ei.call(e)==="[object Function]"});Ae.isFunction=Ma;var ed=Array.isArray||function(e){return e&&typeof e=="object"?Ei.call(e)==="[object Array]":!1};Ae.isArray=ed;function tC(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function nC(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return Q_.test(e)?e.replace(X_,eC):e}function rC(e){return!e&&e!==0?!0:!!(ed(e)&&e.length===0)}function oC(e){var t=Qu({},e);return t._parent=e,t}function aC(e,t){return e.path=t,e}function iC(e,t){return(e?e+".":"")+t}var Pa={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(o,a){var i=a&&a.loc,l=void 0,s=void 0,u=void 0,c=void 0;i&&(l=i.start.line,s=i.end.line,u=i.start.column,c=i.end.column,o+=" - "+l+":"+u);for(var h=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=u,this.endColumn=c))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(Pa,Pa.exports);var lt=Pa.exports,sr={},La={exports:{}};(function(e,t){t.__esModule=!0;var n=Ae;t.default=function(r){r.registerHelper("blockHelperMissing",function(o,a){var i=a.inverse,l=a.fn;if(o===!0)return l(this);if(o===!1||o==null)return i(this);if(n.isArray(o))return o.length>0?(a.ids&&(a.ids=[a.name]),r.helpers.each(o,a)):i(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return l(o,a)})},e.exports=t.default})(La,La.exports);var lC=La.exports,Oa={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ae,o=lt,a=n(o);t.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new a.default("Must pass iterator to #each");var u=s.fn,c=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),s.data&&(f=r.createFrame(s.data));function b(v,_,y){f&&(f.key=v,f.index=_,f.first=_===0,f.last=!!y,p&&(f.contextPath=p+v)),d=d+u(l[v],{data:f,blockParams:r.blockParams([l[v],v],[p+v,null])})}if(l&&typeof l=="object")if(r.isArray(l))for(var x=l.length;h<x;h++)h in l&&b(h,h,h===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var w=[],k=l[Symbol.iterator](),S=k.next();!S.done;S=k.next())w.push(S.value);l=w;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var v=void 0;Object.keys(l).forEach(function(_){v!==void 0&&b(v,h-1),v=_,h++}),v!==void 0&&b(v,h-1,!0)})();return h===0&&(d=c(this)),d})},e.exports=t.default})(Oa,Oa.exports);var sC=Oa.exports,za={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=lt,o=n(r);t.default=function(a){a.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(za,za.exports);var cC=za.exports,ja={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ae,o=lt,a=n(o);t.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new a.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||r.isEmpty(l)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new a.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(ja,ja.exports);var uC=ja.exports,Ba={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],o=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)r.push(arguments[a]);var i=1;o.hash.level!=null?i=o.hash.level:o.data&&o.data.level!=null&&(i=o.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(Ba,Ba.exports);var dC=Ba.exports,Da={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,o,a){return r&&a.lookupProperty(r,o)})},e.exports=t.default})(Da,Da.exports);var hC=Da.exports,Fa={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=Ae,o=lt,a=n(o);t.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new a.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var u=s.fn;if(r.isEmpty(l))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=r.createFrame(s.data),c.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),u(l,{data:c,blockParams:r.blockParams([l],[c&&c.contextPath])})})},e.exports=t.default})(Fa,Fa.exports);var fC=Fa.exports;sr.__esModule=!0;sr.registerDefaultHelpers=IC;sr.moveHelperToHooks=RC;function cn(e){return e&&e.__esModule?e:{default:e}}var pC=lC,gC=cn(pC),mC=sC,bC=cn(mC),xC=cC,vC=cn(xC),kC=uC,wC=cn(kC),SC=dC,$C=cn(SC),_C=hC,CC=cn(_C),AC=fC,yC=cn(AC);function IC(e){gC.default(e),bC.default(e),vC.default(e),wC.default(e),$C.default(e),CC.default(e),yC.default(e)}function RC(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Ni={},Ha={exports:{}};(function(e,t){t.__esModule=!0;var n=Ae;t.default=function(r){r.registerDecorator("inline",function(o,a,i,l){var s=o;return a.partials||(a.partials={},s=function(u,c){var h=i.partials;i.partials=n.extend({},h,a.partials);var d=o(u,c);return i.partials=h,d}),a.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Ha,Ha.exports);var TC=Ha.exports;Ni.__esModule=!0;Ni.registerDefaultDecorators=PC;function EC(e){return e&&e.__esModule?e:{default:e}}var NC=TC,MC=EC(NC);function PC(e){MC.default(e)}var Ga={exports:{}};(function(e,t){t.__esModule=!0;var n=Ae,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if(typeof a=="string"){var i=n.indexOf(r.methodMap,a.toLowerCase());i>=0?a=i:a=parseInt(a,10)}return a},log:function(a){if(a=r.lookupLevel(a),typeof console<"u"&&r.lookupLevel(r.level)<=a){var i=r.methodMap[a];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})(Ga,Ga.exports);var td=Ga.exports,Mn={};Mn.__esModule=!0;Mn.createProtoAccessControl=jC;Mn.resultIsAllowed=BC;Mn.resetLoggedProperties=FC;function LC(e){return e&&e.__esModule?e:{default:e}}var ys=Ae,OC=td,zC=LC(OC),ro=Object.create(null);function jC(e){var t=Object.create(null);t.__proto__=!1,ys.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,ys.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function BC(e,t,n){return Is(typeof e=="function"?t.methods:t.properties,n)}function Is(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(DC(t),!1)}function DC(e){ro[e]!==!0&&(ro[e]=!0,zC.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
579
579
  You can add a runtime option to disable the check or this warning:
580
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function DC(){Object.keys(ro).forEach(function(e){delete ro[e]})}it.__esModule=!0;it.HandlebarsEnvironment=Wa;function nd(e){return e&&e.__esModule?e:{default:e}}var Qt=Ae,FC=lt,ea=nd(FC),HC=sr,GC=Ni,WC=td,oo=nd(WC),UC=Mn,ZC="4.7.9";it.VERSION=ZC;var qC=8;it.COMPILER_REVISION=qC;var VC=7;it.LAST_COMPATIBLE_COMPILER_REVISION=VC;var YC={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"};it.REVISION_CHANGES=YC;var ta="[object Object]";function Wa(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},HC.registerDefaultHelpers(this),GC.registerDefaultDecorators(this)}Wa.prototype={constructor:Wa,logger:oo.default,log:oo.default.log,registerHelper:function(t,n){if(Qt.toString.call(t)===ta){if(n)throw new ea.default("Arg not supported with multiple helpers");Qt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Qt.toString.call(t)===ta)Qt.extend(this.partials,t);else{if(typeof n>"u")throw new ea.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(Qt.toString.call(t)===ta){if(n)throw new ea.default("Arg not supported with multiple decorators");Qt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){UC.resetLoggedProperties()}};var KC=oo.default.log;it.log=KC;it.createFrame=Qt.createFrame;it.logger=oo.default;var Ua={exports:{}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Ua,Ua.exports);var JC=Ua.exports,qt={},Mi={};Mi.__esModule=!0;Mi.wrapHelper=XC;function XC(e,t){if(typeof e!="function")return e;var n=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return n}qt.__esModule=!0;qt.checkRevision=oA;qt.template=aA;qt.wrapProgram=jr;qt.resolvePartial=iA;qt.invokePartial=lA;qt.noop=rd;function QC(e){return e&&e.__esModule?e:{default:e}}function eA(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 tA=Ae,wn=eA(tA),nA=lt,Pt=QC(nA),Lt=it,Rs=sr,rA=Mi,Ts=Mn;function oA(e){var t=e&&e[0]||1,n=Lt.COMPILER_REVISION;if(!(t>=Lt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Lt.COMPILER_REVISION))if(t<Lt.LAST_COMPATIBLE_COMPILER_REVISION){var r=Lt.REVISION_CHANGES[n],o=Lt.REVISION_CHANGES[t];throw new Pt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}else throw new Pt.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 aA(e,t){if(!t)throw new Pt.default("No environment passed to template");if(!e||!e.main)throw new Pt.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 r(i,l,s){s.hash&&(l=wn.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var u=t.VM.invokePartial.call(this,i,l,s);if(u==null&&t.compile&&(s.partials[s.name]=t.compile(i,e.compilerOptions,t),u=s.partials[s.name](l,s)),u!=null){if(s.indent){for(var c=u.split(`
580
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function FC(){Object.keys(ro).forEach(function(e){delete ro[e]})}it.__esModule=!0;it.HandlebarsEnvironment=Wa;function nd(e){return e&&e.__esModule?e:{default:e}}var Qt=Ae,HC=lt,ea=nd(HC),GC=sr,WC=Ni,UC=td,oo=nd(UC),ZC=Mn,qC="4.7.9";it.VERSION=qC;var VC=8;it.COMPILER_REVISION=VC;var YC=7;it.LAST_COMPATIBLE_COMPILER_REVISION=YC;var KC={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"};it.REVISION_CHANGES=KC;var ta="[object Object]";function Wa(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},GC.registerDefaultHelpers(this),WC.registerDefaultDecorators(this)}Wa.prototype={constructor:Wa,logger:oo.default,log:oo.default.log,registerHelper:function(t,n){if(Qt.toString.call(t)===ta){if(n)throw new ea.default("Arg not supported with multiple helpers");Qt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Qt.toString.call(t)===ta)Qt.extend(this.partials,t);else{if(typeof n>"u")throw new ea.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(Qt.toString.call(t)===ta){if(n)throw new ea.default("Arg not supported with multiple decorators");Qt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){ZC.resetLoggedProperties()}};var JC=oo.default.log;it.log=JC;it.createFrame=Qt.createFrame;it.logger=oo.default;var Ua={exports:{}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Ua,Ua.exports);var XC=Ua.exports,qt={},Mi={};Mi.__esModule=!0;Mi.wrapHelper=QC;function QC(e,t){if(typeof e!="function")return e;var n=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return n}qt.__esModule=!0;qt.checkRevision=aA;qt.template=iA;qt.wrapProgram=jr;qt.resolvePartial=lA;qt.invokePartial=sA;qt.noop=rd;function eA(e){return e&&e.__esModule?e:{default:e}}function tA(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 nA=Ae,wn=tA(nA),rA=lt,Pt=eA(rA),Lt=it,Rs=sr,oA=Mi,Ts=Mn;function aA(e){var t=e&&e[0]||1,n=Lt.COMPILER_REVISION;if(!(t>=Lt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Lt.COMPILER_REVISION))if(t<Lt.LAST_COMPATIBLE_COMPILER_REVISION){var r=Lt.REVISION_CHANGES[n],o=Lt.REVISION_CHANGES[t];throw new Pt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}else throw new Pt.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 iA(e,t){if(!t)throw new Pt.default("No environment passed to template");if(!e||!e.main)throw new Pt.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 r(i,l,s){s.hash&&(l=wn.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var u=t.VM.invokePartial.call(this,i,l,s);if(u==null&&t.compile&&(s.partials[s.name]=t.compile(i,e.compilerOptions,t),u=s.partials[s.name](l,s)),u!=null){if(s.indent){for(var c=u.split(`
581
581
  `),h=0,d=c.length;h<d&&!(!c[h]&&h+1===d);h++)c[h]=s.indent+c[h];u=c.join(`
582
- `)}return u}else throw new Pt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,u){if(!l||!(s in l))throw new Pt.default('"'+s+'" not defined in '+l,{loc:u});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||Ts.resultIsAllowed(u,o.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var h=l[c]&&o.lookupProperty(l[c],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:wn.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,h){var d=this.programs[l],f=this.fn(l);return s||h||c||u?d=jr(this,l,f,s,u,c,h):d||(d=this.programs[l]=jr(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=wn.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;a._setup(l),!l.partial&&e.useData&&(s=sA(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function h(d){return""+e.main(o,d,o.helpers,o.partials,s,c,u)}return h=od(e.main,h,o,l.depths||[],s,c),h(i,l)}return a.isTop=!0,a._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var l={};Es(l,t.helpers,o),Es(l,i.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=wn.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=Ts.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;Rs.moveHelperToHooks(o,"helperMissing",s),Rs.moveHelperToHooks(o,"blockHelperMissing",s)}},a._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new Pt.default("must pass block params");if(e.useDepths&&!u)throw new Pt.default("must pass parent depths");return jr(o,i,e[i],l,0,s,u)},a}function jr(e,t,n,r,o,a,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||r,a&&[u.blockParams].concat(a),c)}return l=od(n,l,e,i,r,a),l.program=t,l.depth=i?i.length:0,l.blockParams=o||0,l}function iA(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Br(n.partials,e)):n.name==="@partial-block"?e=Br(n.data,"partial-block"):e=Br(n.partials,n.name),e}function lA(e,t,n){var r=Br(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==rd&&function(){n.data=Lt.createFrame(n.data);var a=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Lt.createFrame(s.data),s.data["partial-block"]=r,a(l,s)},a.partials&&(n.partials=wn.extend({},n.partials,a.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new Pt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function rd(){return""}function Br(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function sA(e,t){return(!t||!("root"in t))&&(t=t?Lt.createFrame(t):{},t.root=e),t}function od(e,t,n,r,o,a){if(e.decorator){var i={};t=e.decorator(t,i,n,r&&r[0],o,a,r),wn.extend(t,i)}return t}function Es(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=cA(o,n)})}function cA(e,t){var n=t.lookupProperty;return rA.wrapHelper(e,function(r){return r.lookupProperty=n,r})}var Za={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 r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Za,Za.exports);var ad=Za.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}function r(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(S[v]=k[v]);return S.default=k,S}var o=it,a=r(o),i=JC,l=n(i),s=lt,u=n(s),c=Ae,h=r(c),d=qt,f=r(d),p=ad,b=n(p);function x(){var k=new a.HandlebarsEnvironment;return h.extend(k,a),k.SafeString=l.default,k.Exception=u.default,k.Utils=h,k.escapeExpression=h.escapeExpression,k.VM=f,k.template=function(S){return f.template(S,k)},k}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(Na,Na.exports);var uA=Na.exports,qa={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(qa,qa.exports);var id=qa.exports,cr={},Va={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={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,u,c,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=c.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(d[p]),strip:c.stripFlags(d[p],d[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:c.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=c.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=c.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:c.stripFlags(d[p-2],d[p])};break;case 22:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:c.stripFlags(d[p-4],d[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:c.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[p-2]),value:d[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=c.preparePath(!0,d[p],this._$);break;case 43:this.$=c.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:c.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:c.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);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,u=[0],c=[null],h=[],d=this.table,f="",p=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 x=this.lexer.yylloc;h.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function k(){var P;return P=s.lexer.lex()||1,typeof P!="number"&&(P=s.symbols_[P]||P),P}for(var S,v,_,y,C={},I,R,E,L;;){if(v=u[u.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((S===null||typeof S>"u")&&(S=k()),_=d[v]&&d[v][S]),typeof _>"u"||!_.length||!_[0]){var M="";{L=[];for(I in d[v])this.terminals_[I]&&I>2&&L.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
582
+ `)}return u}else throw new Pt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,u){if(!l||!(s in l))throw new Pt.default('"'+s+'" not defined in '+l,{loc:u});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||Ts.resultIsAllowed(u,o.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var h=l[c]&&o.lookupProperty(l[c],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:wn.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,h){var d=this.programs[l],f=this.fn(l);return s||h||c||u?d=jr(this,l,f,s,u,c,h):d||(d=this.programs[l]=jr(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=wn.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;a._setup(l),!l.partial&&e.useData&&(s=cA(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function h(d){return""+e.main(o,d,o.helpers,o.partials,s,c,u)}return h=od(e.main,h,o,l.depths||[],s,c),h(i,l)}return a.isTop=!0,a._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var l={};Es(l,t.helpers,o),Es(l,i.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=wn.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=Ts.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;Rs.moveHelperToHooks(o,"helperMissing",s),Rs.moveHelperToHooks(o,"blockHelperMissing",s)}},a._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new Pt.default("must pass block params");if(e.useDepths&&!u)throw new Pt.default("must pass parent depths");return jr(o,i,e[i],l,0,s,u)},a}function jr(e,t,n,r,o,a,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||r,a&&[u.blockParams].concat(a),c)}return l=od(n,l,e,i,r,a),l.program=t,l.depth=i?i.length:0,l.blockParams=o||0,l}function lA(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Br(n.partials,e)):n.name==="@partial-block"?e=Br(n.data,"partial-block"):e=Br(n.partials,n.name),e}function sA(e,t,n){var r=Br(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==rd&&function(){n.data=Lt.createFrame(n.data);var a=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Lt.createFrame(s.data),s.data["partial-block"]=r,a(l,s)},a.partials&&(n.partials=wn.extend({},n.partials,a.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new Pt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function rd(){return""}function Br(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function cA(e,t){return(!t||!("root"in t))&&(t=t?Lt.createFrame(t):{},t.root=e),t}function od(e,t,n,r,o,a){if(e.decorator){var i={};t=e.decorator(t,i,n,r&&r[0],o,a,r),wn.extend(t,i)}return t}function Es(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=uA(o,n)})}function uA(e,t){var n=t.lookupProperty;return oA.wrapHelper(e,function(r){return r.lookupProperty=n,r})}var Za={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 r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Za,Za.exports);var ad=Za.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}function r(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(S[v]=k[v]);return S.default=k,S}var o=it,a=r(o),i=XC,l=n(i),s=lt,u=n(s),c=Ae,h=r(c),d=qt,f=r(d),p=ad,b=n(p);function x(){var k=new a.HandlebarsEnvironment;return h.extend(k,a),k.SafeString=l.default,k.Exception=u.default,k.Utils=h,k.escapeExpression=h.escapeExpression,k.VM=f,k.template=function(S){return f.template(S,k)},k}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(Na,Na.exports);var dA=Na.exports,qa={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(qa,qa.exports);var id=qa.exports,cr={},Va={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={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,u,c,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=c.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(d[p]),strip:c.stripFlags(d[p],d[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:c.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=c.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=c.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:c.stripFlags(d[p-2],d[p])};break;case 22:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:c.stripFlags(d[p-4],d[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:c.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[p-2]),value:d[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=c.preparePath(!0,d[p],this._$);break;case 43:this.$=c.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:c.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:c.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);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,u=[0],c=[null],h=[],d=this.table,f="",p=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 x=this.lexer.yylloc;h.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function k(){var P;return P=s.lexer.lex()||1,typeof P!="number"&&(P=s.symbols_[P]||P),P}for(var S,v,_,y,C={},I,R,E,L;;){if(v=u[u.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((S===null||typeof S>"u")&&(S=k()),_=d[v]&&d[v][S]),typeof _>"u"||!_.length||!_[0]){var M="";{L=[];for(I in d[v])this.terminals_[I]&&I>2&&L.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
583
583
  `+this.lexer.showPosition()+`
584
584
  Expecting `+L.join(", ")+", got '"+(this.terminals_[S]||S)+"'":M="Parse error on line "+(p+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:x,expected:L})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+S);switch(_[0]){case 1:u.push(S),c.push(this.lexer.yytext),h.push(this.lexer.yylloc),u.push(_[1]),S=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],C.$=c[c.length-R],C._$={first_line:h[h.length-(R||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(R||1)].first_column,last_column:h[h.length-1].last_column},w&&(C._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(C,f,b,p,this.yy,_[1],c,h),typeof y<"u")return y;R&&(u=u.slice(0,-1*R*2),c=c.slice(0,-1*R),h=h.slice(0,-1*R)),u.push(this.productions_[_[1]][0]),c.push(C.$),h.push(C._$),E=d[u[u.length-2]][u[u.length-1]],u.push(E);break;case 3:return!0}}return!0}},o=function(){var i={EOF:1,parseError:function(s,u){if(this.yy.parser)this.yy.parser.parseError(s,u);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 u=s.match(/(?:\r\n?|\n).*/g);return u?(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 u=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u-1),this.offset-=u;var h=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),c.length-1&&(this.yylineno-=c.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:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),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(),u=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
585
585
  `+u+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,u,c,h,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length&&(c=this._input.match(this.rules[f[p]]),!(c&&(!u||c[0].length>u[0].length)&&(u=c,h=p,!this.options.flex)));p++);return u?(d=u[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+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,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(u[0].length),this.matched+=u[0],s=this.performAction.call(this,this.yy,this,f[h],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.
586
- `+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 i.options={},i.performAction=function(s,u,c,h){function d(f,p){return u.yytext=u.yytext.substring(f,u.yyleng-p+f)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.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(u.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 u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.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 u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i}();r.lexer=o;function a(){this.yy={}}return a.prototype=r,r.Parser=a,new a}();t.default=n,e.exports=t.default})(Va,Va.exports);var dA=Va.exports,Ya={exports:{}},Ka={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=lt,o=n(r);function a(){this.parents=[]}a.prototype={constructor:a,mutating:!1,acceptKey:function(c,h){var d=this.accept(c[h]);if(this.mutating){if(d&&!a.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+c.type);c[h]=d}},acceptRequired:function(c,h){if(this.acceptKey(c,h),!c[h])throw new o.default(c.type+" requires "+h)},acceptArray:function(c){for(var h=0,d=c.length;h<d;h++)this.acceptKey(c,h),c[h]||(c.splice(h,1),h--,d--)},accept:function(c){if(c){if(!this[c.type])throw new o.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var h=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=a,e.exports=t.default})(Ka,Ka.exports);var ld=Ka.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=ld,o=n(r);function a(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}a.prototype=new o.default,a.prototype.Program=function(c){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=c.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var k=i(f,p,d),S=l(f,p,d),v=w.openStandalone&&k,_=w.closeStandalone&&S,y=w.inlineStandalone&&k&&S;w.close&&s(f,p,!0),w.open&&u(f,p,!0),h&&y&&(s(f,p),u(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),u(f,p)),h&&_&&(s(f,p),u((x.inverse||x.program).body))}}return c},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var h=c.program||c.inverse,d=c.program&&c.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(h.body),closeStandalone:i((f||h).body)};if(c.openStrip.close&&s(h.body,null,!0),d){var x=c.inverseStrip;x.open&&u(h.body,null,!0),x.close&&s(f.body,null,!0),c.closeStrip.open&&u(p.body,null,!0),!this.options.ignoreStandalone&&i(h.body)&&l(f.body)&&(u(h.body),s(f.body))}else c.closeStrip.open&&u(h.body,null,!0);return b},a.prototype.Decorator=a.prototype.MustacheStatement=function(c){return c.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(c){var h=c.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function i(c,h,d){h===void 0&&(h=c.length);var f=c[h-1],p=c[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(c,h,d){h===void 0&&(h=-1);var f=c[h+1],p=c[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(c,h,d){var f=c[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function u(c,h,d){var f=c[h==null?c.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=a,e.exports=t.default})(Ya,Ya.exports);var hA=Ya.exports,st={};st.__esModule=!0;st.SourceLocation=gA;st.id=mA;st.stripFlags=bA;st.stripComment=xA;st.preparePath=vA;st.prepareMustache=kA;st.prepareRawBlock=wA;st.prepareBlock=SA;st.prepareProgram=$A;st.preparePartialBlock=_A;function fA(e){return e&&e.__esModule?e:{default:e}}var pA=lt,Pi=fA(pA);function Li(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Pi.default(e.path.original+" doesn't match "+t,n)}}function gA(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 mA(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function bA(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function xA(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function vA(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],a=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(r+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new Pi.default("Invalid path: "+r,{loc:n});s===".."&&a++}else o.push(s)}return{type:"PathExpression",data:e,depth:a,parts:o,original:r,loc:n}}function kA(e,t,n,r,o,a){var i=r.charAt(3)||r.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(a)}}function wA(e,t,n,r){Li(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function SA(e,t,n,r,o,a){r&&r.path&&Li(e,r);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new Pi.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function $A(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function _A(e,t,n,r){return Li(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(r)}}cr.__esModule=!0;cr.parseWithoutProcessing=sd;cr.parse=MA;function CA(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 Oi(e){return e&&e.__esModule?e:{default:e}}var AA=dA,Ja=Oi(AA),yA=hA,IA=Oi(yA),RA=st,TA=CA(RA),EA=lt,jn=Oi(EA),NA=Ae;cr.parser=Ja.default;var Dr={};NA.extend(Dr,TA);function sd(e,t){if(e.type==="Program")return PA(e),e;Ja.default.yy=Dr,Dr.locInfo=function(r){return new Dr.SourceLocation(t&&t.srcName,r)};var n=Ja.default.parse(e);return n}function MA(e,t){var n=sd(e,t),r=new IA.default(t);return r.accept(n)}function PA(e){Xa(e)}function Xa(e){if(e!=null){if(Array.isArray(e)){e.forEach(Xa);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!LA(e.depth))throw new jn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new jn.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 jn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new jn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new jn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Xa(e[n])})}}}function LA(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var ur={};ur.__esModule=!0;ur.Compiler=Qa;ur.precompile=BA;ur.compile=DA;function cd(e){return e&&e.__esModule?e:{default:e}}var OA=lt,qn=cd(OA),tr=Ae,zA=id,Bn=cd(zA),jA=[].slice;function Qa(){}Qa.prototype={compiler:Qa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],a=t.opcodes[r];if(o.opcode!==a.opcode||!ud(o.args,a.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))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=tr.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,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new qn.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,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Ns(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new qn.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,a=t.name.type==="SubExpression";a&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,o,i),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){Ns(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,a=o.parts[0],i=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),a=t.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",o.length,i);else{if(this.options.knownHelpersOnly)throw new qn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",o.length,a.original,Bn.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=Bn.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,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,r):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,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:jA.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Bn.default.helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&Bn.default.helpers.helperExpression(t),a=!r&&(o||n);if(a&&!o){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?o=!0:l.knownHelpersOnly&&(a=!1)}return o?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;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 r=void 0;if(t.parts&&!Bn.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}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,r,o){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),a},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],a=o&&tr.indexOf(o,t);if(o&&a>=0)return[n,a]}}};function BA(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new qn.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 r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function DA(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new qn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=tr.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function a(i,l){return r||(r=o()),r.call(this,i,l)}return a._setup=function(i){return r||(r=o()),r._setup(i)},a._child=function(i,l,s,u){return r||(r=o()),r._child(i,l,s,u)},a}function ud(e,t){if(e===t)return!0;if(tr.isArray(e)&&tr.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!ud(e[n],t[n]))return!1;return!0}}function Ns(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 ei={exports:{}},ti={exports:{}},Dn={},na={},Rr={},Tr={},Ms;function FA(){if(Ms)return Tr;Ms=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Tr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Tr.decode=function(t){var n=65,r=90,o=97,a=122,i=48,l=57,s=43,u=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=a?t-o+c:i<=t&&t<=l?t-i+h:t==s?62:t==u?63:-1},Tr}var Ps;function dd(){if(Ps)return Rr;Ps=1;var e=FA(),t=5,n=1<<t,r=n-1,o=n;function a(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return Rr.encode=function(s){var u="",c,h=a(s);do c=h&r,h>>>=t,h>0&&(c|=o),u+=e.encode(c);while(h>0);return u},Rr.decode=function(s,u,c){var h=s.length,d=0,f=0,p,b;do{if(u>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));p=!!(b&o),b&=r,d=d+(b<<f),f+=t}while(p);c.value=i(d),c.rest=u},Rr}var ra={},Ls;function dr(){return Ls||(Ls=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=o;function a(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=a;function i(v){var _=v,y=o(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,E=0,L=I.length-1;L>=0;L--)R=I[L],R==="."?I.splice(L,1):R===".."?E++:E>0&&(R===""?(I.splice(L+1,E),E=0):(I.splice(L,2),E--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,a(y)):_}e.normalize=i;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=o(_),C=o(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),a(y);if(y||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,a(C);var I=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,a(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=u?c:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=u?c:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function k(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=k;function S(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=o(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(a(C),_)}return i(_)}e.computeSourceURL=S}(ra)),ra}var oa={},Os;function hd(){if(Os)return oa;Os=1;var e=dr(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(a,i){for(var l=new r,s=0,u=a.length;s<u;s++)l.add(a[s],i);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,i){var l=n?a:e.toSetString(a),s=n?this.has(a):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(a),s||(n?this._set.set(a,u):this._set[l]=u)},r.prototype.has=function(a){if(n)return this._set.has(a);var i=e.toSetString(a);return t.call(this._set,i)},r.prototype.indexOf=function(a){if(n){var i=this._set.get(a);if(i>=0)return i}else{var l=e.toSetString(a);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},oa.ArraySet=r,oa}var aa={},zs;function HA(){if(zs)return aa;zs=1;var e=dr();function t(r,o){var a=r.generatedLine,i=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return i>a||i==a&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,a){this._array.forEach(o,a)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},aa.MappingList=n,aa}var js;function fd(){if(js)return na;js=1;var e=dd(),t=dr(),n=hd().ArraySet,r=HA().MappingList;function o(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,s=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var h=i.sourceContentFor(u);h!=null&&s.setSourceContent(u,h)}),s},o.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},o.prototype.setSourceContent=function(i,l){var s=i;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))},o.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===u&&f.originalLine!=null){var p=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),c!=null&&(f.source=t.relative(c,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,i.sources.forEach(function(f){var p=i.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),c!=null&&(f=t.relative(c,f)),this.setSourceContent(f,p))},this)},o.prototype._validateMapping=function(i,l,s,u){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(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),k=0,S=w.length;k<S;k++){if(p=w[k],f="",p.generatedLine!==l)for(i=0;p.generatedLine!==l;)f+=";",l++;else if(k>0){if(!t.compareByGeneratedPositionsInflated(p,w[k-1]))continue;f+=","}f+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-u),u=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-c),c=b)),d+=f}return d},o.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},na.SourceMapGenerator=o,na}var Fn={},ia={},Bs;function GA(){return Bs||(Bs=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,a,i,l){var s=Math.floor((r-n)/2)+n,u=i(o,a[s],!0);return u===0?s:u>0?r-s>1?t(s,r,o,a,i,l):l==e.LEAST_UPPER_BOUND?r<a.length?r:-1:s:s-n>1?t(n,s,o,a,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,a,i){if(o.length===0)return-1;var l=t(-1,o.length,r,o,a,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&a(o[l],o[l-1],!0)===0;)--l;return l}}(ia)),ia}var la={},Ds;function WA(){if(Ds)return la;Ds=1;function e(r,o,a){var i=r[o];r[o]=r[a],r[a]=i}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,a,i){if(a<i){var l=t(a,i),s=a-1;e(r,l,i);for(var u=r[i],c=a;c<i;c++)o(r[c],u)<=0&&(s+=1,e(r,s,c));e(r,s+1,c);var h=s+1;n(r,o,a,h-1),n(r,o,h+1,i)}}return la.quickSort=function(r,o){n(r,o,0,r.length-1)},la}var Fs;function UA(){if(Fs)return Fn;Fs=1;var e=dr(),t=GA(),n=hd().ArraySet,r=dd(),o=WA().quickSort;function a(u,c){var h=u;return typeof u=="string"&&(h=e.parseSourceMapInput(u)),h.sections!=null?new s(h,c):new i(h,c)}a.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},a.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(c,h,d){var f=h||null,p=d||a.GENERATED_ORDER,b;switch(p){case a.GENERATED_ORDER:b=this._generatedMappings;break;case a.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var k=w.source===null?null:this._sources.at(w.source);return k=e.computeSourceURL(x,k,this._sourceMapURL),{source:k,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,f)},a.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(c.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},Fn.SourceMapConsumer=a;function i(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),w=e.getArg(h,"mappings"),k=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(S){return b&&e.isAbsolute(b)&&e.isAbsolute(S)?e.relative(b,S):S}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(S){return e.computeSourceURL(b,S,c)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=c,this.file=k}i.prototype=Object.create(a.prototype),i.prototype.consumer=a,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==u)return h;return-1},i.fromSourceMap=function(c,h){var d=Object.create(i.prototype),f=d._names=n.fromArray(c._names.toArray(),!0),p=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=c._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],k=0,S=b.length;k<S;k++){var v=b[k],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return o(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.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}i.prototype._parseMappings=function(c,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,k=c.length,S=0,v={},_={},y=[],C=[],I,R,E,L,M;S<k;)if(c.charAt(S)===";")d++,S++,f=0;else if(c.charAt(S)===",")S++;else{for(I=new l,I.generatedLine=d,L=S;L<k&&!this._charIsMappingSeparator(c,L);L++);if(R=c.slice(S,L),E=v[R],E)S+=R.length;else{for(E=[];S<L;)r.decode(c,S,_),M=_.value,S=_.rest,E.push(M);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");v[R]=E}I.generatedColumn=f+E[0],f=I.generatedColumn,E.length>1&&(I.source=x+E[1],x+=E[1],I.originalLine=p+E[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+E[3],b=I.originalColumn,E.length>4&&(I.name=w+E[4],w+=E[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}o(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,o(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,h,d,f,p,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,h,p,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var f=c;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Fn.BasicSourceMapConsumer=i;function s(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),w=e.getArg(x,"line"),k=e.getArg(x,"column");if(w<p.line||w===p.line&&k<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:k+1},consumer:new a(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(a.prototype),s.prototype.constructor=a,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)u.push(this._sections[c].consumer.sources[h]);return u}}),s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var f=d.consumer.generatedPositionFor(c);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(c,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var k=null;x.name&&(k=f.consumer._names.at(x.name),this._names.add(k),k=this._names.indexOf(k));var S={source:w,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:k};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Fn.IndexedSourceMapConsumer=s,Fn}var sa={},Hs;function ZA(){if(Hs)return sa;Hs=1;var e=fd().SourceMapGenerator,t=dr(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function a(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[o]=!0,u!=null&&this.add(u)}return a.fromStringWithSourceMap=function(l,s,u){var c=new a,h=l.split(n),d=0,f=function(){var k=v(),S=v()||"";return k+S;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(k){if(x!==null)if(p<k.generatedLine)w(x,f()),p++,b=0;else{var S=h[d]||"",v=S.substr(0,k.generatedColumn-b);h[d]=S.substr(k.generatedColumn-b),b=k.generatedColumn,w(x,v),x=k;return}for(;p<k.generatedLine;)c.add(f()),p++;if(b<k.generatedColumn){var S=h[d]||"";c.add(S.substr(0,k.generatedColumn)),h[d]=S.substr(k.generatedColumn),b=k.generatedColumn}x=k},this),d<h.length&&(x&&w(x,f()),c.add(h.splice(d).join(""))),s.sources.forEach(function(k){var S=s.sourceContentFor(k);S!=null&&(u!=null&&(k=t.join(u,k)),c.setSourceContent(k,S))}),c;function w(k,S){if(k===null||k.source===void 0)c.add(S);else{var v=u?t.join(u,k.source):k.source;c.add(new a(k.originalLine,k.originalColumn,v,S,k.name))}}},a.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||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},a.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||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},a.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},a.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[o]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},a.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},a.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},a.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},a.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),h=null,c=!1);for(var w=0,k=b.length;w<k;w++)b.charCodeAt(w)===r?(s.line++,s.column=0,w+1===k?(h=null,c=!1):c&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){u.setSourceContent(b,x)}),{code:s.code,map:u}},sa.SourceNode=a,sa}var Gs;function qA(){return Gs||(Gs=1,Dn.SourceMapGenerator=fd().SourceMapGenerator,Dn.SourceMapConsumer=UA().SourceMapConsumer,Dn.SourceNode=ZA().SourceNode),Dn}(function(e,t){t.__esModule=!0;var n=Ae,r=void 0;try{var o=qA();r=o.SourceNode}catch{}r||(r=function(l,s,u,c){this.src="",c&&this.add(c)},r.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 a(l,s,u){if(n.isArray(l)){for(var c=[],h=0,d=l.length;h<d;h++)c.push(s.wrap(l[h],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
587
- `])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=a(s,this,u),new r(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},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 u=this,c=[];Object.keys(s).forEach(function(d){var f=a(s[d],u);f!=="undefined"&&c.push([u.quotedString(d),":",f])});var h=this.generateList(c);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var u=this.empty(),c=0,h=s.length;c<h;c++)c&&u.add(","),u.add(a(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(ti,ti.exports);var VA=ti.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var r=it,o=lt,a=n(o),i=Ae,l=VA,s=n(l);function u(d){this.value=d}function c(){}c.prototype={nameLookup:function(f,p){return this.internalNameLookup(f,p)},depthedLookup:function(f){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(f),")"]},compilerInfo:function(){var f=r.COMPILER_REVISION,p=r.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return i.isArray(f)||(f=[f]),f=this.source.wrap(f,p),this.environment.isSimple?["return ",f,";"]:b?["buffer += ",f,";"]:(f.appendToBuffer=!0,f)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(f,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",f,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(f,p,b,x){this.environment=f,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,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(f,p),this.useDepths=this.useDepths||f.useDepths||f.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||f.useBlockParams;var w=f.opcodes,k=void 0,S=void 0,v=void 0,_=void 0;for(v=0,_=w.length;v<_;v++)k=w[v],this.source.currentLocation=k.loc,S=S||k.loc,this[k.opcode].apply(this,k.args);if(this.source.currentLocation=S,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.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(),`;
586
+ `+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 i.options={},i.performAction=function(s,u,c,h){function d(f,p){return u.yytext=u.yytext.substring(f,u.yyleng-p+f)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.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(u.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 u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.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 u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.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}},i}();r.lexer=o;function a(){this.yy={}}return a.prototype=r,r.Parser=a,new a}();t.default=n,e.exports=t.default})(Va,Va.exports);var hA=Va.exports,Ya={exports:{}},Ka={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=lt,o=n(r);function a(){this.parents=[]}a.prototype={constructor:a,mutating:!1,acceptKey:function(c,h){var d=this.accept(c[h]);if(this.mutating){if(d&&!a.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+c.type);c[h]=d}},acceptRequired:function(c,h){if(this.acceptKey(c,h),!c[h])throw new o.default(c.type+" requires "+h)},acceptArray:function(c){for(var h=0,d=c.length;h<d;h++)this.acceptKey(c,h),c[h]||(c.splice(h,1),h--,d--)},accept:function(c){if(c){if(!this[c.type])throw new o.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var h=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=a,e.exports=t.default})(Ka,Ka.exports);var ld=Ka.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=ld,o=n(r);function a(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}a.prototype=new o.default,a.prototype.Program=function(c){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=c.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var k=i(f,p,d),S=l(f,p,d),v=w.openStandalone&&k,_=w.closeStandalone&&S,y=w.inlineStandalone&&k&&S;w.close&&s(f,p,!0),w.open&&u(f,p,!0),h&&y&&(s(f,p),u(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),u(f,p)),h&&_&&(s(f,p),u((x.inverse||x.program).body))}}return c},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var h=c.program||c.inverse,d=c.program&&c.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(h.body),closeStandalone:i((f||h).body)};if(c.openStrip.close&&s(h.body,null,!0),d){var x=c.inverseStrip;x.open&&u(h.body,null,!0),x.close&&s(f.body,null,!0),c.closeStrip.open&&u(p.body,null,!0),!this.options.ignoreStandalone&&i(h.body)&&l(f.body)&&(u(h.body),s(f.body))}else c.closeStrip.open&&u(h.body,null,!0);return b},a.prototype.Decorator=a.prototype.MustacheStatement=function(c){return c.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(c){var h=c.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function i(c,h,d){h===void 0&&(h=c.length);var f=c[h-1],p=c[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(c,h,d){h===void 0&&(h=-1);var f=c[h+1],p=c[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(c,h,d){var f=c[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function u(c,h,d){var f=c[h==null?c.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=a,e.exports=t.default})(Ya,Ya.exports);var fA=Ya.exports,st={};st.__esModule=!0;st.SourceLocation=mA;st.id=bA;st.stripFlags=xA;st.stripComment=vA;st.preparePath=kA;st.prepareMustache=wA;st.prepareRawBlock=SA;st.prepareBlock=$A;st.prepareProgram=_A;st.preparePartialBlock=CA;function pA(e){return e&&e.__esModule?e:{default:e}}var gA=lt,Pi=pA(gA);function Li(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Pi.default(e.path.original+" doesn't match "+t,n)}}function mA(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 bA(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function xA(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function vA(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function kA(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],a=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(r+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new Pi.default("Invalid path: "+r,{loc:n});s===".."&&a++}else o.push(s)}return{type:"PathExpression",data:e,depth:a,parts:o,original:r,loc:n}}function wA(e,t,n,r,o,a){var i=r.charAt(3)||r.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(a)}}function SA(e,t,n,r){Li(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function $A(e,t,n,r,o,a){r&&r.path&&Li(e,r);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new Pi.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function _A(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function CA(e,t,n,r){return Li(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(r)}}cr.__esModule=!0;cr.parseWithoutProcessing=sd;cr.parse=PA;function AA(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 Oi(e){return e&&e.__esModule?e:{default:e}}var yA=hA,Ja=Oi(yA),IA=fA,RA=Oi(IA),TA=st,EA=AA(TA),NA=lt,jn=Oi(NA),MA=Ae;cr.parser=Ja.default;var Dr={};MA.extend(Dr,EA);function sd(e,t){if(e.type==="Program")return LA(e),e;Ja.default.yy=Dr,Dr.locInfo=function(r){return new Dr.SourceLocation(t&&t.srcName,r)};var n=Ja.default.parse(e);return n}function PA(e,t){var n=sd(e,t),r=new RA.default(t);return r.accept(n)}function LA(e){Xa(e)}function Xa(e){if(e!=null){if(Array.isArray(e)){e.forEach(Xa);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!OA(e.depth))throw new jn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new jn.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 jn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new jn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new jn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Xa(e[n])})}}}function OA(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var ur={};ur.__esModule=!0;ur.Compiler=Qa;ur.precompile=DA;ur.compile=FA;function cd(e){return e&&e.__esModule?e:{default:e}}var zA=lt,qn=cd(zA),tr=Ae,jA=id,Bn=cd(jA),BA=[].slice;function Qa(){}Qa.prototype={compiler:Qa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],a=t.opcodes[r];if(o.opcode!==a.opcode||!ud(o.args,a.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))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=tr.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,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new qn.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,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Ns(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new qn.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,a=t.name.type==="SubExpression";a&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,o,i),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){Ns(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,a=o.parts[0],i=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),a=t.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",o.length,i);else{if(this.options.knownHelpersOnly)throw new qn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",o.length,a.original,Bn.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=Bn.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,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,r):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,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:BA.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Bn.default.helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&Bn.default.helpers.helperExpression(t),a=!r&&(o||n);if(a&&!o){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?o=!0:l.knownHelpersOnly&&(a=!1)}return o?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;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 r=void 0;if(t.parts&&!Bn.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}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,r,o){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),a},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],a=o&&tr.indexOf(o,t);if(o&&a>=0)return[n,a]}}};function DA(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new qn.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 r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function FA(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new qn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=tr.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function a(i,l){return r||(r=o()),r.call(this,i,l)}return a._setup=function(i){return r||(r=o()),r._setup(i)},a._child=function(i,l,s,u){return r||(r=o()),r._child(i,l,s,u)},a}function ud(e,t){if(e===t)return!0;if(tr.isArray(e)&&tr.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!ud(e[n],t[n]))return!1;return!0}}function Ns(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 ei={exports:{}},ti={exports:{}},Dn={},na={},Rr={},Tr={},Ms;function HA(){if(Ms)return Tr;Ms=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Tr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Tr.decode=function(t){var n=65,r=90,o=97,a=122,i=48,l=57,s=43,u=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=a?t-o+c:i<=t&&t<=l?t-i+h:t==s?62:t==u?63:-1},Tr}var Ps;function dd(){if(Ps)return Rr;Ps=1;var e=HA(),t=5,n=1<<t,r=n-1,o=n;function a(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return Rr.encode=function(s){var u="",c,h=a(s);do c=h&r,h>>>=t,h>0&&(c|=o),u+=e.encode(c);while(h>0);return u},Rr.decode=function(s,u,c){var h=s.length,d=0,f=0,p,b;do{if(u>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));p=!!(b&o),b&=r,d=d+(b<<f),f+=t}while(p);c.value=i(d),c.rest=u},Rr}var ra={},Ls;function dr(){return Ls||(Ls=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=o;function a(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=a;function i(v){var _=v,y=o(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,E=0,L=I.length-1;L>=0;L--)R=I[L],R==="."?I.splice(L,1):R===".."?E++:E>0&&(R===""?(I.splice(L+1,E),E=0):(I.splice(L,2),E--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,a(y)):_}e.normalize=i;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=o(_),C=o(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),a(y);if(y||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,a(C);var I=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,a(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=u?c:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=u?c:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function k(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=k;function S(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=o(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(a(C),_)}return i(_)}e.computeSourceURL=S}(ra)),ra}var oa={},Os;function hd(){if(Os)return oa;Os=1;var e=dr(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(a,i){for(var l=new r,s=0,u=a.length;s<u;s++)l.add(a[s],i);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,i){var l=n?a:e.toSetString(a),s=n?this.has(a):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(a),s||(n?this._set.set(a,u):this._set[l]=u)},r.prototype.has=function(a){if(n)return this._set.has(a);var i=e.toSetString(a);return t.call(this._set,i)},r.prototype.indexOf=function(a){if(n){var i=this._set.get(a);if(i>=0)return i}else{var l=e.toSetString(a);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},oa.ArraySet=r,oa}var aa={},zs;function GA(){if(zs)return aa;zs=1;var e=dr();function t(r,o){var a=r.generatedLine,i=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return i>a||i==a&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,a){this._array.forEach(o,a)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},aa.MappingList=n,aa}var js;function fd(){if(js)return na;js=1;var e=dd(),t=dr(),n=hd().ArraySet,r=GA().MappingList;function o(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,s=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var h=i.sourceContentFor(u);h!=null&&s.setSourceContent(u,h)}),s},o.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},o.prototype.setSourceContent=function(i,l){var s=i;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))},o.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===u&&f.originalLine!=null){var p=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),c!=null&&(f.source=t.relative(c,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,i.sources.forEach(function(f){var p=i.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),c!=null&&(f=t.relative(c,f)),this.setSourceContent(f,p))},this)},o.prototype._validateMapping=function(i,l,s,u){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(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),k=0,S=w.length;k<S;k++){if(p=w[k],f="",p.generatedLine!==l)for(i=0;p.generatedLine!==l;)f+=";",l++;else if(k>0){if(!t.compareByGeneratedPositionsInflated(p,w[k-1]))continue;f+=","}f+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-u),u=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-c),c=b)),d+=f}return d},o.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},na.SourceMapGenerator=o,na}var Fn={},ia={},Bs;function WA(){return Bs||(Bs=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,a,i,l){var s=Math.floor((r-n)/2)+n,u=i(o,a[s],!0);return u===0?s:u>0?r-s>1?t(s,r,o,a,i,l):l==e.LEAST_UPPER_BOUND?r<a.length?r:-1:s:s-n>1?t(n,s,o,a,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,a,i){if(o.length===0)return-1;var l=t(-1,o.length,r,o,a,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&a(o[l],o[l-1],!0)===0;)--l;return l}}(ia)),ia}var la={},Ds;function UA(){if(Ds)return la;Ds=1;function e(r,o,a){var i=r[o];r[o]=r[a],r[a]=i}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,a,i){if(a<i){var l=t(a,i),s=a-1;e(r,l,i);for(var u=r[i],c=a;c<i;c++)o(r[c],u)<=0&&(s+=1,e(r,s,c));e(r,s+1,c);var h=s+1;n(r,o,a,h-1),n(r,o,h+1,i)}}return la.quickSort=function(r,o){n(r,o,0,r.length-1)},la}var Fs;function ZA(){if(Fs)return Fn;Fs=1;var e=dr(),t=WA(),n=hd().ArraySet,r=dd(),o=UA().quickSort;function a(u,c){var h=u;return typeof u=="string"&&(h=e.parseSourceMapInput(u)),h.sections!=null?new s(h,c):new i(h,c)}a.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},a.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(c,h,d){var f=h||null,p=d||a.GENERATED_ORDER,b;switch(p){case a.GENERATED_ORDER:b=this._generatedMappings;break;case a.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var k=w.source===null?null:this._sources.at(w.source);return k=e.computeSourceURL(x,k,this._sourceMapURL),{source:k,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,f)},a.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(c.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},Fn.SourceMapConsumer=a;function i(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),w=e.getArg(h,"mappings"),k=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(S){return b&&e.isAbsolute(b)&&e.isAbsolute(S)?e.relative(b,S):S}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(S){return e.computeSourceURL(b,S,c)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=c,this.file=k}i.prototype=Object.create(a.prototype),i.prototype.consumer=a,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==u)return h;return-1},i.fromSourceMap=function(c,h){var d=Object.create(i.prototype),f=d._names=n.fromArray(c._names.toArray(),!0),p=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=c._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],k=0,S=b.length;k<S;k++){var v=b[k],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return o(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.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}i.prototype._parseMappings=function(c,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,k=c.length,S=0,v={},_={},y=[],C=[],I,R,E,L,M;S<k;)if(c.charAt(S)===";")d++,S++,f=0;else if(c.charAt(S)===",")S++;else{for(I=new l,I.generatedLine=d,L=S;L<k&&!this._charIsMappingSeparator(c,L);L++);if(R=c.slice(S,L),E=v[R],E)S+=R.length;else{for(E=[];S<L;)r.decode(c,S,_),M=_.value,S=_.rest,E.push(M);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");v[R]=E}I.generatedColumn=f+E[0],f=I.generatedColumn,E.length>1&&(I.source=x+E[1],x+=E[1],I.originalLine=p+E[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+E[3],b=I.originalColumn,E.length>4&&(I.name=w+E[4],w+=E[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}o(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,o(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,h,d,f,p,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,h,p,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var f=c;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Fn.BasicSourceMapConsumer=i;function s(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),w=e.getArg(x,"line"),k=e.getArg(x,"column");if(w<p.line||w===p.line&&k<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:k+1},consumer:new a(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(a.prototype),s.prototype.constructor=a,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)u.push(this._sections[c].consumer.sources[h]);return u}}),s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var f=d.consumer.generatedPositionFor(c);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(c,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var k=null;x.name&&(k=f.consumer._names.at(x.name),this._names.add(k),k=this._names.indexOf(k));var S={source:w,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:k};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},Fn.IndexedSourceMapConsumer=s,Fn}var sa={},Hs;function qA(){if(Hs)return sa;Hs=1;var e=fd().SourceMapGenerator,t=dr(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function a(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[o]=!0,u!=null&&this.add(u)}return a.fromStringWithSourceMap=function(l,s,u){var c=new a,h=l.split(n),d=0,f=function(){var k=v(),S=v()||"";return k+S;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(k){if(x!==null)if(p<k.generatedLine)w(x,f()),p++,b=0;else{var S=h[d]||"",v=S.substr(0,k.generatedColumn-b);h[d]=S.substr(k.generatedColumn-b),b=k.generatedColumn,w(x,v),x=k;return}for(;p<k.generatedLine;)c.add(f()),p++;if(b<k.generatedColumn){var S=h[d]||"";c.add(S.substr(0,k.generatedColumn)),h[d]=S.substr(k.generatedColumn),b=k.generatedColumn}x=k},this),d<h.length&&(x&&w(x,f()),c.add(h.splice(d).join(""))),s.sources.forEach(function(k){var S=s.sourceContentFor(k);S!=null&&(u!=null&&(k=t.join(u,k)),c.setSourceContent(k,S))}),c;function w(k,S){if(k===null||k.source===void 0)c.add(S);else{var v=u?t.join(u,k.source):k.source;c.add(new a(k.originalLine,k.originalColumn,v,S,k.name))}}},a.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||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},a.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||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},a.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},a.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[o]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},a.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},a.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},a.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},a.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),h=null,c=!1);for(var w=0,k=b.length;w<k;w++)b.charCodeAt(w)===r?(s.line++,s.column=0,w+1===k?(h=null,c=!1):c&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){u.setSourceContent(b,x)}),{code:s.code,map:u}},sa.SourceNode=a,sa}var Gs;function VA(){return Gs||(Gs=1,Dn.SourceMapGenerator=fd().SourceMapGenerator,Dn.SourceMapConsumer=ZA().SourceMapConsumer,Dn.SourceNode=qA().SourceNode),Dn}(function(e,t){t.__esModule=!0;var n=Ae,r=void 0;try{var o=VA();r=o.SourceNode}catch{}r||(r=function(l,s,u,c){this.src="",c&&this.add(c)},r.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 a(l,s,u){if(n.isArray(l)){for(var c=[],h=0,d=l.length;h<d;h++)c.push(s.wrap(l[h],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
587
+ `])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=a(s,this,u),new r(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},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 u=this,c=[];Object.keys(s).forEach(function(d){var f=a(s[d],u);f!=="undefined"&&c.push([u.quotedString(d),":",f])});var h=this.generateList(c);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var u=this.empty(),c=0,h=s.length;c<h;c++)c&&u.add(","),u.add(a(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(ti,ti.exports);var YA=ti.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var r=it,o=lt,a=n(o),i=Ae,l=YA,s=n(l);function u(d){this.value=d}function c(){}c.prototype={nameLookup:function(f,p){return this.internalNameLookup(f,p)},depthedLookup:function(f){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(f),")"]},compilerInfo:function(){var f=r.COMPILER_REVISION,p=r.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return i.isArray(f)||(f=[f]),f=this.source.wrap(f,p),this.environment.isSimple?["return ",f,";"]:b?["buffer += ",f,";"]:(f.appendToBuffer=!0,f)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(f,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",f,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(f,p,b,x){this.environment=f,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,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(f,p),this.useDepths=this.useDepths||f.useDepths||f.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||f.useBlockParams;var w=f.opcodes,k=void 0,S=void 0,v=void 0,_=void 0;for(v=0,_=w.length;v<_;v++)k=w[v],this.source.currentLocation=k.loc,S=S||k.loc,this[k.opcode].apply(this,k.args);if(this.source.currentLocation=S,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.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(),`;
588
588
  `]),this.decorators.push("return fn;"),x?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) {
589
589
  `),this.decorators.push(`}
590
590
  `),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var C={compiler:this.compilerInfo(),main:y};this.decorators&&(C.main_d=this.decorators,C.useDecorators=!0);var I=this.context,R=I.programs,E=I.decorators;for(v=0,_=R.length;v<_;v++)C[v]=R[v],E[v]&&(C[v+"_d"]=E[v],C.useDecorators=!0);return this.environment.usePartial&&(C.usePartial=!0),this.options.data&&(C.useData=!0),this.useDepths&&(C.useDepths=!0),this.useBlockParams&&(C.useBlockParams=!0),this.options.compat&&(C.compat=!0),x?C.compilerOptions=this.options:(C.compiler=JSON.stringify(C.compiler),this.source.currentLocation={start:{line:1,column:0}},C=this.objectLiteral(C),p.srcName?(C=C.toStringWithSourceMap({file:p.destName}),C.map=C.map&&C.map.toString()):C=C.toString()),C},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(f){var p=this,b="",x=this.stackVars.concat(this.registers.list);x.length>0&&(b+=", "+x.join(", "));var w=0;Object.keys(this.aliases).forEach(function(v){var _=p.aliases[v];_.children&&_.referenceCount>1&&(b+=", alias"+ ++w+"="+v,_.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var k=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&k.push("blockParams"),this.useDepths&&k.push("depths");var S=this.mergeSource(b);return f?(k.push(S),Function.apply(this,k)):this.source.wrap(["function(",k.join(","),`) {
@@ -596,10 +596,10 @@ Expecting `+L.join(", ")+", got '"+(this.terminals_[S]||S)+"'":M="Parse error on
596
596
  }
597
597
  return undefined
598
598
  }
599
- `.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,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(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,w){var k=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var S=p.length,v=function(y){k.replaceStack(function(C){var I=k.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<S;_++)v(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),w=this.setupHelper(f,p),k=[];b&&k.push(w.name),k.push(x),this.options.strict||k.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(k,"||"),")"],v=this.source.functionCall(S,"call",w.callParams);this.push(v)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),k=["(","(helper = ",w," || ",b,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var k=this.hash;b&&(k.contexts[f]=b),x&&(k.types[f]=x),w&&(k.ids[f]=w),k.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,k=0,S=b.length;k<S;k++){x=b[k],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==null){var _=this.context.programs.push("")-1;x.index=_,x.name="program"+_,this.context.programs[_]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof u||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new u(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var k=this.popStack(!0);if(k instanceof u)b=[k.value],p=["(",b],w=!0;else{x=!0;var S=this.incrStack();p=["((",this.push(S)," = ",k,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},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 f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof u)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof u)return b.value;if(!p){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof u?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],w=this.setupHelperArgs(p,f,x,b),k=this.nameLookup("helpers",p,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:k,callParams:[S].concat(x)}},setupParams:function(f,p,b){var x={},w=[],k=[],S=[],v=!b,_=void 0;v&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(S[I]=this.popStack()),this.stringParams&&(k[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(S)),this.stringParams&&(x.types=this.source.generateArray(k),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},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(" "),f=c.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),k=p.length;d&&k--;for(var S=b;S<k;S++)w=f.nameLookup(w,p[S],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[k]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(ei,ei.exports);var YA=ei.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}var r=uA,o=n(r),a=id,i=n(a),l=cr,s=ur,u=YA,c=n(u),h=ld,d=n(h),f=ad,p=n(f),b=o.default.create;function x(){var k=b();return k.compile=function(S,v){return s.compile(S,v,k)},k.precompile=function(S,v){return s.precompile(S,v,k)},k.AST=i.default,k.Compiler=s.Compiler,k.JavaScriptCompiler=c.default,k.Parser=l.parser,k.parse=l.parse,k.parseWithoutProcessing=l.parseWithoutProcessing,k}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Ea,Ea.exports);var KA=Ea.exports;const JA=Su(KA);function ao(e,t){const n=[],r=new Set,o=a=>{var l,s,u,c,h,d,f,p,b,x;if(r.has(a)||!e[a])return;r.add(a),n.push(a);const i=e[a];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(o),(w.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o)),(((f=i.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(o),(w.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((x=i.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":case"PagePilotLayout":(i.data.childrenIds||[]).forEach(o);break}};return o(t),n}const io="relative",nr="24h",XA=864e5;function zi(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function Ws(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function QA(e,t){const n=zi(e);if(!n)return"";const r=(t==null?void 0:t.now)??new Date,o=t==null?void 0:t.locale,a=Math.round((Ws(n).getTime()-Ws(r).getTime())/XA);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(o,{weekday:"short"});const i=n.getFullYear()===r.getFullYear();return n.toLocaleDateString(o,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function ca(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}const ey=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ty=["January","February","March","April","May","June","July","August","September","October","November","December"],ny=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Vn(e,t=2){const n=String(Math.abs(e));return n.length>=t?n:"0".repeat(t-n.length)+n}function pd(e,t){const r=new Intl.DateTimeFormat("en-US",{timeZone:t||void 0,era:"short",year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(e),o=u=>{var c;return((c=r.find(h=>h.type===u))==null?void 0:c.value)??""},a=o("era"),i=Number(o("year")),l=a==="BC"||a==="B"?1-i:i,s=o("weekday");return{year:l,month:Number(o("month"))-1,day:Number(o("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(s),hour:Number(o("hour"))%24,minute:Number(o("minute"))}}function ry(e){const t=String(e);return t.length>=4?t:"0".repeat(4-t.length)+t}function ni(e,t=io,n){if(t==="relative")return QA(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const r=zi(e);if(!r)return"";const{year:o,month:a,day:i,weekday:l}=pd(r,n==null?void 0:n.tz),s=ey[a],u=ry(o),c=Vn(a+1),h=Vn(i);switch(t){case"do-mmm-yyyy":return`${ca(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${h}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${h}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${h}`;case"do-mmm":return`${ca(i)} ${s}`;case"full":return`${ny[l]}, ${i} ${ty[a]} ${u}`;default:return`${ca(i)} ${s} ${u}`}}function lo(e,t=nr,n){const r=zi(e);if(!r)return"";const{hour:o,minute:a}=pd(r,n==null?void 0:n.tz);return t==="12h"?`${o%12===0?12:o%12}:${Vn(a)} ${o<12?"AM":"PM"}`:`${Vn(o)}:${Vn(a)}`}function gd(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;const a=Array.isArray(o.value)?o.value:[];a.forEach((i,l)=>{if(l!==0)return;const s=o.sourceBlockId;if(!(!s||!r[s]))for(const u of ao(r,s))n.set(u,i||{})}),a.forEach((i,l)=>{var u;if(l===0)return;const s=(u=o.rowIds)==null?void 0:u[l-1];if(!(!s||!r[s]))for(const c of ao(r,s))n.set(c,i||{})})}return n}const oy={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function ay(e){return e?oy[e]:void 0}const ri=JA.create();ri.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new ri.SafeString(`{{${t.name}}}`)});const Us=new Map;function iy(e){let t=Us.get(e);return t||(t=ri.compile(e,{noEscape:!0,strict:!1}),Us.set(e,t)),t}const Zs=new WeakMap;function md(e){const t=Zs.get(e);if(t)return t;const n=ly(e);return Zs.set(e,n),n}function ly(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 r=new Map;for(const a of n.itemFields??[])((a==null?void 0:a.type)==="date"||(a==null?void 0:a.type)==="time"||(a==null?void 0:a.type)==="datetime")&&a.id&&r.set(a.id,a);const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const l of Object.keys(a)){const s=a[l];if(s==null||s==="")continue;const u=r.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Fr(l,String(s),r,"date"),h=Fr(l,String(s),r,"time"),d={date:c,time:h};Object.defineProperty(d,"toString",{value:()=>[c,h].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Fr(l,String(s),r):s}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}if(n.type==="datetime"){const r=n.id,o=typeof n.value=="string"?n.value:"";if(!o){const u={date:`{{${r}.date}}`,time:`{{${r}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${r}}}`,enumerable:!1}),t[r]=u;continue}const a=n.dateFormat??io,i=a==="relative"?ga(r,o):ni(o,a,{tz:n.dateTz}),l=lo(o,n.timeFormat??nr,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,l].filter(Boolean).join(" "),enumerable:!1}),t[r]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const r=n.dateFormat??io;t[n.id]=r==="relative"?ga(n.id,n.value):ni(n.value,r,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=lo(n.value,n.timeFormat??nr,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function ji(e){var r,o;const t=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;if(Array.isArray(t))return t;const n=e==null?void 0:e.formFields;return Array.isArray(n)?n:[]}const sy=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function cy(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(sy,(a,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return a;const u="HB_EACH_"+r+++"_";return n.set(u,a),u}),restore:n}}const bd=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function uy(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const r of n.itemFields)((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&!t.has(r.id)&&t.set(r.id,r);return t}function qs(e,t,n){const r=n.dateFormat??io;return r==="relative"?ga(e,t):ni(t,r,{tz:n.dateTz})}function Fr(e,t,n,r){const o=n.get(e);if(!o)return t;if(o.type==="time")return lo(t,o.timeFormat??nr,{tz:o.dateTz});if(o.type==="datetime"){const a=lo(t,o.timeFormat??nr,{tz:o.dateTz});if(r==="time")return a;const i=qs(e,t,o);return r==="date"?i:[i,a].filter(Boolean).join(" ")}return qs(e,t,o)}function dy(e,t,n){return e.replace(bd,(r,o,a)=>{const i=t==null?void 0:t[o];return i==null||i===""?r:n?Fr(o,String(i),n,a):String(i)})}function bn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=dy(r,n,uy(t)),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?md(t):{},{masked:a,restore:i}=cy(r,o),l=new Map;let s=a;if(a.indexOf("{{")!==-1&&a.indexOf("#each")===-1){let c=0;s=a.replace(bd,h=>{const d="HB_THIS_"+c+++"_";return l.set(d,h),d})}let u=iy(s)(o);for(const[c,h]of l)u=u.split(c).join(h);if(i.size>0)for(const[c,h]of i)u=u.split(c).join(h);return u}catch{return r}}function xd(e,t,n,r){var s,u,c,h,d,f,p,b,x,w,k;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const S=(u=(s=e.data)==null?void 0:s.props)==null?void 0:u.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.label;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=Array.isArray(_==null?void 0:_.contentChildrenIds)?_.contentChildrenIds[0]:void 0,R=I&&r?r.get(I):n,E=bn(C,t,R??null);E!==C&&(v||(v=S.map(L=>({...L}))),v[y]={...v[y],label:E})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const S=(h=(c=e.data)==null?void 0:c.props)==null?void 0:h.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.text;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=bn(C,t,n);I!==C&&(v||(v=S.map(R=>({...R}))),v[y]={...v[y],text:I})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const S=(f=(d=e.data)==null?void 0:d.props)==null?void 0:f.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{for(const C of["label","href"]){const I=_==null?void 0:_[C];if(typeof I!="string"||I.indexOf("{{")===-1)continue;const R=bn(I,t,n);R!==I&&(v||(v=S.map(E=>({...E}))),v[y]={...v[y],[C]:R})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const S=(b=(p=e.data)==null?void 0:p.props)==null?void 0:b.cells;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{if(typeof _!="string"||_.indexOf("{{")===-1)return;const C=bn(_,t,n);C!==_&&(v||(v=[...S]),v[y]=C)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}let o=e;if(e.type==="Container"){const S=(w=(x=e.data)==null?void 0:x.style)==null?void 0:w.backgroundImage;if(typeof S=="string"&&S.indexOf("{{")!==-1){const v=bn(S,t,n);v!==S&&(o={...o,data:{...o.data,style:{...o.data.style,backgroundImage:v}}})}}const a=ay(o.type);if(!a)return o;const i=(k=o.data)==null?void 0:k.props;if(!i)return o;let l=null;for(const S of a){const v=i[S];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const _=bn(v,t,n);_!==v&&(l||(l={...i}),l[S]=_)}return l?{...o,data:{...o.data,props:l}}:o}function Bi(e,t){var l;if(!e)return e;const n=t??ji(e);let r={...e},o=!1;const a=gd(e,n);if(n&&n.length>0&&(Object.keys(md(n)).length>0||a.size>0))for(const s of Object.keys(r)){const u=r[s],c=xd(u,n,a.get(s),a);c!==u&&(r[s]=c,o=!0)}const i=r.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;r.root={...i,data:u},o=!0}return o?r:e}const Vs=Object.fromEntries(bt.map(e=>[e.key,e.value]));function on(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function Di(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function hy(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const r=on(e.borderWidth)?e.borderWidth:on(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return Di(n)?`padding:${(r==null?void 0:r.top)??0}px ${(r==null?void 0:r.right)??0}px ${(r==null?void 0:r.bottom)??0}px ${(r==null?void 0:r.left)??0}px!important`:[`border-top:${(r==null?void 0:r.top)??0}px solid ${n}!important`,`border-right:${(r==null?void 0:r.right)??0}px solid ${n}!important`,`border-bottom:${(r==null?void 0:r.bottom)??0}px solid ${n}!important`,`border-left:${(r==null?void 0:r.left)??0}px solid ${n}!important`].join(";")}function fy(e,t,n){const r=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!r||!Di(r))return"";const o=t.padding;if(!on(o))return"";const a=`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`;return`${e}>.container-block>.container-block-inner{${a}}`}function py(e,t){const n=[],r=e.borderColor!==void 0||e.borderWidth!==void 0,o=Di((t==null?void 0:t.borderColor)??"");if(r||e.padding!==void 0&&o){const i=hy(e,t);i&&n.push(i)}const a=e.backgroundSize==="none";a&&n.push("background-image:none!important");for(const i of Object.keys(e)){const l=e[i];if(l!=null)switch(i){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Vs[l]&&n.push(`font-family:${Vs[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":on(l)&&!o&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":on(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!a?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":a||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:u=0,bottomRight:c=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${u}px ${c}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function gy(e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${r}px!important`);break;case"height":{const o=typeof r=="number"?`${r}px`:r;t.push(`height:${o}!important`),t.push(`--ahd-iframe-height:${o}`),t.push(`--ahd-calendly-height:${o}`),t.push(`--ahd-demo-height:${o}`);break}case"width":{const o=typeof r=="number"?`${r}px`:r;t.push(`--ahd-iframe-width:${o}`),t.push(`--ahd-calendly-width:${o}`),t.push(`--ahd-demo-width:${o}`);break}case"blockPadding":on(r)&&t.push(`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"blockMargin":on(r)&&t.push(`margin:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break}}return t.join(";")}function my(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function by(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function Ys(e,t){if(!t)return null;const n=e??{},r={};for(const o of Object.keys(t)){const a=t[o],i=n[o],l=!!a&&typeof a=="object"&&!Array.isArray(a)&&!!i&&typeof i=="object"&&!Array.isArray(i);r[o]=l?{...i,...a}:a}return r}function xy(e,t,n,r){if(!t)return"";const o=`#${e}`,a=ky(o),i=my(o),l=[],s=(c,h)=>{var S;const d=Ys(n,h==null?void 0:h.style),f=Ys(r,h==null?void 0:h.props),p=[d?py(d,n):"",f?gy(f):""].filter(Boolean).join(";"),b=d?fy(o,d,n):"",x=(S=h==null?void 0:h.style)==null?void 0:S.textAlign,w=x?`${o}>.image-block,${o}>.logo-block{justify-content:${x==="center"?"center":x==="right"?"flex-end":"flex-start"}!important}`:"",k=[p?`${a}{${p}}`:"",w,b,h!=null&&h.hidden?`${o}{display:none}`:""].filter(Boolean).join("");if(k&&l.push(`${c}{${k}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=by(d==null?void 0:d.lineClamp);v&&l.push(`${c}{${i}{${v}}}`)}};s(ln,t.tablet),s(`@media (max-width:${qe}px)`,t.mobile);const u=Sy(e,t,n,r);return u&&l.push(u),l.join("")}function vy(e,t){return t?e?{...e,...t}:t:e}function oi(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Ks(e,t,n){const r=oi(e,t),o=oi(n==null?void 0:n.style,n==null?void 0:n.props);return vy(r,o)}function ua(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 ky(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${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}>.quill-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 wy(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${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}>.quill-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 Sy(e,t,n,r){if(!t)return"";const o=`#${e}`,a=wy(o),i=oi(n,r),l=ua(i),s=ua(Ks(n,r,t.tablet)),u=ua(Ks(n,r,t.mobile));return s===l&&u===l?"":`
599
+ `.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,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(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,w){var k=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var S=p.length,v=function(y){k.replaceStack(function(C){var I=k.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<S;_++)v(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),w=this.setupHelper(f,p),k=[];b&&k.push(w.name),k.push(x),this.options.strict||k.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(k,"||"),")"],v=this.source.functionCall(S,"call",w.callParams);this.push(v)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),k=["(","(helper = ",w," || ",b,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var k=this.hash;b&&(k.contexts[f]=b),x&&(k.types[f]=x),w&&(k.ids[f]=w),k.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,k=0,S=b.length;k<S;k++){x=b[k],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==null){var _=this.context.programs.push("")-1;x.index=_,x.name="program"+_,this.context.programs[_]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof u||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new u(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var k=this.popStack(!0);if(k instanceof u)b=[k.value],p=["(",b],w=!0;else{x=!0;var S=this.incrStack();p=["((",this.push(S)," = ",k,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},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 f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof u)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof u)return b.value;if(!p){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof u?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],w=this.setupHelperArgs(p,f,x,b),k=this.nameLookup("helpers",p,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:k,callParams:[S].concat(x)}},setupParams:function(f,p,b){var x={},w=[],k=[],S=[],v=!b,_=void 0;v&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(S[I]=this.popStack()),this.stringParams&&(k[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(S)),this.stringParams&&(x.types=this.source.generateArray(k),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},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(" "),f=c.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),k=p.length;d&&k--;for(var S=b;S<k;S++)w=f.nameLookup(w,p[S],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[k]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(ei,ei.exports);var KA=ei.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}var r=dA,o=n(r),a=id,i=n(a),l=cr,s=ur,u=KA,c=n(u),h=ld,d=n(h),f=ad,p=n(f),b=o.default.create;function x(){var k=b();return k.compile=function(S,v){return s.compile(S,v,k)},k.precompile=function(S,v){return s.precompile(S,v,k)},k.AST=i.default,k.Compiler=s.Compiler,k.JavaScriptCompiler=c.default,k.Parser=l.parser,k.parse=l.parse,k.parseWithoutProcessing=l.parseWithoutProcessing,k}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Ea,Ea.exports);var JA=Ea.exports;const XA=Su(JA);function ao(e,t){const n=[],r=new Set,o=a=>{var l,s,u,c,h,d,f,p,b,x;if(r.has(a)||!e[a])return;r.add(a),n.push(a);const i=e[a];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(o),(w.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o)),(((f=i.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(o),(w.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((x=i.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":case"PagePilotLayout":(i.data.childrenIds||[]).forEach(o);break}};return o(t),n}const io="relative",nr="24h",QA=864e5;function zi(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function Ws(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function ey(e,t){const n=zi(e);if(!n)return"";const r=(t==null?void 0:t.now)??new Date,o=t==null?void 0:t.locale,a=Math.round((Ws(n).getTime()-Ws(r).getTime())/QA);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(o,{weekday:"short"});const i=n.getFullYear()===r.getFullYear();return n.toLocaleDateString(o,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function ca(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}const ty=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ny=["January","February","March","April","May","June","July","August","September","October","November","December"],ry=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Vn(e,t=2){const n=String(Math.abs(e));return n.length>=t?n:"0".repeat(t-n.length)+n}function pd(e,t){const r=new Intl.DateTimeFormat("en-US",{timeZone:t||void 0,era:"short",year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(e),o=u=>{var c;return((c=r.find(h=>h.type===u))==null?void 0:c.value)??""},a=o("era"),i=Number(o("year")),l=a==="BC"||a==="B"?1-i:i,s=o("weekday");return{year:l,month:Number(o("month"))-1,day:Number(o("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(s),hour:Number(o("hour"))%24,minute:Number(o("minute"))}}function oy(e){const t=String(e);return t.length>=4?t:"0".repeat(4-t.length)+t}function ni(e,t=io,n){if(t==="relative")return ey(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const r=zi(e);if(!r)return"";const{year:o,month:a,day:i,weekday:l}=pd(r,n==null?void 0:n.tz),s=ty[a],u=oy(o),c=Vn(a+1),h=Vn(i);switch(t){case"do-mmm-yyyy":return`${ca(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${h}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${h}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${h}`;case"do-mmm":return`${ca(i)} ${s}`;case"full":return`${ry[l]}, ${i} ${ny[a]} ${u}`;default:return`${ca(i)} ${s} ${u}`}}function lo(e,t=nr,n){const r=zi(e);if(!r)return"";const{hour:o,minute:a}=pd(r,n==null?void 0:n.tz);return t==="12h"?`${o%12===0?12:o%12}:${Vn(a)} ${o<12?"AM":"PM"}`:`${Vn(o)}:${Vn(a)}`}function gd(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;const a=Array.isArray(o.value)?o.value:[];a.forEach((i,l)=>{if(l!==0)return;const s=o.sourceBlockId;if(!(!s||!r[s]))for(const u of ao(r,s))n.set(u,i||{})}),a.forEach((i,l)=>{var u;if(l===0)return;const s=(u=o.rowIds)==null?void 0:u[l-1];if(!(!s||!r[s]))for(const c of ao(r,s))n.set(c,i||{})})}return n}const ay={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function iy(e){return e?ay[e]:void 0}const ri=XA.create();ri.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new ri.SafeString(`{{${t.name}}}`)});const Us=new Map;function ly(e){let t=Us.get(e);return t||(t=ri.compile(e,{noEscape:!0,strict:!1}),Us.set(e,t)),t}const Zs=new WeakMap;function md(e){const t=Zs.get(e);if(t)return t;const n=sy(e);return Zs.set(e,n),n}function sy(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 r=new Map;for(const a of n.itemFields??[])((a==null?void 0:a.type)==="date"||(a==null?void 0:a.type)==="time"||(a==null?void 0:a.type)==="datetime")&&a.id&&r.set(a.id,a);const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const l of Object.keys(a)){const s=a[l];if(s==null||s==="")continue;const u=r.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Fr(l,String(s),r,"date"),h=Fr(l,String(s),r,"time"),d={date:c,time:h};Object.defineProperty(d,"toString",{value:()=>[c,h].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Fr(l,String(s),r):s}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}if(n.type==="datetime"){const r=n.id,o=typeof n.value=="string"?n.value:"";if(!o){const u={date:`{{${r}.date}}`,time:`{{${r}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${r}}}`,enumerable:!1}),t[r]=u;continue}const a=n.dateFormat??io,i=a==="relative"?ga(r,o):ni(o,a,{tz:n.dateTz}),l=lo(o,n.timeFormat??nr,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,l].filter(Boolean).join(" "),enumerable:!1}),t[r]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const r=n.dateFormat??io;t[n.id]=r==="relative"?ga(n.id,n.value):ni(n.value,r,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=lo(n.value,n.timeFormat??nr,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function ji(e){var r,o;const t=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;if(Array.isArray(t))return t;const n=e==null?void 0:e.formFields;return Array.isArray(n)?n:[]}const cy=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function uy(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(cy,(a,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return a;const u="HB_EACH_"+r+++"_";return n.set(u,a),u}),restore:n}}const bd=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function dy(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const r of n.itemFields)((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&!t.has(r.id)&&t.set(r.id,r);return t}function qs(e,t,n){const r=n.dateFormat??io;return r==="relative"?ga(e,t):ni(t,r,{tz:n.dateTz})}function Fr(e,t,n,r){const o=n.get(e);if(!o)return t;if(o.type==="time")return lo(t,o.timeFormat??nr,{tz:o.dateTz});if(o.type==="datetime"){const a=lo(t,o.timeFormat??nr,{tz:o.dateTz});if(r==="time")return a;const i=qs(e,t,o);return r==="date"?i:[i,a].filter(Boolean).join(" ")}return qs(e,t,o)}function hy(e,t,n){return e.replace(bd,(r,o,a)=>{const i=t==null?void 0:t[o];return i==null||i===""?r:n?Fr(o,String(i),n,a):String(i)})}function bn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=hy(r,n,dy(t)),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?md(t):{},{masked:a,restore:i}=uy(r,o),l=new Map;let s=a;if(a.indexOf("{{")!==-1&&a.indexOf("#each")===-1){let c=0;s=a.replace(bd,h=>{const d="HB_THIS_"+c+++"_";return l.set(d,h),d})}let u=ly(s)(o);for(const[c,h]of l)u=u.split(c).join(h);if(i.size>0)for(const[c,h]of i)u=u.split(c).join(h);return u}catch{return r}}function xd(e,t,n,r){var s,u,c,h,d,f,p,b,x,w,k;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const S=(u=(s=e.data)==null?void 0:s.props)==null?void 0:u.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.label;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=Array.isArray(_==null?void 0:_.contentChildrenIds)?_.contentChildrenIds[0]:void 0,R=I&&r?r.get(I):n,E=bn(C,t,R??null);E!==C&&(v||(v=S.map(L=>({...L}))),v[y]={...v[y],label:E})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const S=(h=(c=e.data)==null?void 0:c.props)==null?void 0:h.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.text;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=bn(C,t,n);I!==C&&(v||(v=S.map(R=>({...R}))),v[y]={...v[y],text:I})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const S=(f=(d=e.data)==null?void 0:d.props)==null?void 0:f.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{for(const C of["label","href"]){const I=_==null?void 0:_[C];if(typeof I!="string"||I.indexOf("{{")===-1)continue;const R=bn(I,t,n);R!==I&&(v||(v=S.map(E=>({...E}))),v[y]={...v[y],[C]:R})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const S=(b=(p=e.data)==null?void 0:p.props)==null?void 0:b.cells;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{if(typeof _!="string"||_.indexOf("{{")===-1)return;const C=bn(_,t,n);C!==_&&(v||(v=[...S]),v[y]=C)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}let o=e;if(e.type==="Container"){const S=(w=(x=e.data)==null?void 0:x.style)==null?void 0:w.backgroundImage;if(typeof S=="string"&&S.indexOf("{{")!==-1){const v=bn(S,t,n);v!==S&&(o={...o,data:{...o.data,style:{...o.data.style,backgroundImage:v}}})}}const a=iy(o.type);if(!a)return o;const i=(k=o.data)==null?void 0:k.props;if(!i)return o;let l=null;for(const S of a){const v=i[S];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const _=bn(v,t,n);_!==v&&(l||(l={...i}),l[S]=_)}return l?{...o,data:{...o.data,props:l}}:o}function Bi(e,t){var l;if(!e)return e;const n=t??ji(e);let r={...e},o=!1;const a=gd(e,n);if(n&&n.length>0&&(Object.keys(md(n)).length>0||a.size>0))for(const s of Object.keys(r)){const u=r[s],c=xd(u,n,a.get(s),a);c!==u&&(r[s]=c,o=!0)}const i=r.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;r.root={...i,data:u},o=!0}return o?r:e}const Vs=Object.fromEntries(bt.map(e=>[e.key,e.value]));function on(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function Di(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function fy(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const r=on(e.borderWidth)?e.borderWidth:on(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return Di(n)?`padding:${(r==null?void 0:r.top)??0}px ${(r==null?void 0:r.right)??0}px ${(r==null?void 0:r.bottom)??0}px ${(r==null?void 0:r.left)??0}px!important`:[`border-top:${(r==null?void 0:r.top)??0}px solid ${n}!important`,`border-right:${(r==null?void 0:r.right)??0}px solid ${n}!important`,`border-bottom:${(r==null?void 0:r.bottom)??0}px solid ${n}!important`,`border-left:${(r==null?void 0:r.left)??0}px solid ${n}!important`].join(";")}function py(e,t,n){const r=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!r||!Di(r))return"";const o=t.padding;if(!on(o))return"";const a=`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`;return`${e}>.container-block>.container-block-inner{${a}}`}function gy(e,t){const n=[],r=e.borderColor!==void 0||e.borderWidth!==void 0,o=Di((t==null?void 0:t.borderColor)??"");if(r||e.padding!==void 0&&o){const i=fy(e,t);i&&n.push(i)}const a=e.backgroundSize==="none";a&&n.push("background-image:none!important");for(const i of Object.keys(e)){const l=e[i];if(l!=null)switch(i){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Vs[l]&&n.push(`font-family:${Vs[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":on(l)&&!o&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":on(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!a?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":a||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:u=0,bottomRight:c=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${u}px ${c}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function my(e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${r}px!important`);break;case"height":{const o=typeof r=="number"?`${r}px`:r;t.push(`height:${o}!important`),t.push(`--ahd-iframe-height:${o}`),t.push(`--ahd-calendly-height:${o}`),t.push(`--ahd-demo-height:${o}`);break}case"width":{const o=typeof r=="number"?`${r}px`:r;t.push(`--ahd-iframe-width:${o}`),t.push(`--ahd-calendly-width:${o}`),t.push(`--ahd-demo-width:${o}`);break}case"blockPadding":on(r)&&t.push(`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"blockMargin":on(r)&&t.push(`margin:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break}}return t.join(";")}function by(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function xy(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function Ys(e,t){if(!t)return null;const n=e??{},r={};for(const o of Object.keys(t)){const a=t[o],i=n[o],l=!!a&&typeof a=="object"&&!Array.isArray(a)&&!!i&&typeof i=="object"&&!Array.isArray(i);r[o]=l?{...i,...a}:a}return r}function vy(e,t,n,r){if(!t)return"";const o=`#${e}`,a=wy(o),i=by(o),l=[],s=(c,h)=>{var S;const d=Ys(n,h==null?void 0:h.style),f=Ys(r,h==null?void 0:h.props),p=[d?gy(d,n):"",f?my(f):""].filter(Boolean).join(";"),b=d?py(o,d,n):"",x=(S=h==null?void 0:h.style)==null?void 0:S.textAlign,w=x?`${o}>.image-block,${o}>.logo-block{justify-content:${x==="center"?"center":x==="right"?"flex-end":"flex-start"}!important}`:"",k=[p?`${a}{${p}}`:"",w,b,h!=null&&h.hidden?`${o}{display:none}`:""].filter(Boolean).join("");if(k&&l.push(`${c}{${k}}`),h!=null&&h.style&&"lineClamp"in h.style){const v=xy(d==null?void 0:d.lineClamp);v&&l.push(`${c}{${i}{${v}}}`)}};s(ln,t.tablet),s(`@media (max-width:${qe}px)`,t.mobile);const u=$y(e,t,n,r);return u&&l.push(u),l.join("")}function ky(e,t){return t?e?{...e,...t}:t:e}function oi(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Ks(e,t,n){const r=oi(e,t),o=oi(n==null?void 0:n.style,n==null?void 0:n.props);return ky(r,o)}function ua(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 wy(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${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}>.quill-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 Sy(e){return[`${e}>.text-block`,`${e}>.button-block`,`${e}>.button-group`,`${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}>.quill-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 $y(e,t,n,r){if(!t)return"";const o=`#${e}`,a=Sy(o),i=oi(n,r),l=ua(i),s=ua(Ks(n,r,t.tablet)),u=ua(Ks(n,r,t.mobile));return s===l&&u===l?"":`
600
600
  ${ln} { ${a} { width: ${s} !important; max-width: 100% !important; } }
601
601
  @media (max-width:${qe}px) { ${a} { width: ${u} !important; max-width: 100% !important; } }
602
- `.trim()}const $y=e=>{var r,o;const t=!!((r=e==null?void 0:e.props)!=null&&r.decorative),n=((o=e==null?void 0:e.props)==null?void 0:o.alt)??"";return t?m.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:m.jsx(yl,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):m.jsx(yl,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},_y=e=>{var t;return m.jsx(ab,{hoverEffect:(t=e==null?void 0:e.props)==null?void 0:t.hoverEffect,children:m.jsx($y,{...e})})},Cy=({props:e})=>m.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??Xx.height}}),Js=Dk,vd=G.createContext({}),Xs=G.createContext(!1),Ay=typeof window<"u"?G.useLayoutEffect:G.useEffect;function kd(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const Qs=new WeakMap;function yy(e){if(!e||typeof e!="object")return new Map;let t=Qs.get(e);return t||(t=gd(e,kd(e)),Qs.set(e,t)),t}const wd=G.createContext({});function Iy(){return G.useContext(vd)}function Ry(){return G.useContext(wd)}const Sd={ColumnsContainer:{schema:b1,Component:v1},FlexColumns:{schema:k1,Component:y1},Grid:{schema:j1,Component:H1},ButtonGroup:{schema:ww,Component:Sw},Container:{schema:uk,Component:mu},EmailLayout:{schema:Kl,Component:Js},PagePilotLayout:{schema:Kl,Component:Js},Accordion:{schema:_w,Component:yw},PricingAccordion:{schema:Rw,Component:Ew},TabsBlock:{schema:Pw,Component:Fw},Carousel:{schema:Gw,Component:qw},Pagination:{schema:Jw,Component:aS},Rating:{schema:iS,Component:uS},Progress:{schema:fS,Component:vS},Marquee:{schema:kS,Component:PS},Timer:{schema:zS,Component:qS},Avatar:{schema:Dm,Component:_y},Button:{schema:Vb,Component:Yb},Divider:{schema:o0,Component:a0},Heading:{schema:m0,Component:x0},Html:{schema:q0,Component:K0},Image:{schema:hx,Component:px},Logo:{schema:Tx,Component:Nx},Video:{schema:Zx,Component:Kx},IFrame:{schema:Bv,Component:Hv},Calendly:{schema:Uv,Component:Vv},YouTubeUrl:{schema:Nv,Component:Pv},Spacer:{schema:Jx,Component:Cy},SkipLink:{schema:N_,Component:qu},AccessibilityTools:{schema:P_,Component:Ju},Stepper:{schema:Kk,Component:Jk},List:{schema:iw,Component:sw},Text:{schema:_v,Component:yv},Mdx:{schema:R2,Component:M2},QuillBlock:{schema:G2,Component:U2},DemoPicker:{schema:Z2,Component:e=>m.jsx(V2,{...e})},MenuPicker:{schema:J2,Component:e=>m.jsx(f_,{...e})},Breadcrumb:{schema:x_,Component:A_},FormsPicker:{schema:y_,Component:e=>m.jsx(E_,{...e})},AppBannerPicker:{schema:B_,Component:e=>m.jsx(H_,{...e})},FaqPicker:{schema:G_,Component:e=>m.jsx(Z_,{...e})},Table:{schema:q_,Component:Y_}},$d=e1(Sd),Ty=yn($(),$d),Ey=Qv(Sd);function Pe({id:e}){var _,y,C,I,R,E,L;const t=Iy(),{staticRender:n,injectElementIds:r,mainBlockId:o,hoistedSkipLinkId:a,hoistedA11yToolsId:i}=Ry(),l=t[e];if(a&&e===a&&(l==null?void 0:l.type)==="SkipLink"||i&&e===i&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=o&&e===o&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((_=l.data)==null?void 0:_.props)??{},elementId:"main-content"}}}:l,u=kd(t),c=yy(t),h=c.get(e),d=xd(s,u,h,c),f=d,p=(f==null?void 0:f.type)==="Container"?m.jsx(mu,{...f.data,blockId:e}):m.jsx(Ey,{...f});if(e==="root")return p;const b=!!((y=f==null?void 0:f.data)!=null&&y.hidden),x=n&&r?`ahd-${e}`:e,w=xy(x,(C=f==null?void 0:f.data)==null?void 0:C.responsive,(I=f==null?void 0:f.data)==null?void 0:I.style,(R=f==null?void 0:f.data)==null?void 0:R.props),S=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(f==null?void 0:f.type)?(L=(E=f==null?void 0:f.data)==null?void 0:E.props)==null?void 0:L.animation:null,v=S&&S.type&&S.type!=="none"?{"data-animate-type":S.type,"data-animate-trigger":S.trigger??"load","data-animate-speed":S.speed??"medium","data-animate-delay":S.delay??0,...S.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{};return n&&r?m.jsxs("div",{id:x,className:"ahd-block-wrapper",style:b?{display:"none"}:void 0,...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]}):m.jsxs("div",{id:x,style:{scrollMarginTop:"80px",...b?{display:"none"}:null},...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]})}function rr({document:e,rootBlockId:t,staticRender:n,injectElementIds:r,isBanner:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}){const s=G.useMemo(()=>({staticRender:!!n,injectElementIds:!!r,isBanner:!!o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}),[n,r,o,a,i,l]),u=G.useContext(Xs),c=G.useRef(null);return Ay(()=>{n||u||c.current&&(Nb(c.current),Mb(c.current))},[n,u,e,t]),m.jsx("div",{ref:c,style:{display:"contents"},children:m.jsx(vd.Provider,{value:e,children:m.jsx(wd.Provider,{value:s,children:m.jsx(Xs.Provider,{value:!0,children:m.jsx(Pe,{id:t})})})})})}function Ny(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function My(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function Py(e,t){const n=new Set;function r(o){var s,u,c,h;if(n.has(o))return;n.add(o);const a=e[o];if(!a)return;if(a.type==="Container"&&((u=(s=a.data)==null?void 0:s.props)==null?void 0:u.tag)==="main")return o;const i=((c=a.data)==null?void 0:c.props)??{},l=[];Array.isArray(i.childrenIds)&&l.push(i.childrenIds),Array.isArray((h=a.data)==null?void 0:h.childrenIds)&&l.push(a.data.childrenIds),Array.isArray(i.columns)&&i.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const f of d){const p=r(f);if(p)return p}}return r(t)}const Ly=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var root=s.closest('[data-ahd-tpl-root]')||s.parentNode||document.body;if(!root){s.parentNode&&s.parentNode.removeChild(s);return;}var p=new URLSearchParams(location.search);var els=root.querySelectorAll('[data-ahd-var]');for(var i=0;i<els.length;i++){var el=els[i];var v=p.get(el.getAttribute('data-ahd-var')||'');if(v!==null){el.textContent=v;}}var hs=root.querySelectorAll('[data-ahd-href-tpl]');for(var j=0;j<hs.length;j++){var he=hs[j];var tpl=he.getAttribute('data-ahd-href-tpl')||'';var filled=tpl.replace(/\\{\\{\\s*([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\}\\}/g,function(m,n){var pv=p.get(n);return pv!==null?encodeURIComponent(pv):m;});he.setAttribute('href',filled);he.removeAttribute('data-ahd-href-tpl');}var ds=root.querySelectorAll('[data-ahd-date]');if(ds.length){var now=new Date();var sod=function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime();};for(var k=0;k<ds.length;k++){var de=ds[k];var iso=de.getAttribute('data-ahd-date')||'';if(!iso)continue;var dt=new Date(iso);if(isNaN(dt.getTime()))continue;var diff=Math.round((sod(dt)-sod(now))/86400000);var lbl;if(diff===0){lbl='Today';}else if(diff===1){lbl='Tomorrow';}else if(diff===-1){lbl='Yesterday';}else if(diff>=-6&&diff<=6){lbl=dt.toLocaleDateString(undefined,{weekday:'short'});}else{var o={month:'short',day:'numeric'};if(dt.getFullYear()!==now.getFullYear()){o.year='numeric';}lbl=dt.toLocaleDateString(undefined,o);}de.textContent=lbl;}}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,"&quot;")}">`,Oy=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${`var s=this;if(!window.__ahdPostMessageBound){window.__ahdPostMessageBound=true;document.addEventListener('click',function(e){try{var t=(e.composedPath&&e.composedPath()[0])||e.target;var b=t&&t.closest&&t.closest('[data-action="postMessageEvent"][data-post-message-event],[data-action="postMessageEvent"][data-action-payload]');if(!b)return;var n=b.getAttribute('data-post-message-event');if(!n){try{n=JSON.parse(b.getAttribute('data-action-payload')||'{}').postMessageEvent;}catch(x){}}if(!n)return;var ts=window.parent!==window?[window,window.parent]:[window];for(var i=0;i<ts.length;i++){ts[i].postMessage({type:n},'*');ts[i].postMessage({type:'ahd-button-click',event:n},'*');}}catch(x){}});}s.parentNode&&s.parentNode.removeChild(s);`.replace(/"/g,"&quot;")}">`,zy=e=>`<img alt="" src="x:invalid" style="display:none" onerror="${`var s=this;try{var l=window.__ppLoaded=window.__ppLoaded||{};var u=${JSON.stringify(e)};for(var i=0;i<u.length;i++){if(l[u[i]])continue;l[u[i]]=1;var e=document.createElement('script');e.src=u[i];e.async=true;(document.head||document.body).appendChild(e);}}catch(x){}s.parentNode&&s.parentNode.removeChild(s);`.replace(/"/g,"&quot;")}">`,jy=e=>Object.values(e??{}).some(t=>{var n,r;return(t==null?void 0:t.type)==="Button"&&((r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.action)==="postMessageEvent"}),By=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),Dy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),Fy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),Hy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),Gy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),Wy=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),ec=e=>Object.values(e??{}).some(t=>{var n,r,o;return Wy.has(t==null?void 0:t.type)&&((o=(r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.animation)==null?void 0:o.type)&&t.data.props.animation.type!=="none"}),un="https://pagepilot.fabbuilder.com/scripts",tc=`${un}/pagePilotTabs.js`,nc=`${un}/pagePilotCarousel.js`,rc=`${un}/pagePilotPagination.js`,oc=`${un}/pagePilotDemoScale.js`,ac=`${un}/pagePilotTimer.js`,ic=`${un}/pagePilotAnimation.js`,Uy=`${un}/pagePilotActions.js`,Zy=`
602
+ `.trim()}const _y=e=>{var r,o;const t=!!((r=e==null?void 0:e.props)!=null&&r.decorative),n=((o=e==null?void 0:e.props)==null?void 0:o.alt)??"";return t?m.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:m.jsx(yl,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):m.jsx(yl,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},Cy=e=>{var t;return m.jsx(ab,{hoverEffect:(t=e==null?void 0:e.props)==null?void 0:t.hoverEffect,children:m.jsx(_y,{...e})})},Ay=({props:e})=>m.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??Xx.height}}),Js=Dk,vd=G.createContext({}),Xs=G.createContext(!1),yy=typeof window<"u"?G.useLayoutEffect:G.useEffect;function kd(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const Qs=new WeakMap;function Iy(e){if(!e||typeof e!="object")return new Map;let t=Qs.get(e);return t||(t=gd(e,kd(e)),Qs.set(e,t)),t}const wd=G.createContext({});function Ry(){return G.useContext(vd)}function Ty(){return G.useContext(wd)}const Sd={ColumnsContainer:{schema:b1,Component:v1},FlexColumns:{schema:k1,Component:y1},Grid:{schema:j1,Component:H1},ButtonGroup:{schema:ww,Component:Sw},Container:{schema:uk,Component:mu},EmailLayout:{schema:Kl,Component:Js},PagePilotLayout:{schema:Kl,Component:Js},Accordion:{schema:_w,Component:yw},PricingAccordion:{schema:Rw,Component:Ew},TabsBlock:{schema:Pw,Component:Fw},Carousel:{schema:Gw,Component:qw},Pagination:{schema:Jw,Component:iS},Rating:{schema:lS,Component:dS},Progress:{schema:pS,Component:kS},Marquee:{schema:wS,Component:LS},Timer:{schema:jS,Component:VS},Avatar:{schema:Dm,Component:Cy},Button:{schema:Vb,Component:Yb},Divider:{schema:o0,Component:a0},Heading:{schema:m0,Component:x0},Html:{schema:q0,Component:K0},Image:{schema:hx,Component:px},Logo:{schema:Tx,Component:Nx},Video:{schema:Zx,Component:Kx},IFrame:{schema:Bv,Component:Hv},Calendly:{schema:Uv,Component:Vv},YouTubeUrl:{schema:Nv,Component:Pv},Spacer:{schema:Jx,Component:Ay},SkipLink:{schema:M_,Component:qu},AccessibilityTools:{schema:L_,Component:Ju},Stepper:{schema:Kk,Component:Jk},List:{schema:iw,Component:sw},Text:{schema:_v,Component:yv},Mdx:{schema:T2,Component:P2},QuillBlock:{schema:W2,Component:Z2},DemoPicker:{schema:q2,Component:e=>m.jsx(Y2,{...e})},MenuPicker:{schema:X2,Component:e=>m.jsx(p_,{...e})},Breadcrumb:{schema:v_,Component:y_},FormsPicker:{schema:I_,Component:e=>m.jsx(N_,{...e})},AppBannerPicker:{schema:D_,Component:e=>m.jsx(G_,{...e})},FaqPicker:{schema:W_,Component:e=>m.jsx(q_,{...e})},Table:{schema:V_,Component:K_}},$d=e1(Sd),Ey=yn($(),$d),Ny=Qv(Sd);function Pe({id:e}){var _,y,C,I,R,E,L;const t=Ry(),{staticRender:n,injectElementIds:r,mainBlockId:o,hoistedSkipLinkId:a,hoistedA11yToolsId:i}=Ty(),l=t[e];if(a&&e===a&&(l==null?void 0:l.type)==="SkipLink"||i&&e===i&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=o&&e===o&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((_=l.data)==null?void 0:_.props)??{},elementId:"main-content"}}}:l,u=kd(t),c=Iy(t),h=c.get(e),d=xd(s,u,h,c),f=d,p=(f==null?void 0:f.type)==="Container"?m.jsx(mu,{...f.data,blockId:e}):m.jsx(Ny,{...f});if(e==="root")return p;const b=!!((y=f==null?void 0:f.data)!=null&&y.hidden),x=n&&r?`ahd-${e}`:e,w=vy(x,(C=f==null?void 0:f.data)==null?void 0:C.responsive,(I=f==null?void 0:f.data)==null?void 0:I.style,(R=f==null?void 0:f.data)==null?void 0:R.props),S=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(f==null?void 0:f.type)?(L=(E=f==null?void 0:f.data)==null?void 0:E.props)==null?void 0:L.animation:null,v=S&&S.type&&S.type!=="none"?{"data-animate-type":S.type,"data-animate-trigger":S.trigger??"load","data-animate-speed":S.speed??"medium","data-animate-delay":S.delay??0,...S.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{};return n&&r?m.jsxs("div",{id:x,className:"ahd-block-wrapper",style:b?{display:"none"}:void 0,...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]}):m.jsxs("div",{id:x,style:{scrollMarginTop:"80px",...b?{display:"none"}:null},...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]})}function rr({document:e,rootBlockId:t,staticRender:n,injectElementIds:r,isBanner:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}){const s=G.useMemo(()=>({staticRender:!!n,injectElementIds:!!r,isBanner:!!o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}),[n,r,o,a,i,l]),u=G.useContext(Xs),c=G.useRef(null);return yy(()=>{n||u||c.current&&(Nb(c.current),Mb(c.current))},[n,u,e,t]),m.jsx("div",{ref:c,style:{display:"contents"},children:m.jsx(vd.Provider,{value:e,children:m.jsx(wd.Provider,{value:s,children:m.jsx(Xs.Provider,{value:!0,children:m.jsx(Pe,{id:t})})})})})}function My(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function Py(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function Ly(e,t){const n=new Set;function r(o){var s,u,c,h;if(n.has(o))return;n.add(o);const a=e[o];if(!a)return;if(a.type==="Container"&&((u=(s=a.data)==null?void 0:s.props)==null?void 0:u.tag)==="main")return o;const i=((c=a.data)==null?void 0:c.props)??{},l=[];Array.isArray(i.childrenIds)&&l.push(i.childrenIds),Array.isArray((h=a.data)==null?void 0:h.childrenIds)&&l.push(a.data.childrenIds),Array.isArray(i.columns)&&i.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const f of d){const p=r(f);if(p)return p}}return r(t)}const Oy=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${"var s=this;setTimeout(function(){try{var root=s.closest('[data-ahd-tpl-root]')||s.parentNode||document.body;if(!root){s.parentNode&&s.parentNode.removeChild(s);return;}var p=new URLSearchParams(location.search);var els=root.querySelectorAll('[data-ahd-var]');for(var i=0;i<els.length;i++){var el=els[i];var v=p.get(el.getAttribute('data-ahd-var')||'');if(v!==null){el.textContent=v;}}var hs=root.querySelectorAll('[data-ahd-href-tpl]');for(var j=0;j<hs.length;j++){var he=hs[j];var tpl=he.getAttribute('data-ahd-href-tpl')||'';var filled=tpl.replace(/\\{\\{\\s*([a-zA-Z_][a-zA-Z0-9_-]*)\\s*\\}\\}/g,function(m,n){var pv=p.get(n);return pv!==null?encodeURIComponent(pv):m;});he.setAttribute('href',filled);he.removeAttribute('data-ahd-href-tpl');}var ds=root.querySelectorAll('[data-ahd-date]');if(ds.length){var now=new Date();var sod=function(d){return new Date(d.getFullYear(),d.getMonth(),d.getDate()).getTime();};for(var k=0;k<ds.length;k++){var de=ds[k];var iso=de.getAttribute('data-ahd-date')||'';if(!iso)continue;var dt=new Date(iso);if(isNaN(dt.getTime()))continue;var diff=Math.round((sod(dt)-sod(now))/86400000);var lbl;if(diff===0){lbl='Today';}else if(diff===1){lbl='Tomorrow';}else if(diff===-1){lbl='Yesterday';}else if(diff>=-6&&diff<=6){lbl=dt.toLocaleDateString(undefined,{weekday:'short'});}else{var o={month:'short',day:'numeric'};if(dt.getFullYear()!==now.getFullYear()){o.year='numeric';}lbl=dt.toLocaleDateString(undefined,o);}de.textContent=lbl;}}s.parentNode&&s.parentNode.removeChild(s);}catch(e){}},0);".replace(/"/g,"&quot;")}">`,zy=()=>`<img alt="" src="x:invalid" style="display:none" onerror="${`var s=this;if(!window.__ahdPostMessageBound){window.__ahdPostMessageBound=true;document.addEventListener('click',function(e){try{var t=(e.composedPath&&e.composedPath()[0])||e.target;var b=t&&t.closest&&t.closest('[data-action="postMessageEvent"][data-post-message-event],[data-action="postMessageEvent"][data-action-payload]');if(!b)return;var n=b.getAttribute('data-post-message-event');if(!n){try{n=JSON.parse(b.getAttribute('data-action-payload')||'{}').postMessageEvent;}catch(x){}}if(!n)return;var ts=window.parent!==window?[window,window.parent]:[window];for(var i=0;i<ts.length;i++){ts[i].postMessage({type:n},'*');ts[i].postMessage({type:'ahd-button-click',event:n},'*');}}catch(x){}});}s.parentNode&&s.parentNode.removeChild(s);`.replace(/"/g,"&quot;")}">`,jy=e=>`<img alt="" src="x:invalid" style="display:none" onerror="${`var s=this;try{var l=window.__ppLoaded=window.__ppLoaded||{};var u=${JSON.stringify(e)};for(var i=0;i<u.length;i++){if(l[u[i]])continue;l[u[i]]=1;var e=document.createElement('script');e.src=u[i];e.async=true;(document.head||document.body).appendChild(e);}}catch(x){}s.parentNode&&s.parentNode.removeChild(s);`.replace(/"/g,"&quot;")}">`,By=e=>Object.values(e??{}).some(t=>{var n,r;return(t==null?void 0:t.type)==="Button"&&((r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.action)==="postMessageEvent"}),Dy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),Fy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),Hy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),Gy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),Wy=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),Uy=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),ec=e=>Object.values(e??{}).some(t=>{var n,r,o;return Uy.has(t==null?void 0:t.type)&&((o=(r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.animation)==null?void 0:o.type)&&t.data.props.animation.type!=="none"}),un="https://pagepilot.fabbuilder.com/scripts",tc=`${un}/pagePilotTabs.js`,nc=`${un}/pagePilotCarousel.js`,rc=`${un}/pagePilotPagination.js`,oc=`${un}/pagePilotDemoScale.js`,ac=`${un}/pagePilotTimer.js`,ic=`${un}/pagePilotAnimation.js`,Zy=`${un}/pagePilotActions.js`,qy=`
603
603
  @keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
604
604
  @keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
605
605
  @keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@@ -613,7 +613,7 @@ ${ln} { ${a} { width: ${s} !important; max-width: 100% !important; } }
613
613
  100% { opacity: 1; transform: translateY(0); }
614
614
  }
615
615
  `.trim(),_d=`
616
- ${Zy}
616
+ ${qy}
617
617
 
618
618
  /* Elements that animate on scroll/hover/click start hidden so there is no
619
619
  flash of the final state before the trigger fires. Load-triggered elements
@@ -640,7 +640,7 @@ html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.
640
640
  animation-fill-mode: both;
641
641
  animation-timing-function: ease-out;
642
642
  }
643
- `.trim(),qy=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),Vy=(e,t=!1)=>qy(`
643
+ `.trim(),Vy=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),Yy=(e,t=!1)=>Vy(`
644
644
 
645
645
  @import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');
646
646
 
@@ -997,19 +997,19 @@ table[style*="maxHeight"] {
997
997
 
998
998
  ${_d}
999
999
 
1000
- `),Yy=[{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'}],Ky={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]},Jy=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Xy=`https://fonts.googleapis.com/css2?${Object.entries(Ky).map(([e,t])=>`family=${Jy(e,t)}`).join("&")}&display=swap`,Cd=Yy.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Cd.map(e=>e.css);const Qy=e=>e.replace(/"/g,'\\"');Cd.map(e=>{const t=Qy(e.css);return`
1000
+ `),Ky=[{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'}],Jy={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]},Xy=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},Qy=`https://fonts.googleapis.com/css2?${Object.entries(Jy).map(([e,t])=>`family=${Xy(e,t)}`).join("&")}&display=swap`,Cd=Ky.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Cd.map(e=>e.css);const eI=e=>e.replace(/"/g,'\\"');Cd.map(e=>{const t=eI(e.css);return`
1001
1001
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
1002
1002
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
1003
1003
  content: '${e.label}';
1004
1004
  font-family: ${e.css};
1005
1005
  }`}).join(`
1006
- `);const eI=/<style(\s[^>]*)?>[\s\S]*?<\/style>/gi,tI=e=>{const t=new Set;return e.replace(eI,n=>t.has(n)?"":(t.add(n),n))},nI=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,a)=>{t++;const i=String(a).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Fi(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:a,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0,injectPostMessageScript:k=!1}){var Le;const S=((Le=e==null?void 0:e[t])==null?void 0:Le.data)??{};a??S.lang;const v=i??S.skipLink??void 0,_=l??S.accessibilityTools??void 0,y=Object.values(e??{}).some(K=>(K==null?void 0:K.type)==="SkipLink"),C=Object.values(e??{}).some(K=>(K==null?void 0:K.type)==="AccessibilityTools");!y&&(v==null||v.enabled);const I=!C&&!!(_!=null&&_.enabled),R=I?Vu(_):"",E=I?Yu(_):"",L=I?Ku():"",M=d&&By(e),P=f&&Fy(e),B=p&&Hy(e),F=x&&Gy(e),W=Dy(e),D=w&&ec(e),U=k&&jy(e),J=ec(e),Q=m.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[m.jsx("style",{"data-pp-theme-css":"",dangerouslySetInnerHTML:{__html:rb}}),s&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Vy(void 0,!1)}}),R&&m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),J&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_d}}),b&&m.jsx("link",{rel:"stylesheet",href:Xy}),m.jsx("style",{children:`.gc-tooltip * {
1006
+ `);const tI=/<style(\s[^>]*)?>[\s\S]*?<\/style>/gi,nI=e=>{const t=new Set;return e.replace(tI,n=>t.has(n)?"":(t.add(n),n))},rI=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,a)=>{t++;const i=String(a).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Fi(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:a,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0,injectPostMessageScript:k=!1}){var Le;const S=((Le=e==null?void 0:e[t])==null?void 0:Le.data)??{};a??S.lang;const v=i??S.skipLink??void 0,_=l??S.accessibilityTools??void 0,y=Object.values(e??{}).some(X=>(X==null?void 0:X.type)==="SkipLink"),C=Object.values(e??{}).some(X=>(X==null?void 0:X.type)==="AccessibilityTools");!y&&(v==null||v.enabled);const I=!C&&!!(_!=null&&_.enabled),R=I?Vu(_):"",E=I?Yu(_):"",L=I?Ku():"",M=d&&Dy(e),P=f&&Hy(e),B=p&&Gy(e),F=x&&Wy(e),U=Fy(e),K=w&&ec(e),D=k&&By(e),J=ec(e),q=m.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[m.jsx("style",{"data-pp-theme-css":"",dangerouslySetInnerHTML:{__html:rb}}),s&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Yy(void 0,!1)}}),R&&m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),J&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_d}}),b&&m.jsx("link",{rel:"stylesheet",href:Qy}),m.jsx("style",{children:`.gc-tooltip * {
1007
1007
  margin: 0;
1008
1008
  padding: 0;
1009
1009
  box-sizing: border-box;
1010
1010
  }
1011
1011
  .gc-tooltip .gc-close { display: none !important; }
1012
- .gc-tooltip .gc-copyright { display: none !important; }`}),m.jsx("style",{dangerouslySetInnerHTML:{__html:xi}}),E&&m.jsx("div",{dangerouslySetInnerHTML:{__html:E}}),L&&m.jsx("script",{dangerouslySetInnerHTML:{__html:L}}),(()=>{const K=Ny(e),q=My(e),V=Py(e,t),j=K?e[K]:null,Y=q?e[q]:null,de=V?m.jsx(rr,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,mainBlockId:V,hoistedSkipLinkId:K,hoistedA11yToolsId:q}):m.jsx("main",{id:"main-content",tabIndex:-1,children:m.jsx(rr,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,hoistedSkipLinkId:K,hoistedA11yToolsId:q})});return m.jsxs(m.Fragment,{children:[j&&m.jsx(qu,{...j.data??{}}),h?de:m.jsx("div",{className:"ahd-page-root",children:de}),Y&&m.jsx(Ju,{...Y.data??{}})]})})(),M&&m.jsx("script",{src:tc,defer:!0}),P&&m.jsx("script",{src:nc,defer:!0}),B&&m.jsx("script",{src:rc,defer:!0}),F&&m.jsx("script",{src:ac,defer:!0}),W&&m.jsx("script",{src:oc,defer:!0}),D&&m.jsx("script",{src:ic,defer:!0}),U&&m.jsx("script",{src:Uy,defer:!0})]}),X=Bd.renderToStaticMarkup(Q);let ee=tI(o?nI(X):X);const ge=[M&&tc,P&&nc,B&&rc,F&&ac,W&&oc,D&&ic].filter(Boolean),$e=Ly()+(U?Oy():"")+(ge.length?zy(ge):""),ke=ee.lastIndexOf("</div>");return ee=ke!==-1?ee.slice(0,ke)+$e+ee.slice(ke):ee+$e,u&&(ee=ee.replace("</head>",`${u}</head>`)),c&&(ee=ee.replace("</body>",`${c}</body>`)),ee}function Ad(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function rI(e){var t;return String((e==null?void 0:e.identifier)||((t=e==null?void 0:e.metadata)==null?void 0:t.identifier)||"")}function oI(e){const t=rI(e);return t?`<div id="${Hr(t)}"></div>`:""}function aI(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",r=((a=e==null?void 0:e[n])==null?void 0:a.data)??{},o=t.rootOverrides??{};try{return Fi(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang??r.lang,skipLink:o.skipLink??r.skipLink,accessibilityTools:o.accessibilityTools??r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,injectAnimationScript:t.injectAnimationScript,injectPostMessageScript:t.injectPostMessageScript??!0,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 Hr(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function iI(e,t,n={}){var d,f,p;const r=t.find(b=>!Ad(b)),o=((p=(f=(d=r==null?void 0:r.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)??{},a=n.lang||o.lang||"en",i=n.canvasColor||o.canvasColor||"#FFFFFF",l=n.fontFamily||(typeof o.fontFamily=="string"?o.fontFamily:"Inter, system-ui, sans-serif"),s=n.seoTitle?`<title>${Hr(n.seoTitle)}</title>`:"",u=n.seoDescription?`<meta name="description" content="${Hr(n.seoDescription)}" />`:"",c=n.extraHead??"",h=n.extraBodyBottom??"";return`<!doctype html>
1012
+ .gc-tooltip .gc-copyright { display: none !important; }`}),m.jsx("style",{dangerouslySetInnerHTML:{__html:xi}}),E&&m.jsx("div",{dangerouslySetInnerHTML:{__html:E}}),L&&m.jsx("script",{dangerouslySetInnerHTML:{__html:L}}),(()=>{const X=My(e),Z=Py(e),V=Ly(e,t),j=X?e[X]:null,Y=Z?e[Z]:null,he=V?m.jsx(rr,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,mainBlockId:V,hoistedSkipLinkId:X,hoistedA11yToolsId:Z}):m.jsx("main",{id:"main-content",tabIndex:-1,children:m.jsx(rr,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,hoistedSkipLinkId:X,hoistedA11yToolsId:Z})});return m.jsxs(m.Fragment,{children:[j&&m.jsx(qu,{...j.data??{}}),h?he:m.jsx("div",{className:"ahd-page-root",children:he}),Y&&m.jsx(Ju,{...Y.data??{}})]})})(),M&&m.jsx("script",{src:tc,defer:!0}),P&&m.jsx("script",{src:nc,defer:!0}),B&&m.jsx("script",{src:rc,defer:!0}),F&&m.jsx("script",{src:ac,defer:!0}),U&&m.jsx("script",{src:oc,defer:!0}),K&&m.jsx("script",{src:ic,defer:!0}),D&&m.jsx("script",{src:Zy,defer:!0})]}),Q=Bd.renderToStaticMarkup(q);let ee=nI(o?rI(Q):Q);const de=[M&&tc,P&&nc,B&&rc,F&&ac,U&&oc,K&&ic].filter(Boolean),$e=Oy()+(D?zy():"")+(de.length?jy(de):""),ke=ee.lastIndexOf("</div>");return ee=ke!==-1?ee.slice(0,ke)+$e+ee.slice(ke):ee+$e,u&&(ee=ee.replace("</head>",`${u}</head>`)),c&&(ee=ee.replace("</body>",`${c}</body>`)),ee}function Ad(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function oI(e){var t;return String((e==null?void 0:e.identifier)||((t=e==null?void 0:e.metadata)==null?void 0:t.identifier)||"")}function aI(e){const t=oI(e);return t?`<div id="${Hr(t)}"></div>`:""}function iI(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",r=((a=e==null?void 0:e[n])==null?void 0:a.data)??{},o=t.rootOverrides??{};try{return Fi(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang??r.lang,skipLink:o.skipLink??r.skipLink,accessibilityTools:o.accessibilityTools??r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,injectAnimationScript:t.injectAnimationScript,injectPostMessageScript:t.injectPostMessageScript??!0,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 Hr(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function lI(e,t,n={}){var d,f,p;const r=t.find(b=>!Ad(b)),o=((p=(f=(d=r==null?void 0:r.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)??{},a=n.lang||o.lang||"en",i=n.canvasColor||o.canvasColor||"#FFFFFF",l=n.fontFamily||(typeof o.fontFamily=="string"?o.fontFamily:"Inter, system-ui, sans-serif"),s=n.seoTitle?`<title>${Hr(n.seoTitle)}</title>`:"",u=n.seoDescription?`<meta name="description" content="${Hr(n.seoDescription)}" />`:"",c=n.extraHead??"",h=n.extraBodyBottom??"";return`<!doctype html>
1013
1013
  <html lang="${Hr(a)}">
1014
1014
  <head>
1015
1015
  <meta charset="utf-8" />
@@ -1027,5 +1027,5 @@ ${c}
1027
1027
  ${e}
1028
1028
  ${h}
1029
1029
  </body>
1030
- </html>`}function lI(e,t={}){const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],a=e.map(l=>{var c;if(Ad(l)){const h=oI(l);return n&&h&&o.push(h),{...l,content:h}}const s=(c=l==null?void 0:l.contentMetadata)==null?void 0:c.document;if(!s)return l!=null&&l.content&&o.push(String(l.content)),l;const u=aI(s,t);return u&&o.push(u),{...l,content:u,contentMetadata:{...l.contentMetadata??{},document:s}}}),i=o.join(`
1031
- `);return r?{html:iI(i,e,t),sectionHtml:o,flushedSections:a}:{html:i,sectionHtml:o,flushedSections:a}}function sI(e){var a,i,l,s,u,c,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(i=(a=t==null?void 0:t.root)==null?void 0:a.data)==null?void 0:i.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 r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const x=new Set,w=[];for(const k of r){const S=(c=(u=(s=(l=k==null?void 0:k.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray(S))for(const v of S)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const o=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function cI(e){var n,r,o,a,i,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 u=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"PagePilotLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:u}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(i=(a=t.contentMetadata)==null?void 0:a.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function lc(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,r)=>n==null?n:n[r],e)}function Hi(e,t){if(t){const n=lc(e,t);if(Array.isArray(n))return n;const r=Hi(e);if(r){const o=r.map(a=>lc(a,t)).filter(a=>a&&typeof a=="object");if(o.length>0)return o}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function uI(e,t){if(!t||t.length===0){const r={};for(const[o,a]of Object.entries(e))a!=null&&(r[o]=String(a));return r}const n={};for(const r of t){const o=e[r.id];o!=null&&o!==""&&(n[r.id]=String(o))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function dI(e,t,n,r){if(typeof AbortController>"u")return n(e,t);const o=new AbortController,a=setTimeout(()=>o.abort(),r);try{return await n(e,{...t,signal:o.signal})}finally{clearTimeout(a)}}async function yd(e,t={}){var h;const n=Array.isArray(e)?e:[],r=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(r.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const o=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!o){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of r)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:r.length,refreshed:0,errors:Object.fromEntries(r.map(f=>[f.id,d.message]))}}const a=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(r.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await dI(f,{method:p,headers:{Accept:"application/json",...t.headers}},o,a);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const k=await w.json(),S=Hi(k,b);if(!S)throw new Error(`GET ${f} → response had no array of rows`);const v=S.map(_=>uI(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const k=w instanceof Error?w:new Error(String(w));return i[d.id]=k.message,(x=t.onError)==null||x.call(t,d,k),null}}));if(l===0)return{fields:n,attempted:r.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:r.length,refreshed:l,errors:i}}async function Id(e,t={}){var r,o;const n=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;return yd(Array.isArray(n)?n:[],t)}function Rd(e,t){if(!e)return t();Ml(e);try{return t()}finally{Ml(null)}}function hI(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function fI(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function pI(e){const t=e;return!!(t.templateId&&t.baseUrl)}function gI(e){if(!e||typeof e!="object")return e;const t=ji(e);return!t||t.length===0?e:Bi(e,t)}async function sc(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=ji(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let r=n,o=null;return t.refreshApiDataSources&&(o=await Id(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),r=o.fields),{document:Bi(e,r),apiRefresh:o}}const mI=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","PagePilotLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Progress","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","Breadcrumb","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text","Mdx","QuillBlock"]);function bI(e){var r,o,a;const t=((r=e==null?void 0:e.data)==null?void 0:r.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:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(a=e==null?void 0:e.data)==null?void 0:a.hidden}}}function Td(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const a=o==null?void 0:o.type;a&&!mI.has(a)?(n[r]=bI(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${a}" — coerced to Text.`)):n[r]=o}return t?n:e}function Gi(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",r=gI(e),o=Td(r),a=((i=o==null?void 0:o[n])==null?void 0:i.data)??{};return Rd(t.recordType,()=>Fi(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??a.lang,skipLink:t.skipLink??a.skipLink,accessibilityTools:t.accessibilityTools??a.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,injectAnimationScript:t.injectAnimationScript,injectPostMessageScript:t.injectPostMessageScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Wi(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 Ui(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Zi(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function Ed(e,t,n){var u;const{wrapInDocumentShell:r=!0,headHtml:o,bodyBottomHtml:a}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await sc(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return Gi(c,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(i.map(async c=>{var p;const h=(p=c==null?void 0:c.contentMetadata)==null?void 0:p.document;if(!h)return c;const{document:d}=await sc(h,n),f=Td(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:f}}})),{html:s}=Rd(n.recordType??"page",()=>lI(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:r,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:o??(t==null?void 0:t.head)??"",extraBodyBottom:a??(t==null?void 0:t.bodyBottom)??""}));return s}async function xI(e,t){const{baseUrl:n,tenantId:r,pageId:o}=t,i=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=Wi(t),s=await Zi(i,{method:"GET",headers:Ui(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return Ed(e,s.body,{...t,fetchFn:l})}async function vI(e,t){var d,f;const{baseUrl:n,tenantId:r,pagePath:o,cache:a=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${r}/pagebypath/${encodeURIComponent(o)}?cache=${a}&update=${i}`,u=Wi(t),c=await Zi(s,{method:"GET",headers:Ui(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const h=((d=c.body)==null?void 0:d.data)??((f=c.body)==null?void 0:f.payload)??c.body;return Ed(e,h,{...t,fetchFn:u})}async function kI(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,a=t.replace(/\/+$/,""),i=Wi(e),l=o?`${a}/global-template/${r}`:`${a}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:Ui(e),u=await Zi(l,{method:"GET",headers:s},i);if(u.ok)return u.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${u.status}${u.text?`: ${u.text}`:""}`)}function wI(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const i={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,i)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,a]of r){const i=String(a),l=n.get(o);l?n.set(o,{...l,value:i}):n.set(o,{id:o,name:o,type:"text",value:i})}return Array.from(n.values())}async function SI(e,t){const n=await kI(t),r=cI(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=sI(n),a=wI(o,t.variables),i=Bi(r,a);return Gi(i,t)}function $I(e,t){return pI(t)?SI(e,t):fI(t)?vI(e,t):hI(t)?xI(e,t):Gi(e,t)}function _I(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function CI(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(r=>t[r]??r)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(r=>t[r]??r)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(r=>t[r]??r)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(r=>t[r]??r)}:{}})))))}function en(e,t){const n=ao(e,t),r={};n.forEach(a=>{r[a]=_I()});const o={};return n.forEach(a=>{const i=JSON.parse(JSON.stringify(e[a]));CI(i,r),o[r[a]]=i}),{newBlocks:o,idMap:r,newRootId:r[t]}}function AI(e,t,n){var r,o,a,i;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const u=s;if(u.data&&Array.isArray(u.data.childrenIds)&&u.data.childrenIds.includes(t)){const c=u.data.childrenIds.indexOf(t),h=[...u.data.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,childrenIds:h}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.childrenIds)&&u.data.props.childrenIds.includes(t)){const c=u.data.props.childrenIds.indexOf(t),h=[...u.data.props.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,childrenIds:h}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.columns)){const c=u.data.props.columns;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,columns:p}}}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.cells)){const c=u.data.props.cells;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,cells:p}}}}}}}if(u.type==="PricingAccordion"&&((r=u.data)!=null&&r.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].cardChildrenIds)?c[h].cardChildrenIds:[],f=Array.isArray(c[h].detailChildrenIds)?c[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=c.map(k=>({...k,cardChildrenIds:Array.isArray(k.cardChildrenIds)?[...k.cardChildrenIds]:[],detailChildrenIds:Array.isArray(k.detailChildrenIds)?[...k.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:w}}}}}}}if((u.type==="TabsBlock"||u.type==="VerticalAccordion"||u.type==="Carousel"||u.type==="Marquee"||u.type==="Pagination")&&((o=u.data)!=null&&o.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].contentChildrenIds)?c[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=c.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:p}}}}}}}if(u.type==="MenuPicker"&&((a=u.data)!=null&&a.props))for(const c of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(u.data.props[c])?u.data.props[c]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,[c]:f}}}}}}if(u.type==="Accordion"&&((i=u.data)!=null&&i.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=c[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}}}}return null}function yI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="FlexColumns")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:a,columnIndex:s}}}return null}function II(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(!((i==null?void 0:i.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:a,cellIndex:s}}}return null}function RI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="Pagination")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:a,cellIndex:s}}}return null}function TI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=i==null?void 0:i.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.items;if(Array.isArray(s)){for(let u=0;u<s.length;u++)if(Array.isArray((o=s[u])==null?void 0:o.contentChildrenIds)&&s[u].contentChildrenIds.includes(t))return{parentId:a,itemIndex:u,parentType:l}}}return null}function cc(e,t,n){var d,f,p;if(!e[t])return null;const r=e[t];if((r==null?void 0:r.type)==="TabsBlock"){const x=Array.isArray((f=(d=r.data)==null?void 0:d.props)==null?void 0:f.items)?r.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},k=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let S={...e};const v=[];let _=null;for(const I of k){if(!S[I])continue;const{newBlocks:R,newRootId:E}=en(S,I);S={...S,...R},v.push(E),_||(_=E)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return S={...S,[t]:{...r,data:{...r.data,props:{...r.data.props,items:C}}}},{updatedDocument:S,newRootId:y}}const o=II(e,n);if(o){const b=e[o.gridId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],_=S.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?S.length:w*k,y=Array.from({length:_},(M,P)=>S[P]??{childrenIds:[]});let C=y.findIndex((M,P)=>P>o.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(C===-1&&(C=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=en(e,t),E=y.map((M,P)=>P===C?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[o.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:R}}const a=RI(e,n);if(a){const b=e[a.paginationId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*k,S.length),_=Array.from({length:v},(L,M)=>S[M]??{childrenIds:[]});let y=_.findIndex((L,M)=>M>a.cellIndex&&(!Array.isArray(L==null?void 0:L.childrenIds)||L.childrenIds.length===0));y===-1&&(y=_.findIndex(L=>!Array.isArray(L==null?void 0:L.childrenIds)||L.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=en(e,t),R=_.map((L,M)=>M===y?{...L,childrenIds:[...(L==null?void 0:L.childrenIds)??[],I]}:L);return{updatedDocument:{...e,...C,[a.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const i=yI(e,n);if(i){const b=e[i.flexId],x=b.data.props??{},w=x.columnsCount??2,k=Array.isArray(x.columns)?x.columns:[],S=Array.from({length:w},(R,E)=>k[E]??{childrenIds:[]});let v=S.findIndex((R,E)=>E>i.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=S.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=en(e,t),C=S.map((R,E)=>E===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[i.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=TI(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,k=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(k===-1&&(k=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),k===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,k=x.length-1}else return null;const{newBlocks:S,newRootId:v}=en(w,t),_=x.map((C,I)=>I===k?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...S,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:u}=en(e,t),c={...e,...s},h=AI(c,n,u);return h&&(c[h.parentId]=h.updatedParent),{updatedDocument:c,newRootId:u}}function Nd(e,t){const n=o=>Array.isArray(o)?o.filter(a=>!t.has(a)):o,r={};for(const[o,a]of Object.entries(e)){if(t.has(o))continue;const i=a;if(!(i!=null&&i.data)){r[o]=i;continue}const l={...i.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(u=>({...u,childrenIds:n(u.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(u=>u===null||typeof u!="object"?u:{...u,childrenIds:n(u.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(u=>({...u,...u.titleChildrenIds!==void 0?{titleChildrenIds:n(u.titleChildrenIds)}:{},...u.contentChildrenIds!==void 0?{contentChildrenIds:n(u.contentChildrenIds)}:{},...u.cardChildrenIds!==void 0?{cardChildrenIds:n(u.cardChildrenIds)}:{},...u.detailChildrenIds!==void 0?{detailChildrenIds:n(u.detailChildrenIds)}:{}}))),l.props=s}r[o]={...i,data:l}}return r}function EI(e){var r;const t=e==null?void 0:e.type,n=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};if(t==="Grid"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],s=i.some(c=>(c==null?void 0:c.colStart)!=null||(c==null?void 0:c.rowStart)!=null||(c==null?void 0:c.colSpan)!=null||(c==null?void 0:c.rowSpan)!=null)?i.length:o*a,u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=i[h])==null?void 0:d.childrenIds)?i[h].childrenIds:[]}});return{slotCount:s,slots:u}}if(t==="FlexColumns"){const o=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),a=Array.isArray(n.columns)?n.columns:[],i=Array.from({length:o},(l,s)=>{var u;return{childrenIds:Array.isArray((u=a[s])==null?void 0:u.childrenIds)?a[s].childrenIds:[]}});return{slotCount:o,slots:i}}if(t==="Carousel"||t==="Marquee"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="TabsBlock"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="Pagination"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],l=Math.max(o*a,i.length),s=Array.from({length:l},(u,c)=>{var h;return{childrenIds:Array.isArray((h=i[c])==null?void 0:h.childrenIds)?i[c].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function hr(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Er=new WeakMap;function vo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const r=Er.get(n);if(r!==void 0)return r&&r.containerId===t?r:r&&{...r,containerId:t};if(!hr(n.type))return Er.set(n,null),null;const o=EI(n);if(!o)return Er.set(n,null),null;const{slotCount:a,slots:i}=o,l=i.findIndex(c=>c.childrenIds.length>0),s=i.filter(c=>c.childrenIds.length===0).length,u={containerId:t,type:n.type,slotCount:a,slots:i,firstFilledSlot:l,emptySlotCount:s};return Er.set(n,u),u}function ai(e,t){for(const[n,r]of Object.entries(e)){if(!hr(r==null?void 0:r.type))continue;const o=vo(e,n);if(o!=null&&o.slots.some(a=>a.childrenIds.includes(t)))return n}return null}function Md(e,t,n,r){var u;const o=e[t];if(!o||!hr(o.type))return e;const a=((u=o.data)==null?void 0:u.props)??{};if(o.type==="Grid"){let c=a.columnsCount??2,h=a.rowsCount??2;if(c*h>=n)return e;r==="columns"?c=Math.max(c,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,c)));const d=c*h,f=Array.isArray(a.cells)?a.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:c,rowsCount:h,cells:p}}}}}if(o.type==="Carousel"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Marquee"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="TabsBlock"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Pagination"){const c=a.columnsCount??2,h=a.rowsCount??2,d=Array.isArray(a.cells)?a.cells:[];if(Math.max(c*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,cells:p}}}}}if((a.columnsCount??(Array.isArray(a.columns)?a.columns.length:2))>=n)return e;const l=Array.isArray(a.columns)?a.columns:[],s=Array.from({length:n},(c,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:n,columns:s}}}}}function Pd(e,t,n){var u;const r=e[t];if(!r||!hr(r.type))return e;const o=vo(e,t);if(!o)return e;let a=-1;o.slots.forEach((c,h)=>{c.childrenIds.length>0&&(a=h)});const i=Math.max(n,a+1,1);if(i>=o.slotCount)return e;const l=((u=r.data)==null?void 0:u.props)??{};if(r.type==="Pagination"){const c=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(i,c);if(h>=o.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,cells:d.slice(0,h)}}}}}if(r.type==="Carousel"||r.type==="Marquee"||r.type==="TabsBlock"){const c=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,items:c.slice(0,i)}}}}}if(r.type==="Grid"){const c=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(i/Math.max(1,c)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,rowsCount:d,cells:f.slice(0,c*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,columnsCount:i,columns:s.slice(0,i)}}}}}function NI(e,t,n,r="columns"){const o=t==null?void 0:t.sourceBlockId;if(!o||!e[o])return null;const a=Math.max(1,n);let i=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===a)return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<a){let h=!1;for(;s<a;){const d=l.length>0?l[l.length-1]:o;let f=cc(i,o,d);if(!f){const p=ai(i,o);if(!p){h=!0;break}const b=vo(i,p),x=((b==null?void 0:b.slotCount)??0)+(a-s),w=Md(i,p,x,r);if(w===i){h=!0;break}if(i=w,f=cc(i,o,d),!f){h=!0;break}}i=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:h}}const u=a,c=l.slice(u-1);if(c.length>0){const h=new Set;for(const f of c)for(const p of ao(i,f))h.add(p);i=Nd(i,h);const d=ai(i,o);d&&(i=Pd(i,d,u)),l=l.slice(0,u-1),s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=rr;exports.ReaderBlock=Pe;exports.ReaderBlockSchema=$d;exports.ReaderDocumentSchema=Ty;exports.cloneSubtree=en;exports.extractApiRows=Hi;exports.findRepeatableContainerOf=ai;exports.getRepeatableContainerInfo=vo;exports.growContainerToFit=Md;exports.isRepeatableContainerType=hr;exports.reconcileRepeatFieldRowCount=NI;exports.refreshApiDataSources=yd;exports.refreshDocumentApiDataSources=Id;exports.removeSubtree=Nd;exports.renderToStaticHtml=$I;exports.renderToStaticMarkup=Fi;exports.shrinkContainerToFit=Pd;
1030
+ </html>`}function sI(e,t={}){const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],a=e.map(l=>{var c;if(Ad(l)){const h=aI(l);return n&&h&&o.push(h),{...l,content:h}}const s=(c=l==null?void 0:l.contentMetadata)==null?void 0:c.document;if(!s)return l!=null&&l.content&&o.push(String(l.content)),l;const u=iI(s,t);return u&&o.push(u),{...l,content:u,contentMetadata:{...l.contentMetadata??{},document:s}}}),i=o.join(`
1031
+ `);return r?{html:lI(i,e,t),sectionHtml:o,flushedSections:a}:{html:i,sectionHtml:o,flushedSections:a}}function cI(e){var a,i,l,s,u,c,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(i=(a=t==null?void 0:t.root)==null?void 0:a.data)==null?void 0:i.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 r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const x=new Set,w=[];for(const k of r){const S=(c=(u=(s=(l=k==null?void 0:k.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray(S))for(const v of S)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const o=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function uI(e){var n,r,o,a,i,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 u=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"PagePilotLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:u}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(i=(a=t.contentMetadata)==null?void 0:a.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function lc(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,r)=>n==null?n:n[r],e)}function Hi(e,t){if(t){const n=lc(e,t);if(Array.isArray(n))return n;const r=Hi(e);if(r){const o=r.map(a=>lc(a,t)).filter(a=>a&&typeof a=="object");if(o.length>0)return o}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function dI(e,t){if(!t||t.length===0){const r={};for(const[o,a]of Object.entries(e))a!=null&&(r[o]=String(a));return r}const n={};for(const r of t){const o=e[r.id];o!=null&&o!==""&&(n[r.id]=String(o))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function hI(e,t,n,r){if(typeof AbortController>"u")return n(e,t);const o=new AbortController,a=setTimeout(()=>o.abort(),r);try{return await n(e,{...t,signal:o.signal})}finally{clearTimeout(a)}}async function yd(e,t={}){var h;const n=Array.isArray(e)?e:[],r=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(r.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const o=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!o){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of r)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:r.length,refreshed:0,errors:Object.fromEntries(r.map(f=>[f.id,d.message]))}}const a=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(r.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await hI(f,{method:p,headers:{Accept:"application/json",...t.headers}},o,a);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const k=await w.json(),S=Hi(k,b);if(!S)throw new Error(`GET ${f} → response had no array of rows`);const v=S.map(_=>dI(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const k=w instanceof Error?w:new Error(String(w));return i[d.id]=k.message,(x=t.onError)==null||x.call(t,d,k),null}}));if(l===0)return{fields:n,attempted:r.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:r.length,refreshed:l,errors:i}}async function Id(e,t={}){var r,o;const n=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;return yd(Array.isArray(n)?n:[],t)}function Rd(e,t){if(!e)return t();Ml(e);try{return t()}finally{Ml(null)}}function fI(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function pI(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function gI(e){const t=e;return!!(t.templateId&&t.baseUrl)}function mI(e){if(!e||typeof e!="object")return e;const t=ji(e);return!t||t.length===0?e:Bi(e,t)}async function sc(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=ji(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let r=n,o=null;return t.refreshApiDataSources&&(o=await Id(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),r=o.fields),{document:Bi(e,r),apiRefresh:o}}const bI=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","PagePilotLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Progress","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","Breadcrumb","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text","Mdx","QuillBlock"]);function xI(e){var r,o,a;const t=((r=e==null?void 0:e.data)==null?void 0:r.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:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(a=e==null?void 0:e.data)==null?void 0:a.hidden}}}function Td(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const a=o==null?void 0:o.type;a&&!bI.has(a)?(n[r]=xI(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${a}" — coerced to Text.`)):n[r]=o}return t?n:e}function Gi(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",r=mI(e),o=Td(r),a=((i=o==null?void 0:o[n])==null?void 0:i.data)??{};return Rd(t.recordType,()=>Fi(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??a.lang,skipLink:t.skipLink??a.skipLink,accessibilityTools:t.accessibilityTools??a.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,injectAnimationScript:t.injectAnimationScript,injectPostMessageScript:t.injectPostMessageScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Wi(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 Ui(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Zi(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function Ed(e,t,n){var u;const{wrapInDocumentShell:r=!0,headHtml:o,bodyBottomHtml:a}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await sc(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return Gi(c,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(i.map(async c=>{var p;const h=(p=c==null?void 0:c.contentMetadata)==null?void 0:p.document;if(!h)return c;const{document:d}=await sc(h,n),f=Td(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:f}}})),{html:s}=Rd(n.recordType??"page",()=>sI(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:r,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:o??(t==null?void 0:t.head)??"",extraBodyBottom:a??(t==null?void 0:t.bodyBottom)??""}));return s}async function vI(e,t){const{baseUrl:n,tenantId:r,pageId:o}=t,i=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=Wi(t),s=await Zi(i,{method:"GET",headers:Ui(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return Ed(e,s.body,{...t,fetchFn:l})}async function kI(e,t){var d,f;const{baseUrl:n,tenantId:r,pagePath:o,cache:a=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${r}/pagebypath/${encodeURIComponent(o)}?cache=${a}&update=${i}`,u=Wi(t),c=await Zi(s,{method:"GET",headers:Ui(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const h=((d=c.body)==null?void 0:d.data)??((f=c.body)==null?void 0:f.payload)??c.body;return Ed(e,h,{...t,fetchFn:u})}async function wI(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,a=t.replace(/\/+$/,""),i=Wi(e),l=o?`${a}/global-template/${r}`:`${a}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:Ui(e),u=await Zi(l,{method:"GET",headers:s},i);if(u.ok)return u.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${u.status}${u.text?`: ${u.text}`:""}`)}function SI(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const i={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,i)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,a]of r){const i=String(a),l=n.get(o);l?n.set(o,{...l,value:i}):n.set(o,{id:o,name:o,type:"text",value:i})}return Array.from(n.values())}async function $I(e,t){const n=await wI(t),r=uI(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=cI(n),a=SI(o,t.variables),i=Bi(r,a);return Gi(i,t)}function _I(e,t){return gI(t)?$I(e,t):pI(t)?kI(e,t):fI(t)?vI(e,t):Gi(e,t)}function CI(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function AI(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(r=>t[r]??r)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(r=>t[r]??r)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(r=>t[r]??r)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(r=>t[r]??r)}:{}})))))}function en(e,t){const n=ao(e,t),r={};n.forEach(a=>{r[a]=CI()});const o={};return n.forEach(a=>{const i=JSON.parse(JSON.stringify(e[a]));AI(i,r),o[r[a]]=i}),{newBlocks:o,idMap:r,newRootId:r[t]}}function yI(e,t,n){var r,o,a,i;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const u=s;if(u.data&&Array.isArray(u.data.childrenIds)&&u.data.childrenIds.includes(t)){const c=u.data.childrenIds.indexOf(t),h=[...u.data.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,childrenIds:h}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.childrenIds)&&u.data.props.childrenIds.includes(t)){const c=u.data.props.childrenIds.indexOf(t),h=[...u.data.props.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,childrenIds:h}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.columns)){const c=u.data.props.columns;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,columns:p}}}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.cells)){const c=u.data.props.cells;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,cells:p}}}}}}}if(u.type==="PricingAccordion"&&((r=u.data)!=null&&r.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].cardChildrenIds)?c[h].cardChildrenIds:[],f=Array.isArray(c[h].detailChildrenIds)?c[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=c.map(k=>({...k,cardChildrenIds:Array.isArray(k.cardChildrenIds)?[...k.cardChildrenIds]:[],detailChildrenIds:Array.isArray(k.detailChildrenIds)?[...k.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:w}}}}}}}if((u.type==="TabsBlock"||u.type==="VerticalAccordion"||u.type==="Carousel"||u.type==="Marquee"||u.type==="Pagination")&&((o=u.data)!=null&&o.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].contentChildrenIds)?c[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=c.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:p}}}}}}}if(u.type==="MenuPicker"&&((a=u.data)!=null&&a.props))for(const c of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(u.data.props[c])?u.data.props[c]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,[c]:f}}}}}}if(u.type==="Accordion"&&((i=u.data)!=null&&i.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=c[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}}}}return null}function II(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="FlexColumns")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:a,columnIndex:s}}}return null}function RI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(!((i==null?void 0:i.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:a,cellIndex:s}}}return null}function TI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="Pagination")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:a,cellIndex:s}}}return null}function EI(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=i==null?void 0:i.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.items;if(Array.isArray(s)){for(let u=0;u<s.length;u++)if(Array.isArray((o=s[u])==null?void 0:o.contentChildrenIds)&&s[u].contentChildrenIds.includes(t))return{parentId:a,itemIndex:u,parentType:l}}}return null}function cc(e,t,n){var d,f,p;if(!e[t])return null;const r=e[t];if((r==null?void 0:r.type)==="TabsBlock"){const x=Array.isArray((f=(d=r.data)==null?void 0:d.props)==null?void 0:f.items)?r.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},k=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let S={...e};const v=[];let _=null;for(const I of k){if(!S[I])continue;const{newBlocks:R,newRootId:E}=en(S,I);S={...S,...R},v.push(E),_||(_=E)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return S={...S,[t]:{...r,data:{...r.data,props:{...r.data.props,items:C}}}},{updatedDocument:S,newRootId:y}}const o=RI(e,n);if(o){const b=e[o.gridId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],_=S.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?S.length:w*k,y=Array.from({length:_},(M,P)=>S[P]??{childrenIds:[]});let C=y.findIndex((M,P)=>P>o.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(C===-1&&(C=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=en(e,t),E=y.map((M,P)=>P===C?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[o.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:R}}const a=TI(e,n);if(a){const b=e[a.paginationId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*k,S.length),_=Array.from({length:v},(L,M)=>S[M]??{childrenIds:[]});let y=_.findIndex((L,M)=>M>a.cellIndex&&(!Array.isArray(L==null?void 0:L.childrenIds)||L.childrenIds.length===0));y===-1&&(y=_.findIndex(L=>!Array.isArray(L==null?void 0:L.childrenIds)||L.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=en(e,t),R=_.map((L,M)=>M===y?{...L,childrenIds:[...(L==null?void 0:L.childrenIds)??[],I]}:L);return{updatedDocument:{...e,...C,[a.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const i=II(e,n);if(i){const b=e[i.flexId],x=b.data.props??{},w=x.columnsCount??2,k=Array.isArray(x.columns)?x.columns:[],S=Array.from({length:w},(R,E)=>k[E]??{childrenIds:[]});let v=S.findIndex((R,E)=>E>i.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=S.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=en(e,t),C=S.map((R,E)=>E===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[i.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=EI(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,k=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(k===-1&&(k=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),k===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,k=x.length-1}else return null;const{newBlocks:S,newRootId:v}=en(w,t),_=x.map((C,I)=>I===k?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...S,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:u}=en(e,t),c={...e,...s},h=yI(c,n,u);return h&&(c[h.parentId]=h.updatedParent),{updatedDocument:c,newRootId:u}}function Nd(e,t){const n=o=>Array.isArray(o)?o.filter(a=>!t.has(a)):o,r={};for(const[o,a]of Object.entries(e)){if(t.has(o))continue;const i=a;if(!(i!=null&&i.data)){r[o]=i;continue}const l={...i.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(u=>({...u,childrenIds:n(u.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(u=>u===null||typeof u!="object"?u:{...u,childrenIds:n(u.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(u=>({...u,...u.titleChildrenIds!==void 0?{titleChildrenIds:n(u.titleChildrenIds)}:{},...u.contentChildrenIds!==void 0?{contentChildrenIds:n(u.contentChildrenIds)}:{},...u.cardChildrenIds!==void 0?{cardChildrenIds:n(u.cardChildrenIds)}:{},...u.detailChildrenIds!==void 0?{detailChildrenIds:n(u.detailChildrenIds)}:{}}))),l.props=s}r[o]={...i,data:l}}return r}function NI(e){var r;const t=e==null?void 0:e.type,n=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};if(t==="Grid"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],s=i.some(c=>(c==null?void 0:c.colStart)!=null||(c==null?void 0:c.rowStart)!=null||(c==null?void 0:c.colSpan)!=null||(c==null?void 0:c.rowSpan)!=null)?i.length:o*a,u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=i[h])==null?void 0:d.childrenIds)?i[h].childrenIds:[]}});return{slotCount:s,slots:u}}if(t==="FlexColumns"){const o=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),a=Array.isArray(n.columns)?n.columns:[],i=Array.from({length:o},(l,s)=>{var u;return{childrenIds:Array.isArray((u=a[s])==null?void 0:u.childrenIds)?a[s].childrenIds:[]}});return{slotCount:o,slots:i}}if(t==="Carousel"||t==="Marquee"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="TabsBlock"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="Pagination"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],l=Math.max(o*a,i.length),s=Array.from({length:l},(u,c)=>{var h;return{childrenIds:Array.isArray((h=i[c])==null?void 0:h.childrenIds)?i[c].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function hr(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Er=new WeakMap;function vo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const r=Er.get(n);if(r!==void 0)return r&&r.containerId===t?r:r&&{...r,containerId:t};if(!hr(n.type))return Er.set(n,null),null;const o=NI(n);if(!o)return Er.set(n,null),null;const{slotCount:a,slots:i}=o,l=i.findIndex(c=>c.childrenIds.length>0),s=i.filter(c=>c.childrenIds.length===0).length,u={containerId:t,type:n.type,slotCount:a,slots:i,firstFilledSlot:l,emptySlotCount:s};return Er.set(n,u),u}function ai(e,t){for(const[n,r]of Object.entries(e)){if(!hr(r==null?void 0:r.type))continue;const o=vo(e,n);if(o!=null&&o.slots.some(a=>a.childrenIds.includes(t)))return n}return null}function Md(e,t,n,r){var u;const o=e[t];if(!o||!hr(o.type))return e;const a=((u=o.data)==null?void 0:u.props)??{};if(o.type==="Grid"){let c=a.columnsCount??2,h=a.rowsCount??2;if(c*h>=n)return e;r==="columns"?c=Math.max(c,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,c)));const d=c*h,f=Array.isArray(a.cells)?a.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:c,rowsCount:h,cells:p}}}}}if(o.type==="Carousel"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Marquee"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="TabsBlock"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Pagination"){const c=a.columnsCount??2,h=a.rowsCount??2,d=Array.isArray(a.cells)?a.cells:[];if(Math.max(c*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,cells:p}}}}}if((a.columnsCount??(Array.isArray(a.columns)?a.columns.length:2))>=n)return e;const l=Array.isArray(a.columns)?a.columns:[],s=Array.from({length:n},(c,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:n,columns:s}}}}}function Pd(e,t,n){var u;const r=e[t];if(!r||!hr(r.type))return e;const o=vo(e,t);if(!o)return e;let a=-1;o.slots.forEach((c,h)=>{c.childrenIds.length>0&&(a=h)});const i=Math.max(n,a+1,1);if(i>=o.slotCount)return e;const l=((u=r.data)==null?void 0:u.props)??{};if(r.type==="Pagination"){const c=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(i,c);if(h>=o.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,cells:d.slice(0,h)}}}}}if(r.type==="Carousel"||r.type==="Marquee"||r.type==="TabsBlock"){const c=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,items:c.slice(0,i)}}}}}if(r.type==="Grid"){const c=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(i/Math.max(1,c)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,rowsCount:d,cells:f.slice(0,c*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,columnsCount:i,columns:s.slice(0,i)}}}}}function MI(e,t,n,r="columns"){const o=t==null?void 0:t.sourceBlockId;if(!o||!e[o])return null;const a=Math.max(1,n);let i=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===a)return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<a){let h=!1;for(;s<a;){const d=l.length>0?l[l.length-1]:o;let f=cc(i,o,d);if(!f){const p=ai(i,o);if(!p){h=!0;break}const b=vo(i,p),x=((b==null?void 0:b.slotCount)??0)+(a-s),w=Md(i,p,x,r);if(w===i){h=!0;break}if(i=w,f=cc(i,o,d),!f){h=!0;break}}i=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:h}}const u=a,c=l.slice(u-1);if(c.length>0){const h=new Set;for(const f of c)for(const p of ao(i,f))h.add(p);i=Nd(i,h);const d=ai(i,o);d&&(i=Pd(i,d,u)),l=l.slice(0,u-1),s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=rr;exports.ReaderBlock=Pe;exports.ReaderBlockSchema=$d;exports.ReaderDocumentSchema=Ey;exports.cloneSubtree=en;exports.extractApiRows=Hi;exports.findRepeatableContainerOf=ai;exports.getRepeatableContainerInfo=vo;exports.growContainerToFit=Md;exports.isRepeatableContainerType=hr;exports.reconcileRepeatFieldRowCount=MI;exports.refreshApiDataSources=yd;exports.refreshDocumentApiDataSources=Id;exports.removeSubtree=Nd;exports.renderToStaticHtml=_I;exports.renderToStaticMarkup=Fi;exports.shrinkContainerToFit=Pd;