pagepilot-visual-editor 1.0.25 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/blocks-internal/block-list/src/index.d.ts +1 -1
  3. package/dist/blocks-internal/block-stepper/src/index.d.ts +1 -1
  4. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +1 -0
  5. package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +4 -1
  6. package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +1 -1
  7. package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +22 -4
  8. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/GroupBlockPreview.d.ts +7 -0
  9. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ItemsArrayRepeatSection.d.ts +14 -0
  10. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarDataReferencePanel.d.ts +24 -0
  11. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +12 -0
  12. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +8 -0
  13. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariablesPanelContext.d.ts +10 -0
  14. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/dataReferenceUtils.d.ts +24 -6
  15. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/index.d.ts +8 -1
  16. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/repeatRowActions.d.ts +27 -0
  17. package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +20 -0
  18. package/dist/editor-sample/App/InspectorDrawer/components/DateFieldControls.d.ts +12 -0
  19. package/dist/editor-sample/App/InspectorDrawer/components/DateTimeFieldControls.d.ts +14 -0
  20. package/dist/editor-sample/App/InspectorDrawer/components/TimeFieldControls.d.ts +12 -0
  21. package/dist/editor-sample/App/shared/editor.styles.d.ts +2 -2
  22. package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -0
  23. package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +4 -4
  24. package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +14 -0
  25. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +2 -0
  26. package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +3 -4
  27. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +17 -1
  28. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/ResponsiveFontSizePopover.d.ts +43 -0
  29. package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +7 -0
  30. package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +93 -2
  31. package/dist/editor-sample/documents/blocks/helpers/responsiveFontSizeCss.d.ts +72 -0
  32. package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +5 -0
  33. package/dist/editor-sample/documents/editor/core.d.ts +17 -2
  34. package/dist/editor-sample/documents/editor/templateVariables.d.ts +3 -3
  35. package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +1 -0
  36. package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +14 -0
  37. package/dist/email-builder-core/renderers/pageScripts.d.ts +1 -0
  38. package/dist/email-builder-core/utils/substituteTemplateVars.d.ts +32 -0
  39. package/dist/host-stubs/view/shared/common/InfoTooltip.d.ts +19 -0
  40. package/dist/host-stubs/view/shared/timeZones.d.ts +4 -0
  41. package/dist/{index-RcTlEXS2.cjs → index-BNqa-SV3.cjs} +317 -288
  42. package/dist/{index-uAL1Hpt1.js → index-C4zNSWXe.js} +1 -1
  43. package/dist/{index-Cx_nuxVE.cjs → index-Cu-dtp0Q.cjs} +1 -1
  44. package/dist/{index-txCEAgzG.js → index-Dk7bp7l0.js} +29768 -26808
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.ts +2 -2
  47. package/dist/index.js +15 -12
  48. package/dist/render-core/apiDataSource.d.ts +50 -0
  49. package/dist/render-core/dateFormats.d.ts +67 -0
  50. package/dist/render-core/repeatRowManagement.d.ts +96 -0
  51. package/dist/render-core/templateBaking.d.ts +105 -2
  52. package/dist/render.cjs +186 -163
  53. package/dist/render.d.ts +4 -2
  54. package/dist/render.js +8297 -7057
  55. package/dist/renderToStaticHtml.d.ts +58 -3
  56. package/dist/{xlsx-CMNIZUaT.cjs → xlsx-C6JQXDb3.cjs} +1 -1
  57. package/dist/{xlsx-DSQPVb8u.js → xlsx-Cd1etxFW.js} +1 -1
  58. package/package.json +1 -1
package/dist/render.cjs CHANGED
@@ -1,88 +1,88 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),is=require("react-dom/server"),G=require("react");var Ga;function E(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=r.prototype,u=Object.keys(c);for(let p=0;p<u.length;p++){const d=u[p];d in l||(l[d]=c[d].bind(l))}}const a=(n==null?void 0:n.Parent)??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function r(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(r,"init",{value:o}),Object.defineProperty(r,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(r,"name",{value:e}),r}class Mt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ki extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ga=globalThis).__zod_globalConfig??(Ga.__zod_globalConfig={});const ka=globalThis.__zod_globalConfig;function at(e){return ka}function _i(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,a])=>t.indexOf(+o)===-1).map(([o,a])=>a)}function Bo(e,t){return typeof t=="bigint"?t.toString():t}function Un(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function _a(e){return e==null}function $a(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ls(e,t){const n=e/t,o=Math.round(n),a=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<a?0:n-o}const Ua=Symbol("evaluating");function K(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Ua)return o===void 0&&(o=Ua,o=n()),o},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function wt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function pt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Za(e){return JSON.stringify(e)}function ss(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const $i="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function nn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const cs=Un(()=>{var e;if(ka.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 Pt(e){if(nn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(nn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ci(e){return Pt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const us=new Set(["string","number","symbol"]);function Ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function 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 ds(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const hs={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 fs(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=pt(e._zod.def,{get shape(){const r={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(r[l]=n.shape[l])}return wt(this,"shape",r),r},checks:[]});return mt(e,i)}function ps(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=pt(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete r[l]}return wt(this,"shape",r),r},checks:[]});return mt(e,i)}function ms(e,t){if(!Pt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const r in t)if(Object.getOwnPropertyDescriptor(i,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=pt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return wt(this,"shape",i),i}});return mt(e,a)}function gs(e,t){if(!Pt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=pt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return wt(this,"shape",o),o}});return mt(e,n)}function bs(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=pt(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return wt(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return mt(e,n)}function vs(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=pt(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(const c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return wt(this,"shape",s),s},checks:[]});return mt(t,r)}function xs(e,t,n){const o=pt(t._zod.def,{get shape(){const a=t._zod.def.shape,i={...a};if(n)for(const r in n){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(i[r]=new e({type:"nonoptional",innerType:a[r]}))}else for(const r in a)i[r]=new e({type:"nonoptional",innerType:a[r]});return wt(this,"shape",i),i}});return mt(t,o)}function Rt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function Ss(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function ht(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function vn(e){return typeof e=="string"?e:e==null?void 0:e.message}function rt(e,t,n){var s,c,u,p,d,h;const o=e.message?e.message:vn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??vn((p=t==null?void 0:t.error)==null?void 0:p.call(t,e))??vn((d=n.customError)==null?void 0:d.call(n,e))??vn((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:a,continue:i,input:r,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=r),l}function Ca(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function on(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const Ai=(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,Bo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yi=E("$ZodError",Ai),Ni=E("$ZodError",Ai,{Parent:Error});function ws(e,t=n=>n.message){const n={},o=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):o.push(t(a));return{formErrors:o,fieldErrors:n}}function ks(e,t=n=>n.message){const n={_errors:[]},o=(a,i=[])=>{for(const r of a.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(l=>o({issues:l},[...i,...r.path]));else if(r.code==="invalid_key")o({issues:r.issues},[...i,...r.path]);else if(r.code==="invalid_element")o({issues:r.issues},[...i,...r.path]);else{const l=[...i,...r.path];if(l.length===0)n._errors.push(t(r));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(r))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const Aa=e=>(t,n,o,a)=>{const i=o?{...o,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},i);if(r instanceof Promise)throw new Mt;if(r.issues.length){const l=new((a==null?void 0:a.Err)??e)(r.issues.map(s=>rt(s,i,at())));throw $i(l,a==null?void 0:a.callee),l}return r.value},ya=e=>async(t,n,o,a)=>{const i=o?{...o,async:!0}:{async:!0};let r=t._zod.run({value:n,issues:[]},i);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new((a==null?void 0:a.Err)??e)(r.issues.map(s=>rt(s,i,at())));throw $i(l,a==null?void 0:a.callee),l}return r.value},Zn=e=>(t,n,o)=>{const a=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new Mt;return i.issues.length?{success:!1,error:new(e??yi)(i.issues.map(r=>rt(r,a,at())))}:{success:!0,data:i.value}},_s=Zn(Ni),Wn=e=>async(t,n,o)=>{const a=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(r=>rt(r,a,at())))}:{success:!0,data:i.value}},$s=Wn(Ni),Cs=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Aa(e)(t,n,a)},As=e=>(t,n,o)=>Aa(e)(t,n,o),ys=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return ya(e)(t,n,a)},Ns=e=>async(t,n,o)=>ya(e)(t,n,o),Rs=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Zn(e)(t,n,a)},Es=e=>(t,n,o)=>Zn(e)(t,n,o),Is=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Wn(e)(t,n,a)},Ms=e=>async(t,n,o)=>Wn(e)(t,n,o),Ts=/^[cC][0-9a-z]{6,}$/,Ps=/^[0-9a-z]+$/,Os=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ls=/^[0-9a-vA-V]{20}$/,zs=/^[A-Za-z0-9]{27}$/,js=/^[a-zA-Z0-9_-]{21}$/,Bs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ds=/^([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})$/,Wa=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)$/,Hs=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Fs="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Gs(){return new RegExp(Fs,"u")}const Us=/^(?:(?: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])$/,Zs=/^(([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}|:))$/,Ws=/^((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])$/,qs=/^(([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])$/,Vs=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ri=/^[A-Za-z0-9_-]*$/,Ys=/^https?$/,Ks=/^\+[1-9]\d{6,14}$/,Ei="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Js=new RegExp(`^${Ei}$`);function Ii(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 Xs(e){return new RegExp(`^${Ii(e)}$`)}function Qs(e){const t=Ii({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${Ei}T(?:${o})$`)}const ec=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}$`)},tc=/^-?\d+$/,Mi=/^-?\d+(?:\.\d+)?$/,nc=/^(?:true|false)$/i,oc=/^[^A-Z]*$/,ac=/^[^a-z]*$/,Re=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ti={number:"number",bigint:"bigint",object:"date"},Pi=E("$ZodCheckLessThan",(e,t)=>{Re.init(e,t);const n=Ti[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,i=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Oi=E("$ZodCheckGreaterThan",(e,t)=>{Re.init(e,t);const n=Ti[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,i=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rc=E("$ZodCheckMultipleOf",(e,t)=>{Re.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):ls(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})}}),ic=E("$ZodCheckNumberFormat",(e,t)=>{var r;Re.init(e,t),t.format=t.format||"float64";const n=(r=t.format)==null?void 0:r.includes("int"),o=n?"int":"number",[a,i]=hs[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=a,s.maximum=i,n&&(s.pattern=tc)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<a&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),lc=E("$ZodCheckMaxLength",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const a=o.value;if(a.length<=t.maximum)return;const r=Ca(a);o.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),sc=E("$ZodCheckMinLength",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const a=o.value;if(a.length>=t.minimum)return;const r=Ca(a);o.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),cc=E("$ZodCheckLengthEquals",(e,t)=>{var n;Re.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!_a(a)&&a.length!==void 0}),e._zod.onattach.push(o=>{const a=o._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=o=>{const a=o.value,i=a.length;if(i===t.length)return;const r=Ca(a),l=i>t.length;o.issues.push({origin:r,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),qn=E("$ZodCheckStringFormat",(e,t)=>{var n,o;Re.init(e,t),e._zod.onattach.push(a=>{const i=a._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),uc=E("$ZodCheckRegex",(e,t)=>{qn.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})}}),dc=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=oc),qn.init(e,t)}),hc=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ac),qn.init(e,t)}),fc=E("$ZodCheckIncludes",(e,t)=>{Re.init(e,t);const n=Ot(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),pc=E("$ZodCheckStartsWith",(e,t)=>{Re.init(e,t);const n=new RegExp(`^${Ot(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),mc=E("$ZodCheckEndsWith",(e,t)=>{Re.init(e,t);const n=new RegExp(`.*${Ot(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),gc=E("$ZodCheckOverwrite",(e,t)=>{Re.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class bc{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
2
- `).filter(r=>r),a=Math.min(...o.map(r=>r.length-r.trimStart().length)),i=o.map(r=>r.slice(a)).map(r=>" ".repeat(this.indent*2)+r);for(const r of i)this.content.push(r)}compile(){const t=Function,n=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,a.join(`
3
- `))}}const vc={major:4,minor:4,patch:3},se=E("$ZodType",(e,t)=>{var a;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vc;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const r of i._zod.onattach)r(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Rt(l),p;for(const d of s){if(d._zod.def.when){if(Ss(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,m=d._zod.check(l);if(m instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Mt;if(p||m instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await m,l.issues.length!==h&&(u||(u=Rt(l,h)))});else{if(l.issues.length===h)continue;u||(u=Rt(l,h))}}return p?p.then(()=>l):l},r=(l,s,c)=>{if(Rt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Mt;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const u=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(p=>r(p,l,s)):r(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Mt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}K(e,"~standard",()=>({validate:i=>{var r;try{const l=_s(e,i);return l.success?{value:l.data}:{issues:(r=l.error)==null?void 0:r.issues}}catch{return $s(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),Na=E("$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()??ec(e._zod.bag),e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),he=E("$ZodStringFormat",(e,t)=>{qn.init(e,t),Na.init(e,t)}),xc=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ds),he.init(e,t)}),Sc=E("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Wa(o))}else t.pattern??(t.pattern=Wa());he.init(e,t)}),wc=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Hs),he.init(e,t)}),kc=E("$ZodURL",(e,t)=>{he.init(e,t),e._zod.check=n=>{var o;try{const a=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===Ys.source&&!/^https?:\/\//i.test(a)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),_c=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Gs()),he.init(e,t)}),$c=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=js),he.init(e,t)}),Cc=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ts),he.init(e,t)}),Ac=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ps),he.init(e,t)}),yc=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Os),he.init(e,t)}),Nc=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ls),he.init(e,t)}),Rc=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=zs),he.init(e,t)}),Ec=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Qs(t)),he.init(e,t)}),Ic=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Js),he.init(e,t)}),Mc=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Xs(t)),he.init(e,t)}),Tc=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Bs),he.init(e,t)}),Pc=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Us),he.init(e,t),e._zod.bag.format="ipv4"}),Oc=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Zs),he.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})}}}),Lc=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ws),he.init(e,t)}),zc=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=qs),he.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[a,i]=o;if(!i)throw new Error;const r=Number(i);if(`${r}`!==i)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Li(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const jc=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Vs),he.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Li(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Bc(e){if(!Ri.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Li(n)}const Dc=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ri),he.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Bc(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Hc=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ks),he.init(e,t)});function Fc(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const a=JSON.parse(atob(o));return!("typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const Gc=E("$ZodJWT",(e,t)=>{he.init(e,t),e._zod.check=n=>{Fc(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),zi=E("$ZodNumber",(e,t)=>{se.init(e,t),e._zod.pattern=e._zod.bag.pattern??Mi,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...i?{received:i}:{}}),n}}),Uc=E("$ZodNumberFormat",(e,t)=>{ic.init(e,t),zi.init(e,t)}),Zc=E("$ZodBoolean",(e,t)=>{se.init(e,t),e._zod.pattern=nc,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),Wc=E("$ZodAny",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),qc=E("$ZodUnknown",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),Vc=E("$ZodNever",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function qa(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues)),t.value[n]=e.value}const Yc=E("$ZodArray",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let r=0;r<a.length;r++){const l=a[r],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>qa(c,n,r))):qa(s,n,r)}return i.length?Promise.all(i).then(()=>n):n}});function Pn(e,t,n,o,a,i){const r=n in o;if(e.issues.length){if(a&&i&&!r)return;t.issues.push(...ht(n,e.issues))}if(!r&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?r&&(t.value[n]=void 0):t.value[n]=e.value}function ji(e){var o,a,i,r;const t=Object.keys(e.shape);for(const l of t)if(!((r=(i=(a=(o=e.shape)==null?void 0:o[l])==null?void 0:a._zod)==null?void 0:i.traits)!=null&&r.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=ds(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Bi(e,t,n,o,a,i){const r=[],l=a.keySet,s=a.catchall._zod,c=s.def.type,u=s.optin==="optional",p=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){r.push(d);continue}const h=s.run({value:t[d],issues:[]},o);h instanceof Promise?e.push(h.then(m=>Pn(m,n,d,t,u,p))):Pn(h,n,d,t,u,p)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Kc=E("$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 o=Un(()=>ji(t));K(e._zod,"propValues",()=>{const l=t.shape,s={};for(const c in l){const u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(const p of u.values)s[c].add(p)}}return s});const a=nn,i=t.catchall;let r;e._zod.parse=(l,s)=>{r??(r=o.value);const c=l.value;if(!a(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],p=r.shape;for(const d of r.keys){const h=p[d],m=h._zod.optin==="optional",b=h._zod.optout==="optional",v=h._zod.run({value:c[d],issues:[]},s);v instanceof Promise?u.push(v.then(k=>Pn(k,l,d,c,m,b))):Pn(v,l,d,c,m,b)}return i?Bi(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),Jc=E("$ZodObjectJIT",(e,t)=>{Kc.init(e,t);const n=e._zod.parse,o=Un(()=>ji(t)),a=d=>{var $,w;const h=new bc(["shape","payload","ctx"]),m=o.value,b=_=>{const N=Za(_);return`shape[${N}]._zod.run({ value: input[${N}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let k=0;for(const _ of m.keys)v[_]=`key_${k++}`;h.write("const newResult = {};");for(const _ of m.keys){const N=v[_],A=Za(_),y=d[_],R=(($=y==null?void 0:y._zod)==null?void 0:$.optin)==="optional",M=((w=y==null?void 0:y._zod)==null?void 0:w.optout)==="optional";h.write(`const ${N} = ${b(_)};`),R&&M?h.write(`
4
- if (${N}.issues.length) {
5
- if (${A} in input) {
6
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),rc=require("react-dom/server"),F=require("react");var Ia;function N(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=a.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const d=u[f];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class Ft extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class pl extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ia=globalThis).__zod_globalConfig??(Ia.__zod_globalConfig={});const Xr=globalThis.__zod_globalConfig;function ct(e){return Xr}function ml(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function cr(e,t){return typeof t=="bigint"?t.toString():t}function ho(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Qr(e){return e==null}function ea(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function ac(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Ra=Symbol("evaluating");function te(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Ra)return o===void 0&&(o=Ra,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function yt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function bt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Ea(e){return JSON.stringify(e)}function ic(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const gl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const lc=ho(()=>{var e;if(Xr.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 Ut(e){if(mn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(mn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function bl(e){return Ut(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const sc=new Set(["string","number","symbol"]);function Zt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xt(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(o._zod.parent=e),o}function B(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 cc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const uc={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 dc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=bt(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return yt(this,"shape",a),a},checks:[]});return xt(e,i)}function hc(e,t){const n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=bt(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return yt(this,"shape",a),a},checks:[]});return xt(e,i)}function fc(e,t){if(!Ut(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=bt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return yt(this,"shape",i),i}});return xt(e,r)}function pc(e,t){if(!Ut(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=bt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return yt(this,"shape",o),o}});return xt(e,n)}function mc(e,t){var o;if((o=e._zod.def.checks)!=null&&o.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=bt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return yt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return xt(e,n)}function gc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=bt(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(const c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return yt(this,"shape",s),s},checks:[]});return xt(t,a)}function bc(e,t,n){const o=bt(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return yt(this,"shape",i),i}});return xt(t,o)}function jt(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)!==!0)return!0;return!1}function xc(e,t=0){var n;if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(((n=e.issues[o])==null?void 0:n.continue)===!1)return!0;return!1}function mt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Nn(e){return typeof e=="string"?e:e==null?void 0:e.message}function ut(e,t,n){var s,c,u,f,d,h;const o=e.message?e.message:Nn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??Nn((f=t==null?void 0:t.error)==null?void 0:f.call(t,e))??Nn((d=n.customError)==null?void 0:d.call(n,e))??Nn((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function ta(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gn(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const xl=(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,cr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},vl=N("$ZodError",xl),wl=N("$ZodError",xl,{Parent:Error});function vc(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function wc(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{const l=[...i,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const na=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Ft;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>ut(s,i,ct())));throw gl(l,r==null?void 0:r.callee),l}return a.value},oa=e=>async(t,n,o,r)=>{const i=o?{...o,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>ut(s,i,ct())));throw gl(l,r==null?void 0:r.callee),l}return a.value},fo=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Ft;return i.issues.length?{success:!1,error:new(e??vl)(i.issues.map(a=>ut(a,r,ct())))}:{success:!0,data:i.value}},Sc=fo(wl),po=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>ut(a,r,ct())))}:{success:!0,data:i.value}},kc=po(wl),_c=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return na(e)(t,n,r)},$c=e=>(t,n,o)=>na(e)(t,n,o),Cc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return oa(e)(t,n,r)},Ac=e=>async(t,n,o)=>oa(e)(t,n,o),yc=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return fo(e)(t,n,r)},Ic=e=>(t,n,o)=>fo(e)(t,n,o),Rc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return po(e)(t,n,r)},Ec=e=>async(t,n,o)=>po(e)(t,n,o),Nc=/^[cC][0-9a-z]{6,}$/,Mc=/^[0-9a-z]+$/,Tc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Pc=/^[0-9a-vA-V]{20}$/,Oc=/^[A-Za-z0-9]{27}$/,Lc=/^[a-zA-Z0-9_-]{21}$/,zc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jc=/^([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})$/,Na=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)$/,Bc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Dc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Fc(){return new RegExp(Dc,"u")}const Hc=/^(?:(?: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])$/,Gc=/^(([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}|:))$/,Uc=/^((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])$/,Zc=/^(([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])$/,Wc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Sl=/^[A-Za-z0-9_-]*$/,qc=/^https?$/,Vc=/^\+[1-9]\d{6,14}$/,kl="(?:(?:\\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])))",Yc=new RegExp(`^${kl}$`);function _l(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 Kc(e){return new RegExp(`^${_l(e)}$`)}function Jc(e){const t=_l({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const o=`${t}(?:${n.join("|")})`;return new RegExp(`^${kl}T(?:${o})$`)}const Xc=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}$`)},Qc=/^-?\d+$/,$l=/^-?\d+(?:\.\d+)?$/,eu=/^(?:true|false)$/i,tu=/^[^A-Z]*$/,nu=/^[^a-z]*$/,je=N("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Cl={number:"number",bigint:"bigint",object:"date"},Al=N("$ZodCheckLessThan",(e,t)=>{je.init(e,t);const n=Cl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),yl=N("$ZodCheckGreaterThan",(e,t)=>{je.init(e,t);const n=Cl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ou=N("$ZodCheckMultipleOf",(e,t)=>{je.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):ac(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})}}),ru=N("$ZodCheckNumberFormat",(e,t)=>{var a;je.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=uc[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=Qc)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),au=N("$ZodCheckMaxLength",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Qr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=ta(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),iu=N("$ZodCheckMinLength",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Qr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=ta(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lu=N("$ZodCheckLengthEquals",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!Qr(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=ta(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),mo=N("$ZodCheckStringFormat",(e,t)=>{var n,o;je.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),su=N("$ZodCheckRegex",(e,t)=>{mo.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})}}),cu=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tu),mo.init(e,t)}),uu=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=nu),mo.init(e,t)}),du=N("$ZodCheckIncludes",(e,t)=>{je.init(e,t);const n=Zt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),hu=N("$ZodCheckStartsWith",(e,t)=>{je.init(e,t);const n=new RegExp(`^${Zt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),fu=N("$ZodCheckEndsWith",(e,t)=>{je.init(e,t);const n=new RegExp(`.*${Zt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),pu=N("$ZodCheckOverwrite",(e,t)=>{je.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class mu{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const o=t.split(`
2
+ `).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,r=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,r.join(`
3
+ `))}}const gu={major:4,minor:4,patch:3},de=N("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=gu;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=jt(l),f;for(const d of s){if(d._zod.def.when){if(xc(l)||!d._zod.def.when(l))continue}else if(u)continue;const h=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Ft;if(f||p instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await p,l.issues.length!==h&&(u||(u=jt(l,h)))});else{if(l.issues.length===h)continue;u||(u=jt(l,h))}}return f?f.then(()=>l):l},a=(l,s,c)=>{if(jt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Ft;return u.then(f=>e._zod.parse(f,c))}return e._zod.parse(u,c)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const u=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(f=>a(f,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Ft;return c.then(u=>i(u,o,s))}return i(c,o,s)}}te(e,"~standard",()=>({validate:i=>{var a;try{const l=Sc(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return kc(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),ra=N("$ZodString",(e,t)=>{var n;de.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Xc(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),ge=N("$ZodStringFormat",(e,t)=>{mo.init(e,t),ra.init(e,t)}),bu=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=jc),ge.init(e,t)}),xu=N("$ZodUUID",(e,t)=>{if(t.version){const o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Na(o))}else t.pattern??(t.pattern=Na());ge.init(e,t)}),vu=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Bc),ge.init(e,t)}),wu=N("$ZodURL",(e,t)=>{ge.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===qc.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Su=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Fc()),ge.init(e,t)}),ku=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Lc),ge.init(e,t)}),_u=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Nc),ge.init(e,t)}),$u=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Mc),ge.init(e,t)}),Cu=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Tc),ge.init(e,t)}),Au=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pc),ge.init(e,t)}),yu=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Oc),ge.init(e,t)}),Iu=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Jc(t)),ge.init(e,t)}),Ru=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Yc),ge.init(e,t)}),Eu=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Kc(t)),ge.init(e,t)}),Nu=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=zc),ge.init(e,t)}),Mu=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Hc),ge.init(e,t),e._zod.bag.format="ipv4"}),Tu=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gc),ge.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})}}}),Pu=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Uc),ge.init(e,t)}),Ou=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zc),ge.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Il(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Lu=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Wc),ge.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Il(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function zu(e){if(!Sl.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Il(n)}const ju=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Sl),ge.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{zu(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Bu=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Vc),ge.init(e,t)});function Du(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const Fu=N("$ZodJWT",(e,t)=>{ge.init(e,t),e._zod.check=n=>{Du(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Rl=N("$ZodNumber",(e,t)=>{de.init(e,t),e._zod.pattern=e._zod.bag.pattern??$l,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),Hu=N("$ZodNumberFormat",(e,t)=>{ru.init(e,t),Rl.init(e,t)}),Gu=N("$ZodBoolean",(e,t)=>{de.init(e,t),e._zod.pattern=eu,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Uu=N("$ZodAny",(e,t)=>{de.init(e,t),e._zod.parse=n=>n}),Zu=N("$ZodUnknown",(e,t)=>{de.init(e,t),e._zod.parse=n=>n}),Wu=N("$ZodNever",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ma(e,t,n){e.issues.length&&t.issues.push(...mt(n,e.issues)),t.value[n]=e.value}const qu=N("$ZodArray",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Ma(c,n,a))):Ma(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function Kn(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...mt(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function El(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=cc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Nl(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",f=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const h=s.run({value:t[d],issues:[]},o);h instanceof Promise?e.push(h.then(p=>Kn(p,n,d,t,u,f))):Kn(h,n,d,t,u,f)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Vu=N("$ZodObject",(e,t)=>{de.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const o=ho(()=>El(t));te(e._zod,"propValues",()=>{const l=t.shape,s={};for(const c in l){const u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(const f of u.values)s[c].add(f)}}return s});const r=mn,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],f=a.shape;for(const d of a.keys){const h=f[d],p=h._zod.optin==="optional",b=h._zod.optout==="optional",x=h._zod.run({value:c[d],issues:[]},s);x instanceof Promise?u.push(x.then(w=>Kn(w,l,d,c,p,b))):Kn(x,l,d,c,p,b)}return i?Nl(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),Yu=N("$ZodObjectJIT",(e,t)=>{Vu.init(e,t);const n=e._zod.parse,o=ho(()=>El(t)),r=d=>{var _,S;const h=new mu(["shape","payload","ctx"]),p=o.value,b=$=>{const y=Ea($);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};h.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const $ of p.keys)x[$]=`key_${w++}`;h.write("const newResult = {};");for(const $ of p.keys){const y=x[$],C=Ea($),R=d[$],I=((_=R==null?void 0:R._zod)==null?void 0:_.optin)==="optional",E=((S=R==null?void 0:R._zod)==null?void 0:S.optout)==="optional";h.write(`const ${y} = ${b($)};`),I&&E?h.write(`
4
+ if (${y}.issues.length) {
5
+ if (${C} in input) {
6
+ payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
7
7
  ...iss,
8
- path: iss.path ? [${A}, ...iss.path] : [${A}]
8
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
9
9
  })));
10
10
  }
11
11
  }
12
12
 
13
- if (${N}.value === undefined) {
14
- if (${A} in input) {
15
- newResult[${A}] = undefined;
13
+ if (${y}.value === undefined) {
14
+ if (${C} in input) {
15
+ newResult[${C}] = undefined;
16
16
  }
17
17
  } else {
18
- newResult[${A}] = ${N}.value;
18
+ newResult[${C}] = ${y}.value;
19
19
  }
20
20
 
21
- `):R?h.write(`
22
- if (${N}.issues.length) {
23
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
21
+ `):I?h.write(`
22
+ if (${y}.issues.length) {
23
+ payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
24
24
  ...iss,
25
- path: iss.path ? [${A}, ...iss.path] : [${A}]
25
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
26
26
  })));
27
27
  }
28
28
 
29
- if (${N}.value === undefined) {
30
- if (${A} in input) {
31
- newResult[${A}] = undefined;
29
+ if (${y}.value === undefined) {
30
+ if (${C} in input) {
31
+ newResult[${C}] = undefined;
32
32
  }
33
33
  } else {
34
- newResult[${A}] = ${N}.value;
34
+ newResult[${C}] = ${y}.value;
35
35
  }
36
36
 
37
37
  `):h.write(`
38
- const ${N}_present = ${A} in input;
39
- if (${N}.issues.length) {
40
- payload.issues = payload.issues.concat(${N}.issues.map(iss => ({
38
+ const ${y}_present = ${C} in input;
39
+ if (${y}.issues.length) {
40
+ payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
41
41
  ...iss,
42
- path: iss.path ? [${A}, ...iss.path] : [${A}]
42
+ path: iss.path ? [${C}, ...iss.path] : [${C}]
43
43
  })));
44
44
  }
45
- if (!${N}_present && !${N}.issues.length) {
45
+ if (!${y}_present && !${y}.issues.length) {
46
46
  payload.issues.push({
47
47
  code: "invalid_type",
48
48
  expected: "nonoptional",
49
49
  input: undefined,
50
- path: [${A}]
50
+ path: [${C}]
51
51
  });
52
52
  }
53
53
 
54
- if (${N}_present) {
55
- if (${N}.value === undefined) {
56
- newResult[${A}] = undefined;
54
+ if (${y}_present) {
55
+ if (${y}.value === undefined) {
56
+ newResult[${C}] = undefined;
57
57
  } else {
58
- newResult[${A}] = ${N}.value;
58
+ newResult[${C}] = ${y}.value;
59
59
  }
60
60
  }
61
61
 
62
- `)}h.write("payload.value = newResult;"),h.write("return payload;");const S=h.compile();return(_,N)=>S(d,_,N)};let i;const r=nn,l=!ka.jitless,c=l&&cs.value,u=t.catchall;let p;e._zod.parse=(d,h)=>{p??(p=o.value);const m=d.value;return r(m)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=a(t.shape)),d=i(d,h),u?Bi([],m,d,h,p,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d)}});function Va(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const a=e.filter(i=>!Rt(i));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(r=>rt(r,o,at())))}),t)}const Di=E("$ZodUnion",(e,t)=>{se.init(e,t),K(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),K(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),K(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),K(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>$a(a.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,a)=>{if(n)return n(o,a);let i=!1;const r=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)r.push(s),i=!0;else{if(s.issues.length===0)return s;r.push(s)}}return i?Promise.all(r).then(l=>Va(l,o,e,a)):Va(r,o,e,a)}}),Xc=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Di.init(e,t);const n=e._zod.parse;K(e._zod,"propValues",()=>{const a={};for(const i of t.options){const r=i._zod.propValues;if(!r||Object.keys(r).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(r)){a[l]||(a[l]=new Set);for(const c of s)a[l].add(c)}}return a});const o=Un(()=>{var r;const a=t.options,i=new Map;for(const l of a){const s=(r=l._zod.propValues)==null?void 0:r[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(a,i)=>{const r=a.value;if(!nn(r))return a.issues.push({code:"invalid_type",expected:"object",input:r,inst:e}),a;const l=o.value.get(r==null?void 0:r[t.discriminator]);return l?l._zod.run(a,i):t.unionFallback||i.direction==="backward"?n(a,i):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:r,path:[t.discriminator],inst:e}),a)}}),Qc=E("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value,i=t.left._zod.run({value:a,issues:[]},o),r=t.right._zod.run({value:a,issues:[]},o);return i instanceof Promise||r instanceof Promise?Promise.all([i,r]).then(([s,c])=>Ya(n,s,c)):Ya(n,i,r)}});function Do(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(Pt(e)&&Pt(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...t};for(const i of o){const r=Do(e[i],t[i]);if(!r.valid)return{valid:!1,mergeErrorPath:[i,...r.mergeErrorPath]};a[i]=r.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const a=e[o],i=t[o],r=Do(a,i);if(!r.valid)return{valid:!1,mergeErrorPath:[o,...r.mergeErrorPath]};n.push(r.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ya(e,t,n){const o=new Map;let a;for(const l of t.issues)if(l.code==="unrecognized_keys"){a??(a=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&a&&e.issues.push({...a,keys:i}),Rt(e))return e;const r=Do(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const eu=E("$ZodTuple",(e,t)=>{se.init(e,t);const n=t.items;e._zod.parse=(o,a)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const r=[],l=Ka(n,"optin"),s=Ka(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}const c=new Array(n.length);for(let u=0;u<n.length;u++){const p=n[u]._zod.run({value:i[u],issues:[]},a);p instanceof Promise?r.push(p.then(d=>{c[u]=d})):c[u]=p}if(t.rest){let u=n.length-1;const p=i.slice(n.length);for(const d of p){u++;const h=t.rest._zod.run({value:d,issues:[]},a);h instanceof Promise?r.push(h.then(m=>Ja(m,o,u))):Ja(h,o,u)}}return r.length?Promise.all(r).then(()=>Xa(c,o,n,i,s)):Xa(c,o,n,i,s)}});function Ka(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Ja(e,t,n){e.issues.length&&t.issues.push(...ht(n,e.issues)),t.value[n]=e.value}function Xa(e,t,n,o,a){for(let i=0;i<n.length;i++){const r=e[i],l=i<o.length;if(r.issues.length){if(!l&&i>=a){t.value.length=i;break}t.issues.push(...ht(i,r.issues))}t.value[i]=r.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const tu=E("$ZodRecord",(e,t)=>{se.init(e,t),e._zod.parse=(n,o)=>{const a=n.value;if(!Pt(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const i=[],r=t.keyType._zod.values;if(r){n.value={};const l=new Set;for(const c of r)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>rt(h,o,at())),input:c,path:[c],inst:e});continue}const p=u.value,d=t.valueType._zod.run({value:a[c],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...ht(c,h.issues)),n.value[p]=h.value})):(d.issues.length&&n.issues.push(...ht(c,d.issues)),n.value[p]=d.value)}let s;for(const c in a)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(a)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Mi.test(l)&&s.issues.length){const p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?n.value[l]=a[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>rt(p,o,at())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:a[l],issues:[]},o);u instanceof Promise?i.push(u.then(p=>{p.issues.length&&n.issues.push(...ht(l,p.issues)),n.value[s.value]=p.value})):(u.issues.length&&n.issues.push(...ht(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),nu=E("$ZodEnum",(e,t)=>{se.init(e,t);const n=_i(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>us.has(typeof a)).map(a=>typeof a=="string"?Ot(a):a.toString()).join("|")})$`),e._zod.parse=(a,i)=>{const r=a.value;return o.has(r)||a.issues.push({code:"invalid_value",values:n,input:r,inst:e}),a}}),ou=E("$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(o=>typeof o=="string"?Ot(o):o?Ot(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),au=E("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ki(e.constructor.name);const a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(r=>(n.value=r,n.fallback=!0,n));if(a instanceof Promise)throw new Mt;return n.value=a,n.fallback=!0,n}});function Qa(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Hi=E("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$a(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const a=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(r=>Qa(r,a)):Qa(i,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),ru=E("$ZodExactOptional",(e,t)=>{Hi.init(e,t),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),iu=E("$ZodNullable",(e,t)=>{se.init(e,t),K(e._zod,"optin",()=>t.innerType._zod.optin),K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${$a(n.source)}|null)$`):void 0}),K(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),lu=E("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>er(i,t)):er(a,t)}});function er(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const su=E("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),cu=E("$ZodNonOptional",(e,t)=>{se.init(e,t),K(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>tr(i,e)):tr(a,e)}});function tr(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 uu=E("$ZodCatch",(e,t)=>{se.init(e,t),e._zod.optin="optional",K(e._zod,"optout",()=>t.innerType._zod.optout),K(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(r=>rt(r,o,at()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>rt(i,o,at()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Fi=E("$ZodPipe",(e,t)=>{se.init(e,t),K(e._zod,"values",()=>t.in._zod.values),K(e._zod,"optin",()=>t.in._zod.optin),K(e._zod,"optout",()=>t.out._zod.optout),K(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(r=>xn(r,t.in,o)):xn(i,t.in,o)}const a=t.in._zod.run(n,o);return a instanceof Promise?a.then(i=>xn(i,t.out,o)):xn(a,t.out,o)}});function xn(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 du=E("$ZodPreprocess",(e,t)=>{Fi.init(e,t)}),hu=E("$ZodReadonly",(e,t)=>{se.init(e,t),K(e._zod,"propValues",()=>t.innerType._zod.propValues),K(e._zod,"values",()=>t.innerType._zod.values),K(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),K(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(nr):nr(a)}});function nr(e){return e.value=Object.freeze(e.value),e}const fu=E("$ZodLazy",(e,t)=>{se.init(e,t),K(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),K(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),K(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),K(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),K(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),pu=E("$ZodCustom",(e,t)=>{Re.init(e,t),se.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,a=t.fn(o);if(a instanceof Promise)return a.then(i=>or(i,n,o,e));or(a,n,o,e)}});function or(e,t,n,o){if(!e){const a={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(a.params=o._zod.def.params),t.issues.push(on(a))}}var ar;class mu{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const a={...o,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function gu(){return new mu}(ar=globalThis).__zod_globalRegistry??(ar.__zod_globalRegistry=gu());const Xt=globalThis.__zod_globalRegistry;function bu(e,t){return new e({type:"string",...z(t)})}function vu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...z(t)})}function rr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...z(t)})}function xu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...z(t)})}function Su(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...z(t)})}function wu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...z(t)})}function ku(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...z(t)})}function _u(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...z(t)})}function $u(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...z(t)})}function Cu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...z(t)})}function Au(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...z(t)})}function yu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...z(t)})}function Nu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...z(t)})}function Ru(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...z(t)})}function Eu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...z(t)})}function Iu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...z(t)})}function Mu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...z(t)})}function Tu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...z(t)})}function Pu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...z(t)})}function Ou(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...z(t)})}function Lu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...z(t)})}function zu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...z(t)})}function ju(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...z(t)})}function Bu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...z(t)})}function Du(e,t){return new e({type:"string",format:"date",check:"string_format",...z(t)})}function Hu(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...z(t)})}function Fu(e,t){return new e({type:"string",format:"duration",check:"string_format",...z(t)})}function Gu(e,t){return new e({type:"number",checks:[],...z(t)})}function Uu(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...z(t)})}function Zu(e,t){return new e({type:"boolean",...z(t)})}function Wu(e){return new e({type:"any"})}function qu(e){return new e({type:"unknown"})}function Vu(e,t){return new e({type:"never",...z(t)})}function ir(e,t){return new Pi({check:"less_than",...z(t),value:e,inclusive:!1})}function eo(e,t){return new Pi({check:"less_than",...z(t),value:e,inclusive:!0})}function lr(e,t){return new Oi({check:"greater_than",...z(t),value:e,inclusive:!1})}function to(e,t){return new Oi({check:"greater_than",...z(t),value:e,inclusive:!0})}function sr(e,t){return new rc({check:"multiple_of",...z(t),value:e})}function Gi(e,t){return new lc({check:"max_length",...z(t),maximum:e})}function On(e,t){return new sc({check:"min_length",...z(t),minimum:e})}function Ui(e,t){return new cc({check:"length_equals",...z(t),length:e})}function Yu(e,t){return new uc({check:"string_format",format:"regex",...z(t),pattern:e})}function Ku(e){return new dc({check:"string_format",format:"lowercase",...z(e)})}function Ju(e){return new hc({check:"string_format",format:"uppercase",...z(e)})}function Xu(e,t){return new fc({check:"string_format",format:"includes",...z(t),includes:e})}function Qu(e,t){return new pc({check:"string_format",format:"starts_with",...z(t),prefix:e})}function ed(e,t){return new mc({check:"string_format",format:"ends_with",...z(t),suffix:e})}function Bt(e){return new gc({check:"overwrite",tx:e})}function td(e){return Bt(t=>t.normalize(e))}function nd(){return Bt(e=>e.trim())}function od(){return Bt(e=>e.toLowerCase())}function ad(){return Bt(e=>e.toUpperCase())}function rd(){return Bt(e=>ss(e))}function id(e,t,n){return new e({type:"array",element:t,...z(n)})}function ld(e,t,n){return new e({type:"custom",check:"custom",fn:t,...z(n)})}function sd(e,t){const n=cd(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(on(a,o.value,n._zod.def));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(on(i))}},e(o.value,o)),t);return n}function cd(e,t){const n=new Re({check:"custom",...z(t)});return n._zod.check=e,n}function Zi(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)??Xt,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 fe(e,t,n={path:[],schemaPath:[]}){var u,p;var o;const a=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const r={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,r);const l=(p=(u=e._zod).toJSONSchema)==null?void 0:p.call(u);if(l)r.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,r.schema,d);else{const m=r.schema,b=t.processors[a.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);b(e,t,m,d)}const h=e._zod.parent;h&&(r.ref||(r.ref=h),fe(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(r.schema,s),t.io==="input"&&Ce(e)&&(delete r.schema.examples,delete r.schema.default),t.io==="input"&&"_prefault"in r.schema&&((o=r.schema).default??(o.default=r.schema._prefault)),delete r.schema._prefault,t.seen.get(e).schema}function Wi(e,t){var r,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const p=(r=e.metadataRegistry.get(u[0]))==null?void 0:r.id;if(p){const d=o.get(p);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${p}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(p,u[0])}}const a=u=>{var b;const p=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(b=e.external.registry.get(u[0]))==null?void 0:b.id,k=e.external.uri??($=>$);if(v)return{ref:k(v)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${k("__shared")}#/${p}/${S}`}}if(u[1]===n)return{ref:"#"};const h=`#/${p}/`,m=u[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:h+m}},i=u=>{if(u[1].schema.$ref)return;const p=u[1],{ref:d,defId:h}=a(u);p.def={...p.schema},h&&(p.defId=h);const m=p.schema;for(const b in m)delete m[b];m.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const p=u[1];if(p.cycle)throw new Error(`Cycle detected: #/${(l=p.cycle)==null?void 0:l.join("/")}/<root>
62
+ `)}h.write("payload.value = newResult;"),h.write("return payload;");const v=h.compile();return($,y)=>v(d,$,y)};let i;const a=mn,l=!Xr.jitless,c=l&&lc.value,u=t.catchall;let f;e._zod.parse=(d,h)=>{f??(f=o.value);const p=d.value;return a(p)?l&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=r(t.shape)),d=i(d,h),u?Nl([],p,d,h,f,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ta(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!jt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>ut(a,o,ct())))}),t)}const Ml=N("$ZodUnion",(e,t)=>{de.init(e,t),te(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),te(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),te(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),te(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>ea(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Ta(l,o,e,r)):Ta(a,o,e,r)}}),Ku=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ml.init(e,t);const n=e._zod.parse;te(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(a)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=ho(()=>{var a;const r=t.options,i=new Map;for(const l of r){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!mn(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Ju=N("$ZodIntersection",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Pa(n,s,c)):Pa(n,i,a)}});function ur(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(Ut(e)&&Ut(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=ur(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=ur(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Pa(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),jt(e))return e;const a=ur(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Xu=N("$ZodTuple",(e,t)=>{de.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Oa(n,"optin"),s=Oa(n,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:i,inst:e,origin:"array"})}const c=new Array(n.length);for(let u=0;u<n.length;u++){const f=n[u]._zod.run({value:i[u],issues:[]},r);f instanceof Promise?a.push(f.then(d=>{c[u]=d})):c[u]=f}if(t.rest){let u=n.length-1;const f=i.slice(n.length);for(const d of f){u++;const h=t.rest._zod.run({value:d,issues:[]},r);h instanceof Promise?a.push(h.then(p=>La(p,o,u))):La(h,o,u)}}return a.length?Promise.all(a).then(()=>za(c,o,n,i,s)):za(c,o,n,i,s)}});function Oa(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function La(e,t,n){e.issues.length&&t.issues.push(...mt(n,e.issues)),t.value[n]=e.value}function za(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...mt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const Qu=N("$ZodRecord",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Ut(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>ut(h,o,ct())),input:c,path:[c],inst:e});continue}const f=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(h=>{h.issues.length&&n.issues.push(...mt(c,h.issues)),n.value[f]=h.value})):(d.issues.length&&n.issues.push(...mt(c,d.issues)),n.value[f]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&$l.test(l)&&s.issues.length){const f=t.keyType._zod.run({value:Number(l),issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(s=f)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(f=>ut(f,o,ct())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(f=>{f.issues.length&&n.issues.push(...mt(l,f.issues)),n.value[s.value]=f.value})):(u.issues.length&&n.issues.push(...mt(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),ed=N("$ZodEnum",(e,t)=>{de.init(e,t);const n=ml(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>sc.has(typeof r)).map(r=>typeof r=="string"?Zt(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),td=N("$ZodLiteral",(e,t)=>{if(de.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Zt(o):o?Zt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),nd=N("$ZodTransform",(e,t)=>{de.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new pl(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Ft;return n.value=r,n.fallback=!0,n}});function ja(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Tl=N("$ZodOptional",(e,t)=>{de.init(e,t),e._zod.optin="optional",e._zod.optout="optional",te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),te(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ea(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>ja(a,r)):ja(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),od=N("$ZodExactOptional",(e,t)=>{Tl.init(e,t),te(e._zod,"values",()=>t.innerType._zod.values),te(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),rd=N("$ZodNullable",(e,t)=>{de.init(e,t),te(e._zod,"optin",()=>t.innerType._zod.optin),te(e._zod,"optout",()=>t.innerType._zod.optout),te(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${ea(n.source)}|null)$`):void 0}),te(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),ad=N("$ZodDefault",(e,t)=>{de.init(e,t),e._zod.optin="optional",te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Ba(i,t)):Ba(r,t)}});function Ba(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const id=N("$ZodPrefault",(e,t)=>{de.init(e,t),e._zod.optin="optional",te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),ld=N("$ZodNonOptional",(e,t)=>{de.init(e,t),te(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Da(i,e)):Da(r,e)}});function Da(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 sd=N("$ZodCatch",(e,t)=>{de.init(e,t),e._zod.optin="optional",te(e._zod,"optout",()=>t.innerType._zod.optout),te(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>ut(a,o,ct()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>ut(i,o,ct()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Pl=N("$ZodPipe",(e,t)=>{de.init(e,t),te(e._zod,"values",()=>t.in._zod.values),te(e._zod,"optin",()=>t.in._zod.optin),te(e._zod,"optout",()=>t.out._zod.optout),te(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Mn(a,t.in,o)):Mn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Mn(i,t.out,o)):Mn(r,t.out,o)}});function Mn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const cd=N("$ZodPreprocess",(e,t)=>{Pl.init(e,t)}),ud=N("$ZodReadonly",(e,t)=>{de.init(e,t),te(e._zod,"propValues",()=>t.innerType._zod.propValues),te(e._zod,"values",()=>t.innerType._zod.values),te(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),te(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(Fa):Fa(r)}});function Fa(e){return e.value=Object.freeze(e.value),e}const dd=N("$ZodLazy",(e,t)=>{de.init(e,t),te(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),te(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),te(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),te(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),te(e._zod,"optout",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optout)??void 0}),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),hd=N("$ZodCustom",(e,t)=>{je.init(e,t),de.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>Ha(i,n,o,e));Ha(r,n,o,e)}});function Ha(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(gn(r))}}var Ga;class fd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function pd(){return new fd}(Ga=globalThis).__zod_globalRegistry??(Ga.__zod_globalRegistry=pd());const dn=globalThis.__zod_globalRegistry;function md(e,t){return new e({type:"string",...B(t)})}function gd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...B(t)})}function Ua(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...B(t)})}function bd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...B(t)})}function xd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(t)})}function vd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(t)})}function wd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(t)})}function Sd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...B(t)})}function kd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...B(t)})}function _d(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(t)})}function $d(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...B(t)})}function Cd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(t)})}function Ad(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...B(t)})}function yd(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...B(t)})}function Id(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(t)})}function Rd(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(t)})}function Ed(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(t)})}function Nd(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(t)})}function Md(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(t)})}function Td(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...B(t)})}function Pd(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...B(t)})}function Od(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...B(t)})}function Ld(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...B(t)})}function zd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(t)})}function jd(e,t){return new e({type:"string",format:"date",check:"string_format",...B(t)})}function Bd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...B(t)})}function Dd(e,t){return new e({type:"string",format:"duration",check:"string_format",...B(t)})}function Fd(e,t){return new e({type:"number",checks:[],...B(t)})}function Hd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...B(t)})}function Gd(e,t){return new e({type:"boolean",...B(t)})}function Ud(e){return new e({type:"any"})}function Zd(e){return new e({type:"unknown"})}function Wd(e,t){return new e({type:"never",...B(t)})}function Za(e,t){return new Al({check:"less_than",...B(t),value:e,inclusive:!1})}function _o(e,t){return new Al({check:"less_than",...B(t),value:e,inclusive:!0})}function Wa(e,t){return new yl({check:"greater_than",...B(t),value:e,inclusive:!1})}function $o(e,t){return new yl({check:"greater_than",...B(t),value:e,inclusive:!0})}function qa(e,t){return new ou({check:"multiple_of",...B(t),value:e})}function Ol(e,t){return new au({check:"max_length",...B(t),maximum:e})}function Jn(e,t){return new iu({check:"min_length",...B(t),minimum:e})}function Ll(e,t){return new lu({check:"length_equals",...B(t),length:e})}function qd(e,t){return new su({check:"string_format",format:"regex",...B(t),pattern:e})}function Vd(e){return new cu({check:"string_format",format:"lowercase",...B(e)})}function Yd(e){return new uu({check:"string_format",format:"uppercase",...B(e)})}function Kd(e,t){return new du({check:"string_format",format:"includes",...B(t),includes:e})}function Jd(e,t){return new hu({check:"string_format",format:"starts_with",...B(t),prefix:e})}function Xd(e,t){return new fu({check:"string_format",format:"ends_with",...B(t),suffix:e})}function Yt(e){return new pu({check:"overwrite",tx:e})}function Qd(e){return Yt(t=>t.normalize(e))}function eh(){return Yt(e=>e.trim())}function th(){return Yt(e=>e.toLowerCase())}function nh(){return Yt(e=>e.toUpperCase())}function oh(){return Yt(e=>ic(e))}function rh(e,t,n){return new e({type:"array",element:t,...B(n)})}function ah(e,t,n){return new e({type:"custom",check:"custom",fn:t,...B(n)})}function ih(e,t){const n=lh(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(gn(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(gn(i))}},e(o.value,o)),t);return n}function lh(e,t){const n=new je({check:"custom",...B(t)});return n._zod.check=e,n}function zl(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)??dn,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 be(e,t,n={path:[],schemaPath:[]}){var u,f;var o;const r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(f=(u=e._zod).toJSONSchema)==null?void 0:f.call(u);if(l)a.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{const p=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,p,d)}const h=e._zod.parent;h&&(a.ref||(a.ref=h),be(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&Pe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function jl(e,t){var a,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const f=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(f){const d=o.get(f);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${f}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(f,u[0])}}const r=u=>{var b;const f=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(u[0]))==null?void 0:b.id,w=e.external.uri??(_=>_);if(x)return{ref:w(x)};const v=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=v,{defId:v,ref:`${w("__shared")}#/${f}/${v}`}}if(u[1]===n)return{ref:"#"};const h=`#/${f}/`,p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:h+p}},i=u=>{if(u[1].schema.$ref)return;const f=u[1],{ref:d,defId:h}=r(u);f.def={...f.schema},h&&(f.defId=h);const p=f.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const f=u[1];if(f.cycle)throw new Error(`Cycle detected: #/${(l=f.cycle)==null?void 0:l.join("/")}/<root>
63
63
 
64
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const p=u[1];if(t===u[0]){i(u);continue}if(e.external){const h=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&h){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(p.cycle){i(u);continue}if(p.count>1&&e.reused==="ref"){i(u);continue}}}function qi(e,t){var l,s,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=p=>{const d=e.seen.get(p);if(d.ref===null)return;const h=d.def??d.schema,m={...h},b=d.ref;if(d.ref=null,b){o(b);const k=e.seen.get(b),S=k.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(S)):Object.assign(h,S),Object.assign(h,m),p._zod.parent===b)for(const w in h)w==="$ref"||w==="allOf"||w in m||delete h[w];if(S.$ref&&k.def)for(const w in h)w==="$ref"||w==="allOf"||w in k.def&&JSON.stringify(h[w])===JSON.stringify(k.def[w])&&delete h[w]}const v=p._zod.parent;if(v&&v!==b){o(v);const k=e.seen.get(v);if(k!=null&&k.schema.$ref&&(h.$ref=k.schema.$ref,k.def))for(const S in h)S==="$ref"||S==="allOf"||S in k.def&&JSON.stringify(h[S])===JSON.stringify(k.def[S])&&delete h[S]}e.override({zodSchema:p,jsonSchema:h,path:d.path??[]})};for(const p of[...e.seen.entries()].reverse())o(p[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const p=(s=e.external.registry.get(t))==null?void 0:s.id;if(!p)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(p)}Object.assign(a,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&a.id===i&&delete a.id;const r=((u=e.external)==null?void 0:u.defs)??{};for(const p of e.seen.entries()){const d=p[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,r[d.defId]=d.def)}e.external||Object.keys(r).length>0&&(e.target==="draft-2020-12"?a.$defs=r:a.definitions=r);try{const p=JSON.parse(JSON.stringify(a));return Object.defineProperty(p,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ln(t,"input",e.processors),output:Ln(t,"output",e.processors)}},enumerable:!1,writable:!1}),p}catch{throw new Error("Error converting schema to JSON.")}}function Ce(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ce(o.element,n);if(o.type==="set")return Ce(o.valueType,n);if(o.type==="lazy")return Ce(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Ce(o.innerType,n);if(o.type==="intersection")return Ce(o.left,n)||Ce(o.right,n);if(o.type==="record"||o.type==="map")return Ce(o.keyType,n)||Ce(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ce(o.in,n)||Ce(o.out,n);if(o.type==="object"){for(const a in o.shape)if(Ce(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(const a of o.options)if(Ce(a,n))return!0;return!1}if(o.type==="tuple"){for(const a of o.items)if(Ce(a,n))return!0;return!!(o.rest&&Ce(o.rest,n))}return!1}const ud=(e,t={})=>n=>{const o=Zi({...n,processors:t});return fe(e,o),Wi(o,e),qi(o,e)},Ln=(e,t,n={})=>o=>{const{libraryOptions:a,target:i}=o??{},r=Zi({...a??{},target:i,io:t,processors:n});return fe(e,r),Wi(r,e),qi(r,e)},dd={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},hd=(e,t,n,o)=>{const a=n;a.type="string";const{minimum:i,maximum:r,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(a.minLength=i),typeof r=="number"&&(a.maxLength=r),l&&(a.format=dd[l]??l,a.format===""&&delete a.format,l==="time"&&delete a.format),c&&(a.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?a.pattern=u[0].source:u.length>1&&(a.allOf=[...u.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},fd=(e,t,n,o)=>{const a=n,{minimum:i,maximum:r,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?a.type="integer":a.type="number";const p=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(r??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";p?h?(a.minimum=u,a.exclusiveMinimum=!0):a.exclusiveMinimum=u:typeof i=="number"&&(a.minimum=i),d?h?(a.maximum=c,a.exclusiveMaximum=!0):a.exclusiveMaximum=c:typeof r=="number"&&(a.maximum=r),typeof s=="number"&&(a.multipleOf=s)},pd=(e,t,n,o)=>{n.type="boolean"},md=(e,t,n,o)=>{n.not={}},gd=(e,t,n,o)=>{},bd=(e,t,n,o)=>{},vd=(e,t,n,o)=>{const a=e._zod.def,i=_i(a.entries);i.every(r=>typeof r=="number")&&(n.type="number"),i.every(r=>typeof r=="string")&&(n.type="string"),n.enum=i},xd=(e,t,n,o)=>{const a=e._zod.def,i=[];for(const r of a.values)if(r===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof r=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(r))}else i.push(r);if(i.length!==0)if(i.length===1){const r=i[0];n.type=r===null?"null":typeof r,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[r]:n.const=r}else i.every(r=>typeof r=="number")&&(n.type="number"),i.every(r=>typeof r=="string")&&(n.type="string"),i.every(r=>typeof r=="boolean")&&(n.type="boolean"),i.every(r=>r===null)&&(n.type="null"),n.enum=i},Sd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wd=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},kd=(e,t,n,o)=>{const a=n,i=e._zod.def,{minimum:r,maximum:l}=e._zod.bag;typeof r=="number"&&(a.minItems=r),typeof l=="number"&&(a.maxItems=l),a.type="array",a.items=fe(i.element,t,{...o,path:[...o.path,"items"]})},_d=(e,t,n,o)=>{var c;const a=n,i=e._zod.def;a.type="object",a.properties={};const r=i.shape;for(const u in r)a.properties[u]=fe(r[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(r)),s=new Set([...l].filter(u=>{const p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));s.size>0&&(a.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?a.additionalProperties=!1:i.catchall?i.catchall&&(a.additionalProperties=fe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},$d=(e,t,n,o)=>{const a=e._zod.def,i=a.inclusive===!1,r=a.options.map((l,s)=>fe(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=r:n.anyOf=r},Cd=(e,t,n,o)=>{const a=e._zod.def,i=fe(a.left,t,{...o,path:[...o.path,"allOf",0]}),r=fe(a.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(r)?r.allOf:[r]];n.allOf=s},Ad=(e,t,n,o)=>{const a=n,i=e._zod.def;a.type="array";const r=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,h)=>fe(d,t,{...o,path:[...o.path,r,h]})),c=i.rest?fe(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,c&&(a.items=c)):t.target==="openapi-3.0"?(a.items={anyOf:s},c&&a.items.anyOf.push(c),a.minItems=s.length,c||(a.maxItems=s.length)):(a.items=s,c&&(a.additionalItems=c));const{minimum:u,maximum:p}=e._zod.bag;typeof u=="number"&&(a.minItems=u),typeof p=="number"&&(a.maxItems=p)},yd=(e,t,n,o)=>{const a=n,i=e._zod.def;a.type="object";const r=i.keyType,l=r._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=fe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(const p of s)a.patternProperties[p.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=fe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=fe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=r._zod.values;if(c){const u=[...c].filter(p=>typeof p=="string"||typeof p=="number");u.length>0&&(a.required=u)}},Nd=(e,t,n,o)=>{const a=e._zod.def,i=fe(a.innerType,t,o),r=t.seen.get(e);t.target==="openapi-3.0"?(r.ref=a.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Rd=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType},Ed=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Id=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Md=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType;let r;try{r=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=r},Td=(e,t,n,o)=>{const a=e._zod.def,i=a.in._zod.traits.has("$ZodTransform"),r=t.io==="input"?i?a.out:a.in:a.out;fe(r,t,o);const l=t.seen.get(e);l.ref=r},Pd=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType,n.readOnly=!0},Vi=(e,t,n,o)=>{const a=e._zod.def;fe(a.innerType,t,o);const i=t.seen.get(e);i.ref=a.innerType},Od=(e,t,n,o)=>{const a=e._zod.innerType;fe(a,t,o);const i=t.seen.get(e);i.ref=a},Ld=E("ZodISODateTime",(e,t)=>{Ec.init(e,t),pe.init(e,t)});function zd(e){return Bu(Ld,e)}const jd=E("ZodISODate",(e,t)=>{Ic.init(e,t),pe.init(e,t)});function Bd(e){return Du(jd,e)}const Dd=E("ZodISOTime",(e,t)=>{Mc.init(e,t),pe.init(e,t)});function Hd(e){return Hu(Dd,e)}const Fd=E("ZodISODuration",(e,t)=>{Tc.init(e,t),pe.init(e,t)});function Gd(e){return Fu(Fd,e)}const Ud=(e,t)=>{yi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ks(e,n)},flatten:{value:n=>ws(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Bo,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Bo,2)}},isEmpty:{get(){return e.issues.length===0}}})},ze=E("ZodError",Ud,{Parent:Error}),Zd=Aa(ze),Wd=ya(ze),qd=Zn(ze),Vd=Wn(ze),Yd=Cs(ze),Kd=As(ze),Jd=ys(ze),Xd=Ns(ze),Qd=Rs(ze),eh=Es(ze),th=Is(ze),nh=Ms(ze),cr=new WeakMap;function cn(e,t,n){const o=Object.getPrototypeOf(e);let a=cr.get(o);if(a||(a=new Set,cr.set(o,a)),!a.has(t)){a.add(t);for(const i in n){const r=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=r.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const ce=E("ZodType",(e,t)=>(se.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ln(e,"input"),output:Ln(e,"output")}}),e.toJSONSchema=ud(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Zd(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>qd(e,n,o),e.parseAsync=async(n,o)=>Wd(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Vd(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>Yd(e,n,o),e.decode=(n,o)=>Kd(e,n,o),e.encodeAsync=async(n,o)=>Jd(e,n,o),e.decodeAsync=async(n,o)=>Xd(e,n,o),e.safeEncode=(n,o)=>Qd(e,n,o),e.safeDecode=(n,o)=>eh(e,n,o),e.safeEncodeAsync=async(n,o)=>th(e,n,o),e.safeDecodeAsync=async(n,o)=>nh(e,n,o),cn(e,"ZodType",{check(...n){const o=this.def;return this.clone(pt(o,{checks:[...o.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return mt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Xh(n,o))},superRefine(n,o){return this.check(Qh(n,o))},overwrite(n){return this.check(Bt(n))},optional(){return pr(this)},exactOptional(){return zh(this)},nullable(){return mr(this)},nullish(){return pr(mr(this))},nonoptional(n){return Gh(this,n)},array(){return W(this)},or(n){return D([this,n])},and(n){return Mh(this,n)},transform(n){return gr(this,Qi(n))},default(n){return Dh(this,n)},prefault(n){return Fh(this,n)},catch(n){return Zh(this,n)},pipe(n){return gr(this,n)},readonly(){return Vh(this)},describe(n){const o=this.clone();return Xt.add(o,{description:n}),o},meta(...n){if(n.length===0)return Xt.get(this);const o=this.clone();return Xt.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=Xt.get(e))==null?void 0:n.description},configurable:!0}),e)),Yi=E("_ZodString",(e,t)=>{Na.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>hd(e,o,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,cn(e,"_ZodString",{regex(...o){return this.check(Yu(...o))},includes(...o){return this.check(Xu(...o))},startsWith(...o){return this.check(Qu(...o))},endsWith(...o){return this.check(ed(...o))},min(...o){return this.check(On(...o))},max(...o){return this.check(Gi(...o))},length(...o){return this.check(Ui(...o))},nonempty(...o){return this.check(On(1,...o))},lowercase(o){return this.check(Ku(o))},uppercase(o){return this.check(Ju(o))},trim(){return this.check(nd())},normalize(...o){return this.check(td(...o))},toLowerCase(){return this.check(od())},toUpperCase(){return this.check(ad())},slugify(){return this.check(rd())}})}),oh=E("ZodString",(e,t)=>{Na.init(e,t),Yi.init(e,t),e.email=n=>e.check(vu(ah,n)),e.url=n=>e.check(_u(rh,n)),e.jwt=n=>e.check(ju(Sh,n)),e.emoji=n=>e.check($u(ih,n)),e.guid=n=>e.check(rr(ur,n)),e.uuid=n=>e.check(xu(Sn,n)),e.uuidv4=n=>e.check(Su(Sn,n)),e.uuidv6=n=>e.check(wu(Sn,n)),e.uuidv7=n=>e.check(ku(Sn,n)),e.nanoid=n=>e.check(Cu(lh,n)),e.guid=n=>e.check(rr(ur,n)),e.cuid=n=>e.check(Au(sh,n)),e.cuid2=n=>e.check(yu(ch,n)),e.ulid=n=>e.check(Nu(uh,n)),e.base64=n=>e.check(Ou(bh,n)),e.base64url=n=>e.check(Lu(vh,n)),e.xid=n=>e.check(Ru(dh,n)),e.ksuid=n=>e.check(Eu(hh,n)),e.ipv4=n=>e.check(Iu(fh,n)),e.ipv6=n=>e.check(Mu(ph,n)),e.cidrv4=n=>e.check(Tu(mh,n)),e.cidrv6=n=>e.check(Pu(gh,n)),e.e164=n=>e.check(zu(xh,n)),e.datetime=n=>e.check(zd(n)),e.date=n=>e.check(Bd(n)),e.time=n=>e.check(Hd(n)),e.duration=n=>e.check(Gd(n))});function x(e){return bu(oh,e)}const pe=E("ZodStringFormat",(e,t)=>{he.init(e,t),Yi.init(e,t)}),ah=E("ZodEmail",(e,t)=>{wc.init(e,t),pe.init(e,t)}),ur=E("ZodGUID",(e,t)=>{xc.init(e,t),pe.init(e,t)}),Sn=E("ZodUUID",(e,t)=>{Sc.init(e,t),pe.init(e,t)}),rh=E("ZodURL",(e,t)=>{kc.init(e,t),pe.init(e,t)}),ih=E("ZodEmoji",(e,t)=>{_c.init(e,t),pe.init(e,t)}),lh=E("ZodNanoID",(e,t)=>{$c.init(e,t),pe.init(e,t)}),sh=E("ZodCUID",(e,t)=>{Cc.init(e,t),pe.init(e,t)}),ch=E("ZodCUID2",(e,t)=>{Ac.init(e,t),pe.init(e,t)}),uh=E("ZodULID",(e,t)=>{yc.init(e,t),pe.init(e,t)}),dh=E("ZodXID",(e,t)=>{Nc.init(e,t),pe.init(e,t)}),hh=E("ZodKSUID",(e,t)=>{Rc.init(e,t),pe.init(e,t)}),fh=E("ZodIPv4",(e,t)=>{Pc.init(e,t),pe.init(e,t)}),ph=E("ZodIPv6",(e,t)=>{Oc.init(e,t),pe.init(e,t)}),mh=E("ZodCIDRv4",(e,t)=>{Lc.init(e,t),pe.init(e,t)}),gh=E("ZodCIDRv6",(e,t)=>{zc.init(e,t),pe.init(e,t)}),bh=E("ZodBase64",(e,t)=>{jc.init(e,t),pe.init(e,t)}),vh=E("ZodBase64URL",(e,t)=>{Dc.init(e,t),pe.init(e,t)}),xh=E("ZodE164",(e,t)=>{Hc.init(e,t),pe.init(e,t)}),Sh=E("ZodJWT",(e,t)=>{Gc.init(e,t),pe.init(e,t)}),Ki=E("ZodNumber",(e,t)=>{zi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>fd(e,o,a),cn(e,"ZodNumber",{gt(o,a){return this.check(lr(o,a))},gte(o,a){return this.check(to(o,a))},min(o,a){return this.check(to(o,a))},lt(o,a){return this.check(ir(o,a))},lte(o,a){return this.check(eo(o,a))},max(o,a){return this.check(eo(o,a))},int(o){return this.check(dr(o))},safe(o){return this.check(dr(o))},positive(o){return this.check(lr(0,o))},nonnegative(o){return this.check(to(0,o))},negative(o){return this.check(ir(0,o))},nonpositive(o){return this.check(eo(0,o))},multipleOf(o,a){return this.check(sr(o,a))},step(o,a){return this.check(sr(o,a))},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 f(e){return Gu(Ki,e)}const wh=E("ZodNumberFormat",(e,t)=>{Uc.init(e,t),Ki.init(e,t)});function dr(e){return Uu(wh,e)}const kh=E("ZodBoolean",(e,t)=>{Zc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>pd(e,n,o)});function P(e){return Zu(kh,e)}const _h=E("ZodAny",(e,t)=>{Wc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gd()});function an(){return Wu(_h)}const $h=E("ZodUnknown",(e,t)=>{qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bd()});function hr(){return qu($h)}const Ch=E("ZodNever",(e,t)=>{Vc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>md(e,n,o)});function Ah(e){return Vu(Ch,e)}const yh=E("ZodArray",(e,t)=>{Yc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kd(e,n,o,a),e.element=t.element,cn(e,"ZodArray",{min(n,o){return this.check(On(n,o))},nonempty(n){return this.check(On(1,n))},max(n,o){return this.check(Gi(n,o))},length(n,o){return this.check(Ui(n,o))},unwrap(){return this.element}})});function W(e,t){return id(yh,e,t)}const Nh=E("ZodObject",(e,t)=>{Jc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>_d(e,n,o,a),K(e,"shape",()=>t.shape),cn(e,"ZodObject",{keyof(){return I(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:hr()})},loose(){return this.clone({...this._zod.def,catchall:hr()})},strict(){return this.clone({...this._zod.def,catchall:Ah()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return ms(this,n)},safeExtend(n){return gs(this,n)},merge(n){return bs(this,n)},pick(n){return fs(this,n)},omit(n){return ps(this,n)},partial(...n){return vs(el,this,n[0])},required(...n){return xs(tl,this,n[0])}})});function C(e,t){const n={type:"object",shape:e??{},...z(t)};return new Nh(n)}const Ji=E("ZodUnion",(e,t)=>{Di.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$d(e,n,o,a),e.options=t.options});function D(e,t){return new Ji({type:"union",options:e,...z(t)})}const Rh=E("ZodDiscriminatedUnion",(e,t)=>{Ji.init(e,t),Xc.init(e,t)});function Eh(e,t,n){return new Rh({type:"union",options:t,discriminator:e,...z(n)})}const Ih=E("ZodIntersection",(e,t)=>{Qc.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Cd(e,n,o,a)});function Mh(e,t){return new Ih({type:"intersection",left:e,right:t})}const Th=E("ZodTuple",(e,t)=>{eu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ad(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Xi(e,t,n){const o=t instanceof se,a=o?n:t,i=o?t:null;return new Th({type:"tuple",items:e,rest:i,...z(a)})}const fr=E("ZodRecord",(e,t)=>{tu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>yd(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function Lt(e,t,n){return!t||!t._zod?new fr({type:"record",keyType:x(),valueType:e,...z(t)}):new fr({type:"record",keyType:e,valueType:t,...z(n)})}const Ho=E("ZodEnum",(e,t)=>{nu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(o,a,i)=>vd(e,o,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,a)=>{const i={};for(const r of o)if(n.has(r))i[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new Ho({...t,checks:[],...z(a),entries:i})},e.exclude=(o,a)=>{const i={...t.entries};for(const r of o)if(n.has(r))delete i[r];else throw new Error(`Key ${r} not found in enum`);return new Ho({...t,checks:[],...z(a),entries:i})}});function I(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Ho({type:"enum",entries:n,...z(t)})}const Ph=E("ZodLiteral",(e,t)=>{ou.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xd(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function re(e,t){return new Ph({type:"literal",values:Array.isArray(e)?e:[e],...z(t)})}const Oh=E("ZodTransform",(e,t)=>{au.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wd(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ki(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(on(i,n.value,t));else{const r=i;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(on(r))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function Qi(e){return new Oh({type:"transform",transform:e})}const el=E("ZodOptional",(e,t)=>{Hi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Vi(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function pr(e){return new el({type:"optional",innerType:e})}const Lh=E("ZodExactOptional",(e,t)=>{ru.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Vi(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function zh(e){return new Lh({type:"optional",innerType:e})}const jh=E("ZodNullable",(e,t)=>{iu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Nd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function mr(e){return new jh({type:"nullable",innerType:e})}const Bh=E("ZodDefault",(e,t)=>{lu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ed(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Dh(e,t){return new Bh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ci(t)}})}const Hh=E("ZodPrefault",(e,t)=>{su.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Id(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Fh(e,t){return new Hh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ci(t)}})}const tl=E("ZodNonOptional",(e,t)=>{cu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Rd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Gh(e,t){return new tl({type:"nonoptional",innerType:e,...z(t)})}const Uh=E("ZodCatch",(e,t)=>{uu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Md(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Zh(e,t){return new Uh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const nl=E("ZodPipe",(e,t)=>{Fi.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Td(e,n,o,a),e.in=t.in,e.out=t.out});function gr(e,t){return new nl({type:"pipe",in:e,out:t})}const Wh=E("ZodPreprocess",(e,t)=>{nl.init(e,t),du.init(e,t)}),qh=E("ZodReadonly",(e,t)=>{hu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Pd(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Vh(e){return new qh({type:"readonly",innerType:e})}const Yh=E("ZodLazy",(e,t)=>{fu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Od(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function Kh(e){return new Yh({type:"lazy",getter:e})}const Jh=E("ZodCustom",(e,t)=>{pu.init(e,t),ce.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sd(e,n)});function Xh(e,t={}){return ld(Jh,e,t)}function Qh(e,t){return sd(e,t)}function ol(e,t){return new Wh({type:"pipe",in:Qi(e),out:t})}var ef=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,br=C({style:C({textAlign:I(["left","center","right"]).optional().nullable(),padding:ef}).optional().nullable(),props:C({size:f().gt(0).optional().nullable(),shape:I(["circle","square","rounded"]).optional().nullable(),imageUrl:x().optional().nullable(),alt:x().optional().nullable()}).optional().nullable()});function nf(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var wn={size:64,imageUrl:"",alt:"",shape:"square"};function vr({style:e,props:t}){var n,o,a,i,r;const l=(n=t==null?void 0:t.size)!=null?n:wn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:wn.imageUrl,c=(a=t==null?void 0:t.alt)!=null?a:wn.alt,u=(i=t==null?void 0:t.shape)!=null?i:wn.shape,p={textAlign:(r=e==null?void 0:e.textAlign)!=null?r:void 0,padding:tf(e==null?void 0:e.padding)};return G.createElement("div",{style:p},G.createElement("img",{alt:c,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:nf(u,l)}}))}const un=C({type:I(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:I(["load","scroll","hover","click"]),speed:I(["slow","medium","fast"]),delay:f().min(0).max(1e4).optional().nullable(),disableOnMobile:P().optional().nullable()}).optional().nullable(),of=br.extend({props:br.shape.props.unwrap().unwrap().extend({decorative:P().optional().nullable(),animation:un}).optional().nullable()}),Qt={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},Ra=Object.values(Qt);function al(){return"desktop"}const je=1024,Ae=640,ot=`@media (max-width: ${je}px)`,Oe=`@media (max-width: ${Ae}px)`,dn=`@media (min-width: ${Ae+1}px) and (max-width: ${je}px)`,Vn=C({color:x().optional().nullable(),offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:P().default(!1)}).partial().optional().nullable();function af(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 Yn(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:i=0,inset:r=!1}=e;return{boxShadow:`${r?"inset ":""}${n}px ${o}px ${a}px ${i}px ${af(t)}`}}const Te=C({tablet:Lt(x(),an()).optional().nullable(),mobile:Lt(x(),an()).optional().nullable()}).optional().nullable(),rf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},uf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},df=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ff=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},pf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},gf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},bf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},vf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},xf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Sf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},wf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},kf=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},_f=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:g.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function ut(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(rf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(uf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(mf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(df,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(lf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(sf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(cf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(hf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(ff,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(pf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(vf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(Sf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(kf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(gf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(xf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(wf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(_f,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(bf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const $f=I(["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 no(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 Cf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Af=x().regex(/^rgba?\([^\)]+\)$/i),yf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Nf=re("transparent"),At=D([Cf,Af,yf,Nf]).nullable().optional(),Rf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ef=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),If=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Mf=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),Tf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Pf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Of=C({style:C({backgroundColor:At,fontSize:f().min(0).optional().nullable(),fontFamily:$f,fontWeight:I(["bold","normal",...Ra]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),buttonTextAlign:I(["left","center","right"]).optional().nullable(),padding:Rf,margin:Ef}).optional().nullable(),props:C({buttonBackground:At,hoverBackground:At,hoverTextColor:At,borderRadius:Mf,borderWidth:If,borderColor:At,buttonTextColor:At,fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),size:I(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:I(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:I(["x-small","small","large","medium"]).optional().nullable(),text:x().optional().nullable(),url:x().optional().nullable(),action:I(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:P().optional().nullable(),customAction:x().optional().nullable(),actionPayload:Lt(x(),an()).optional().nullable(),iconEnabled:P().optional().nullable(),iconName:x().optional().nullable(),iconAlignment:I(["left","right"]).optional().nullable(),ariaLabel:x().optional().nullable(),goToStep:x().optional().nullable(),postMessageEvent:x().optional().nullable(),animation:un,boxShadow:Vn}).optional().nullable(),responsive:Te});function xr(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 ge={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",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:"",boxShadow:null};function Lf({style:e,props:t}){const o=`bh-${G.useId().replace(/:/g,"")}`,a=(t==null?void 0:t.text)??ge.text,i=(t==null?void 0:t.url)??ge.url,r=(t==null?void 0:t.fullWidth)??ge.fullWidth,l=(t==null?void 0:t.widthType)??ge.widthType,s=(t==null?void 0:t.width)??ge.width,c=(t==null?void 0:t.widthUnit)??ge.widthUnit,u=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,d=u??s,h=p??d,m=(t==null?void 0:t.widthTypeTablet)??l,b=(t==null?void 0:t.widthTypeMobile)??m,v=(t==null?void 0:t.size)??ge.size,k=(t==null?void 0:t.sizeTablet)??v,S=(t==null?void 0:t.sizeMobile)??k,$=l,w=s,_=(t==null?void 0:t.buttonTextColor)??ge.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??ge.buttonBackground,A=(t==null?void 0:t.iconEnabled)??ge.iconEnabled,y=(t==null?void 0:t.iconName)??ge.iconName,R=(t==null?void 0:t.iconAlignment)??ge.iconAlignment,M=(t==null?void 0:t.ariaLabel)??null,T=typeof a=="string"&&a.trim().length>0,L=M&&M.trim().length>0?M:!T&&A&&y?y:void 0,H=(t==null?void 0:t.action)??ge.action,F=(t==null?void 0:t.openInNewTab)??ge.openInNewTab,O=((t==null?void 0:t.customAction)??ge.customAction)||H,q=(t==null?void 0:t.actionPayload)??ge.actionPayload,B=(t==null?void 0:t.goToStep)??ge.goToStep,Y=(t==null?void 0:t.postMessageEvent)??ge.postMessageEvent,de=q||(O==="goToStep"?{goToStep:B||""}:null)||(O==="postMessageEvent"?{postMessageEvent:Y||""}:null),oe=de?JSON.stringify(de):void 0,ee=(t==null?void 0:t.borderRadius)??ge.borderRadius,Z=(t==null?void 0:t.borderWidth)??ge.borderWidth,J=(t==null?void 0:t.borderColor)??ge.borderColor,Ee=(t==null?void 0:t.boxShadow)??ge.boxShadow,we=Yn(Ee),me=(t==null?void 0:t.hoverBackground)??null,ne=(t==null?void 0:t.hoverTextColor)??null,V=xr(v),U=_e=>typeof _e=="number"?`${_e}px`:`${_e.topLeft}px ${_e.topRight}px ${_e.bottomRight}px ${_e.bottomLeft}px`,X=(_e,ct)=>{if(typeof _e=="number")return`${Math.max(0,_e-ct)}px`;const Xn=Math.max(0,(_e.topLeft||0)-ct),Qn=Math.max(0,(_e.topRight||0)-ct),$t=Math.max(0,(_e.bottomRight||0)-ct),Ct=Math.max(0,(_e.bottomLeft||0)-ct);return`${Xn}px ${Qn}px ${$t}px ${Ct}px`},ye=J&&(J.includes("linear-gradient")||J.includes("radial-gradient")||J.includes("repeating-linear-gradient")),te=Z&&((Z.top??0)>0||(Z.right??0)>0||(Z.bottom??0)>0||(Z.left??0)>0),Q={top:(Z==null?void 0:Z.top)??0,right:(Z==null?void 0:Z.right)??0,bottom:(Z==null?void 0:Z.bottom)??0,left:(Z==null?void 0:Z.left)??0},Pe=(()=>{if(r)return"100%";switch($){case"fill":return"100%";case"fixed":return`${w}${c}`;case"fit":default:return"auto"}})(),ke=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",it=ke==="center"?"center":ke==="right"?"flex-end":"flex-start",bt=()=>!J||J==="transparent"||!te?{border:"none"}:ye?{borderTop:`${Q.top}px solid transparent`,borderRight:`${Q.right}px solid transparent`,borderBottom:`${Q.bottom}px solid transparent`,borderLeft:`${Q.left}px solid transparent`,borderImage:`${J} `,borderRadius:"0px"}:{borderTop:`${Q.top}px solid ${J}`,borderRight:`${Q.right}px solid ${J}`,borderBottom:`${Q.bottom}px solid ${J}`,borderLeft:`${Q.left}px solid ${J}`},Ne=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),Se=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),ie=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),be={backgroundColor:ie?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:ie?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Tf(e==null?void 0:e.padding),margin:Pf(e==null?void 0:e.margin)},Ie=bt(),lt=Se?{backgroundImage:_,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:_||void 0},Fe=Se?"transparent":Ne?void 0:N,st=Se?void 0:Ne?N:void 0,Me=(e==null?void 0:e.fontSize)??16,_t=`${Me}px`,Gt={fontSize:_t,fontFamily:no(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,backgroundColor:Fe,backgroundImage:st,borderRadius:ye?"0px":U(ee),...Ie,...ye&&te?{}:we,display:Pe==="100%"?"block":"inline-block",width:Pe,padding:`${V[0]}px ${V[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:it,lineHeight:"normal"},gn=ye&&te?g.jsx("div",{style:{display:Pe==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:J,borderRadius:U(ee),width:Pe,boxSizing:"border-box",...we},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:X(ee,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,fontFamily:no(e==null?void 0:e.fontFamily),backgroundImage:st??(Ne?N:"#fffff"),backgroundColor:Fe??(Ne?"#ffffff":N),textAlign:ke,textDecoration:"none",fontSize:_t,padding:`${V[0]}px ${V[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":O,"data-action-payload":oe,"data-goto-step":O==="goToStep"&&B?B:void 0,"data-post-message-event":O==="postMessageEvent"&&Y?Y:void 0,type:"button","aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},"data-action":O,children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...Ie,...we,borderRadius:U(ee),width:Pe,fontWeight:(e==null?void 0:e.fontWeight)??Qt.REGULAR,fontFamily:no(e==null?void 0:e.fontFamily),backgroundColor:Fe??(Ne?"":N),backgroundImage:st??(Ne?N:""),textAlign:ke,textDecoration:"none",fontSize:_t,padding:`${V[0]}px ${V[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":O,"data-action-payload":oe,"data-goto-step":O==="goToStep"&&B?B:void 0,"data-post-message-event":O==="postMessageEvent"&&Y?Y:void 0,type:"button","aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},"data-action":O,children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":O,children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]}),ae=[];me&&ae.push(`background-color: ${me} !important; background-image: none !important;`),ne&&ae.push(`color: ${ne} !important;`);const le=ae.length>0?`#${o} a:hover, #${o} button:hover { ${ae.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${ne?`color: ${ne} !important; -webkit-text-fill-color: ${ne} !important;`:""} }`:null,Ge=(_e,ct,Xn,Qn)=>{const $t=[],Ct=r||ct==="fill"?"100%":ct==="fixed"?`${Xn}${c}`:"auto";$t.push(`width: ${Ct} !important;`,"max-width: 100% !important;"),$t.push(`display: ${Ct==="100%"?"block":"inline-block"} !important;`);const[Fa,rs]=xr(Qn);return $t.push(`padding: ${Fa}px ${rs}px !important;`),`${_e} { #${o} a, #${o} button { ${$t.join(" ")} } #${o} > div { width: ${Ct} !important; max-width: 100% !important; display: ${Ct==="100%"?"block":"inline-block"} !important; } }`},Qe=m!==l||k!==v||m==="fixed"&&d!==s,et=b!==l||S!==v||b==="fixed"&&h!==s,bn=Qe||et?[Qe?Ge(ot,m,d,k):"",et?Ge(Oe,b,h,S):""].filter(Boolean).join(`
65
- `):null;if(H!=="link")return g.jsxs("div",{id:o,className:"button-block",style:be,children:[le&&g.jsx("style",{children:le}),bn&&g.jsx("style",{children:bn}),gn]});const as=ye&&te?g.jsx("div",{style:{display:Pe==="100%"?"block":"inline-block",padding:`${Q.top}px ${Q.right}px ${Q.bottom}px ${Q.left}px`,background:J,borderRadius:U(ee),width:Pe,boxSizing:"border-box",...we},children:g.jsxs("a",{href:i,style:{...Gt,border:"none",borderRadius:X(ee,Math.max(Q.top,Q.right,Q.bottom,Q.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:it},target:F?"_blank":void 0,rel:F?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]})}):g.jsxs("a",{href:i,style:{...Gt,borderRadius:U(ee),display:"inline-flex",alignItems:"center",justifyContent:it},target:F?"_blank":void 0,rel:F?"noopener noreferrer":void 0,"aria-label":L,children:[A&&y&&R==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null,g.jsx("span",{style:{...lt,pointerEvents:"none"},children:a}),A&&y&&R==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ut(y,{strokeColor:Se?void 0:_,fontSize:Me})}):null]});return g.jsxs("div",{id:o,className:"button-block",style:be,children:[le&&g.jsx("style",{children:le}),bn&&g.jsx("style",{children:bn}),as]})}const zf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),jf=x().regex(/^rgba?\([^\)]+\)$/i),Bf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Df=re("transparent"),Sr=D([zf,jf,Bf,Df]).nullable().optional(),Hf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ff=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Gf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Uf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Zf=C({style:C({backgroundColor:Sr,padding:Hf,margin:Ff}).optional().nullable(),props:C({lineColor:Sr,lineHeight:f().optional().nullable()}).optional().nullable()}),wr={lineHeight:1,lineColor:"#333333"};function Wf({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??wr.lineHeight,o=(t==null?void 0:t.lineColor)??wr.lineColor,a={padding:Gf(e==null?void 0:e.padding),margin:Uf(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:a,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const qf=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Vf=x().regex(/^rgba?\([^\)]+\)$/i),Yf=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Kf=re("transparent"),oo=D([qf,Vf,Yf,Kf]).nullable().optional(),Jf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Xf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Qf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ep=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,tp=I(["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 np(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 op=C({props:C({text:x().optional().nullable(),level:I(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:I(["text","link"]).optional().nullable(),url:x().optional().nullable(),openInNewTab:P().optional().nullable()}).optional().nullable(),style:C({color:oo,textColor:oo,backgroundColor:oo,fontFamily:tp,fontSize:f().optional().nullable(),lineClamp:f().int().gte(0).optional().nullable(),fontWeight:I(["bold","normal",...Ra]).optional().nullable(),fontStyle:I(["italic","normal"]).optional().nullable(),textDecoration:I(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:Jf,margin:Xf}).optional().nullable()}),Ut={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function ap({props:e,style:t}){const n=(e==null?void 0:e.level)??Ut.level,o=(e==null?void 0:e.text)??Ut.text,a=(e==null?void 0:e.linkType)??Ut.linkType,i=(e==null?void 0:e.url)??Ut.url,r=(e==null?void 0:e.openInNewTab)??Ut.openInNewTab,l=a==="link"&&i,s=(t==null?void 0:t.fontSize)??rp(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),u=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),p=(t==null?void 0:t.textDecoration)??"none",d=u&&(p==="underline"||p==="underline line-through"),h=u&&(p==="line-through"||p==="underline line-through"),m=t==null?void 0:t.lineClamp,b=!!(m&&m>0),v=b?{display:"-webkit-box",WebkitLineClamp:m,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},k={fontWeight:(t==null?void 0:t.fontWeight)??Qt.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:u?"none":p,margin:0,fontFamily:np(t==null?void 0:t.fontFamily),fontSize:s,...v},S=u?{lineHeight:"normal ",backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...b?{}:{display:"inline-block"},...d?{paddingBottom:"0.08em"}:{}}:{color:c??void 0},$={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:c??void 0,pointerEvents:"none"},w={...$,bottom:0},_={...$,top:"50%",transform:"translateY(-50%)"},N=(t==null?void 0:t.backgroundColor)??void 0,A=typeof N=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(N),y={padding:Qf(t==null?void 0:t.padding),margin:ep(t==null?void 0:t.margin),display:"block",width:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...A?{backgroundImage:N,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:N}},R=n,M=g.jsx(R,{className:"heading-block",style:k,children:g.jsxs("span",{style:S,children:[o,d?g.jsx("span",{style:w}):null,h?g.jsx("span",{style:_}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:y,children:l?g.jsx("a",{href:i,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!u&&c?c:void 0},children:M}):M})}function rp(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 rl="comm",il="rule",ll="decl",ip="@import",lp="@namespace",sp="@keyframes",cp="@layer",up=Math.abs,en=String.fromCharCode;function sl(e){return e.trim()}function Fo(e,t,n){return e.replace(t,n)}function Tt(e,t){return e.charCodeAt(t)|0}function zt(e,t,n){return e.slice(t,n)}function Je(e){return e.length}function dp(e){return e.length}function kn(e,t){return t.push(e),e}var Kn=1,jt=1,cl=0,Le=0,xe=0,Dt="";function Ea(e,t,n,o,a,i,r,l){return{value:e,root:t,parent:n,type:o,props:a,children:i,line:Kn,column:jt,length:r,return:"",siblings:l}}function hp(){return xe}function fp(){return xe=Le>0?Tt(Dt,--Le):0,jt--,xe===10&&(jt=1,Kn--),xe}function We(){return xe=Le<cl?Tt(Dt,Le++):0,jt++,xe===10&&(jt=1,Kn++),xe}function ft(){return Tt(Dt,Le)}function Rn(){return Le}function Jn(e,t){return zt(Dt,e,t)}function rn(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 pp(e){return Kn=jt=1,cl=Je(Dt=e),Le=0,[]}function mp(e){return Dt="",e}function ao(e){return sl(Jn(Le-1,Go(e===91?e+2:e===40?e+1:e)))}function gp(e){for(;(xe=ft())&&xe<33;)We();return rn(e)>2||rn(xe)>3?"":" "}function bp(e,t){for(;--t&&We()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Jn(e,Rn()+(t<6&&ft()==32&&We()==32))}function Go(e){for(;We();)switch(xe){case e:return Le;case 34:case 39:e!==34&&e!==39&&Go(xe);break;case 40:e===41&&Go(e);break;case 92:We();break}return Le}function vp(e,t){for(;We()&&e+xe!==57;)if(e+xe===84&&ft()===47)break;return"/*"+Jn(t,Le-1)+"*"+en(e===47?e:We())}function xp(e){for(;!rn(ft());)We();return Jn(e,Le)}function Sp(e){return mp(En("",null,null,null,[""],e=pp(e),0,[0],e))}function En(e,t,n,o,a,i,r,l,s){for(var c=0,u=0,p=r,d=0,h=0,m=0,b=1,v=1,k=1,S=0,$=0,w="",_=a,N=i,A=o,y=w;v;)switch(m=$,$=We()){case 40:m!=108&&Tt(y,p-1)==58?(S++,y+="("):y+=ao($);break;case 41:S--,y+=")";break;case 34:case 39:case 91:y+=ao($);break;case 9:case 10:case 13:case 32:if(S>0){y+=en($);break}y+=gp(m);break;case 92:y+=bp(Rn()-1,7);continue;case 47:switch(ft()){case 42:case 47:kn(wp(vp(We(),Rn()),t,n,s),s),(rn(m||1)==5||rn(ft()||1)==5)&&Je(y)&&zt(y,-1,void 0)!==" "&&(y+=" ");break;default:y+="/"}break;case 123*b:l[c++]=Je(y)*k;case 125*b:case 59:case 0:if(S>0&&$){y+=en($);break}switch($){case 0:case 125:v=0;case 59+u:k==-1&&(y=Fo(y,/\f/g,"")),h>0&&(Je(y)-p||b===0)&&kn(h>32?_r(y+";",o,n,p-1,s):_r(Fo(y," ","")+";",o,n,p-2,s),s);break;case 59:y+=";";default:if(kn(A=kr(y,t,n,c,u,a,l,w,_=[],N=[],p,i),i),$===123)if(u===0)En(y,t,A,A,_,i,p,l,N);else{switch(d){case 99:if(Tt(y,3)===110)break;case 108:if(Tt(y,2)===97)break;default:u=0;case 100:case 109:case 115:}u?En(e,A,A,o&&kn(kr(e,A,A,0,0,a,l,w,a,_=[],p,N),N),a,N,p,l,o?_:N):En(y,A,A,A,[""],N,0,l,N)}}c=u=h=0,b=k=1,w=y="",p=r;break;case 58:p=1+Je(y),h=m;default:if(b<1){if($==123)--b;else if($==125&&b++==0&&fp()==125)continue}switch(y+=en($),$*b){case 38:k=u>0?1:(y+="\f",-1);break;case 44:if(S>0)break;l[c++]=(Je(y)-1)*k,k=1;break;case 64:ft()===45&&(y+=ao(We())),d=ft(),u=p=Je(w=y+=xp(Rn())),$++;break;case 45:m===45&&Je(y)==2&&(b=0)}}return i}function kr(e,t,n,o,a,i,r,l,s,c,u,p){for(var d=a-1,h=a===0?i:[""],m=dp(h),b=0,v=0,k=0;b<o;++b)for(var S=0,$=zt(e,d+1,d=up(v=r[b])),w=e;S<m;++S)(w=sl(v>0?h[S]+" "+$:Fo($,/&\f/g,h[S])))&&(s[k++]=w);return Ea(e,t,n,a===0?il:l,s,c,u,p)}function wp(e,t,n,o){return Ea(e,t,n,rl,en(hp()),zt(e,2,-2),0,o)}function _r(e,t,n,o,a){return Ea(e,t,n,ll,zt(e,0,o),zt(e,o+1,-1),o,a)}function Uo(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function kp(e,t,n,o){switch(e.type){case cp:if(e.children.length)break;case ip:case lp:case ll:return e.return=e.return||e.value;case rl:return"";case sp:return e.return=e.value+"{"+Uo(e.children,o)+"}";case il:if(!Je(e.value=e.props.join(",")))return""}return Je(n=Uo(e.children,o))?e.return=e.value+"{"+n+"}":""}const _p=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$p=x().regex(/^rgba?\([^\)]+\)$/i),Cp=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ap=re("transparent"),$r=D([_p,$p,Cp,Ap]).nullable().optional(),yp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Np=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Rp=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ep=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ip=I(["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 Mp(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 Tp=C({style:C({color:$r,backgroundColor:$r,fontFamily:Ip,fontSize:f().min(0).optional().nullable(),textAlign:I(["left","right","center"]).optional().nullable(),padding:yp,margin:Np}).optional().nullable(),props:C({contents:x().optional().nullable()}).optional().nullable()}),Pp=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Op(e,t){let n="";const o=e.replace(Pp,(i,r)=>(n+=r,""));if(!n.trim())return{markup:o,css:""};const a=Uo(Sp(`[${t}]{${n}}`),kp);return{markup:o,css:a}}function Lp({style:e,props:t}){const n=t==null?void 0:t.contents,[o,a]=G.useState(!1),r=`data-html-scope-${G.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=G.useMemo(()=>n?Op(n,r):{markup:"",css:""},[n,r]),c={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:Mp(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:Rp(e==null?void 0:e.padding),margin:Ep(e==null?void 0:e.margin)},u=G.useRef(null);G.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(k=>{try{k.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const p=b=>{o||a(!0)},d=()=>{a(!1)},h=`[${r}] pre,[${r}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:u,className:"html-block",style:c,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:h}})});const m=`<style>${h}${s}</style>${l}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:p,onBlur:d,tabIndex:0,[r]:"",dangerouslySetInnerHTML:{__html:m}})}const Ia=C({enabled:P(),scale:f().min(1).max(1.5).optional().nullable(),duration:f().min(0).max(3e3).optional().nullable(),easing:I(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable(),zp=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),jp=x().regex(/^rgba?\([^\)]+\)$/i),Bp=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Dp=re("transparent"),Hp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Fp=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),ro=D([zp,jp,Bp,Dp]).nullable().optional(),Gp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Up=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Zp(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 Wp(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const qp=C({style:C({padding:Hp,backgroundColor:ro.default(null),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:f().optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().positive().optional().nullable(),widthMobile:f().positive().optional().nullable(),height:f().optional().nullable(),heightTablet:f().positive().optional().nullable(),heightMobile:f().positive().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),url:x().optional().nullable(),urlTablet:x().optional().nullable(),urlMobile:x().optional().nullable(),alt:x().optional().nullable(),decorative:P().optional().nullable(),linkHref:x().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),borderRadius:Fp,borderColor:ro.default(null),borderWidth:Gp,rotation:f().min(0).max(360).optional().nullable(),rotationTablet:f().min(0).max(360).optional().nullable(),rotationMobile:f().min(0).max(360).optional().nullable(),iconName:x().optional().nullable(),iconFillColor:ro.default(null),animation:un,hoverEffect:Ia,boxShadow:Vn}).optional().nullable()}),$e={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"},boxShadow:null};let Vp=0;function Yp({style:e,props:t}){const n=G.useMemo(()=>`ahd-img-${++Vp}`,[]),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i={padding:Up(e==null?void 0:e.padding),...Zp(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:a,width:"100%",boxSizing:"border-box"},r=(t==null?void 0:t.linkHref)??$e.linkHref,l=(t==null?void 0:t.widthType)??$e.widthType,s=(t==null?void 0:t.width)??$e.width,c=(t==null?void 0:t.widthUnit)??$e.widthUnit,u=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,d=u??s,h=p??d,m=(t==null?void 0:t.height)??$e.height,b=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,k=b??m,S=v??k,$=m,w=(t==null?void 0:t.url)??$e.url,_=(t==null?void 0:t.urlTablet)??null,N=(t==null?void 0:t.urlMobile)??null,A=!r&&((t==null?void 0:t.decorative)??$e.decorative),y=A?"":(t==null?void 0:t.alt)??$e.alt,R=A?{role:"presentation","aria-hidden":!0}:{},M=(t==null?void 0:t.contentAlignment)??$e.contentAlignment,T=(t==null?void 0:t.borderRadius)??$e.borderRadius,L=(t==null?void 0:t.borderColor)??$e.borderColor,H=(t==null?void 0:t.borderWidth)??$e.borderWidth,F=(t==null?void 0:t.boxShadow)??$e.boxShadow,j=Yn(F),O=(t==null?void 0:t.rotation)??$e.rotation,q=(t==null?void 0:t.rotationTablet)??null,B=(t==null?void 0:t.rotationMobile)??null,Y=q??O,de=B??Y,oe=ie=>{const be=ie*Math.PI/180,Ie=ie%180!==0?1/(Math.abs(Math.cos(be))+Math.abs(Math.sin(be))):1;return`rotate(${ie}deg) scale(${Ie})`},ee=O,Z=ee?{transform:oe(ee),transformOrigin:"center"}:{},Ee=q!=null||B!=null?`
66
- ${ot} { .${n} img, .${n} > div { transform: ${oe(Y)} !important; transform-origin: center !important; } }
67
- ${Oe} { .${n} img, .${n} > div { transform: ${oe(de)} !important; transform-origin: center !important; } }
68
- `.trim():null,we=Wp(L,H),me=ie=>typeof ie=="number"?`${ie}px`:`${ie.topLeft}px ${ie.topRight}px ${ie.bottomRight}px ${ie.bottomLeft}px`,ne=(ie,be)=>{const Ie=Math.max((be==null?void 0:be.top)||0,(be==null?void 0:be.right)||0,(be==null?void 0:be.bottom)||0,(be==null?void 0:be.left)||0);if(typeof ie=="number")return`${Math.max(0,ie-Ie)}px`;const Ft=Math.max(0,(ie.topLeft||0)-Ie),lt=Math.max(0,(ie.topRight||0)-Ie),Fe=Math.max(0,(ie.bottomRight||0)-Ie),st=Math.max(0,(ie.bottomLeft||0)-Ie);return`${Ft}px ${lt}px ${Fe}px ${st}px`},U=(()=>{switch(l){case"fill":return"100%";case"fixed":return s;case"fit":default:return}})(),X=l==="fixed"?`${s}${c}`:void 0,ye=w,te=l==="fixed"?`
69
- ${ot} { .${n} img { width: ${d}${c} !important; max-width: 100% !important; } }
64
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of e.seen.entries()){const f=u[1];if(t===u[0]){i(u);continue}if(e.external){const h=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&h){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(f.cycle){i(u);continue}if(f.count>1&&e.reused==="ref"){i(u);continue}}}function Bl(e,t){var l,s,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=f=>{const d=e.seen.get(f);if(d.ref===null)return;const h=d.def??d.schema,p={...h},b=d.ref;if(d.ref=null,b){o(b);const w=e.seen.get(b),v=w.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(v)):Object.assign(h,v),Object.assign(h,p),f._zod.parent===b)for(const S in h)S==="$ref"||S==="allOf"||S in p||delete h[S];if(v.$ref&&w.def)for(const S in h)S==="$ref"||S==="allOf"||S in w.def&&JSON.stringify(h[S])===JSON.stringify(w.def[S])&&delete h[S]}const x=f._zod.parent;if(x&&x!==b){o(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(h.$ref=w.schema.$ref,w.def))for(const v in h)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(h[v])===JSON.stringify(w.def[v])&&delete h[v]}e.override({zodSchema:f,jsonSchema:h,path:d.path??[]})};for(const f of[...e.seen.entries()].reverse())o(f[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const f=(s=e.external.registry.get(t))==null?void 0:s.id;if(!f)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(f)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const f of e.seen.entries()){const d=f[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,a[d.defId]=d.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{const f=JSON.parse(JSON.stringify(r));return Object.defineProperty(f,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xn(t,"input",e.processors),output:Xn(t,"output",e.processors)}},enumerable:!1,writable:!1}),f}catch{throw new Error("Error converting schema to JSON.")}}function Pe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Pe(o.element,n);if(o.type==="set")return Pe(o.valueType,n);if(o.type==="lazy")return Pe(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Pe(o.innerType,n);if(o.type==="intersection")return Pe(o.left,n)||Pe(o.right,n);if(o.type==="record"||o.type==="map")return Pe(o.keyType,n)||Pe(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Pe(o.in,n)||Pe(o.out,n);if(o.type==="object"){for(const r in o.shape)if(Pe(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(Pe(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(Pe(r,n))return!0;return!!(o.rest&&Pe(o.rest,n))}return!1}const sh=(e,t={})=>n=>{const o=zl({...n,processors:t});return be(e,o),jl(o,e),Bl(o,e)},Xn=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=zl({...r??{},target:i,io:t,processors:n});return be(e,a),jl(a,e),Bl(a,e)},ch={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},uh=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=ch[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},dh=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const f=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";f?h?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?h?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},hh=(e,t,n,o)=>{n.type="boolean"},fh=(e,t,n,o)=>{n.not={}},ph=(e,t,n,o)=>{},mh=(e,t,n,o)=>{},gh=(e,t,n,o)=>{const r=e._zod.def,i=ml(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},bh=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},xh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},vh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},wh=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=be(i.element,t,{...o,path:[...o.path,"items"]})},Sh=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=be(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const f=i.shape[u]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=be(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},kh=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>be(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},_h=(e,t,n,o)=>{const r=e._zod.def,i=be(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=be(r.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];n.allOf=s},$h=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,h)=>be(d,t,{...o,path:[...o.path,a,h]})),c=i.rest?be(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:f}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof f=="number"&&(r.maxItems=f)},Ch=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="object";const a=i.keyType,l=a._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=be(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const f of s)r.patternProperties[f.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=be(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=be(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(f=>typeof f=="string"||typeof f=="number");u.length>0&&(r.required=u)}},Ah=(e,t,n,o)=>{const r=e._zod.def,i=be(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},yh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},Ih=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},Rh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},Eh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},Nh=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;be(a,t,o);const l=t.seen.get(e);l.ref=a},Mh=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},Dl=(e,t,n,o)=>{const r=e._zod.def;be(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},Th=(e,t,n,o)=>{const r=e._zod.innerType;be(r,t,o);const i=t.seen.get(e);i.ref=r},Ph=N("ZodISODateTime",(e,t)=>{Iu.init(e,t),xe.init(e,t)});function Oh(e){return zd(Ph,e)}const Lh=N("ZodISODate",(e,t)=>{Ru.init(e,t),xe.init(e,t)});function zh(e){return jd(Lh,e)}const jh=N("ZodISOTime",(e,t)=>{Eu.init(e,t),xe.init(e,t)});function Bh(e){return Bd(jh,e)}const Dh=N("ZodISODuration",(e,t)=>{Nu.init(e,t),xe.init(e,t)});function Fh(e){return Dd(Dh,e)}const Hh=(e,t)=>{vl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>wc(e,n)},flatten:{value:n=>vc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,cr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,cr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ge=N("ZodError",Hh,{Parent:Error}),Gh=na(Ge),Uh=oa(Ge),Zh=fo(Ge),Wh=po(Ge),qh=_c(Ge),Vh=$c(Ge),Yh=Cc(Ge),Kh=Ac(Ge),Jh=yc(Ge),Xh=Ic(Ge),Qh=Rc(Ge),ef=Ec(Ge),Va=new WeakMap;function _n(e,t,n){const o=Object.getPrototypeOf(e);let r=Va.get(o);if(r||(r=new Set,Va.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const he=N("ZodType",(e,t)=>(de.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xn(e,"input"),output:Xn(e,"output")}}),e.toJSONSchema=sh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Gh(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Zh(e,n,o),e.parseAsync=async(n,o)=>Uh(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Wh(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>qh(e,n,o),e.decode=(n,o)=>Vh(e,n,o),e.encodeAsync=async(n,o)=>Yh(e,n,o),e.decodeAsync=async(n,o)=>Kh(e,n,o),e.safeEncode=(n,o)=>Jh(e,n,o),e.safeDecode=(n,o)=>Xh(e,n,o),e.safeEncodeAsync=async(n,o)=>Qh(e,n,o),e.safeDecodeAsync=async(n,o)=>ef(e,n,o),_n(e,"ZodType",{check(...n){const o=this.def;return this.clone(bt(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return xt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Jf(n,o))},superRefine(n,o){return this.check(Xf(n,o))},overwrite(n){return this.check(Yt(n))},optional(){return Qa(this)},exactOptional(){return Lf(this)},nullable(){return ei(this)},nullish(){return Qa(ei(this))},nonoptional(n){return Hf(this,n)},array(){return X(this)},or(n){return D([this,n])},and(n){return Nf(this,n)},transform(n){return ti(this,Zl(n))},default(n){return Bf(this,n)},prefault(n){return Ff(this,n)},catch(n){return Uf(this,n)},pipe(n){return ti(this,n)},readonly(){return qf(this)},describe(n){const o=this.clone();return dn.add(o,{description:n}),o},meta(...n){if(n.length===0)return dn.get(this);const o=this.clone();return dn.add(o,n[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=dn.get(e))==null?void 0:n.description},configurable:!0}),e)),Fl=N("_ZodString",(e,t)=>{ra.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,r,i)=>uh(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,_n(e,"_ZodString",{regex(...o){return this.check(qd(...o))},includes(...o){return this.check(Kd(...o))},startsWith(...o){return this.check(Jd(...o))},endsWith(...o){return this.check(Xd(...o))},min(...o){return this.check(Jn(...o))},max(...o){return this.check(Ol(...o))},length(...o){return this.check(Ll(...o))},nonempty(...o){return this.check(Jn(1,...o))},lowercase(o){return this.check(Vd(o))},uppercase(o){return this.check(Yd(o))},trim(){return this.check(eh())},normalize(...o){return this.check(Qd(...o))},toLowerCase(){return this.check(th())},toUpperCase(){return this.check(nh())},slugify(){return this.check(oh())}})}),tf=N("ZodString",(e,t)=>{ra.init(e,t),Fl.init(e,t),e.email=n=>e.check(gd(nf,n)),e.url=n=>e.check(Sd(of,n)),e.jwt=n=>e.check(Ld(vf,n)),e.emoji=n=>e.check(kd(rf,n)),e.guid=n=>e.check(Ua(Ya,n)),e.uuid=n=>e.check(bd(Tn,n)),e.uuidv4=n=>e.check(xd(Tn,n)),e.uuidv6=n=>e.check(vd(Tn,n)),e.uuidv7=n=>e.check(wd(Tn,n)),e.nanoid=n=>e.check(_d(af,n)),e.guid=n=>e.check(Ua(Ya,n)),e.cuid=n=>e.check($d(lf,n)),e.cuid2=n=>e.check(Cd(sf,n)),e.ulid=n=>e.check(Ad(cf,n)),e.base64=n=>e.check(Td(gf,n)),e.base64url=n=>e.check(Pd(bf,n)),e.xid=n=>e.check(yd(uf,n)),e.ksuid=n=>e.check(Id(df,n)),e.ipv4=n=>e.check(Rd(hf,n)),e.ipv6=n=>e.check(Ed(ff,n)),e.cidrv4=n=>e.check(Nd(pf,n)),e.cidrv6=n=>e.check(Md(mf,n)),e.e164=n=>e.check(Od(xf,n)),e.datetime=n=>e.check(Oh(n)),e.date=n=>e.check(zh(n)),e.time=n=>e.check(Bh(n)),e.duration=n=>e.check(Fh(n))});function k(e){return md(tf,e)}const xe=N("ZodStringFormat",(e,t)=>{ge.init(e,t),Fl.init(e,t)}),nf=N("ZodEmail",(e,t)=>{vu.init(e,t),xe.init(e,t)}),Ya=N("ZodGUID",(e,t)=>{bu.init(e,t),xe.init(e,t)}),Tn=N("ZodUUID",(e,t)=>{xu.init(e,t),xe.init(e,t)}),of=N("ZodURL",(e,t)=>{wu.init(e,t),xe.init(e,t)}),rf=N("ZodEmoji",(e,t)=>{Su.init(e,t),xe.init(e,t)}),af=N("ZodNanoID",(e,t)=>{ku.init(e,t),xe.init(e,t)}),lf=N("ZodCUID",(e,t)=>{_u.init(e,t),xe.init(e,t)}),sf=N("ZodCUID2",(e,t)=>{$u.init(e,t),xe.init(e,t)}),cf=N("ZodULID",(e,t)=>{Cu.init(e,t),xe.init(e,t)}),uf=N("ZodXID",(e,t)=>{Au.init(e,t),xe.init(e,t)}),df=N("ZodKSUID",(e,t)=>{yu.init(e,t),xe.init(e,t)}),hf=N("ZodIPv4",(e,t)=>{Mu.init(e,t),xe.init(e,t)}),ff=N("ZodIPv6",(e,t)=>{Tu.init(e,t),xe.init(e,t)}),pf=N("ZodCIDRv4",(e,t)=>{Pu.init(e,t),xe.init(e,t)}),mf=N("ZodCIDRv6",(e,t)=>{Ou.init(e,t),xe.init(e,t)}),gf=N("ZodBase64",(e,t)=>{Lu.init(e,t),xe.init(e,t)}),bf=N("ZodBase64URL",(e,t)=>{ju.init(e,t),xe.init(e,t)}),xf=N("ZodE164",(e,t)=>{Bu.init(e,t),xe.init(e,t)}),vf=N("ZodJWT",(e,t)=>{Fu.init(e,t),xe.init(e,t)}),Hl=N("ZodNumber",(e,t)=>{Rl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,r,i)=>dh(e,o,r),_n(e,"ZodNumber",{gt(o,r){return this.check(Wa(o,r))},gte(o,r){return this.check($o(o,r))},min(o,r){return this.check($o(o,r))},lt(o,r){return this.check(Za(o,r))},lte(o,r){return this.check(_o(o,r))},max(o,r){return this.check(_o(o,r))},int(o){return this.check(Ka(o))},safe(o){return this.check(Ka(o))},positive(o){return this.check(Wa(0,o))},nonnegative(o){return this.check($o(0,o))},negative(o){return this.check(Za(0,o))},nonpositive(o){return this.check(_o(0,o))},multipleOf(o,r){return this.check(qa(o,r))},step(o,r){return this.check(qa(o,r))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function m(e){return Fd(Hl,e)}const wf=N("ZodNumberFormat",(e,t)=>{Hu.init(e,t),Hl.init(e,t)});function Ka(e){return Hd(wf,e)}const Sf=N("ZodBoolean",(e,t)=>{Gu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hh(e,n,o)});function O(e){return Gd(Sf,e)}const kf=N("ZodAny",(e,t)=>{Uu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ph()});function bn(){return Ud(kf)}const _f=N("ZodUnknown",(e,t)=>{Zu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>mh()});function Ja(){return Zd(_f)}const $f=N("ZodNever",(e,t)=>{Wu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fh(e,n,o)});function Cf(e){return Wd($f,e)}const Af=N("ZodArray",(e,t)=>{qu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>wh(e,n,o,r),e.element=t.element,_n(e,"ZodArray",{min(n,o){return this.check(Jn(n,o))},nonempty(n){return this.check(Jn(1,n))},max(n,o){return this.check(Ol(n,o))},length(n,o){return this.check(Ll(n,o))},unwrap(){return this.element}})});function X(e,t){return rh(Af,e,t)}const yf=N("ZodObject",(e,t)=>{Yu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Sh(e,n,o,r),te(e,"shape",()=>t.shape),_n(e,"ZodObject",{keyof(){return M(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ja()})},loose(){return this.clone({...this._zod.def,catchall:Ja()})},strict(){return this.clone({...this._zod.def,catchall:Cf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return fc(this,n)},safeExtend(n){return pc(this,n)},merge(n){return mc(this,n)},pick(n){return dc(this,n)},omit(n){return hc(this,n)},partial(...n){return gc(Wl,this,n[0])},required(...n){return bc(ql,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...B(t)};return new yf(n)}const Gl=N("ZodUnion",(e,t)=>{Ml.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>kh(e,n,o,r),e.options=t.options});function D(e,t){return new Gl({type:"union",options:e,...B(t)})}const If=N("ZodDiscriminatedUnion",(e,t)=>{Gl.init(e,t),Ku.init(e,t)});function Rf(e,t,n){return new If({type:"union",options:t,discriminator:e,...B(n)})}const Ef=N("ZodIntersection",(e,t)=>{Ju.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_h(e,n,o,r)});function Nf(e,t){return new Ef({type:"intersection",left:e,right:t})}const Mf=N("ZodTuple",(e,t)=>{Xu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>$h(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Ul(e,t,n){const o=t instanceof de,r=o?n:t,i=o?t:null;return new Mf({type:"tuple",items:e,rest:i,...B(r)})}const Xa=N("ZodRecord",(e,t)=>{Qu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ch(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function Wt(e,t,n){return!t||!t._zod?new Xa({type:"record",keyType:k(),valueType:e,...B(t)}):new Xa({type:"record",keyType:e,valueType:t,...B(n)})}const dr=N("ZodEnum",(e,t)=>{ed.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,r,i)=>gh(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new dr({...t,checks:[],...B(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new dr({...t,checks:[],...B(r),entries:i})}});function M(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new dr({type:"enum",entries:n,...B(t)})}const Tf=N("ZodLiteral",(e,t)=>{td.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bh(e,n,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ae(e,t){return new Tf({type:"literal",values:Array.isArray(e)?e:[e],...B(t)})}const Pf=N("ZodTransform",(e,t)=>{nd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vh(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new pl(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(gn(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(gn(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function Zl(e){return new Pf({type:"transform",transform:e})}const Wl=N("ZodOptional",(e,t)=>{Tl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dl(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Qa(e){return new Wl({type:"optional",innerType:e})}const Of=N("ZodExactOptional",(e,t)=>{od.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dl(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Lf(e){return new Of({type:"optional",innerType:e})}const zf=N("ZodNullable",(e,t)=>{rd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ah(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function ei(e){return new zf({type:"nullable",innerType:e})}const jf=N("ZodDefault",(e,t)=>{ad.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ih(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Bf(e,t){return new jf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():bl(t)}})}const Df=N("ZodPrefault",(e,t)=>{id.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Rh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ff(e,t){return new Df({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():bl(t)}})}const ql=N("ZodNonOptional",(e,t)=>{ld.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Hf(e,t){return new ql({type:"nonoptional",innerType:e,...B(t)})}const Gf=N("ZodCatch",(e,t)=>{sd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Eh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Uf(e,t){return new Gf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Vl=N("ZodPipe",(e,t)=>{Pl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Nh(e,n,o,r),e.in=t.in,e.out=t.out});function ti(e,t){return new Vl({type:"pipe",in:e,out:t})}const Zf=N("ZodPreprocess",(e,t)=>{Vl.init(e,t),cd.init(e,t)}),Wf=N("ZodReadonly",(e,t)=>{ud.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function qf(e){return new Wf({type:"readonly",innerType:e})}const Vf=N("ZodLazy",(e,t)=>{dd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Th(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Yf(e){return new Vf({type:"lazy",getter:e})}const Kf=N("ZodCustom",(e,t)=>{hd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xh(e,n)});function Jf(e,t={}){return ah(Kf,e,t)}function Xf(e,t){return ih(e,t)}function Yl(e,t){return new Zf({type:"pipe",in:Zl(e),out:t})}var Qf=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ep=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ni=A({style:A({textAlign:M(["left","center","right"]).optional().nullable(),padding:Qf}).optional().nullable(),props:A({size:m().gt(0).optional().nullable(),shape:M(["circle","square","rounded"]).optional().nullable(),imageUrl:k().optional().nullable(),alt:k().optional().nullable()}).optional().nullable()});function tp(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var Pn={size:64,imageUrl:"",alt:"",shape:"square"};function oi({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:Pn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:Pn.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:Pn.alt,u=(i=t==null?void 0:t.shape)!=null?i:Pn.shape,f={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:ep(e==null?void 0:e.padding)};return F.createElement("div",{style:f},F.createElement("img",{alt:c,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:tp(u,l)}}))}const $n=A({type:M(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:M(["load","scroll","hover","click"]),speed:M(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:O().optional().nullable()}).optional().nullable(),np=ni.extend({props:ni.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),animation:$n}).optional().nullable()}),hn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},aa=Object.values(hn);function Kl(){return"desktop"}const Ue=1024,Le=640,nt=`@media (max-width: ${Ue}px)`,Oe=`@media (max-width: ${Le}px)`,It=`@media (min-width: ${Le+1}px) and (max-width: ${Ue}px)`,go=A({color:k().optional().nullable(),offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable();function op(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 bo(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${op(t)}`}}const Be=A({tablet:Wt(k(),bn()).optional().nullable(),mobile:Wt(k(),bn()).optional().nullable()}).optional().nullable(),rp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ap=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},ip=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},lp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},sp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},cp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},up=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},dp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},fp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},pp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},mp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},gp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},bp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},xp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},vp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},wp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Sp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:g.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function ft(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(rp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(fp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(cp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(ap,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(ip,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(lp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(up,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(dp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(hp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(gp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(xp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(wp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(pp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(bp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(vp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(Sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(mp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const xn="data-ahd-var",Jl=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,kp=/[&<>"']/g,_p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ht(e){return e.replace(kp,t=>_p[t])}function Xl(e){return!e||e.indexOf("{{")===-1?e:e.replace(Jl,(t,n,o,r)=>{if(n)return n;const i=Ht(r);return`<span ${xn}="${i}">{{${r}}}</span>`})}function Ql(e){return!e||e.indexOf("{{")===-1?e:Ht(e).replace(Jl,(t,n,o,r)=>{if(n)return n;const i=Ht(r);return`<span ${xn}="${i}">{{${r}}}</span>`})}const $p=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function Cp(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 o=new URLSearchParams(n||"");return e.replace($p,(r,i)=>{const a=o.get(i);return a!==null?encodeURIComponent(a):r})}function Ap(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),o=e.querySelectorAll(`[${xn}]`);for(let r=0;r<o.length;r++){const i=o[r],a=n.get(i.getAttribute(xn)||"");a!==null&&(i.textContent=a)}}const hr="data-ahd-date",es="data-ahd-date-format";function fr(e,t){const n=Ht(e),o=t??"",r=Ht(o),i=ts(o)||`{{${n}}}`;return`<span ${xn}="${n}" ${hr}="${r}" ${es}="relative">${Ht(i)}</span>`}function ts(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const o=864e5,r=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),i=Math.round((r(n)-r(t))/o);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const a=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function yp(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${hr}][${es}="relative"]`);for(let o=0;o<n.length;o++){const r=n[o],i=r.getAttribute(hr)||"",a=ts(i,t);a&&(r.textContent=a)}}const Ip=M(["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 Co(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 Rp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ep=k().regex(/^rgba?\([^\)]+\)$/i),Np=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Mp=ae("transparent"),Pt=D([Rp,Ep,Np,Mp]).nullable().optional(),Tp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Pp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Op=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Lp=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),zp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Bp=A({style:A({backgroundColor:Pt,fontSize:m().min(0).optional().nullable(),fontFamily:Ip,fontWeight:M(["bold","normal",...aa]).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),buttonTextAlign:M(["left","center","right"]).optional().nullable(),padding:Tp,margin:Pp}).optional().nullable(),props:A({buttonBackground:Pt,hoverBackground:Pt,hoverTextColor:Pt,borderRadius:Lp,borderWidth:Op,borderColor:Pt,buttonTextColor:Pt,fullWidth:O().optional().nullable(),widthType:M(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:M(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:M(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:M(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),size:M(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:M(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:M(["x-small","small","large","medium"]).optional().nullable(),text:k().optional().nullable(),url:k().optional().nullable(),action:M(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:k().optional().nullable(),actionPayload:Wt(k(),bn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:k().optional().nullable(),iconAlignment:M(["left","right"]).optional().nullable(),ariaLabel:k().optional().nullable(),goToStep:k().optional().nullable(),postMessageEvent:k().optional().nullable(),animation:$n,boxShadow:go}).optional().nullable(),responsive:Be});function ri(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 ve={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",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:"",boxShadow:null};function Dp({style:e,props:t}){const o=`bh-${F.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??ve.text,i=typeof r=="string"&&r.indexOf("{{")!==-1,a=(me,ze)=>i?g.jsx("span",{style:me,"data-action":ze,dangerouslySetInnerHTML:{__html:Ql(r)}}):g.jsx("span",{style:me,"data-action":ze,children:r}),l=(t==null?void 0:t.url)??ve.url,s=Cp(l),c=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,u=(t==null?void 0:t.fullWidth)??ve.fullWidth,f=(t==null?void 0:t.widthType)??ve.widthType,d=(t==null?void 0:t.width)??ve.width,h=(t==null?void 0:t.widthUnit)??ve.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,v=(t==null?void 0:t.widthTypeTablet)??f,_=(t==null?void 0:t.widthTypeMobile)??v,S=(t==null?void 0:t.size)??ve.size,$=(t==null?void 0:t.sizeTablet)??S,y=(t==null?void 0:t.sizeMobile)??$,C=f,R=d,I=(t==null?void 0:t.buttonTextColor)??ve.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??ve.buttonBackground,P=(t==null?void 0:t.iconEnabled)??ve.iconEnabled,T=(t==null?void 0:t.iconName)??ve.iconName,z=(t==null?void 0:t.iconAlignment)??ve.iconAlignment,H=(t==null?void 0:t.ariaLabel)??null,Z=typeof r=="string"&&r.trim().length>0,j=H&&H.trim().length>0?H:!Z&&P&&T?T:void 0,V=(t==null?void 0:t.action)??ve.action,Y=(t==null?void 0:t.openInNewTab)??ve.openInNewTab,G=((t==null?void 0:t.customAction)??ve.customAction)||V,oe=(t==null?void 0:t.actionPayload)??ve.actionPayload,le=(t==null?void 0:t.goToStep)??ve.goToStep,se=(t==null?void 0:t.postMessageEvent)??ve.postMessageEvent,ce=oe||(G==="goToStep"?{goToStep:le||""}:null)||(G==="postMessageEvent"?{postMessageEvent:se||""}:null),Ee=ce?JSON.stringify(ce):void 0,Ce=(t==null?void 0:t.borderRadius)??ve.borderRadius,W=(t==null?void 0:t.borderWidth)??ve.borderWidth,L=(t==null?void 0:t.borderColor)??ve.borderColor,U=(t==null?void 0:t.boxShadow)??ve.boxShadow,q=bo(U),J=(t==null?void 0:t.hoverBackground)??null,Ae=(t==null?void 0:t.hoverTextColor)??null,Q=ri(S),ye=me=>typeof me=="number"?`${me}px`:`${me.topLeft}px ${me.topRight}px ${me.bottomRight}px ${me.bottomLeft}px`,ue=(me,ze)=>{if(typeof me=="number")return`${Math.max(0,me-ze)}px`;const So=Math.max(0,(me.topLeft||0)-ze),ko=Math.max(0,(me.topRight||0)-ze),Mt=Math.max(0,(me.bottomRight||0)-ze),Tt=Math.max(0,(me.bottomLeft||0)-ze);return`${So}px ${ko}px ${Mt}px ${Tt}px`},_e=L&&(L.includes("linear-gradient")||L.includes("radial-gradient")||L.includes("repeating-linear-gradient")),Ie=W&&((W.top??0)>0||(W.right??0)>0||(W.bottom??0)>0||(W.left??0)>0),re={top:(W==null?void 0:W.top)??0,right:(W==null?void 0:W.right)??0,bottom:(W==null?void 0:W.bottom)??0,left:(W==null?void 0:W.left)??0},we=(()=>{if(u)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${R}${h}`;case"fit":default:return"auto"}})(),De=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",ne=De==="center"?"center":De==="right"?"flex-end":"flex-start",pe=()=>!L||L==="transparent"||!Ie?{border:"none"}:_e?{borderTop:`${re.top}px solid transparent`,borderRight:`${re.right}px solid transparent`,borderBottom:`${re.bottom}px solid transparent`,borderLeft:`${re.left}px solid transparent`,borderImage:`${L} `,borderRadius:"0px"}:{borderTop:`${re.top}px solid ${L}`,borderRight:`${re.right}px solid ${L}`,borderBottom:`${re.bottom}px solid ${L}`,borderLeft:`${re.left}px solid ${L}`},Se=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),Re=I&&(I.includes("linear-gradient")||I.includes("radial-gradient")||I.includes("repeating-linear-gradient")),Fe=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),Ve={backgroundColor:Fe?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Fe?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:zp(e==null?void 0:e.padding),margin:jp(e==null?void 0:e.margin)},at=pe(),it=Re?{backgroundImage:I,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:I||void 0},dt=Re?"transparent":Se?void 0:E,Xt=Re?void 0:Se?E:void 0,Ne=(e==null?void 0:e.fontSize)??16,Nt=`${Ne}px`,Qt={fontSize:Nt,fontFamily:Co(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??hn.REGULAR,backgroundColor:dt,backgroundImage:Xt,borderRadius:_e?"0px":ye(Ce),...at,..._e&&Ie?{}:q,display:we==="100%"?"block":"inline-block",width:we,padding:`${Q[0]}px ${Q[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ne,lineHeight:"normal"},En=_e&&Ie?g.jsx("div",{style:{display:we==="100%"?"block":"inline-block",padding:`${re.top}px ${re.right}px ${re.bottom}px ${re.left}px`,background:L,borderRadius:ye(Ce),width:we,boxSizing:"border-box",...q},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:ue(Ce,Math.max(re.top,re.right,re.bottom,re.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??hn.REGULAR,fontFamily:Co(e==null?void 0:e.fontFamily),backgroundImage:Xt??(Se?E:"#fffff"),backgroundColor:dt??(Se?"#ffffff":E),textAlign:De,textDecoration:"none",fontSize:Nt,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":G,"data-action-payload":Ee,"data-goto-step":G==="goToStep"&&le?le:void 0,"data-post-message-event":G==="postMessageEvent"&&se?se:void 0,type:"button","aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"},G),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...at,...q,borderRadius:ye(Ce),width:we,fontWeight:(e==null?void 0:e.fontWeight)??hn.REGULAR,fontFamily:Co(e==null?void 0:e.fontFamily),backgroundColor:dt??(Se?"":E),backgroundImage:Xt??(Se?E:""),textAlign:De,textDecoration:"none",fontSize:Nt,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":G,"data-action-payload":Ee,"data-goto-step":G==="goToStep"&&le?le:void 0,"data-post-message-event":G==="postMessageEvent"&&se?se:void 0,type:"button","aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"},G),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]}),St=[];J&&St.push(`background-color: ${J} !important; background-image: none !important;`),Ae&&St.push(`color: ${Ae} !important;`);const kt=St.length>0?`#${o} a:hover, #${o} button:hover { ${St.join(" ")} transition: background-color 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${Ae?`color: ${Ae} !important; -webkit-text-fill-color: ${Ae} !important;`:""} }`:null,en=(me,ze,So,ko)=>{const Mt=[],Tt=u||ze==="fill"?"100%":ze==="fixed"?`${So}${h}`:"auto";Mt.push(`width: ${Tt} !important;`,"max-width: 100% !important;"),Mt.push(`display: ${Tt==="100%"?"block":"inline-block"} !important;`);const[ya,oc]=ri(ko);return Mt.push(`padding: ${ya}px ${oc}px !important;`),`${me} { #${o} a, #${o} button { ${Mt.join(" ")} } #${o} > div { width: ${Tt} !important; max-width: 100% !important; display: ${Tt==="100%"?"block":"inline-block"} !important; } }`},ee=v!==f||$!==S||v==="fixed"&&x!==d,ie=_!==f||y!==S||_==="fixed"&&w!==d,Me=ee||ie?[ee?en(nt,v,x,$):"",ie?en(Oe,_,w,y):""].filter(Boolean).join(`
65
+ `):null;if(V!=="link")return g.jsxs("div",{id:o,className:"button-block",style:Ve,children:[kt&&g.jsx("style",{children:kt}),Me&&g.jsx("style",{children:Me}),En]});const ht=_e&&Ie?g.jsx("div",{style:{display:we==="100%"?"block":"inline-block",padding:`${re.top}px ${re.right}px ${re.bottom}px ${re.left}px`,background:L,borderRadius:ye(Ce),width:we,boxSizing:"border-box",...q},children:g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...Qt,border:"none",borderRadius:ue(Ce,Math.max(re.top,re.right,re.bottom,re.left)),width:"100%",display:"inline-flex",alignItems:"center",justifyContent:ne},target:Y?"_blank":void 0,rel:Y?"noopener noreferrer":void 0,"aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"}),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]})}):g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...Qt,borderRadius:ye(Ce),display:"inline-flex",alignItems:"center",justifyContent:ne},target:Y?"_blank":void 0,rel:Y?"noopener noreferrer":void 0,"aria-label":j,children:[P&&T&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null,a({...it,pointerEvents:"none"}),P&&T&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(T,{strokeColor:Re?void 0:I,fontSize:Ne})}):null]});return g.jsxs("div",{id:o,className:"button-block",style:Ve,children:[kt&&g.jsx("style",{children:kt}),Me&&g.jsx("style",{children:Me}),ht]})}const Fp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hp=k().regex(/^rgba?\([^\)]+\)$/i),Gp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Up=ae("transparent"),ai=D([Fp,Hp,Gp,Up]).nullable().optional(),Zp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Wp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),qp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Vp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Yp=A({style:A({backgroundColor:ai,padding:Zp,margin:Wp}).optional().nullable(),props:A({lineColor:ai,lineHeight:m().optional().nullable()}).optional().nullable()}),ii={lineHeight:1,lineColor:"#333333"};function Kp({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??ii.lineHeight,o=(t==null?void 0:t.lineColor)??ii.lineColor,r={padding:qp(e==null?void 0:e.padding),margin:Vp(e==null?void 0:e.margin),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:r,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Jp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Xp=k().regex(/^rgba?\([^\)]+\)$/i),Qp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),em=ae("transparent"),Ao=D([Jp,Xp,Qp,em]).nullable().optional(),tm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),nm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),om=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,am=M(["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 im(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 lm=A({props:A({text:k().optional().nullable(),level:M(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:M(["text","link"]).optional().nullable(),url:k().optional().nullable(),openInNewTab:O().optional().nullable()}).optional().nullable(),style:A({color:Ao,textColor:Ao,backgroundColor:Ao,fontFamily:am,fontSize:m().optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontWeight:M(["bold","normal",...aa]).optional().nullable(),fontStyle:M(["italic","normal"]).optional().nullable(),textDecoration:M(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),padding:tm,margin:nm}).optional().nullable()}),tn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function sm({props:e,style:t}){const n=(e==null?void 0:e.level)??tn.level,o=(e==null?void 0:e.text)??tn.text,r=typeof o=="string"&&o.indexOf("{{")!==-1,i=(e==null?void 0:e.linkType)??tn.linkType,a=(e==null?void 0:e.url)??tn.url,l=(e==null?void 0:e.openInNewTab)??tn.openInNewTab,s=i==="link"&&a,c=(t==null?void 0:t.fontSize)??cm(n),u=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),f=u&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(u),d=(t==null?void 0:t.textDecoration)??"none",h=f&&(d==="underline"||d==="underline line-through"),p=f&&(d==="line-through"||d==="underline line-through"),b=t==null?void 0:t.lineClamp,x=!!(b&&b>0),w=x?{display:"-webkit-box",WebkitLineClamp:b,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},v={fontWeight:(t==null?void 0:t.fontWeight)??hn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:f?"none":d,margin:0,fontFamily:im(t==null?void 0:t.fontFamily),fontSize:c,...w},_=f?{lineHeight:"normal ",backgroundImage:u,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...x?{}:{display:"inline-block"},...h?{paddingBottom:"0.08em"}:{}}:{color:u??void 0},S={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:u??void 0,pointerEvents:"none"},$={...S,bottom:0},y={...S,top:"50%",transform:"translateY(-50%)"},C=(t==null?void 0:t.backgroundColor)??void 0,R=typeof C=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(C),I={padding:om(t==null?void 0:t.padding),margin:rm(t==null?void 0:t.margin),display:"block",width:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...R?{backgroundImage:C,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:C}},E=n,P=g.jsx(E,{className:"heading-block",style:v,children:g.jsxs("span",{style:_,children:[r?g.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:Ql(o)}}):o,h?g.jsx("span",{style:$}):null,p?g.jsx("span",{style:y}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:I,children:s?g.jsx("a",{href:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!f&&u?u:void 0},children:P}):P})}function cm(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 ns="comm",os="rule",rs="decl",um="@import",dm="@namespace",hm="@keyframes",fm="@layer",pm=Math.abs,fn=String.fromCharCode;function as(e){return e.trim()}function pr(e,t,n){return e.replace(t,n)}function Gt(e,t){return e.charCodeAt(t)|0}function qt(e,t,n){return e.slice(t,n)}function tt(e){return e.length}function mm(e){return e.length}function On(e,t){return t.push(e),e}var xo=1,Vt=1,is=0,He=0,$e=0,Kt="";function ia(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:xo,column:Vt,length:a,return:"",siblings:l}}function gm(){return $e}function bm(){return $e=He>0?Gt(Kt,--He):0,Vt--,$e===10&&(Vt=1,xo--),$e}function Je(){return $e=He<is?Gt(Kt,He++):0,Vt++,$e===10&&(Vt=1,xo++),$e}function gt(){return Gt(Kt,He)}function Gn(){return He}function vo(e,t){return qt(Kt,e,t)}function vn(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 xm(e){return xo=Vt=1,is=tt(Kt=e),He=0,[]}function vm(e){return Kt="",e}function yo(e){return as(vo(He-1,mr(e===91?e+2:e===40?e+1:e)))}function wm(e){for(;($e=gt())&&$e<33;)Je();return vn(e)>2||vn($e)>3?"":" "}function Sm(e,t){for(;--t&&Je()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return vo(e,Gn()+(t<6&&gt()==32&&Je()==32))}function mr(e){for(;Je();)switch($e){case e:return He;case 34:case 39:e!==34&&e!==39&&mr($e);break;case 40:e===41&&mr(e);break;case 92:Je();break}return He}function km(e,t){for(;Je()&&e+$e!==57;)if(e+$e===84&&gt()===47)break;return"/*"+vo(t,He-1)+"*"+fn(e===47?e:Je())}function _m(e){for(;!vn(gt());)Je();return vo(e,He)}function $m(e){return vm(Un("",null,null,null,[""],e=xm(e),0,[0],e))}function Un(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,f=a,d=0,h=0,p=0,b=1,x=1,w=1,v=0,_=0,S="",$=r,y=i,C=o,R=S;x;)switch(p=_,_=Je()){case 40:p!=108&&Gt(R,f-1)==58?(v++,R+="("):R+=yo(_);break;case 41:v--,R+=")";break;case 34:case 39:case 91:R+=yo(_);break;case 9:case 10:case 13:case 32:if(v>0){R+=fn(_);break}R+=wm(p);break;case 92:R+=Sm(Gn()-1,7);continue;case 47:switch(gt()){case 42:case 47:On(Cm(km(Je(),Gn()),t,n,s),s),(vn(p||1)==5||vn(gt()||1)==5)&&tt(R)&&qt(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*b:l[c++]=tt(R)*w;case 125*b:case 59:case 0:if(v>0&&_){R+=fn(_);break}switch(_){case 0:case 125:x=0;case 59+u:w==-1&&(R=pr(R,/\f/g,"")),h>0&&(tt(R)-f||b===0)&&On(h>32?si(R+";",o,n,f-1,s):si(pr(R," ","")+";",o,n,f-2,s),s);break;case 59:R+=";";default:if(On(C=li(R,t,n,c,u,r,l,S,$=[],y=[],f,i),i),_===123)if(u===0)Un(R,t,C,C,$,i,f,l,y);else{switch(d){case 99:if(Gt(R,3)===110)break;case 108:if(Gt(R,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Un(e,C,C,o&&On(li(e,C,C,0,0,r,l,S,r,$=[],f,y),y),r,y,f,l,o?$:y):Un(R,C,C,C,[""],y,0,l,y)}}c=u=h=0,b=w=1,S=R="",f=a;break;case 58:f=1+tt(R),h=p;default:if(b<1){if(_==123)--b;else if(_==125&&b++==0&&bm()==125)continue}switch(R+=fn(_),_*b){case 38:w=u>0?1:(R+="\f",-1);break;case 44:if(v>0)break;l[c++]=(tt(R)-1)*w,w=1;break;case 64:gt()===45&&(R+=yo(Je())),d=gt(),u=f=tt(S=R+=_m(Gn())),_++;break;case 45:p===45&&tt(R)==2&&(b=0)}}return i}function li(e,t,n,o,r,i,a,l,s,c,u,f){for(var d=r-1,h=r===0?i:[""],p=mm(h),b=0,x=0,w=0;b<o;++b)for(var v=0,_=qt(e,d+1,d=pm(x=a[b])),S=e;v<p;++v)(S=as(x>0?h[v]+" "+_:pr(_,/&\f/g,h[v])))&&(s[w++]=S);return ia(e,t,n,r===0?os:l,s,c,u,f)}function Cm(e,t,n,o){return ia(e,t,n,ns,fn(gm()),qt(e,2,-2),0,o)}function si(e,t,n,o,r){return ia(e,t,n,rs,qt(e,0,o),qt(e,o+1,-1),o,r)}function gr(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function Am(e,t,n,o){switch(e.type){case fm:if(e.children.length)break;case um:case dm:case rs:return e.return=e.return||e.value;case ns:return"";case hm:return e.return=e.value+"{"+gr(e.children,o)+"}";case os:if(!tt(e.value=e.props.join(",")))return""}return tt(n=gr(e.children,o))?e.return=e.value+"{"+n+"}":""}const ym=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Im=k().regex(/^rgba?\([^\)]+\)$/i),Rm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Em=ae("transparent"),ci=D([ym,Im,Rm,Em]).nullable().optional(),Nm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Mm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Tm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Pm=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Om=M(["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 Lm(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 zm=A({style:A({color:ci,backgroundColor:ci,fontFamily:Om,fontSize:m().min(0).optional().nullable(),textAlign:M(["left","right","center"]).optional().nullable(),padding:Nm,margin:Mm}).optional().nullable(),props:A({contents:k().optional().nullable()}).optional().nullable()}),jm=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Bm(e,t){let n="";const o=e.replace(jm,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=gr($m(`[${t}]{${n}}`),Am);return{markup:o,css:r}}function Dm({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=F.useState(!1),a=`data-html-scope-${F.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=F.useMemo(()=>n?Bm(n,a):{markup:"",css:""},[n,a]),c={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:Lm(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:Tm(e==null?void 0:e.padding),margin:Pm(e==null?void 0:e.margin)},u=F.useRef(null);F.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const f=b=>{o||r(!0)},d=()=>{r(!1)},h=`[${a}] pre,[${a}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:u,className:"html-block",style:c,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:h}})});const p=`<style>${h}${s}</style>${Xl(l)}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:f,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:p}})}const la=A({enabled:O(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:M(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable(),Fm=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hm=k().regex(/^rgba?\([^\)]+\)$/i),Gm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Um=ae("transparent"),Zm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Wm=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Io=D([Fm,Hm,Gm,Um]).nullable().optional(),qm=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Vm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Ym(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 Km(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const Jm=A({style:A({padding:Zm,backgroundColor:Io.default(null),textAlign:M(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),widthUnit:M(["px","%"]).optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),height:m().optional().nullable(),heightTablet:m().positive().optional().nullable(),heightMobile:m().positive().optional().nullable(),widthType:M(["fixed","fill","fit"]).optional().nullable(),url:k().optional().nullable(),urlTablet:k().optional().nullable(),urlMobile:k().optional().nullable(),alt:k().optional().nullable(),decorative:O().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable(),borderRadius:Wm,borderColor:Io.default(null),borderWidth:qm,rotation:m().min(0).max(360).optional().nullable(),rotationTablet:m().min(0).max(360).optional().nullable(),rotationMobile:m().min(0).max(360).optional().nullable(),iconName:k().optional().nullable(),iconFillColor:Io.default(null),animation:$n,hoverEffect:la,boxShadow:go}).optional().nullable()}),Te={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,linkHref:null,contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"},boxShadow:null};let Xm=0;function Qm({style:e,props:t}){const n=F.useMemo(()=>`ahd-img-${++Xm}`,[]),o=(e==null?void 0:e.textAlign)??void 0,r=o==="center"?"center":o==="right"?"flex-end":"flex-start",i={padding:Vm(e==null?void 0:e.padding),...Ym(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:r,width:"100%",boxSizing:"border-box"},a=(t==null?void 0:t.linkHref)??Te.linkHref,l=(t==null?void 0:t.widthType)??Te.widthType,s=(t==null?void 0:t.width)??Te.width,c=(t==null?void 0:t.widthUnit)??Te.widthUnit,u=(t==null?void 0:t.widthTablet)??null,f=(t==null?void 0:t.widthMobile)??null,d=u??s,h=f??d,p=(t==null?void 0:t.height)??Te.height,b=(t==null?void 0:t.heightTablet)??null,x=(t==null?void 0:t.heightMobile)??null,w=b??p,v=x??w,_=p,S=(t==null?void 0:t.url)??Te.url,$=(t==null?void 0:t.urlTablet)??null,y=(t==null?void 0:t.urlMobile)??null,C=!a&&((t==null?void 0:t.decorative)??Te.decorative),R=C?"":(t==null?void 0:t.alt)??Te.alt,I=C?{role:"presentation","aria-hidden":!0}:{},E=(t==null?void 0:t.contentAlignment)??Te.contentAlignment,P=(t==null?void 0:t.borderRadius)??Te.borderRadius,T=(t==null?void 0:t.borderColor)??Te.borderColor,z=(t==null?void 0:t.borderWidth)??Te.borderWidth,H=(t==null?void 0:t.boxShadow)??Te.boxShadow,Z=bo(H),j=(t==null?void 0:t.rotation)??Te.rotation,V=(t==null?void 0:t.rotationTablet)??null,Y=(t==null?void 0:t.rotationMobile)??null,K=V??j,G=Y??K,oe=ne=>{const pe=ne*Math.PI/180,Se=ne%180!==0?1/(Math.abs(Math.cos(pe))+Math.abs(Math.sin(pe))):1;return`rotate(${ne}deg) scale(${Se})`},le=j,se=le?{transform:oe(le),transformOrigin:"center"}:{},Ee=V!=null||Y!=null?`
66
+ ${nt} { .${n} img, .${n} > div { transform: ${oe(K)} !important; transform-origin: center !important; } }
67
+ ${Oe} { .${n} img, .${n} > div { transform: ${oe(G)} !important; transform-origin: center !important; } }
68
+ `.trim():null,Ce=Km(T,z),W=ne=>typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`,L=(ne,pe)=>{const Se=Math.max((pe==null?void 0:pe.top)||0,(pe==null?void 0:pe.right)||0,(pe==null?void 0:pe.bottom)||0,(pe==null?void 0:pe.left)||0);if(typeof ne=="number")return`${Math.max(0,ne-Se)}px`;const Re=Math.max(0,(ne.topLeft||0)-Se),Fe=Math.max(0,(ne.topRight||0)-Se),Ve=Math.max(0,(ne.bottomRight||0)-Se),at=Math.max(0,(ne.bottomLeft||0)-Se);return`${Re}px ${Fe}px ${Ve}px ${at}px`},q=(()=>{switch(l){case"fill":return"100%";case"fixed":return s;case"fit":default:return}})(),J=l==="fixed"?`${s}${c}`:void 0,Ae=S,Q=l==="fixed"?`
69
+ ${nt} { .${n} img { width: ${d}${c} !important; max-width: 100% !important; } }
70
70
  ${Oe} { .${n} img { width: ${h}${c} !important; max-width: 100% !important; } }
71
- `.trim():null,Q=b!=null||v!=null?`
72
- ${ot} { .${n} img { height: ${k?`${k}px`:"auto"} !important; } }
73
- ${Oe} { .${n} img { height: ${S?`${S}px`:"auto"} !important; } }
74
- `.trim():null,qe=(t==null?void 0:t.hoverEffect)??$e.hoverEffect,Pe=qe!=null&&qe.enabled?`
75
- .${n} picture { display: inline-block; transition: transform ${qe.duration??500}ms ${qe.easing??"ease-in-out"}; }
76
- .${n}:hover picture { transform: scale(${qe.scale??1.05}); }
77
- `.trim():null,ke=[te,Q,Ee,Pe].filter(Boolean).join(`
78
- `)||null,it=L&&(L.includes("linear-gradient")||L.includes("radial-gradient")||L.includes("repeating-linear-gradient")),bt=(N||_)&&g.jsxs(g.Fragment,{children:[N&&g.jsx("source",{media:Oe.replace("@media ",""),srcSet:N}),(_??N)&&g.jsx("source",{media:ot.replace("@media ",""),srcSet:_??N??w})]}),Ne=g.jsxs("picture",{children:[bt,g.jsx("img",{alt:y,...R,src:ye,width:typeof U=="number"&&c==="px"?U:void 0,height:$!==null?$:void 0,style:{width:X??(U==="100%"?"100%":typeof U=="number"?`${U}${c}`:"auto"),height:$?`${$}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:M,display:l==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:T?me(T):void 0}})]}),Se=it?g.jsx("div",{style:{borderRadius:T?me(T):void 0,...we,...j,...Z},children:g.jsxs("picture",{children:[bt,g.jsx("img",{alt:y,...R,src:ye,width:typeof U=="number"&&c==="px"?U:void 0,height:$!==null?$:void 0,style:{width:"100%",height:$?`${$}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:M,display:"block",maxWidth:X??(typeof U=="number"?`${U}${c}`:"auto"),boxSizing:"border-box",borderRadius:T?ne(T,H):void 0}})]})}):L?g.jsx("div",{style:{borderRadius:T?me(T):void 0,...we,...j,...Z},children:Ne}):j.boxShadow?g.jsx("div",{style:{borderRadius:T?me(T):void 0,...j,...Z},children:Ne}):G.cloneElement(Ne,{children:G.Children.map(Ne.props.children,ie=>(ie==null?void 0:ie.type)==="img"?G.cloneElement(ie,{style:{...ie.props.style,...Z}}):ie)});return r?g.jsxs("div",{className:`image-block ${n}`,style:i,children:[ke&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ke}}),g.jsx("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:Se})]}):g.jsxs("div",{className:`image-block ${n}`,style:i,children:[ke&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ke}}),Se]})}const Kp=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Jp=x().regex(/^rgba?\([^\)]+\)$/i),Xp=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Qp=re("transparent"),Zt=D([Kp,Jp,Xp,Qp]).nullable().optional(),em=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tm=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),nm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),om=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function am(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 rm(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}}const io=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,im=C({style:C({padding:em,backgroundColor:Zt.default(null),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({url:x().optional().nullable(),urlTablet:x().optional().nullable(),urlMobile:x().optional().nullable(),alt:x().optional().nullable(),decorative:P().optional().nullable(),showLink:P().optional().nullable(),linkHref:x().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),width:f().positive().optional().nullable(),widthTablet:f().positive().optional().nullable(),widthMobile:f().positive().optional().nullable(),borderRadius:tm,borderColor:Zt.default(null),borderWidth:nm,iconName:x().optional().nullable(),iconNameTablet:x().optional().nullable(),iconNameMobile:x().optional().nullable(),iconFillColor:Zt.default(null),iconFillColorTablet:Zt.default(null),iconFillColorMobile:Zt.default(null),animation:un,boxShadow:Vn}).optional().nullable()}),Ue={url:"",alt:"Logo",decorative:!1,showLink:!0,linkHref:"https://pagepilot.fabbuilder.com/",linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let lm=0;function sm({style:e,props:t}){const n=(t==null?void 0:t.url)??Ue.url,o=(t==null?void 0:t.urlTablet)??null,a=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.showLink)??Ue.showLink,r=(t==null?void 0:t.linkHref)??Ue.linkHref,l=i&&r?r:null,s=(t==null?void 0:t.linkTarget)??Ue.linkTarget,c=!l&&((t==null?void 0:t.decorative)??Ue.decorative),u=c?"":(t==null?void 0:t.alt)??Ue.alt,p=c?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??Ue.width,h=(t==null?void 0:t.widthTablet)??null,m=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??Ue.borderRadius,v=(t==null?void 0:t.borderColor)??Ue.borderColor,k=(t==null?void 0:t.borderWidth)??Ue.borderWidth,S=(t==null?void 0:t.boxShadow)??Ue.boxShadow,$=Yn(S),w=h??d,_=m??w,N=d,A=n,y=`ahd-logo-${++lm}`,R=`
79
- ${ot} { .${y} img { width: ${w}px !important; max-width: 100% !important; } }
80
- ${Oe} { .${y} img { width: ${_}px !important; max-width: 100% !important; } }
81
- `.trim(),M={padding:om(e==null?void 0:e.padding),...am(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},T={width:`${N}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?io(b):void 0},L=g.jsxs("picture",{children:[a&&g.jsx("source",{media:Oe.replace("@media ",""),srcSet:a}),o&&g.jsx("source",{media:ot.replace("@media ",""),srcSet:o}),g.jsx("img",{alt:u,...p,src:A,width:N,style:T})]}),H=v&&v!=="transparent"?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?io(b):void 0,...rm(v,k),...$},children:L}):$.boxShadow?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?io(b):void 0,...$},children:L}):L;return l?g.jsxs("div",{className:`logo-block ${y}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),g.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":c?"Logo":u||"Logo",children:H})]}):g.jsxs("div",{className:`logo-block ${y}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),H]})}const cm=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),um=x().regex(/^rgba?\([^\)]+\)$/i),dm=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),hm=re("transparent"),fm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),pm=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),mm=D([cm,um,dm,hm]).nullable().optional(),gm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),bm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function vm(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 xm(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const Sm=C({style:C({padding:fm,backgroundColor:x().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:D([f(),x()]).optional().nullable(),height:D([f(),x()]).optional().nullable(),widthTablet:D([f(),x()]).optional().nullable(),widthMobile:D([f(),x()]).optional().nullable(),heightTablet:D([f(),x()]).optional().nullable(),heightMobile:D([f(),x()]).optional().nullable(),url:x().optional().nullable(),alt:x().optional().nullable(),linkHref:x().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),name:x().optional().nullable(),borderRadius:pm,borderColor:mm.default(null),borderWidth:gm}).optional().nullable()});function wm(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function km(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 _m=0;function $m({style:e,props:t}){const n=`ahd-video-${++_m}`,o=(e==null?void 0:e.textAlign)??"left",a={padding:bm(e==null?void 0:e.padding),...vm(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:wm(o),textAlign:o},i=(t==null?void 0:t.width)??"inherit",r=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=l??i,u=s??i,p=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??r,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??r,h=i,m=r,b=L=>L==null?void 0:typeof L=="number"?`${L}px`:L,v=`
82
- ${dn} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(p)?`height: ${b(p)} !important;`:""} max-width: 100% !important; } }
71
+ `.trim():null,ye=b!=null||x!=null?`
72
+ ${nt} { .${n} img { height: ${w?`${w}px`:"auto"} !important; } }
73
+ ${Oe} { .${n} img { height: ${v?`${v}px`:"auto"} !important; } }
74
+ `.trim():null,ue=(t==null?void 0:t.hoverEffect)??Te.hoverEffect,_e=ue!=null&&ue.enabled?`
75
+ .${n} picture { display: inline-block; transition: transform ${ue.duration??500}ms ${ue.easing??"ease-in-out"}; }
76
+ .${n}:hover picture { transform: scale(${ue.scale??1.05}); }
77
+ `.trim():null,Ie=[Q,ye,Ee,_e].filter(Boolean).join(`
78
+ `)||null,re=T&&(T.includes("linear-gradient")||T.includes("radial-gradient")||T.includes("repeating-linear-gradient")),wt=(y||$)&&g.jsxs(g.Fragment,{children:[y&&g.jsx("source",{media:Oe.replace("@media ",""),srcSet:y}),($??y)&&g.jsx("source",{media:nt.replace("@media ",""),srcSet:$??y??S})]}),we=g.jsxs("picture",{children:[wt,g.jsx("img",{alt:R,...I,src:Ae,width:typeof q=="number"&&c==="px"?q:void 0,height:_!==null?_:void 0,style:{width:J??(q==="100%"?"100%":typeof q=="number"?`${q}${c}`:"auto"),height:_?`${_}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:E,display:l==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:P?W(P):void 0}})]}),De=re?g.jsx("div",{style:{borderRadius:P?W(P):void 0,...Ce,...Z,...se},children:g.jsxs("picture",{children:[wt,g.jsx("img",{alt:R,...I,src:Ae,width:typeof q=="number"&&c==="px"?q:void 0,height:_!==null?_:void 0,style:{width:"100%",height:_?`${_}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:E,display:"block",maxWidth:J??(typeof q=="number"?`${q}${c}`:"auto"),boxSizing:"border-box",borderRadius:P?L(P,z):void 0}})]})}):T?g.jsx("div",{style:{borderRadius:P?W(P):void 0,...Ce,...Z,...se},children:we}):Z.boxShadow?g.jsx("div",{style:{borderRadius:P?W(P):void 0,...Z,...se},children:we}):F.cloneElement(we,{children:F.Children.map(we.props.children,ne=>(ne==null?void 0:ne.type)==="img"?F.cloneElement(ne,{style:{...ne.props.style,...se}}):ne)});return a?g.jsxs("div",{className:`image-block ${n}`,style:i,children:[Ie&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Ie}}),g.jsx("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:De})]}):g.jsxs("div",{className:`image-block ${n}`,style:i,children:[Ie&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Ie}}),De]})}const eg=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),tg=k().regex(/^rgba?\([^\)]+\)$/i),ng=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),og=ae("transparent"),nn=D([eg,tg,ng,og]).nullable().optional(),rg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ag=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),ig=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),lg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function sg(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 cg(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}}const Ro=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,ug=A({style:A({padding:rg,backgroundColor:nn.default(null),textAlign:M(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:k().optional().nullable(),urlTablet:k().optional().nullable(),urlMobile:k().optional().nullable(),alt:k().optional().nullable(),decorative:O().optional().nullable(),showLink:O().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:M(["_self","_blank"]).optional().nullable(),width:m().positive().optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),borderRadius:ag,borderColor:nn.default(null),borderWidth:ig,iconName:k().optional().nullable(),iconNameTablet:k().optional().nullable(),iconNameMobile:k().optional().nullable(),iconFillColor:nn.default(null),iconFillColorTablet:nn.default(null),iconFillColorMobile:nn.default(null),animation:$n,boxShadow:go}).optional().nullable()}),Ye={url:"",alt:"Logo",decorative:!1,showLink:!0,linkHref:"https://pagepilot.fabbuilder.com/",linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let dg=0;function hg({style:e,props:t}){const n=(t==null?void 0:t.url)??Ye.url,o=(t==null?void 0:t.urlTablet)??null,r=(t==null?void 0:t.urlMobile)??null,i=(t==null?void 0:t.showLink)??Ye.showLink,a=(t==null?void 0:t.linkHref)??Ye.linkHref,l=i&&a?a:null,s=(t==null?void 0:t.linkTarget)??Ye.linkTarget,c=!l&&((t==null?void 0:t.decorative)??Ye.decorative),u=c?"":(t==null?void 0:t.alt)??Ye.alt,f=c?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??Ye.width,h=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??Ye.borderRadius,x=(t==null?void 0:t.borderColor)??Ye.borderColor,w=(t==null?void 0:t.borderWidth)??Ye.borderWidth,v=(t==null?void 0:t.boxShadow)??Ye.boxShadow,_=bo(v),S=h??d,$=p??S,y=d,C=n,R=`ahd-logo-${++dg}`,I=`
79
+ ${nt} { .${R} img { width: ${S}px !important; max-width: 100% !important; } }
80
+ ${Oe} { .${R} img { width: ${$}px !important; max-width: 100% !important; } }
81
+ `.trim(),E={padding:lg(e==null?void 0:e.padding),...sg(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},P={width:`${y}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?Ro(b):void 0},T=g.jsxs("picture",{children:[r&&g.jsx("source",{media:Oe.replace("@media ",""),srcSet:r}),o&&g.jsx("source",{media:nt.replace("@media ",""),srcSet:o}),g.jsx("img",{alt:u,...f,src:C,width:y,style:P})]}),z=x&&x!=="transparent"?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Ro(b):void 0,...cg(x,w),..._},children:T}):_.boxShadow?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Ro(b):void 0,..._},children:T}):T;return l?g.jsxs("div",{className:`logo-block ${R}`,style:E,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),g.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":c?"Logo":u||"Logo",children:z})]}):g.jsxs("div",{className:`logo-block ${R}`,style:E,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),z]})}const fg=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),pg=k().regex(/^rgba?\([^\)]+\)$/i),mg=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),gg=ae("transparent"),bg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),xg=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),vg=D([fg,pg,mg,gg]).nullable().optional(),wg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Sg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function kg(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 _g(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}const $g=A({style:A({padding:bg,backgroundColor:k().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:M(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:D([m(),k()]).optional().nullable(),height:D([m(),k()]).optional().nullable(),widthTablet:D([m(),k()]).optional().nullable(),widthMobile:D([m(),k()]).optional().nullable(),heightTablet:D([m(),k()]).optional().nullable(),heightMobile:D([m(),k()]).optional().nullable(),url:k().optional().nullable(),alt:k().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable(),name:k().optional().nullable(),borderRadius:xg,borderColor:vg.default(null),borderWidth:wg}).optional().nullable()});function Cg(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function Ag(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 yg=0;function Ig({style:e,props:t}){const n=`ahd-video-${++yg}`,o=(e==null?void 0:e.textAlign)??"left",r={padding:Sg(e==null?void 0:e.padding),...kg(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:Cg(o),textAlign:o},i=(t==null?void 0:t.width)??"inherit",a=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=l??i,u=s??i,f=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??a,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??a,h=i,p=a,b=T=>T==null?void 0:typeof T=="number"?`${T}px`:T,x=`
82
+ ${It} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(f)?`height: ${b(f)} !important;`:""} max-width: 100% !important; } }
83
83
  ${Oe} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
84
- `.trim(),k=(t==null?void 0:t.linkHref)??null,S=(t==null?void 0:t.borderRadius)??0,$=L=>typeof L=="number"?`${L}px`:`${L.topLeft}px ${L.topRight}px ${L.bottomRight}px ${L.bottomLeft}px`,w=(L,H)=>{const F=Math.max((H==null?void 0:H.top)||0,(H==null?void 0:H.right)||0,(H==null?void 0:H.bottom)||0,(H==null?void 0:H.left)||0);if(typeof L=="number")return`${Math.max(0,L-F)}px`;const j=Math.max(0,(L.topLeft||0)-F),O=Math.max(0,(L.topRight||0)-F),q=Math.max(0,(L.bottomRight||0)-F),B=Math.max(0,(L.bottomLeft||0)-F);return`${j}px ${O}px ${q}px ${B}px`},_=(t==null?void 0:t.borderColor)??null,N=(t==null?void 0:t.borderWidth)??null,A=xm(_,N),y=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=km(t==null?void 0:t.url),M=R?g.jsx("iframe",{width:h,height:m,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(h),height:b(m),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:$(S)}},R):g.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:h,height:m,style:{width:b(h),height:b(m),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:$(S),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),T=y?g.jsx("div",{style:{borderRadius:S?$(S):void 0,...A},children:R?g.jsx("iframe",{width:h,height:m,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(h),height:b(m),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:w(S,N)}},R):g.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:h,height:m,style:{width:b(h),height:b(m),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:w(S,N),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?g.jsx("div",{style:{borderRadius:S?$(S):void 0,...A},children:M}):M;return k?g.jsxs("div",{className:`video-block ${n}`,style:a,children:[v&&g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),g.jsx("a",{href:k,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:T})]}):g.jsxs("div",{className:`video-block ${n}`,style:a,children:[v&&g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),T]})}var Cm=C({props:C({height:f().gte(0).optional().nullish()}).optional().nullable()}),Am={height:16};function ym({props:e}){var t;const n={height:(t=e==null?void 0:e.height)!=null?t:Am.height};return G.createElement("div",{style:n})}const Nm=20;function Rm(e){const t=[];t.push('ol[data-mll="decimal-dot"] { list-style-type: none; padding-inline-start: 32px; counter-reset: mll-1; }'),t.push('ol[data-mll="decimal-dot"] > li { counter-increment: mll-1; position: relative; }'),t.push('ol[data-mll="decimal-dot"] > li::before { content: counter(mll-1) "."; position: absolute; left: -32px; width: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }');for(let n=2;n<=e;n++){const a=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,i=[];for(let l=1;l<=n;l++)l>1&&i.push('"."'),i.push(`counter(mll-${l})`);const r=i.join(" ");n===2?(t.push(`${a} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${a} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${a} > li::before { content: ${r}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${a} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${a} > li { counter-increment: mll-${n}; }`),t.push(`${a} > li::before { content: ${r}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
85
- `)}const Em=`
84
+ `.trim(),w=(t==null?void 0:t.linkHref)??null,v=(t==null?void 0:t.borderRadius)??0,_=T=>typeof T=="number"?`${T}px`:`${T.topLeft}px ${T.topRight}px ${T.bottomRight}px ${T.bottomLeft}px`,S=(T,z)=>{const H=Math.max((z==null?void 0:z.top)||0,(z==null?void 0:z.right)||0,(z==null?void 0:z.bottom)||0,(z==null?void 0:z.left)||0);if(typeof T=="number")return`${Math.max(0,T-H)}px`;const Z=Math.max(0,(T.topLeft||0)-H),j=Math.max(0,(T.topRight||0)-H),V=Math.max(0,(T.bottomRight||0)-H),Y=Math.max(0,(T.bottomLeft||0)-H);return`${Z}px ${j}px ${V}px ${Y}px`},$=(t==null?void 0:t.borderColor)??null,y=(t==null?void 0:t.borderWidth)??null,C=_g($,y),R=$&&($.includes("linear-gradient")||$.includes("radial-gradient")||$.includes("repeating-linear-gradient")),I=Ag(t==null?void 0:t.url),E=I?g.jsx("iframe",{width:h,height:p,src:I,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(h),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:_(v)}},I):g.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:h,height:p,style:{width:b(h),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:_(v),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),P=R?g.jsx("div",{style:{borderRadius:v?_(v):void 0,...C},children:I?g.jsx("iframe",{width:h,height:p,src:I,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(h),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:S(v,y)}},I):g.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:h,height:p,style:{width:b(h),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:S(v,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):$?g.jsx("div",{style:{borderRadius:v?_(v):void 0,...C},children:E}):E;return w?g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:P})]}):g.jsxs("div",{className:`video-block ${n}`,style:r,children:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),P]})}var Rg=A({props:A({height:m().gte(0).optional().nullish()}).optional().nullable()}),Eg={height:16};function Ng({props:e}){var t;const n={height:(t=e==null?void 0:e.height)!=null?t:Eg.height};return F.createElement("div",{style:n})}const Mg=20;function Tg(e){const t=[];t.push('ol[data-mll="decimal-dot"] { list-style-type: none; padding-inline-start: 32px; counter-reset: mll-1; }'),t.push('ol[data-mll="decimal-dot"] > li { counter-increment: mll-1; position: relative; }'),t.push('ol[data-mll="decimal-dot"] > li::before { content: counter(mll-1) "."; position: absolute; left: -32px; width: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }');for(let n=2;n<=e;n++){const r=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,i=[];for(let l=1;l<=n;l++)l>1&&i.push('"."'),i.push(`counter(mll-${l})`);const a=i.join(" ");n===2?(t.push(`${r} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${r} > li::before { content: ${a}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${r} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${r} > li { counter-increment: mll-${n}; }`),t.push(`${r} > li::before { content: ${a}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
85
+ `)}const Pg=`
86
86
  /* Match the block's paragraph rhythm: this app zeros <p> margins via a
87
87
  .ahd-page-root p rule, so list items and nested lists must also carry
88
88
  zero vertical margin or the list feels double-spaced next to
@@ -142,7 +142,7 @@ ol[data-mll="decimal-paren"] ol ol ol > li::before { content: counter(mll-d) ")"
142
142
  buildDecimalDotCSS so arbitrary nesting depth (up to
143
143
  DECIMAL_DOT_MAX_LEVEL) renders the correctly concatenated marker
144
144
  instead of repeating the last-defined level's string. */
145
- ${Rm(Nm)}
145
+ ${Tg(Mg)}
146
146
 
147
147
  /* ── list-style-type schemes: tight hanging indent similar to plain
148
148
  browser <ol> so the marker character sits close to the text. ────── */
@@ -176,58 +176,74 @@ ul[data-mll="bullet-arrow"] > li::before { content: "▸"; position: absolute; l
176
176
  ul[data-mll="bullet-arrow"] ul { list-style-type: none; }
177
177
  ul[data-mll="bullet-arrow"] ul > li::before { content: "◦"; }
178
178
  ul[data-mll="bullet-arrow"] ul ul > li::before { content: "▪"; }
179
- `,Im=I(["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 Mm(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 Tm=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Pm=x().regex(/^rgba?\([^\)]+\)$/i),Om=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Lm=re("transparent"),Cr=D([Tm,Pm,Om,Lm]).nullable().optional(),zm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),jm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Bm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Dm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Hm=C({style:C({color:Cr,backgroundColor:Cr,fontSize:f().gte(0).optional().nullable(),lineClamp:f().int().gte(0).optional().nullable(),fontFamily:Im,fontWeight:I(["bold","normal",...Ra]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:zm,margin:jm}).optional().nullable(),props:C({text:x().optional().nullable(),editorType:I(["summernote","quill"]).optional().nullable()}).optional().nullable()}),Fm={text:""};function Gm({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},a=(e==null?void 0:e.color)??void 0,i=typeof a=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(a),r={...i?{backgroundImage:a,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:a},background:i?void 0:(e==null?void 0:e.backgroundColor)??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Mm(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:Bm(e==null?void 0:e.padding),margin:Dm(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word",...o},l=(t==null?void 0:t.text)??Fm.text;return g.jsxs("div",{className:"text-block",style:r,children:[g.jsx("style",{children:`.text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}
179
+ `,rt=[{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'}],Og={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]},Lg=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Og).map(([e,t])=>`family=${Lg(e,t)}`).join("&")}`;const ls=rt.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));ls.map(e=>e.css);const zg=e=>e.replace(/"/g,'\\"'),jg=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(rt.filter(e=>e.key!=="inherit").map(e=>jg(e.value)));const ui=rt.find(e=>e.key==="INTER");ui&&ui.value;ls.map(e=>{const t=zg(e.css);return`
180
+ .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
181
+ .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
182
+ content: '${e.label}';
183
+ font-family: ${e.css};
184
+ }`}).join(`
185
+ `);const Zn=[{label:"10",px:10},{label:"12",px:12},{label:"14",px:14},{label:"16",px:16},{label:"18",px:18},{label:"20",px:20},{label:"22",px:22},{label:"24",px:24},{label:"26",px:26},{label:"28",px:28},{label:"30",px:30},{label:"32",px:32},{label:"36",px:36},{label:"40",px:40},{label:"44",px:44},{label:"48",px:48},{label:"52",px:52},{label:"56",px:56},{label:"60",px:60},{label:"64",px:64},{label:"72",px:72},{label:"76",px:76}],Bg={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Bg));const ss="@container ahd-page (min-width: 641px) and (max-width: 1024px)",cs="@container ahd-page (max-width: 640px)";function Dg(){const e=Zn.map(o=>`[data-fs-desktop="${o.px}"]{font-size:${o.px}px}`).join(`
186
+ `),t=Zn.map(o=>`[data-fs-tablet="${o.px}"]{font-size:${o.px}px !important}`).join(`
187
+ `),n=Zn.map(o=>`[data-fs-mobile="${o.px}"]{font-size:${o.px}px !important}`).join(`
188
+ `);return[e,`${It}{${t}}`,`${ss}{${t}}`,`${Oe}{${n}}`,`${cs}{${n}}`].join(`
189
+ `)}const sa=Dg(),Fg=new Set(Zn.map(e=>e.px));function Hg(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let o;for(;(o=n.exec(e))!==null;){const s=Number(o[2]);!Number.isFinite(s)||Fg.has(s)||t[o[1]].add(s)}const r=s=>Array.from(t[s]).map(c=>`[data-fs-${s}="${c}"]{font-size:${c}px${s==="desktop"?"":" !important"}}`).join(`
190
+ `),i=r("desktop"),a=r("tablet"),l=r("mobile");return!i&&!a&&!l?"":[i,a&&`${It}{${a}}`,a&&`${ss}{${a}}`,l&&`${Oe}{${l}}`,l&&`${cs}{${l}}`].filter(Boolean).join(`
191
+ `)}const di="ahd-responsive-font-size";function Gg(){if(typeof document>"u"||document.getElementById(di))return;const e=document.createElement("style");e.id=di,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=sa,document.head.appendChild(e)}Gg();const Ug=M(["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 Zg(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 Wg=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),qg=k().regex(/^rgba?\([^\)]+\)$/i),Vg=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yg=ae("transparent"),hi=D([Wg,qg,Vg,Yg]).nullable().optional(),Kg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Jg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Xg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,eb=A({style:A({color:hi,backgroundColor:hi,fontSize:m().gte(0).optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontFamily:Ug,fontWeight:M(["bold","normal",...aa]).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),padding:Kg,margin:Jg}).optional().nullable(),props:A({text:k().optional().nullable(),editorType:M(["summernote","quill"]).optional().nullable()}).optional().nullable()}),tb={text:""};function nb({style:e,props:t}){const n=e==null?void 0:e.lineClamp,o=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},r=(e==null?void 0:e.color)??void 0,i=typeof r=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(r),a={...i?{backgroundImage:r,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:r},background:i?void 0:(e==null?void 0:e.backgroundColor)??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Zg(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Xg(e==null?void 0:e.padding),margin:Qg(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word",...o},l=Xl((t==null?void 0:t.text)??tb.text);return g.jsxs("div",{className:"text-block",style:a,children:[g.jsx("style",{children:`.text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}
180
192
  .text-block a{color:#2563eb;text-decoration:underline}/* keep in sync with LINK_COLOR (editor-sample InlineTextToolbar/types.ts) */
181
193
  .text-block pre,.text-block code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}
182
- ${Em}`}),g.jsx("div",{dangerouslySetInnerHTML:{__html:l}})]})}const Um=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Zm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wm=C({style:C({padding:Um,backgroundColor:x().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:f().optional().nullable(),height:f().optional().nullable(),widthTablet:D([f(),x()]).optional().nullable(),widthMobile:D([f(),x()]).optional().nullable(),heightTablet:D([f(),x()]).optional().nullable(),heightMobile:D([f(),x()]).optional().nullable(),url:x().optional().nullable(),alt:x().optional().nullable(),linkHref:x().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let qm=0;function Vm({style:e,props:t}){const n=`ahd-youtube-url-${++qm}`,o={padding:Zm(e==null?void 0:e.padding),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0},a=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,r=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,p=l??i,d=s??p,h=c??r,m=u??h,b=i,v=r,k=w=>w==null?void 0:typeof w=="number"?`${w}px`:w,S=`
183
- ${ot} { .${n} video { ${k(p)?`width: ${k(p)} !important;`:""} ${k(h)?`height: ${k(h)} !important;`:""} max-width: 100% !important; } }
184
- ${Oe} { .${n} video { ${k(d)?`width: ${k(d)} !important;`:""} ${k(m)?`height: ${k(m)} !important;`:""} max-width: 100% !important; } }
185
- `.trim(),$=g.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:v,style:{width:b,height:v,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return a?g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("a",{href:a,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:$})]}):g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[S&&g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}),$]})}const Ym=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Km=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Jm=C({responsive:Te,style:C({padding:Ym,margin:Km,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:x().optional().nullable(),width:x().optional().nullable(),height:x().optional().nullable(),title:x().optional().nullable(),allowFullscreen:P().optional().nullable()}).optional().nullable()}),Xm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Qm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function eg({style:e,props:t}){var d,h;const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",a=t==null?void 0:t.height,i=!a||/^\s*(0|0px|100vh)\s*$/i.test(a)?"800px":a,r=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=G.useRef(null),c=(((d=e==null?void 0:e.margin)==null?void 0:d.left)??0)+(((h=e==null?void 0:e.margin)==null?void 0:h.right)??0),u={padding:Xm(e==null?void 0:e.padding),margin:Qm(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${c}px)`},p={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?g.jsx("div",{className:"iframe-block",style:u,children:g.jsx("iframe",{ref:s,src:n,title:r,style:p,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...u,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const tg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ng=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),og=C({responsive:Te,style:C({padding:tg,margin:ng,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:x().optional().nullable(),width:x().optional().nullable(),height:x().optional().nullable(),title:x().optional().nullable(),allowFullscreen:P().optional().nullable()}).optional().nullable()}),ag=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},rg=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},ig=({props:e,style:t})=>{var u,p;const{src:n,width:o,height:a,title:i,allowFullscreen:r=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((p=t==null?void 0:t.margin)==null?void 0:p.right)??0),s=t??{},c={width:l>0?`calc(100% - ${l}px)`:"100%",padding:ag(s.padding),margin:rg(s.margin),textAlign:s.textAlign||void 0};return g.jsx("div",{className:"calendly-block",style:c,children:g.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:r??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${a||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var lg=Object.defineProperty,Ar=Object.getOwnPropertySymbols,sg=Object.prototype.hasOwnProperty,cg=Object.prototype.propertyIsEnumerable,yr=(e,t,n)=>t in e?lg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ug=(e,t)=>{for(var n in t||(t={}))sg.call(t,n)&&yr(e,n,t[n]);if(Ar)for(var n of Ar(t))cg.call(t,n)&&yr(e,n,t[n]);return e};function dg(e){return function({type:n,data:o}){const a=e[n].Component;return G.createElement(a,ug({},o))}}function hg(e){const t=Object.keys(e).map(n=>C({type:re(n),data:e[n].schema}));return Eh("type",t).transform(n=>n)}const fg=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),pg=x().regex(/^rgba?\([^\)]+\)$/i),mg=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),gg=re("transparent"),bg=D([fg,pg,mg,gg]).nullable().optional(),vg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),xg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),lo=Xi([f().optional().nullish(),f().optional().nullish(),f().optional().nullish(),f().optional().nullish(),f().optional().nullish()]).optional().nullable(),so=I(["fixed","fill","fit"]).optional().nullable(),Sg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,wg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ul=C({style:C({backgroundColor:bg,padding:vg,margin:xg}).optional().nullable(),props:C({widthType:so,widthTypeTablet:so,widthTypeMobile:so,fixedWidths:lo,fixedWidthsTablet:lo,fixedWidthsMobile:lo,columnsCount:D([re(2),re(3),re(4),re(5)]).optional().nullable(),columnsGap:f().optional().nullable(),columnsGapTablet:f().optional().nullable(),columnsGapMobile:f().optional().nullable(),columnsDirection:I(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:I(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:I(["horizontal","vertical"]).optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:I(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:I(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),St={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function Nr(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
194
+ ${Pg}
195
+ ${sa}
196
+ ${Hg(l)}`}),g.jsx("div",{dangerouslySetInnerHTML:{__html:l}})]})}const ob=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),rb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ab=A({style:A({padding:ob,backgroundColor:k().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:M(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),height:m().optional().nullable(),widthTablet:D([m(),k()]).optional().nullable(),widthMobile:D([m(),k()]).optional().nullable(),heightTablet:D([m(),k()]).optional().nullable(),heightMobile:D([m(),k()]).optional().nullable(),url:k().optional().nullable(),alt:k().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let ib=0;function lb({style:e,props:t}){const n=`ahd-youtube-url-${++ib}`,o={padding:rb(e==null?void 0:e.padding),backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0},r=(t==null?void 0:t.linkHref)??null,i=(t==null?void 0:t.width)??void 0,a=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,c=(t==null?void 0:t.heightTablet)??null,u=(t==null?void 0:t.heightMobile)??null,f=l??i,d=s??f,h=c??a,p=u??h,b=i,x=a,w=S=>S==null?void 0:typeof S=="number"?`${S}px`:S,v=`
197
+ ${nt} { .${n} video { ${w(f)?`width: ${w(f)} !important;`:""} ${w(h)?`height: ${w(h)} !important;`:""} max-width: 100% !important; } }
198
+ ${Oe} { .${n} video { ${w(d)?`width: ${w(d)} !important;`:""} ${w(p)?`height: ${w(p)} !important;`:""} max-width: 100% !important; } }
199
+ `.trim(),_=g.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:x,style:{width:b,height:x,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return r?g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[v&&g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),g.jsx("a",{href:r,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:_})]}):g.jsxs("div",{className:`youtube-url-block ${n}`,style:o,children:[v&&g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),_]})}const sb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),cb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),ub=A({responsive:Be,style:A({padding:sb,margin:cb,textAlign:M(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:k().optional().nullable(),width:k().optional().nullable(),height:k().optional().nullable(),title:k().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),db=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function fb({style:e,props:t}){var d,h;const n=(t==null?void 0:t.src)??"",o=(t==null?void 0:t.width)??"100%",r=t==null?void 0:t.height,i=!r||/^\s*(0|0px|100vh)\s*$/i.test(r)?"800px":r,a=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=F.useRef(null),c=(((d=e==null?void 0:e.margin)==null?void 0:d.left)??0)+(((h=e==null?void 0:e.margin)==null?void 0:h.right)??0),u={padding:db(e==null?void 0:e.padding),margin:hb(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${c}px)`},f={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${i})`,minHeight:`var(--ahd-iframe-height,${i})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?g.jsx("div",{className:"iframe-block",style:u,children:g.jsx("iframe",{ref:s,src:n,title:a,style:f,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...u,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const pb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),mb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),gb=A({responsive:Be,style:A({padding:pb,margin:mb,textAlign:M(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:k().optional().nullable(),width:k().optional().nullable(),height:k().optional().nullable(),title:k().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),bb=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},xb=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},vb=({props:e,style:t})=>{var u,f;const{src:n,width:o,height:r,title:i,allowFullscreen:a=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((u=t==null?void 0:t.margin)==null?void 0:u.left)??0)+(((f=t==null?void 0:t.margin)==null?void 0:f.right)??0),s=t??{},c={width:l>0?`calc(100% - ${l}px)`:"100%",padding:bb(s.padding),margin:xb(s.margin),textAlign:s.textAlign||void 0};return g.jsx("div",{className:"calendly-block",style:c,children:g.jsx("iframe",{src:n,title:i||"Calendly scheduling",allowFullScreen:a??!0,style:{width:`var(--ahd-calendly-width,${o||"100%"})`,height:`var(--ahd-calendly-height,${r||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var wb=Object.defineProperty,fi=Object.getOwnPropertySymbols,Sb=Object.prototype.hasOwnProperty,kb=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?wb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_b=(e,t)=>{for(var n in t||(t={}))Sb.call(t,n)&&pi(e,n,t[n]);if(fi)for(var n of fi(t))kb.call(t,n)&&pi(e,n,t[n]);return e};function $b(e){return function({type:n,data:o}){const r=e[n].Component;return F.createElement(r,_b({},o))}}function Cb(e){const t=Object.keys(e).map(n=>A({type:ae(n),data:e[n].schema}));return Rf("type",t).transform(n=>n)}const Ab=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),yb=k().regex(/^rgba?\([^\)]+\)$/i),Ib=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Rb=ae("transparent"),Eb=D([Ab,yb,Ib,Rb]).nullable().optional(),Nb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Mb=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Eo=Ul([m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish(),m().optional().nullish()]).optional().nullable(),No=M(["fixed","fill","fit"]).optional().nullable(),Tb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Pb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,us=A({style:A({backgroundColor:Eb,padding:Nb,margin:Mb}).optional().nullable(),props:A({widthType:No,widthTypeTablet:No,widthTypeMobile:No,fixedWidths:Eo,fixedWidthsTablet:Eo,fixedWidthsMobile:Eo,columnsCount:D([ae(2),ae(3),ae(4),ae(5)]).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),columnsDirection:M(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:M(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:M(["horizontal","vertical"]).optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:M(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:M(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),At={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function mi(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
186
200
  ${e} table { table-layout: auto !important; }
187
201
  ${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
188
- ${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function Rr(e){return`${e} table { display: table !important; table-layout: fixed !important; }
202
+ ${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function gi(e){return`${e} table { display: table !important; table-layout: fixed !important; }
189
203
  ${e} tbody { display: table-row-group !important; }
190
204
  ${e} tr { display: table-row !important; width: auto !important; }
191
205
  ${e} td { display: table-cell !important; width: auto !important; }
192
- ${e} td + td { margin-top: 0 !important; }`}function Er(e,t,n,o,a,i){const r=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,c=l===0?0:n/2,u=l===t-1?0:n/2,p=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];o==="fixed"&&(a==null?void 0:a[l])!=null?p.push(`width: ${a[l]}px !important`):p.push("width: auto !important"),r.push(`${s} { ${p.join("; ")}; }`)}return r.join(`
193
- `)}function kg(e,t){const n=`.${e}.columns-container`,o=(a,i)=>!i&&a?`${n} td { vertical-align: ${a} !important; }`:"";return`
194
- @media (max-width: ${je}px) {
206
+ ${e} td + td { margin-top: 0 !important; }`}function bi(e,t,n,o,r,i){const a=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,c=l===0?0:n/2,u=l===t-1?0:n/2,f=[`padding-left: ${c}px !important`,`padding-right: ${u}px !important`];o==="fixed"&&(r==null?void 0:r[l])!=null?f.push(`width: ${r[l]}px !important`):f.push("width: auto !important"),a.push(`${s} { ${f.join("; ")}; }`)}return a.join(`
207
+ `)}function Ob(e,t){const n=`.${e}.columns-container`,o=(r,i)=>!i&&r?`${n} td { vertical-align: ${r} !important; }`:"";return`
208
+ @media (max-width: ${Ue}px) {
195
209
  ${n} { --columns-gap: ${t.tabletGap}px; }
196
- ${t.tabletVertical?Nr(n):Rr(n)}
197
- ${t.tabletVertical?"":Er(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
210
+ ${t.tabletVertical?mi(n):gi(n)}
211
+ ${t.tabletVertical?"":bi(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
198
212
  ${o(t.tabletAlign,t.tabletVertical)}
199
213
  }
200
- @media (max-width: ${Ae}px) {
214
+ @media (max-width: ${Le}px) {
201
215
  ${n} { --columns-gap: ${t.mobileGap}px; }
202
- ${t.mobileVertical?Nr(n):Rr(n)}
203
- ${t.mobileVertical?"":Er(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
216
+ ${t.mobileVertical?mi(n):gi(n)}
217
+ ${t.mobileVertical?"":bi(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
204
218
  ${o(t.mobileAlign,t.mobileVertical)}
205
219
  }
206
- `.trim()}let _g=0;function $g({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??St.widthType,a=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??a,r=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??r,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??St.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,p=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??St.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,m=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??St.contentAlignment,v=(n==null?void 0:n.contentAlignmentTablet)??b,k=(n==null?void 0:n.contentAlignmentMobile)??v,S=(n==null?void 0:n.columnsCount)??St.columnsCount,$=o,w=r,_=c,N=d,y={widthType:$,columnsCount:S,columnsGap:_,columnsDirection:N,contentAlignment:b,fixedWidths:w},R=N==="vertical",M=G.useMemo(()=>`ahd-cc-${_g+=1}`,[]),T=kg(M,{tabletVertical:h==="vertical",mobileVertical:m==="vertical",columnsCount:S,tabletGap:u,mobileGap:p,tabletWidthType:a,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:v,mobileAlign:k}),L={background:(e==null?void 0:e.backgroundColor)??void 0,padding:Sg(e==null?void 0:e.padding),margin:wg(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return g.jsxs("div",{className:`columns-container ${M}${R?" is-stacked":""}`,style:L,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||$==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:g.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:g.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[g.jsx(Wt,{index:0,props:y,columns:t}),g.jsx(Wt,{index:1,props:y,columns:t}),g.jsx(Wt,{index:2,props:y,columns:t}),g.jsx(Wt,{index:3,props:y,columns:t}),g.jsx(Wt,{index:4,props:y,columns:t})]})})})]})}function Wt({index:e,props:t,columns:n}){var p;const o=(t==null?void 0:t.columnsCount)??St.columnsCount;if(e>=o)return null;const a=t.columnsDirection==="vertical",i=a?0:Cg(e,t),r=a?0:Ag(e,t),l=(p=t.fixedWidths)==null?void 0:p[e],s={boxSizing:a?"border-box":"content-box",verticalAlign:a?"top":(t==null?void 0:t.contentAlignment)??St.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:r?`${r}px`:0,width:t.widthType==="fixed"&&!a&&l!=null?`${l}px`:void 0,...a?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},c=(n==null?void 0:n[e])??null,u=t.widthType==="fixed"&&l!=null?l:void 0;return g.jsx("td",{style:s,width:u,children:c})}function Cg(e,{columnsGap:t}){return e===0?0:t/2}function Ag(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const yg=ul.shape.props.unwrap().unwrap().shape,Ng=ul.shape.style.unwrap().unwrap().shape,Rg=C({style:C({...Ng,borderRadius:D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({...yg,columns:Xi([C({childrenIds:W(x())}),C({childrenIds:W(x())}),C({childrenIds:W(x())})])}).optional().nullable()});function Eg(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Ig({style:e,props:t}){const{columns:n,...o}=t??{};let a;n&&(a=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(h=>g.jsx(ve,{id:h},h))));const{borderRadius:i,borderColor:r,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=Eg(i)),r){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=r,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!r,p=g.jsx($g,{props:o,columns:a,style:s});return u?g.jsx("div",{style:c,children:p}):g.jsx(g.Fragment,{children:p})}const Mg=C({style:C({backgroundColor:x().optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),borderRadius:D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({columnsCount:f().int().min(2).optional().nullable(),columnsGap:f().optional().nullable(),columnsGapTablet:f().optional().nullable(),columnsGapMobile:f().optional().nullable(),wrap:P().optional().nullable(),desktopLayout:I(["wrap","row"]).optional().nullable(),mobileLayout:I(["wrap","row"]).optional().nullable(),tabletLayout:I(["wrap","row"]).optional().nullable(),columnShrink:W(P()).optional().nullable(),columnShrinkTablet:W(P()).optional().nullable(),columnShrinkMobile:W(P()).optional().nullable(),equalColumns:P().optional().nullable(),columns:W(C({childrenIds:W(x())})).optional().nullable(),align:I(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:I(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:P().optional().nullable(),repeatableEnabled:P().optional().nullable()}).optional().nullable()});function Tg(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Pg(e){var a,i;const t=e??{},n=(((a=t.margin)==null?void 0:a.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const r=t.padding;o.padding=`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`}if(t.margin){const r=t.margin;o.margin=`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`}if(t.borderRadius!=null&&(o.borderRadius=Tg(t.borderRadius),o.overflow="hidden"),t.borderColor){const r=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`}return o}function co(e,t,n){const o=e??{},a=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??a,r=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u=o.columnsGap??16,p=o.columnsGapTablet??u,d=o.columnsGapMobile??p,h={desktop:{layout:a,shrink:l,gap:u},tablet:{layout:i,shrink:s,gap:p},mobile:{layout:r,shrink:c,gap:d}}[t];return{layout:h.layout,gap:h.gap,shrink:Array.from({length:n},(m,b)=>h.shrink[b]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function Og(e){switch(e){case"shrink":return"flex: 0 0 auto; width: auto;";case"equal":return"flex: 1 1 0; width: 0;";default:return"flex: 1 1 auto; width: auto;"}}function Lg(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function uo(e,t,n,o){const{layout:a,reverseColumns:i,gap:r}=n,l=d=>d.map(h=>`${t}:nth-child(${h+1})`).join(", "),s=Array.from({length:o},(d,h)=>h);if(a==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${r}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
207
- `);const u=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${r}px; }`],p=new Map;for(const d of s){const h=Lg(d,n);p.set(h,[...p.get(h)??[],d])}for(const[d,h]of p)u.push(`${l(h)} { ${Og(d)} max-width: 100%; }`);return u.join(`
208
- `)}function zg(e,t){const{columnsCount:n,desktop:o,tablet:a,mobile:i}=t,r=`.${e}.flex-columns-block > .fc-row`,l=`${r} > .fc-col`,s=[`${r} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; }`,`${l} > * { max-width: 100%; }`,`${l} img { max-width: 100%; height: auto; }`].join(`
209
- `),u=[o,a,i].some(d=>d.shrink.some(Boolean))?[o,a,i].flatMap(d=>d.shrink.map((h,m)=>h?m:-1).filter(h=>h>=0)).filter((d,h,m)=>m.indexOf(d)===h).map(d=>{const h=`${l}:nth-child(${d+1})`;return`${h} > *, ${h} .container-block { width: auto; max-width: 100%; }`}).join(`
210
- `):"",p=(d,h)=>`@media (max-width: ${d}px) {
220
+ `.trim()}let Lb=0;function zb({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??At.widthType,r=(n==null?void 0:n.widthTypeTablet)??o,i=(n==null?void 0:n.widthTypeMobile)??r,a=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??a,s=(n==null?void 0:n.fixedWidthsMobile)??l,c=(n==null?void 0:n.columnsGap)??At.columnsGap,u=(n==null?void 0:n.columnsGapTablet)??c,f=(n==null?void 0:n.columnsGapMobile)??u,d=(n==null?void 0:n.columnsDirection)??At.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??At.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,w=(n==null?void 0:n.contentAlignmentMobile)??x,v=(n==null?void 0:n.columnsCount)??At.columnsCount,_=o,S=a,$=c,y=d,R={widthType:_,columnsCount:v,columnsGap:$,columnsDirection:y,contentAlignment:b,fixedWidths:S},I=y==="vertical",E=F.useMemo(()=>`ahd-cc-${Lb+=1}`,[]),P=Ob(E,{tabletVertical:h==="vertical",mobileVertical:p==="vertical",columnsCount:v,tabletGap:u,mobileGap:f,tabletWidthType:r,mobileWidthType:i,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:w}),T={background:(e==null?void 0:e.backgroundColor)??void 0,padding:Tb(e==null?void 0:e.padding),margin:Pb(e==null?void 0:e.margin),"--columns-gap":`${$}px`};return g.jsxs("div",{className:`columns-container ${E}${I?" is-stacked":""}`,style:T,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:I||_==="fit"?"auto":"fixed",borderCollapse:"collapse",...I?{display:"block",width:"100%"}:{}},children:g.jsx("tbody",{style:{width:"100%",...I?{display:"block"}:{}},children:g.jsxs("tr",{style:{width:"100%",...I?{display:"block"}:{}},children:[g.jsx(on,{index:0,props:R,columns:t}),g.jsx(on,{index:1,props:R,columns:t}),g.jsx(on,{index:2,props:R,columns:t}),g.jsx(on,{index:3,props:R,columns:t}),g.jsx(on,{index:4,props:R,columns:t})]})})})]})}function on({index:e,props:t,columns:n}){var f;const o=(t==null?void 0:t.columnsCount)??At.columnsCount;if(e>=o)return null;const r=t.columnsDirection==="vertical",i=r?0:jb(e,t),a=r?0:Bb(e,t),l=(f=t.fixedWidths)==null?void 0:f[e],s={boxSizing:r?"border-box":"content-box",verticalAlign:r?"top":(t==null?void 0:t.contentAlignment)??At.contentAlignment,paddingLeft:i?`${i}px`:0,paddingRight:a?`${a}px`:0,width:t.widthType==="fixed"&&!r&&l!=null?`${l}px`:void 0,...r?{display:"block",width:"100%",marginTop:e>0?`${t.columnsGap}px`:void 0}:{}},c=(n==null?void 0:n[e])??null,u=t.widthType==="fixed"&&l!=null?l:void 0;return g.jsx("td",{style:s,width:u,children:c})}function jb(e,{columnsGap:t}){return e===0?0:t/2}function Bb(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const Db=us.shape.props.unwrap().unwrap().shape,Fb=us.shape.style.unwrap().unwrap().shape,Hb=A({style:A({...Fb,borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:k().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({...Db,columns:Ul([A({childrenIds:X(k())}),A({childrenIds:X(k())}),A({childrenIds:X(k())})])}).optional().nullable()});function Gb(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Ub({style:e,props:t}){const{columns:n,...o}=t??{};let r;n&&(r=n.map(d=>((d==null?void 0:d.childrenIds)??[]).map(h=>g.jsx(ke,{id:h},h))));const{borderRadius:i,borderColor:a,borderWidth:l,...s}=e??{},c={};if(i!=null&&(c.borderRadius=Gb(i)),a){const d=l??{top:1,right:1,bottom:1,left:1};c.borderStyle="solid",c.borderColor=a,c.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}c.overflow="hidden";const u=i!=null||!!a,f=g.jsx(zb,{props:o,columns:r,style:s});return u?g.jsx("div",{style:c,children:f}):g.jsx(g.Fragment,{children:f})}const Zb=A({style:A({backgroundColor:k().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:k().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({columnsCount:m().int().min(2).optional().nullable(),columnsGap:m().optional().nullable(),columnsGapTablet:m().optional().nullable(),columnsGapMobile:m().optional().nullable(),wrap:O().optional().nullable(),desktopLayout:M(["wrap","row"]).optional().nullable(),mobileLayout:M(["wrap","row"]).optional().nullable(),tabletLayout:M(["wrap","row"]).optional().nullable(),columnShrink:X(O()).optional().nullable(),columnShrinkTablet:X(O()).optional().nullable(),columnShrinkMobile:X(O()).optional().nullable(),equalColumns:O().optional().nullable(),columns:X(A({childrenIds:X(k())})).optional().nullable(),align:M(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:M(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:O().optional().nullable(),repeatableEnabled:O().optional().nullable()}).optional().nullable()});function Wb(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function qb(e){var r,i;const t=e??{},n=(((r=t.margin)==null?void 0:r.left)??0)+(((i=t.margin)==null?void 0:i.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const a=t.padding;o.padding=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.margin){const a=t.margin;o.margin=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}if(t.borderRadius!=null&&(o.borderRadius=Wb(t.borderRadius),o.overflow="hidden"),t.borderColor){const a=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`}return o}function Mo(e,t,n){const o=e??{},r=o.desktopLayout??(o.wrap?"wrap":"row"),i=o.tabletLayout??r,a=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,c=o.columnShrinkMobile??s,u=o.columnsGap??16,f=o.columnsGapTablet??u,d=o.columnsGapMobile??f,h={desktop:{layout:r,shrink:l,gap:u},tablet:{layout:i,shrink:s,gap:f},mobile:{layout:a,shrink:c,gap:d}}[t];return{layout:h.layout,gap:h.gap,shrink:Array.from({length:n},(p,b)=>h.shrink[b]===!0),equalColumns:o.equalColumns===!0,reverseColumns:o.reverseColumns===!0}}function Vb(e){switch(e){case"shrink":return"flex: 0 0 auto; width: auto;";case"equal":return"flex: 1 1 0; width: 0;";default:return"flex: 1 1 auto; width: auto;"}}function Yb(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function To(e,t,n,o){const{layout:r,reverseColumns:i,gap:a}=n,l=d=>d.map(h=>`${t}:nth-child(${h+1})`).join(", "),s=Array.from({length:o},(d,h)=>h);if(r==="wrap")return[`${e} { flex-direction: column; flex-wrap: nowrap; gap: ${a}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
221
+ `);const u=[`${e} { flex-direction: ${i?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${a}px; }`],f=new Map;for(const d of s){const h=Yb(d,n);f.set(h,[...f.get(h)??[],d])}for(const[d,h]of f)u.push(`${l(h)} { ${Vb(d)} max-width: 100%; }`);return u.join(`
222
+ `)}function Kb(e,t){const{columnsCount:n,desktop:o,tablet:r,mobile:i}=t,a=`.${e}.flex-columns-block > .fc-row`,l=`${a} > .fc-col`,s=[`${a} { display: flex; width: 100%; box-sizing: border-box; }`,`${l} { min-width: 0; box-sizing: border-box; }`,`${l} > * { max-width: 100%; }`,`${l} img { max-width: 100%; height: auto; }`].join(`
223
+ `),u=[o,r,i].some(d=>d.shrink.some(Boolean))?[o,r,i].flatMap(d=>d.shrink.map((h,p)=>h?p:-1).filter(h=>h>=0)).filter((d,h,p)=>p.indexOf(d)===h).map(d=>{const h=`${l}:nth-child(${d+1})`;return`${h} > *, ${h} .container-block { width: auto; max-width: 100%; }`}).join(`
224
+ `):"",f=(d,h)=>`@media (max-width: ${d}px) {
211
225
  ${h}
212
226
  }
213
227
  @container ahd-page (max-width: ${d}px) {
214
228
  ${h}
215
- }`;return[s,u,uo(r,l,o,n),p(je,uo(r,l,a,n)),p(Ae,uo(r,l,i,n))].filter(Boolean).join(`
216
- `)}let jg=0;function Bg({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.align)??"flex-start",a=(t==null?void 0:t.justify)??"flex-start",i=(t==null?void 0:t.columns)??[],r=Array.from({length:n},(u,p)=>i[p]??{childrenIds:[]}),l=G.useMemo(()=>`ahd-fc-${jg+=1}`,[]),s=zg(l,{columnsCount:n,desktop:co(t,"desktop",n),tablet:co(t,"tablet",n),mobile:co(t,"mobile",n)}),c={alignItems:o,justifyContent:a};return g.jsxs("div",{className:`flex-columns-block ${l}`,style:Pg(e),"data-cols":n,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),g.jsx("div",{className:"fc-row",style:c,children:r.map((u,p)=>g.jsx("div",{className:"fc-col",children:u.childrenIds.map(d=>g.jsx(ve,{id:d},d))},p))})]})}const Dg=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Hg=x().regex(/^rgba?\([^\)]+\)$/i),Fg=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Gg=re("transparent"),Ug=D([Dg,Hg,Fg,Gg]).nullable().optional(),Zg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Wg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),qg=C({style:C({backgroundColor:Ug,padding:Zg,margin:Wg}).optional().nullable(),props:C({columnsCount:f().int().min(1).optional().nullable(),columnsCountTablet:f().int().min(1).optional().nullable(),columnsCountMobile:f().int().min(1).optional().nullable(),rowsCount:f().int().min(1).optional().nullable(),columnsGap:f().optional().nullable(),rowsGap:f().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),Vg=qg.shape.props.unwrap().unwrap().shape,Yg=C({backgroundColor:x().optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),borderRadius:D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable(),Kg=C({style:Yg,props:C({...Vg,cells:W(C({childrenIds:W(x()),colStart:f().int().min(1).optional().nullable(),colSpan:f().int().min(1).optional().nullable(),rowStart:f().int().min(1).optional().nullable(),rowSpan:f().int().min(1).optional().nullable()})),columnsCountTablet:D([re(1),re(2),re(3),re(4),re(5)]).optional().nullable(),columnsCountMobile:D([re(1),re(2),re(3),re(4),re(5)]).optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:I(["left","center","right"]).optional().nullable()}).optional().nullable()}),Jg={top:"flex-start",middle:"center",bottom:"flex-end"},Xg={left:"flex-start",center:"center",right:"flex-end"};let Qg=0;function eb({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsCountTablet)??n,a=(t==null?void 0:t.columnsCountMobile)??1,i=(t==null?void 0:t.rowsCount)??2,r=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",c=(t==null?void 0:t.horizontalAlignment)??"left",u=(t==null?void 0:t.cells)??[],d=u.some(R=>(R==null?void 0:R.colStart)!=null||(R==null?void 0:R.rowStart)!=null||(R==null?void 0:R.colSpan)!=null||(R==null?void 0:R.rowSpan)!=null)?u.length:n*i,h=G.useMemo(()=>`ahd-grid-${Qg+=1}`,[]),m=Array.from({length:d},(R,M)=>u[M]??{childrenIds:[]}),b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,k=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),S=k>0?`calc(100% - ${k}px)`:"100%",$={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,width:S,maxWidth:"100%"},w=e==null?void 0:e.borderRadius;if(w!=null&&($.borderRadius=typeof w=="number"?`${w}px`:`${w.topLeft}px ${w.topRight}px ${w.bottomRight}px ${w.bottomLeft}px`,$.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};$.borderStyle="solid",$.borderColor=e.borderColor,$.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const _={display:"grid",columnGap:`${r}px`,rowGap:`${l}px`,alignItems:Jg[s]??"center",justifyContent:Xg[c]??"flex-start",width:"100%",boxSizing:"border-box"},N=m.map((R,M)=>{if(R.colStart==null&&R.rowStart==null)return"";const T=[];return R.colStart!=null&&R.colSpan!=null&&T.push(`grid-column: ${R.colStart} / span ${R.colSpan};`),R.rowStart!=null&&R.rowSpan!=null&&T.push(`grid-row: ${R.rowStart} / span ${R.rowSpan};`),T.length===0?"":`.${h}-cell-${M} { ${T.join(" ")} }
217
- @media (max-width: ${Ae}px) { .${h}-cell-${M} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
218
- `),A=`
229
+ }`;return[s,u,To(a,l,o,n),f(Ue,To(a,l,r,n)),f(Le,To(a,l,i,n))].filter(Boolean).join(`
230
+ `)}let Jb=0;function Xb({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.align)??"flex-start",r=(t==null?void 0:t.justify)??"flex-start",i=(t==null?void 0:t.columns)??[],a=Array.from({length:n},(u,f)=>i[f]??{childrenIds:[]}),l=F.useMemo(()=>`ahd-fc-${Jb+=1}`,[]),s=Kb(l,{columnsCount:n,desktop:Mo(t,"desktop",n),tablet:Mo(t,"tablet",n),mobile:Mo(t,"mobile",n)}),c={alignItems:o,justifyContent:r};return g.jsxs("div",{className:`flex-columns-block ${l}`,style:qb(e),"data-cols":n,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),g.jsx("div",{className:"fc-row",style:c,children:a.map((u,f)=>g.jsx("div",{className:"fc-col",children:u.childrenIds.map(d=>g.jsx(ke,{id:d},d))},f))})]})}const Qb=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),e0=k().regex(/^rgba?\([^\)]+\)$/i),t0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),n0=ae("transparent"),o0=D([Qb,e0,t0,n0]).nullable().optional(),r0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),a0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),i0=A({style:A({backgroundColor:o0,padding:r0,margin:a0}).optional().nullable(),props:A({columnsCount:m().int().min(1).optional().nullable(),columnsCountTablet:m().int().min(1).optional().nullable(),columnsCountMobile:m().int().min(1).optional().nullable(),rowsCount:m().int().min(1).optional().nullable(),columnsGap:m().optional().nullable(),rowsGap:m().optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),l0=i0.shape.props.unwrap().unwrap().shape,s0=A({backgroundColor:k().optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),borderColor:k().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable(),c0=A({style:s0,props:A({...l0,cells:X(A({childrenIds:X(k()),colStart:m().int().min(1).optional().nullable(),colSpan:m().int().min(1).optional().nullable(),rowStart:m().int().min(1).optional().nullable(),rowSpan:m().int().min(1).optional().nullable()})),columnsCountTablet:D([ae(1),ae(2),ae(3),ae(4),ae(5)]).optional().nullable(),columnsCountMobile:D([ae(1),ae(2),ae(3),ae(4),ae(5)]).optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:M(["left","center","right"]).optional().nullable()}).optional().nullable()}),u0={top:"flex-start",middle:"center",bottom:"flex-end"},d0={left:"flex-start",center:"center",right:"flex-end"};let h0=0;function f0({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,o=(t==null?void 0:t.columnsCountTablet)??n,r=(t==null?void 0:t.columnsCountMobile)??1,i=(t==null?void 0:t.rowsCount)??2,a=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",c=(t==null?void 0:t.horizontalAlignment)??"left",u=(t==null?void 0:t.cells)??[],d=u.some(I=>(I==null?void 0:I.colStart)!=null||(I==null?void 0:I.rowStart)!=null||(I==null?void 0:I.colSpan)!=null||(I==null?void 0:I.rowSpan)!=null)?u.length:n*i,h=F.useMemo(()=>`ahd-grid-${h0+=1}`,[]),p=Array.from({length:d},(I,E)=>u[E]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),v=w>0?`calc(100% - ${w}px)`:"100%",_={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,width:v,maxWidth:"100%"},S=e==null?void 0:e.borderRadius;if(S!=null&&(_.borderRadius=typeof S=="number"?`${S}px`:`${S.topLeft}px ${S.topRight}px ${S.bottomRight}px ${S.bottomLeft}px`,_.overflow="hidden"),e!=null&&e.borderColor){const I=e.borderWidth??{top:1,right:1,bottom:1,left:1};_.borderStyle="solid",_.borderColor=e.borderColor,_.borderWidth=`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`}const $={display:"grid",columnGap:`${a}px`,rowGap:`${l}px`,alignItems:u0[s]??"center",justifyContent:d0[c]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((I,E)=>{if(I.colStart==null&&I.rowStart==null)return"";const P=[];return I.colStart!=null&&I.colSpan!=null&&P.push(`grid-column: ${I.colStart} / span ${I.colSpan};`),I.rowStart!=null&&I.rowSpan!=null&&P.push(`grid-row: ${I.rowStart} / span ${I.rowSpan};`),P.length===0?"":`.${h}-cell-${E} { ${P.join(" ")} }
231
+ @media (max-width: ${Le}px) { .${h}-cell-${E} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
232
+ `),C=`
219
233
  .${h} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
220
- @media (max-width: ${je}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
221
- @media (max-width: ${Ae}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${a}, minmax(0, 1fr)); } }
222
- ${N}
223
- `.trim(),y=()=>({minWidth:0,boxSizing:"border-box"});return g.jsxs("div",{className:`grid-block ${h}`,style:$,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),g.jsx("div",{className:"grid-block-inner",style:_,children:m.map((R,M)=>g.jsx("div",{className:`grid-cell ${h}-cell-${M}`,style:y(),children:R.childrenIds.map(T=>g.jsx(ve,{id:T},T))},M))})]})}const tb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),nb=x().regex(/^rgba?\([^\)]+\)$/i),ob=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ab=re("transparent"),Ir=ol(e=>typeof e=="string"?e.trim():e,D([tb,nb,ob,ab]).nullable().optional()),rb=x().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),ib=x().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(),lb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),sb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),cb=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),ub=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Mr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function dl(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function db(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:dl(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function hb(e,t){const n=e&&dl(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function fb(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}function pb(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const o=Math.max(0,(e.topLeft||0)-n),a=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),r=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${a}px ${i}px ${r}px`}const mb=C({style:C({backgroundColor:Ir,backgroundImage:rb,backgroundSize:ib,backgroundRepeat:I(["repeat","no-repeat"]).optional().nullable(),borderColor:Ir,borderRadius:cb,padding:lb,margin:sb,borderWidth:ub,boxShadow:Vn}).optional().nullable(),props:C({fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),height:f().min(0).optional().nullable(),heightTablet:f().min(0).optional().nullable(),heightMobile:f().min(0).optional().nullable(),overflow:P().optional().nullable(),alignment:I(["left","center","right"]).optional().nullable(),alignmentTablet:I(["left","center","right"]).optional().nullable(),alignmentMobile:I(["left","center","right"]).optional().nullable(),tag:I(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:x().optional().nullable(),elementId:x().optional().nullable(),showLink:P().optional().nullable(),linkHref:x().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),hoverEffect:Ia}).optional().nullable()}),yt={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let gb=0;function bb({style:e,props:t,children:n}){const o=al(),a=(t==null?void 0:t.fullWidth)??yt.fullWidth,i=(t==null?void 0:t.widthType)??yt.widthType,r=(t==null?void 0:t.widthTypeTablet)??null,l=(t==null?void 0:t.widthTypeMobile)??null,s=r??i,c=l??s,u=(t==null?void 0:t.width)??yt.width,p=(t==null?void 0:t.widthUnit)??yt.widthUnit,d=(t==null?void 0:t.widthTablet)??null,h=(t==null?void 0:t.widthMobile)??null,m=d??u,b=h??m,v=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,$=k??v,w=S??$,_=(t==null?void 0:t.overflow)===!0,N=(t==null?void 0:t.alignment)??yt.alignment,A=(t==null?void 0:t.alignmentTablet)??null,y=(t==null?void 0:t.alignmentMobile)??null,R=N,M=(t==null?void 0:t.ariaLabel)??void 0,T=(t==null?void 0:t.elementId)??void 0,L=!!(t!=null&&t.showLink),H=(t==null?void 0:t.linkHref)??null,F=typeof H=="string"?H.trim():H,j=L&&typeof F=="string"&&F.length>0,O=(t==null?void 0:t.linkTarget)??"_blank",q=j?"a":(t==null?void 0:t.tag)??"div",B=j?{href:F,target:O,...O==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},Y=(ae,le,Ge=!1)=>{if(Ge&&a)return"100%";switch(ae){case"fill":return"100%";case"fixed":return`${le}${p}`;case"fit":default:return"auto"}},de=ae=>((ae==null?void 0:ae.left)??0)+((ae==null?void 0:ae.right)??0),oe=(ae,le,Ge)=>{const Qe=(le==null?void 0:le.top)??0,et=(le==null?void 0:le.bottom)??0;if(Ge)return{marginTop:Qe,marginBottom:et,marginLeft:(le==null?void 0:le.left)??0,marginRight:(le==null?void 0:le.right)??0};switch(ae){case"center":return{marginTop:Qe,marginBottom:et,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:Qe,marginBottom:et,marginLeft:"auto",marginRight:(le==null?void 0:le.right)??0};case"left":default:return{marginTop:Qe,marginBottom:et,marginLeft:(le==null?void 0:le.left)??0,marginRight:"auto"}}},ee=(ae,le)=>{const Ge=de(le);return Ge<=0?ae:ae==="100%"?`calc(100% - ${Ge}px)`:ae},Z=i,J=u,Ee=v,we=Y(Z,J,o==="desktop"),me=ee(we,e==null?void 0:e.margin),ne=r!=null||l!=null||d!=null||h!=null||k!=null||S!=null||A!=null||y!=null,V=(t==null?void 0:t.hoverEffect)??yt.hoverEffect,U=!!(V!=null&&V.enabled),X=ne||U?`ahd-cb-${++gb}`:"",ye=ne?`
224
- ${ot} { .${X} { width: ${ee(Y(s,m),e==null?void 0:e.margin)} !important; ${$!=null?`height: ${$}px !important;`:""} max-width: 100% !important; } }
225
- ${Oe} { .${X} { width: ${ee(Y(c,b),e==null?void 0:e.margin)} !important; ${w!=null?`height: ${w}px !important;`:""} max-width: 100% !important; } }
226
- `.trim():null,te=U?`
227
- .${X} { transition: transform ${V.duration??500}ms ${V.easing??"ease-in-out"}; }
228
- .${X}:hover { transform: scale(${V.scale??1.05}); }
229
- `.trim():null,Q=[ye,te].filter(Boolean).join(`
230
- `)||null,qe=Yn(e==null?void 0:e.boxShadow),Pe=ae=>{if(ae!=null)return typeof ae=="number"?`${ae}px`:`${ae.topLeft}px ${ae.topRight}px ${ae.bottomRight}px ${ae.bottomLeft}px`},ke=(e==null?void 0:e.borderColor)??null,it=(e==null?void 0:e.borderWidth)??null,bt=fb(ke,it),Ne=db((e==null?void 0:e.backgroundColor)??""),Se=(e==null?void 0:e.backgroundSize)==="none",ie=!Se&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,be=hb(e==null?void 0:e.backgroundColor,ie),Ie=Se?void 0:(e==null?void 0:e.backgroundSize)??void 0,Ft=(e==null?void 0:e.backgroundRepeat)??"no-repeat",lt=ke&&(ke.includes("linear-gradient")||ke.includes("radial-gradient")||ke.includes("repeating-linear-gradient")),Fe=Ee!=null,st=Fe?{"--ahd-cb-h":`${Ee}px`}:{},Me=Fe?" container-block-has-height":"";if(lt){const ae={...bt,borderRadius:Pe(e==null?void 0:e.borderRadius),width:me,maxWidth:"100%",height:Fe?`${Ee}px`:void 0,boxSizing:"border-box",...oe(R,e==null?void 0:e.margin,we==="100%"),...qe,...st},le={...Ne,backgroundImage:be,backgroundSize:Ie,backgroundRepeat:Ft,borderRadius:pb((e==null?void 0:e.borderRadius)??0,it),overflow:_?"auto":"hidden",padding:Mr(e==null?void 0:e.padding),width:"100%",height:Fe?"100%":void 0,boxSizing:"border-box"},Ge=`container-block${_?" container-block-overflow":""}${Me}${X?` ${X}`:""}`,Qe=`container-block-inner${_?" container-block-overflow":""}`,et=j?{...ae,...B.style}:ae;return g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Ge,"aria-label":M,id:T,...B,style:et,children:g.jsx("div",{className:Qe,style:le,children:n})})]})}const _t={...Ne,backgroundImage:be,backgroundSize:Ie,backgroundRepeat:Ft,...bt,borderRadius:Pe(e==null?void 0:e.borderRadius),padding:Mr(e==null?void 0:e.padding),...oe(R,e==null?void 0:e.margin,we==="100%"),width:me,maxWidth:"100%",height:Fe?`${Ee}px`:void 0,overflow:_?"auto":void 0,boxSizing:"border-box",..._?{}:{display:"flow-root"},...qe,...st},Gt=`container-block${_?" container-block-overflow":""}${Me}${X?` ${X}`:""}`,gn=j?{..._t,...B.style}:_t;return n?g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Gt,"aria-label":M,id:T,...B,style:gn,children:n})]}):g.jsxs(g.Fragment,{children:[Q&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),g.jsx(q,{className:Gt,"aria-label":M,id:T,...B,style:gn})]})}const vb=C({style:mb.shape.style,responsive:Te,props:C({childrenIds:W(x()).optional().nullable(),fullWidth:P().optional().nullable(),widthType:I(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:I(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:I(["fixed","fill","fit"]).optional().nullable(),width:f().min(0).optional().nullable(),widthUnit:I(["px","%"]).optional().nullable(),widthTablet:f().min(0).optional().nullable(),widthMobile:f().min(0).optional().nullable(),height:f().min(0).optional().nullable(),heightTablet:f().min(0).optional().nullable(),heightMobile:f().min(0).optional().nullable(),overflow:P().optional().nullable(),alignment:I(["left","center","right"]).optional().nullable(),alignmentTablet:I(["left","center","right"]).optional().nullable(),alignmentMobile:I(["left","center","right"]).optional().nullable(),tag:I(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:x().optional().nullable(),elementId:x().optional().nullable(),showLink:P().optional().nullable(),linkHref:x().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),animation:un,hoverEffect:Ia}).optional().nullable()});function xb({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return g.jsx(bb,{style:e,props:{fullWidth:(t==null?void 0:t.fullWidth)??void 0,widthType:(t==null?void 0:t.widthType)??void 0,widthTypeTablet:(t==null?void 0:t.widthTypeTablet)??void 0,widthTypeMobile:(t==null?void 0:t.widthTypeMobile)??void 0,width:(t==null?void 0:t.width)??void 0,widthUnit:(t==null?void 0:t.widthUnit)??void 0,widthTablet:(t==null?void 0:t.widthTablet)??void 0,widthMobile:(t==null?void 0:t.widthMobile)??void 0,height:(t==null?void 0:t.height)??void 0,heightTablet:(t==null?void 0:t.heightTablet)??void 0,heightMobile:(t==null?void 0:t.heightMobile)??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:n.map(o=>g.jsx(ve,{id:o},o))})}const Sb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),wb=x().regex(/^rgba?\([^\)]+\)$/i),kb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_b=re("transparent"),Et=D([Sb,wb,kb,_b]).nullable().optional(),$b=I(["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(),Cb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ho=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),fo=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ab=x().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(),yb=C({color:Et,offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:P().default(!1)}).partial().optional().nullable(),Nb=C({position:I(["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:P().optional().default(!0),selector:x().optional().default(""),showCloseIcon:P().optional(),iconCloseColor:Et,closeIconPosition:I(["left","center","right"]).optional(),closeIconPaddingTop:f().optional(),closeIconPaddingLeft:f().optional(),closeIconPaddingRight:f().optional(),bannerSubType:x().optional()}).passthrough().optional().nullable(),Rb=W(C({id:x(),name:x(),type:x().optional().default("text"),value:x().optional()})).optional().nullable(),Eb=C({formFields:Rb,backdropColor:Et.default(null),borderColor:Et.default(null),borderRadius:f().optional().nullable(),canvasColor:Et.default(null),textColor:Et,fontFamily:$b,childrenIds:W(x()).optional().nullable(),maxWidth:x().default(""),maxHeight:x().default(""),top:x().default(""),left:x().default(""),padding:ho,margin:fo,maxWidthTablet:x().optional().nullable(),maxWidthMobile:x().optional().nullable(),maxHeightTablet:x().optional().nullable(),maxHeightMobile:x().optional().nullable(),paddingTablet:ho,paddingMobile:ho,marginTablet:fo,marginMobile:fo,borderWidth:Cb,boxShadow:yb,behaviour:Nb,linkHref:x().optional().default(""),backgroundImage:x().default("").nullable().optional(),backgroundSize:Ab,backgroundRepeat:I(["repeat","no-repeat"]).optional().nullable()});function Nt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function _n(e,t,n){const o=e??{},a=o[t];if(n==="desktop")return Nt(a)?a:null;const i=o[`${t}Tablet`];if(n==="tablet")return Nt(i)?i:Nt(a)?a:null;const r=o[`${t}Mobile`];return Nt(r)?r:Nt(i)?i:Nt(a)?a:null}function po(e,t){return{maxWidth:_n(e,"maxWidth",t)??null,maxHeight:_n(e,"maxHeight",t)??null,padding:_n(e,"padding",t)??null,margin:_n(e,"margin",t)??null}}function Ib(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Mb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function mo(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:${Ib(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Mb(t.margin)};}`),n.join("")}function Tb(e,t,n){const o=`.${e}`,a={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=po(t,"desktop"),r=mo(a,{...i,maxWidth:i.maxWidth??n??null}),l=mo(a,po(t,"tablet")),s=mo(a,po(t,"mobile")),c=(u,p)=>p?`@media (max-width:${u}px){${p}}@container ahd-page (max-width:${u}px){${p}}`:"";return[r,c(je,l),c(Ae,s)].filter(Boolean).join("")}const Pb="Made with Page Pilot",Ob="https://pagepilot.fabbuilder.com";let Lb=0;function zb(e){switch(e??"MODERN_SANS"){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function jb(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const a=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,r=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?r(i):void 0};if(a){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?r(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?r(i):void 0}}function Bb(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Tr(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:i=0,inset:r=!1}=e,l=Bb(t);return{boxShadow:`${r?"inset ":""}${n}px ${o}px ${a}px ${i}px ${l}`}}function Db(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 Hb(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 Fb(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Gb(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Fb(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Ub({position:e,color:t}){const a="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},r="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:r};break;case"top-left":u={top:-8,left:a,width:16,height:8,clipPath:r};break;case"top-right":u={top:-8,right:a,width:16,height:8,clipPath:r};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:a,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:a,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return g.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function Zb({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:a}){const i=e||"#262626",r=t??"right",l=typeof n=="number"?n:2,u=r==="left"?{left:typeof o=="number"?o:2}:r==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof a=="number"?a:2};return g.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[g.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),g.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function Wb(){return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:g.jsx("a",{href:Ob,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:Pb})})}function qb(e){var Y,de,oe,ee,Z,J,Ee,we,me,ne,V,U,X,ye;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",a=n.includes("app-banner"),i=n.includes("demo"),r=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],p=a&&(((Y=e.behaviour)==null?void 0:Y.bannerSubType)==="floater"||u.includes((de=e.behaviour)==null?void 0:de.position)),d=a&&((oe=e.behaviour)==null?void 0:oe.bannerSubType)==="modal",h=(c||p||d)&&((ee=e.behaviour)==null?void 0:ee.showCloseIcon)!==!1,b=c&&!0,v=a&&e.linkHref?e.linkHref:null,k=G.useMemo(()=>`ahd-layout-${Lb+=1}`,[]),$=Tb(k,e,o==="page"||r?"100%":a&&!p?"900px":"320px"),w=(a||i)&&!!e.backgroundImage;e.borderRadius;const _=e.borderRadius??0,N=te=>typeof te=="number"?`${te}px`:`${te.topLeft}px ${te.topRight}px ${te.bottomRight}px ${te.bottomLeft}px`,y=(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)(_),R=te=>v?g.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:te}):te,M=jb(e),T=a&&!!((Z=e.boxShadow)!=null&&Z.color)&&!!e.boxShadow.inset,L=a&&!T?Tr(e.boxShadow):{},H=T?Tr(e.boxShadow):{},F=Hb(((J=e.behaviour)==null?void 0:J.position)??"right"),j=c&&!p&&!d&&((Ee=e.behaviour)==null?void 0:Ee.isCaret)!==!1,O=Gb(e.canvasColor,F),q=(((we=e.margin)==null?void 0:we.left)??0)+(((me=e.margin)==null?void 0:me.right)??0),B=q>0?`calc(100% - ${q}px)`:"100%";return R(g.jsxs("div",{className:k,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[$&&g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:zb(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:g.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...d||p?null:{maxWidth:"100%"}},children:[j&&g.jsx(Ub,{position:F,color:O}),g.jsxs("div",{style:{position:"relative",borderRadius:N(_),...y?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...L},children:[T&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:N(_),zIndex:1,...H}}),h&&g.jsx(Zb,{color:(ne=e.behaviour)==null?void 0:ne.iconCloseColor,position:(V=e.behaviour)==null?void 0:V.closeIconPosition,paddingTop:(U=e.behaviour)==null?void 0:U.closeIconPaddingTop,paddingLeft:(X=e.behaviour)==null?void 0:X.closeIconPaddingLeft,paddingRight:(ye=e.behaviour)==null?void 0:ye.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:B,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...d||p?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Db(e.canvasColor,e.backgroundImage,a?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...M,borderRadius:N(_),overflow:y?"clip":"visible",...w?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:g.jsx("tbody",{children:g.jsx("tr",{style:{width:"100%"},children:g.jsxs("td",{className:"email-layout-content",children:[t.map(te=>g.jsx(ve,{id:te},te)),b&&g.jsx(Wb,{})]})})})})]})]})})]}))}const Vb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Yb=x().regex(/^rgba?\([^\)]+\)$/i),Kb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Jb=re("transparent"),$n=D([Vb,Yb,Kb,Jb]).nullable().optional(),Xb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Qb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),e0=I(["left","center","right"]).optional().nullable(),zn={min:1,max:20},jn={min:4,max:48},hl=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),t0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,n0=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,qt=(e,t,n)=>Math.min(Math.max(e,t),n),Pr=e=>e?hl(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},o0=C({style:C({backgroundColor:$n,textAlign:e0,padding:Xb,margin:Qb}).optional().nullable(),props:C({stepperType:I(["dots","numeric","both"]).optional().nullable(),totalDots:f().min(zn.min).max(zn.max).optional().nullable(),activeIndex:f().min(1).optional().nullable(),activeColor:$n,inactiveColor:$n,dotSize:f().min(jn.min).max(jn.max).optional().nullable(),dotSpacing:f().min(0).max(40).optional().nullable(),numericColor:$n,numericFontSize:f().min(8).max(48).optional().nullable(),numericPosition:I(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),Ve={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function a0({style:e,props:t}){const o=al()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,r=qt((t==null?void 0:t.totalDots)??Ve.totalDots,zn.min,zn.max),l=qt((t==null?void 0:t.dotSize)??Ve.dotSize,jn.min,jn.max),s=qt((t==null?void 0:t.dotSpacing)??Ve.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??Ve.activeIndex,u=qt(c,1,r),p=(t==null?void 0:t.activeColor)??Ve.activeColor,d=(t==null?void 0:t.inactiveColor)??Ve.inactiveColor,h=(t==null?void 0:t.stepperType)??Ve.stepperType,m=h==="numeric"||h==="both",b=h==="dots"||h==="both",v=(t==null?void 0:t.numericColor)??Ve.numericColor,k=qt((t==null?void 0:t.numericFontSize)??Ve.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??Ve.numericPosition,w={...Pr((e==null?void 0:e.backgroundColor)??void 0),padding:t0(e==null?void 0:e.padding,i),margin:n0(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},_=m&&b&&(S==="above"||S==="below"),N={display:"inline-flex",flexDirection:_?"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:_?"8px":b?`${s}px`:"0px"},A={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},y=`${u}/${r}`,R=hl(v),M={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...R?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},T=()=>m?g.jsx("span",{style:M,children:y}):null,L=()=>g.jsx("div",{style:A,"aria-hidden":"true",children:Array.from({length:r}).map((H,F)=>{const j=F===u-1,O={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:j?"scale(1.1)":"scale(1)",...Pr(j?p:d)};return g.jsx("span",{style:O,"data-active":j?"true":"false"},F)})});return g.jsx("div",{className:"stepper-block",style:w,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":r,"aria-valuetext":`Step ${u} of ${r}`,"aria-label":`Step ${u} of ${r}`,children:g.jsxs("div",{style:N,children:[m&&S==="above"&&T(),m&&S==="left"&&T(),b&&L(),m&&S==="right"&&T(),m&&S==="below"&&T()]})})}const r0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),i0=x().regex(/^rgba?\([^\)]+\)$/i),l0=re("transparent"),go=D([r0,i0,l0]).nullable().optional(),fl=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),s0=fl,c0=I(["left","center","right"]).optional().nullable(),u0=["disc","circle","square","dash","arrow","check","cross","none"],d0=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Or={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},h0=C({text:x()}),f0=C({style:C({color:go,backgroundColor:go,textAlign:c0,fontSize:f().min(8).max(72).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:D([f(),x()]).optional().nullable(),lineHeight:f().min(1).max(3).optional().nullable(),padding:fl,margin:s0}).optional().nullable(),props:C({listType:I(["unordered","ordered"]).optional().nullable(),marker:I([...u0,...d0]).optional().nullable(),numberSuffix:ol(e=>e===""?void 0:e,I([".",")"]).optional().nullable()),startNumber:f().min(0).max(9999).optional().nullable(),markerColor:go,markerSize:f().min(8).max(72).optional().nullable(),itemGap:f().min(0).max(64).optional().nullable(),items:W(h0).optional().nullable()}).optional().nullable(),responsive:Te}),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"}]},Lr=(e,t,n)=>Math.min(Math.max(e,t),n),zr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jr=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",o=e;for(const[a,i]of t)for(;o>=a;)n+=i,o-=a;return n},Br=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},p0=(e,t,n,o)=>{const a=n+t;switch(e){case"decimal-zero":return`${String(a).padStart(2,"0")}${o}`;case"lower-alpha":return`${Br(a)}${o}`;case"upper-alpha":return`${Br(a).toUpperCase()}${o}`;case"lower-roman":return`${jr(a).toLowerCase()}${o}`;case"upper-roman":return`${jr(a)}${o}`;case"decimal":default:return`${a}${o}`}};function m0({style:e,props:t}){var v;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,r=(t==null?void 0:t.startNumber)??dt.startNumber,l=(t==null?void 0:t.markerColor)??dt.markerColor,s=Lr((t==null?void 0:t.markerSize)??dt.markerSize,8,72),c=Lr((t==null?void 0:t.itemGap)??dt.itemGap,0,64),u=(v=t==null?void 0:t.items)!=null&&v.length?t.items:dt.items.map(k=>({...k})),p=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:zr(e==null?void 0:e.padding),margin:zr(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box"},h={color:p,textAlign:(e==null?void 0:e.textAlign)??"left",fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},m={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??p,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=k=>a==="none"?null:o?p0(a,k,r,i):Or[a]??Or.disc;return g.jsx("div",{className:"list-block",style:d,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:g.jsx("tbody",{children:u.map((k,S)=>{const $=b(S);return g.jsxs("tr",{children:[a!=="none"&&g.jsx("td",{style:m,children:$}),g.jsx("td",{style:{...h,paddingBottom:S<u.length-1?`${c}px`:0,width:"100%"},children:k.text})]},S)})})})})}const g0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),b0=x().regex(/^rgba?\([^\)]+\)$/i),v0=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),x0=re("transparent"),S0=D([g0,b0,v0,x0]).nullable().optional(),w0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Zo=C({style:C({backgroundColor:S0,padding:w0}).optional().nullable(),props:C({direction:I(["row","column"]).optional().nullable(),directionTablet:I(["row","column"]).optional().nullable(),directionMobile:I(["row","column"]).optional().nullable(),gap:f().optional().nullable(),gapTablet:f().optional().nullable(),gapMobile:f().optional().nullable(),alignment:I(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:I(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:I(["start","center","end","space-between"]).optional().nullable(),wrap:P().optional().nullable(),ariaLabel:x().optional().nullable()}).optional().nullable(),responsive:Te}),Cn={direction:"row",gap:12,alignment:"start",wrap:!0},Bn={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},k0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Dr(e,t,n,o){const a=e==="row"?Bn[t]:"flex-start",i=e==="column"?Bn[t]:"center";return`flex-direction:${e}!important;justify-content:${a}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let _0=0;function $0({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Cn.direction,a=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??a,r=(n==null?void 0:n.gap)??Cn.gap,l=(n==null?void 0:n.gapTablet)??r,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??Cn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,p=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??Cn.wrap,h=(n==null?void 0:n.ariaLabel)??void 0,m=o,b=c,k={display:"flex",flexDirection:m,gap:`${r}px`,justifyContent:m==="row"?Bn[b]:"flex-start",alignItems:m==="column"?Bn[b]:"center",flexWrap:m==="row"&&d?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:k0(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},S=G.useMemo(()=>`ahd-bg-${_0+=1}`,[]),$=G.useMemo(()=>{const w=`.${S}`;let _="";return(a!==o||u!==c||l!==r)&&(_+=`@media (max-width:${je}px){${w}{${Dr(a,u,d,l)}}}`),(i!==a||p!==u||s!==l)&&(_+=`@media (max-width:${Ae}px){${w}{${Dr(i,p,d,s)}}}`),_},[S,o,a,i,c,u,p,r,l,s,d]);return g.jsxs("div",{className:`button-group ${S}`,style:k,role:"group","aria-label":h,children:[$&&g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),t]})}const C0=Zo.shape.props.unwrap().unwrap().shape,A0=C({style:Zo.shape.style,props:C({...C0,childrenIds:W(x()).optional().nullable()}).optional().nullable(),responsive:Zo.shape.responsive});function y0({style:e,props:t}){const{childrenIds:n,...o}=t??{},a=(n??[]).map(i=>g.jsx(ve,{id:i},i));return g.jsx($0,{style:e,props:o,buttons:a})}const N0=C({titleChildrenIds:W(x()).optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),R0=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),marginBottom:f().optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({items:W(N0).min(1).max(25).optional().nullable(),iconColor:x().optional().nullable(),iconSize:f().optional().nullable(),defaultOpen:P().optional().nullable(),activeBorderColor:x().optional().nullable()}).optional().nullable()});function E0(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 Hr=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function I0(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(a=>Math.max(0,parseFloat(a)-n));return o.length===1?`${o[0]}px`:o.map(a=>`${a}px`).join(" ")}function M0({style:e,props:t}){const n=G.useMemo(()=>{const $=t==null?void 0:t.items;return!$||$.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:$[0].titleChildrenIds??[],contentChildrenIds:$[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=G.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),a=`${o}-content`,i=e==null?void 0:e.padding,r=e==null?void 0:e.margin,l=((r==null?void 0:r.left)??0)+((r==null?void 0:r.right)??0),s=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},p=`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`,d=E0(e==null?void 0:e.borderRadius),h=Hr(c),m=Hr(s),b=h||m,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:d,margin:r?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),b?(v.padding=p,h?v.background=c:c&&(v.borderStyle="solid",v.borderColor=c,v.borderWidth=p)):c&&(v.borderStyle="solid",v.borderColor=c,v.borderWidth=p);const k={background:(e==null?void 0:e.backgroundColor)??(b?"#ffffff":void 0),borderRadius:b?I0(d,u):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:b&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},S=[];return s&&(m?S.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${p}!important; }`):S.push(`#${o}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${s}!important; border-width:${p}!important; ${b?"padding:0!important;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
234
+ @media (max-width: ${Ue}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
235
+ @media (max-width: ${Le}px) { .${h} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
236
+ ${y}
237
+ `.trim(),R=()=>({minWidth:0,boxSizing:"border-box"});return g.jsxs("div",{className:`grid-block ${h}`,style:_,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),g.jsx("div",{className:"grid-block-inner",style:$,children:p.map((I,E)=>g.jsx("div",{className:`grid-cell ${h}-cell-${E}`,style:R(),children:I.childrenIds.map(P=>g.jsx(ke,{id:P},P))},E))})]})}const p0=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),m0=k().regex(/^rgba?\([^\)]+\)$/i),g0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),b0=ae("transparent"),xi=Yl(e=>typeof e=="string"?e.trim():e,D([p0,m0,g0,b0]).nullable().optional()),x0=k().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),v0=k().regex(/^(none|auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),w0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),S0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),k0=D([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),_0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),vi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ds(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function $0(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:ds(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function C0(e,t){const n=e&&ds(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function A0(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)||1}px ${(t==null?void 0:t.right)||1}px ${(t==null?void 0:t.bottom)||1}px ${(t==null?void 0:t.left)||1}px`}:{borderTop:`${(t==null?void 0:t.top)||1}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)||1}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)||1}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)||1}px solid ${e}`}:{}}function y0(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const o=Math.max(0,(e.topLeft||0)-n),r=Math.max(0,(e.topRight||0)-n),i=Math.max(0,(e.bottomRight||0)-n),a=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${r}px ${i}px ${a}px`}const I0=A({style:A({backgroundColor:xi,backgroundImage:x0,backgroundSize:v0,backgroundRepeat:M(["repeat","no-repeat"]).optional().nullable(),borderColor:xi,borderRadius:k0,padding:w0,margin:S0,borderWidth:_0,boxShadow:go}).optional().nullable(),props:A({fullWidth:O().optional().nullable(),widthType:M(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:M(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:M(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:M(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:m().min(0).optional().nullable(),heightMobile:m().min(0).optional().nullable(),overflow:O().optional().nullable(),alignment:M(["left","center","right"]).optional().nullable(),alignmentTablet:M(["left","center","right"]).optional().nullable(),alignmentMobile:M(["left","center","right"]).optional().nullable(),tag:M(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:k().optional().nullable(),elementId:k().optional().nullable(),showLink:O().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:M(["_self","_blank"]).optional().nullable(),hoverEffect:la}).optional().nullable()}),Ot={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let R0=0;function E0({style:e,props:t,children:n}){const o=Kl(),r=(t==null?void 0:t.fullWidth)??Ot.fullWidth,i=(t==null?void 0:t.widthType)??Ot.widthType,a=(t==null?void 0:t.widthTypeTablet)??null,l=(t==null?void 0:t.widthTypeMobile)??null,s=a??i,c=l??s,u=(t==null?void 0:t.width)??Ot.width,f=(t==null?void 0:t.widthUnit)??Ot.widthUnit,d=(t==null?void 0:t.widthTablet)??null,h=(t==null?void 0:t.widthMobile)??null,p=d??u,b=h??p,x=(t==null?void 0:t.height)??null,w=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,_=w??x,S=v??_,$=(t==null?void 0:t.overflow)===!0,y=(t==null?void 0:t.alignment)??Ot.alignment,C=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,I=C??y,E=R??I,P=y,T=(t==null?void 0:t.ariaLabel)??void 0,z=(t==null?void 0:t.elementId)??void 0,H=!!(t!=null&&t.showLink),Z=(t==null?void 0:t.linkHref)??null,j=typeof Z=="string"?Z.trim():Z,V=H&&typeof j=="string"&&j.length>0,Y=(t==null?void 0:t.linkTarget)??"_blank",K=V?"a":(t==null?void 0:t.tag)??"div",G=V?{href:j,target:Y,...Y==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},oe=(ee,ie,Me=!1)=>{if(Me&&r)return"100%";switch(ee){case"fill":return"100%";case"fixed":return`${ie}${f}`;case"fit":default:return"auto"}},le=ee=>((ee==null?void 0:ee.left)??0)+((ee==null?void 0:ee.right)??0),se=(ee,ie,Me)=>{const ht=(ie==null?void 0:ie.top)??0,me=(ie==null?void 0:ie.bottom)??0;if(Me)return{marginTop:ht,marginBottom:me,marginLeft:(ie==null?void 0:ie.left)??0,marginRight:(ie==null?void 0:ie.right)??0};switch(ee){case"center":return{marginTop:ht,marginBottom:me,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:ht,marginBottom:me,marginLeft:"auto",marginRight:(ie==null?void 0:ie.right)??0};case"left":default:return{marginTop:ht,marginBottom:me,marginLeft:(ie==null?void 0:ie.left)??0,marginRight:"auto"}}},ce=(ee,ie)=>{const Me=le(ie);return Me<=0?ee:ee==="100%"?`calc(100% - ${Me}px)`:ee},Ee=i,Ce=u,W=x,L=oe(Ee,Ce,o==="desktop"),U=ce(L,e==null?void 0:e.margin),J=L==="100%"?null:{textAlign:P==="left"?"left":P==="right"?"right":"center"},Ae=(ee,ie,Me)=>oe(ie,Me)==="100%"||ee==="left"?"left":ee==="right"?"right":"center",Q=a!=null||l!=null||d!=null||h!=null||w!=null||v!=null||C!=null||R!=null,ye=(t==null?void 0:t.hoverEffect)??Ot.hoverEffect,ue=!!(ye!=null&&ye.enabled),_e=Q||ue?`ahd-cb-${++R0}`:"",Ie=_e?`${_e}-align`:"",re=Q?`
238
+ ${nt} { .${_e} { width: ${ce(oe(s,p),e==null?void 0:e.margin)} !important; ${_!=null?`height: ${_}px !important;`:""} max-width: 100% !important; } }
239
+ ${Oe} { .${_e} { width: ${ce(oe(c,b),e==null?void 0:e.margin)} !important; ${S!=null?`height: ${S}px !important;`:""} max-width: 100% !important; } }
240
+ ${nt} { .${Ie} { text-align: ${Ae(I,s,p)} !important; } }
241
+ ${Oe} { .${Ie} { text-align: ${Ae(E,c,b)} !important; } }
242
+ `.trim():null,wt=ue?`
243
+ .${_e} { transition: transform ${ye.duration??500}ms ${ye.easing??"ease-in-out"}; }
244
+ .${_e}:hover { transform: scale(${ye.scale??1.05}); }
245
+ `.trim():null,we=[re,wt].filter(Boolean).join(`
246
+ `)||null,De=bo(e==null?void 0:e.boxShadow),ne=ee=>{if(ee!=null)return typeof ee=="number"?`${ee}px`:`${ee.topLeft}px ${ee.topRight}px ${ee.bottomRight}px ${ee.bottomLeft}px`},pe=(e==null?void 0:e.borderColor)??null,Se=(e==null?void 0:e.borderWidth)??null,Re=A0(pe,Se),Fe=$0((e==null?void 0:e.backgroundColor)??""),Ve=(e==null?void 0:e.backgroundSize)==="none",at=!Ve&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,Et=C0(e==null?void 0:e.backgroundColor,at),it=Ve?void 0:(e==null?void 0:e.backgroundSize)??void 0,dt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",Xt=pe&&(pe.includes("linear-gradient")||pe.includes("radial-gradient")||pe.includes("repeating-linear-gradient")),Ne=W!=null,Nt=Ne?{"--ahd-cb-h":`${W}px`}:{},Qt=Ne?" container-block-has-height":"";if(Xt){const ee={...Re,borderRadius:ne(e==null?void 0:e.borderRadius),width:U,maxWidth:"100%",height:Ne?`${W}px`:void 0,boxSizing:"border-box",...se(P,e==null?void 0:e.margin,L==="100%"),...J?{display:"inline-block"}:{},...De,...Nt},ie={...Fe,backgroundImage:Et,backgroundSize:it,backgroundRepeat:dt,borderRadius:y0((e==null?void 0:e.borderRadius)??0,Se),overflow:$?"auto":"hidden",padding:vi(e==null?void 0:e.padding),width:"100%",height:Ne?"100%":void 0,boxSizing:"border-box"},Me=`container-block${$?" container-block-overflow":""}${Qt}${_e?` ${_e}`:""}`,ht=`container-block-inner${$?" container-block-overflow":""}`,me=V?{...ee,...G.style,...J?{display:"inline-block"}:{}}:ee,ze=g.jsx(K,{className:Me,"aria-label":T,id:z,...G,style:me,children:g.jsx("div",{className:ht,style:ie,children:n})});return g.jsxs(g.Fragment,{children:[we&&g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),J?g.jsx("div",{className:Ie,style:J,children:ze}):ze]})}const En={...Fe,backgroundImage:Et,backgroundSize:it,backgroundRepeat:dt,...Re,borderRadius:ne(e==null?void 0:e.borderRadius),padding:vi(e==null?void 0:e.padding),...se(P,e==null?void 0:e.margin,L==="100%"),width:U,maxWidth:"100%",height:Ne?`${W}px`:void 0,overflow:$?"auto":void 0,boxSizing:"border-box",...$?{}:{display:"flow-root"},...J?{display:"inline-block"}:{},...De,...Nt},St=`container-block${$?" container-block-overflow":""}${Qt}${_e?` ${_e}`:""}`,kt=V?{...En,...G.style,...J?{display:"inline-block"}:{}}:En;if(!n){const ee=g.jsx(K,{className:St,"aria-label":T,id:z,...G,style:kt});return g.jsxs(g.Fragment,{children:[we&&g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),J?g.jsx("div",{className:Ie,style:J,children:ee}):ee]})}const en=g.jsx(K,{className:St,"aria-label":T,id:z,...G,style:kt,children:n});return g.jsxs(g.Fragment,{children:[we&&g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),J?g.jsx("div",{className:Ie,style:J,children:en}):en]})}const N0=A({style:I0.shape.style,responsive:Be,props:A({childrenIds:X(k()).optional().nullable(),fullWidth:O().optional().nullable(),widthType:M(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:M(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:M(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:M(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:m().min(0).optional().nullable(),heightMobile:m().min(0).optional().nullable(),overflow:O().optional().nullable(),alignment:M(["left","center","right"]).optional().nullable(),alignmentTablet:M(["left","center","right"]).optional().nullable(),alignmentMobile:M(["left","center","right"]).optional().nullable(),tag:M(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:k().optional().nullable(),elementId:k().optional().nullable(),showLink:O().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:M(["_self","_blank"]).optional().nullable(),animation:$n,hoverEffect:la}).optional().nullable()});function M0({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return g.jsx(E0,{style:e,props:{fullWidth:(t==null?void 0:t.fullWidth)??void 0,widthType:(t==null?void 0:t.widthType)??void 0,widthTypeTablet:(t==null?void 0:t.widthTypeTablet)??void 0,widthTypeMobile:(t==null?void 0:t.widthTypeMobile)??void 0,width:(t==null?void 0:t.width)??void 0,widthUnit:(t==null?void 0:t.widthUnit)??void 0,widthTablet:(t==null?void 0:t.widthTablet)??void 0,widthMobile:(t==null?void 0:t.widthMobile)??void 0,height:(t==null?void 0:t.height)??void 0,heightTablet:(t==null?void 0:t.heightTablet)??void 0,heightMobile:(t==null?void 0:t.heightMobile)??void 0,overflow:(t==null?void 0:t.overflow)??void 0,alignment:(t==null?void 0:t.alignment)??void 0,alignmentTablet:(t==null?void 0:t.alignmentTablet)??void 0,alignmentMobile:(t==null?void 0:t.alignmentMobile)??void 0,tag:(t==null?void 0:t.tag)??void 0,ariaLabel:(t==null?void 0:t.ariaLabel)??void 0,elementId:(t==null?void 0:t.elementId)??void 0,showLink:(t==null?void 0:t.showLink)??void 0,linkHref:(t==null?void 0:t.linkHref)??void 0,linkTarget:(t==null?void 0:t.linkTarget)??void 0,hoverEffect:(t==null?void 0:t.hoverEffect)??void 0},children:n.map(o=>g.jsx(ke,{id:o},o))})}const T0=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),P0=k().regex(/^rgba?\([^\)]+\)$/i),O0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),L0=ae("transparent"),Bt=D([T0,P0,O0,L0]).nullable().optional(),z0=M(["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(),j0=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Po=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Oo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),B0=k().regex(/^(auto|cover|contain|inherit|initial|revert-layer|revert|unset|\d+(px|em|rem|%)?(\s+\d+(px|em|rem|%)?)?)$/i,"Invalid CSS background-size value").nullable().optional(),D0=A({color:Bt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:O().default(!1)}).partial().optional().nullable(),F0=A({position:M(["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:k().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:Bt,closeIconPosition:M(["left","center","right"]).optional(),closeIconPaddingTop:m().optional(),closeIconPaddingLeft:m().optional(),closeIconPaddingRight:m().optional(),bannerSubType:k().optional()}).passthrough().optional().nullable(),H0=X(A({id:k(),name:k(),type:k().optional().default("text"),value:k().optional()})).optional().nullable(),G0=A({formFields:H0,backdropColor:Bt.default(null),borderColor:Bt.default(null),borderRadius:m().optional().nullable(),canvasColor:Bt.default(null),textColor:Bt,fontFamily:z0,childrenIds:X(k()).optional().nullable(),maxWidth:k().default(""),maxHeight:k().default(""),top:k().default(""),left:k().default(""),padding:Po,margin:Oo,maxWidthTablet:k().optional().nullable(),maxWidthMobile:k().optional().nullable(),maxHeightTablet:k().optional().nullable(),maxHeightMobile:k().optional().nullable(),paddingTablet:Po,paddingMobile:Po,marginTablet:Oo,marginMobile:Oo,borderWidth:j0,boxShadow:D0,behaviour:F0,linkHref:k().optional().default(""),backgroundImage:k().default("").nullable().optional(),backgroundSize:B0,backgroundRepeat:M(["repeat","no-repeat"]).optional().nullable()});function Lt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function Ln(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return Lt(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return Lt(i)?i:Lt(r)?r:null;const a=o[`${t}Mobile`];return Lt(a)?a:Lt(i)?i:Lt(r)?r:null}function Lo(e,t){return{maxWidth:Ln(e,"maxWidth",t)??null,maxHeight:Ln(e,"maxHeight",t)??null,padding:Ln(e,"padding",t)??null,margin:Ln(e,"margin",t)??null}}function U0(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Z0(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function zo(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:${U0(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Z0(t.margin)};}`),n.join("")}function W0(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=Lo(t,"desktop"),a=zo(r,{...i,maxWidth:i.maxWidth??n??null}),l=zo(r,Lo(t,"tablet")),s=zo(r,Lo(t,"mobile")),c=(u,f)=>f?`@media (max-width:${u}px){${f}}@container ahd-page (max-width:${u}px){${f}}`:"";return[a,c(Ue,l),c(Le,s)].filter(Boolean).join("")}const q0="Made with Page Pilot",V0="https://pagepilot.fabbuilder.com";let Y0=0;function K0(e){switch(e??"MODERN_SANS"){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function J0(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,a=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?a(i):void 0};if(r){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?a(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?a(i):void 0}}function X0(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function wi(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=X0(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function Q0(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 ex(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 tx(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function nx(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=tx(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function ox({position:e,color:t}){const r="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},a="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:a};break;case"top-left":u={top:-8,left:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,width:16,height:8,clipPath:a};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return g.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function rx({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return g.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[g.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),g.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function ax(){return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:"#8a8a8a",marginTop:8},children:g.jsx("a",{href:V0,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:q0})})}function ix(e){var K,G,oe,le,se,ce,Ee,Ce,W,L,U,q,J,Ae;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=n.includes("app-banner"),i=n.includes("demo"),a=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],f=r&&(((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||u.includes((G=e.behaviour)==null?void 0:G.position)),d=r&&((oe=e.behaviour)==null?void 0:oe.bannerSubType)==="modal",h=(c||f||d)&&((le=e.behaviour)==null?void 0:le.showCloseIcon)!==!1,b=c&&!0,x=r&&e.linkHref?e.linkHref:null,w=F.useMemo(()=>`ahd-layout-${Y0+=1}`,[]),_=W0(w,e,o==="page"||a?"100%":r&&!f?"900px":"320px"),S=(r||i)&&!!e.backgroundImage;e.borderRadius;const $=e.borderRadius??0,y=Q=>typeof Q=="number"?`${Q}px`:`${Q.topLeft}px ${Q.topRight}px ${Q.bottomRight}px ${Q.bottomLeft}px`,R=(Q=>Q==null?!1:typeof Q=="number"?Q>0:(Q.topLeft??0)>0||(Q.topRight??0)>0||(Q.bottomRight??0)>0||(Q.bottomLeft??0)>0)($),I=Q=>x?g.jsx("a",{href:x,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:Q}):Q,E=J0(e),P=r&&!!((se=e.boxShadow)!=null&&se.color)&&!!e.boxShadow.inset,T=r&&!P?wi(e.boxShadow):{},z=P?wi(e.boxShadow):{},H=ex(((ce=e.behaviour)==null?void 0:ce.position)??"right"),Z=c&&!f&&!d&&((Ee=e.behaviour)==null?void 0:Ee.isCaret)!==!1,j=nx(e.canvasColor,H),V=(((Ce=e.margin)==null?void 0:Ce.left)??0)+(((W=e.margin)==null?void 0:W.right)??0),Y=V>0?`calc(100% - ${V}px)`:"100%";return I(g.jsxs("div",{className:w,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("div",{style:{color:e.textColor??"#262626",fontFamily:K0(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:g.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...d||f?null:{maxWidth:"100%"}},children:[Z&&g.jsx(ox,{position:H,color:j}),g.jsxs("div",{style:{position:"relative",borderRadius:y($),...R?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...T},children:[P&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:y($),zIndex:1,...z}}),h&&g.jsx(rx,{color:(L=e.behaviour)==null?void 0:L.iconCloseColor,position:(U=e.behaviour)==null?void 0:U.closeIconPosition,paddingTop:(q=e.behaviour)==null?void 0:q.closeIconPaddingTop,paddingLeft:(J=e.behaviour)==null?void 0:J.closeIconPaddingLeft,paddingRight:(Ae=e.behaviour)==null?void 0:Ae.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:Y,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...d||f?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...Q0(e.canvasColor,e.backgroundImage,r?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...E,borderRadius:y($),overflow:R?"clip":"visible",...S?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:g.jsx("tbody",{children:g.jsx("tr",{style:{width:"100%"},children:g.jsxs("td",{className:"email-layout-content",children:[t.map(Q=>g.jsx(ke,{id:Q},Q)),b&&g.jsx(ax,{})]})})})})]})]})})]}))}const lx=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),sx=k().regex(/^rgba?\([^\)]+\)$/i),cx=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ux=ae("transparent"),zn=D([lx,sx,cx,ux]).nullable().optional(),dx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),hx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),fx=M(["left","center","right"]).optional().nullable(),Qn={min:1,max:20},eo={min:4,max:48},hs=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),px=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,mx=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rn=(e,t,n)=>Math.min(Math.max(e,t),n),Si=e=>e?hs(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},gx=A({style:A({backgroundColor:zn,textAlign:fx,padding:dx,margin:hx}).optional().nullable(),props:A({stepperType:M(["dots","numeric","both"]).optional().nullable(),totalDots:m().min(Qn.min).max(Qn.max).optional().nullable(),activeIndex:m().min(1).optional().nullable(),activeColor:zn,inactiveColor:zn,dotSize:m().min(eo.min).max(eo.max).optional().nullable(),dotSpacing:m().min(0).max(40).optional().nullable(),numericColor:zn,numericFontSize:m().min(8).max(48).optional().nullable(),numericPosition:M(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),Xe={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function bx({style:e,props:t}){const o=Kl()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=rn((t==null?void 0:t.totalDots)??Xe.totalDots,Qn.min,Qn.max),l=rn((t==null?void 0:t.dotSize)??Xe.dotSize,eo.min,eo.max),s=rn((t==null?void 0:t.dotSpacing)??Xe.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??Xe.activeIndex,u=rn(c,1,a),f=(t==null?void 0:t.activeColor)??Xe.activeColor,d=(t==null?void 0:t.inactiveColor)??Xe.inactiveColor,h=(t==null?void 0:t.stepperType)??Xe.stepperType,p=h==="numeric"||h==="both",b=h==="dots"||h==="both",x=(t==null?void 0:t.numericColor)??Xe.numericColor,w=rn((t==null?void 0:t.numericFontSize)??Xe.numericFontSize,8,48),v=(t==null?void 0:t.numericPosition)??Xe.numericPosition,S={...Si((e==null?void 0:e.backgroundColor)??void 0),padding:px(e==null?void 0:e.padding,i),margin:mx(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},$=p&&b&&(v==="above"||v==="below"),y={display:"inline-flex",flexDirection:$?"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:$?"8px":b?`${s}px`:"0px"},C={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${u}/${a}`,I=hs(x),E={fontSize:`${w}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...I?{backgroundImage:x,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:x??void 0}},P=()=>p?g.jsx("span",{style:E,children:R}):null,T=()=>g.jsx("div",{style:C,"aria-hidden":"true",children:Array.from({length:a}).map((z,H)=>{const Z=H===u-1,j={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:Z?"scale(1.1)":"scale(1)",...Si(Z?f:d)};return g.jsx("span",{style:j,"data-active":Z?"true":"false"},H)})});return g.jsx("div",{className:"stepper-block",style:S,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:g.jsxs("div",{style:y,children:[p&&v==="above"&&P(),p&&v==="left"&&P(),b&&T(),p&&v==="right"&&P(),p&&v==="below"&&P()]})})}const xx=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),vx=k().regex(/^rgba?\([^\)]+\)$/i),wx=ae("transparent"),jo=D([xx,vx,wx]).nullable().optional(),fs=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Sx=fs,kx=M(["left","center","right"]).optional().nullable(),_x=["disc","circle","square","dash","arrow","check","cross","none"],$x=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],ki={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Cx=A({text:k()}),Ax=A({style:A({color:jo,backgroundColor:jo,textAlign:kx,fontSize:m().min(8).max(72).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:D([m(),k()]).optional().nullable(),lineHeight:m().min(1).max(3).optional().nullable(),padding:fs,margin:Sx}).optional().nullable(),props:A({listType:M(["unordered","ordered"]).optional().nullable(),marker:M([..._x,...$x]).optional().nullable(),numberSuffix:Yl(e=>e===""?void 0:e,M([".",")"]).optional().nullable()),startNumber:m().min(0).max(9999).optional().nullable(),markerColor:jo,markerSize:m().min(8).max(72).optional().nullable(),itemGap:m().min(0).max(64).optional().nullable(),items:X(Cx).optional().nullable()}).optional().nullable(),responsive:Be}),pt={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"}]},_i=(e,t,n)=>Math.min(Math.max(e,t),n),$i=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ci=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Ai=e=>{let t=e,n="";for(;t>0;){const o=(t-1)%26;n=String.fromCharCode(97+o)+n,t=Math.floor((t-1)/26)}return n||"a"},yx=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Ai(r)}${o}`;case"upper-alpha":return`${Ai(r).toUpperCase()}${o}`;case"lower-roman":return`${Ci(r).toLowerCase()}${o}`;case"upper-roman":return`${Ci(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Ix({style:e,props:t}){var x;const o=((t==null?void 0:t.listType)??pt.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":pt.marker),i=(t==null?void 0:t.numberSuffix)??pt.numberSuffix,a=(t==null?void 0:t.startNumber)??pt.startNumber,l=(t==null?void 0:t.markerColor)??pt.markerColor,s=_i((t==null?void 0:t.markerSize)??pt.markerSize,8,72),c=_i((t==null?void 0:t.itemGap)??pt.itemGap,0,64),u=(x=t==null?void 0:t.items)!=null&&x.length?t.items:pt.items.map(w=>({...w})),f=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:$i(e==null?void 0:e.padding),margin:$i(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box"},h={color:f,textAlign:(e==null?void 0:e.textAlign)??"left",fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},p={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:l??f,fontSize:`${s}px`,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b=w=>r==="none"?null:o?yx(r,w,a,i):ki[r]??ki.disc;return g.jsx("div",{className:"list-block",style:d,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:"100%"},children:g.jsx("tbody",{children:u.map((w,v)=>{const _=b(v);return g.jsxs("tr",{children:[r!=="none"&&g.jsx("td",{style:p,children:_}),g.jsx("td",{style:{...h,paddingBottom:v<u.length-1?`${c}px`:0,width:"100%"},children:w.text})]},v)})})})})}const Rx=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ex=k().regex(/^rgba?\([^\)]+\)$/i),Nx=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Mx=ae("transparent"),Tx=D([Rx,Ex,Nx,Mx]).nullable().optional(),Px=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),br=A({style:A({backgroundColor:Tx,padding:Px}).optional().nullable(),props:A({direction:M(["row","column"]).optional().nullable(),directionTablet:M(["row","column"]).optional().nullable(),directionMobile:M(["row","column"]).optional().nullable(),gap:m().optional().nullable(),gapTablet:m().optional().nullable(),gapMobile:m().optional().nullable(),alignment:M(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:M(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:M(["start","center","end","space-between"]).optional().nullable(),wrap:O().optional().nullable(),ariaLabel:k().optional().nullable()}).optional().nullable(),responsive:Be}),jn={direction:"row",gap:12,alignment:"start",wrap:!0},to={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},Ox=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function yi(e,t,n,o){const r=e==="row"?to[t]:"flex-start",i=e==="column"?to[t]:"center";return`flex-direction:${e}!important;justify-content:${r}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let Lx=0;function zx({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??jn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??jn.gap,l=(n==null?void 0:n.gapTablet)??a,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??jn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,f=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??jn.wrap,h=(n==null?void 0:n.ariaLabel)??void 0,p=o,b=c,w={display:"flex",flexDirection:p,gap:`${a}px`,justifyContent:p==="row"?to[b]:"flex-start",alignItems:p==="column"?to[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:Ox(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},v=F.useMemo(()=>`ahd-bg-${Lx+=1}`,[]),_=F.useMemo(()=>{const S=`.${v}`;let $="";return(r!==o||u!==c||l!==a)&&($+=`@media (max-width:${Ue}px){${S}{${yi(r,u,d,l)}}}`),(i!==r||f!==u||s!==l)&&($+=`@media (max-width:${Le}px){${S}{${yi(i,f,d,s)}}}`),$},[v,o,r,i,c,u,f,a,l,s,d]);return g.jsxs("div",{className:`button-group ${v}`,style:w,role:"group","aria-label":h,children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const jx=br.shape.props.unwrap().unwrap().shape,Bx=A({style:br.shape.style,props:A({...jx,childrenIds:X(k()).optional().nullable()}).optional().nullable(),responsive:br.shape.responsive});function Dx({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>g.jsx(ke,{id:i},i));return g.jsx(zx,{style:e,props:o,buttons:r})}const Fx=A({titleChildrenIds:X(k()).optional().nullable(),contentChildrenIds:X(k()).optional().nullable()}),Hx=A({responsive:Be,style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),marginBottom:m().optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({items:X(Fx).min(1).max(25).optional().nullable(),iconColor:k().optional().nullable(),iconSize:m().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:k().optional().nullable()}).optional().nullable()});function Gx(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 Ii=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function Ux(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(r=>Math.max(0,parseFloat(r)-n));return o.length===1?`${o[0]}px`:o.map(r=>`${r}px`).join(" ")}function Zx({style:e,props:t}){const n=F.useMemo(()=>{const _=t==null?void 0:t.items;return!_||_.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:_[0].titleChildrenIds??[],contentChildrenIds:_[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=F.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-content`,i=e==null?void 0:e.padding,a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},f=`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`,d=Gx(e==null?void 0:e.borderRadius),h=Ii(c),p=Ii(s),b=h||p,x={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:d,margin:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(x.overflow="hidden"),b?(x.padding=f,h?x.background=c:c&&(x.borderStyle="solid",x.borderColor=c,x.borderWidth=f)):c&&(x.borderStyle="solid",x.borderColor=c,x.borderWidth=f);const w={background:(e==null?void 0:e.backgroundColor)??(b?"#ffffff":void 0),borderRadius:b?Ux(d,u):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:b&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},v=[];return s&&(p?v.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${f}!important; }`):v.push(`#${o}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${s}!important; border-width:${f}!important; ${b?"padding:0!important;":""} }`)),g.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[g.jsx("style",{children:`
231
247
  .email-accordion-root { width:100%; }
232
248
  .email-accordion-toggle { display:none; }
233
249
  .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; }
@@ -236,68 +252,75 @@ ${N}
236
252
  .email-accordion-content { display:none; padding:4px 12px; }
237
253
  .email-accordion-toggle:checked + .email-accordion-root .email-accordion-content { display:block; }
238
254
  .email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
239
- ${S.join(`
255
+ ${v.join(`
240
256
  `)}
241
- `}),g.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":a,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),g.jsx("div",{className:"email-accordion-root",style:v,children:g.jsxs("div",{className:"email-accordion-inner",style:k,children:[g.jsxs("label",{htmlFor:o,className:"email-accordion-label",children:[g.jsx("div",{className:"title",children:n.titleChildrenIds.map($=>g.jsx(ve,{id:$},$))}),g.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:(t==null?void 0:t.iconColor)??void 0},children:g.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:g.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"})})})]}),g.jsx("div",{id:a,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map($=>g.jsx(ve,{id:$},$))})]})})]})}const T0=C({label:x().optional().nullable(),cardChildrenIds:W(x()).optional().nullable(),detailChildrenIds:W(x()).optional().nullable()}),P0=C({style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:f().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),cardGap:f().optional().nullable(),equalCardWidth:P().optional().nullable(),cardBgColor:x().optional().nullable(),cardBorderColor:x().optional().nullable(),cardBorderWidth:f().optional().nullable(),cardBorderRadius:f().optional().nullable(),cardPadding:f().optional().nullable(),cardShadow:x().optional().nullable(),cardTextColor:x().optional().nullable(),cardFontSize:f().optional().nullable(),cardFontFamily:x().optional().nullable(),cardFontWeight:x().optional().nullable(),cardTextAlign:I(["left","center","right"]).optional().nullable(),cardHoverBgColor:x().optional().nullable(),cardHoverShadow:x().optional().nullable(),activeCardBgColor:x().optional().nullable(),activeCardBorderColor:x().optional().nullable(),activeCardShadow:x().optional().nullable(),activeCardTextColor:x().optional().nullable(),arrowColor:x().optional().nullable(),arrowActiveColor:x().optional().nullable(),arrowSize:f().optional().nullable(),detailBgColor:x().optional().nullable(),detailBorderColor:x().optional().nullable(),detailBorderWidth:f().optional().nullable(),detailBorderRadius:f().optional().nullable(),detailPadding:f().optional().nullable(),detailShadow:x().optional().nullable(),detailGap:f().optional().nullable(),rightCardWidth:f().optional().nullable(),cardListWidth:f().optional().nullable(),panelGap:f().optional().nullable()}).optional().nullable(),props:C({items:W(T0).min(1).max(10).optional().nullable(),defaultOpenIndex:f().optional().nullable(),accordionEnabled:P().optional().nullable(),detailPosition:I(["bottom","right"]).optional().nullable()}).optional().nullable()});function O0(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 L0({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),o=G.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),a=(t==null?void 0:t.accordionEnabled)??!1,i=(t==null?void 0:t.defaultOpenIndex)??null,r=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,c=(e==null?void 0:e.cardBgColor)??"#ffffff",u=(e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)",p=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,h=(e==null?void 0:e.cardPadding)??16,m=(e==null?void 0:e.cardShadow)??"none",b=(e==null?void 0:e.cardTextColor)??"inherit",v=(e==null?void 0:e.cardFontSize)??null,k=(e==null?void 0:e.cardFontFamily)??"inherit",S=(e==null?void 0:e.cardFontWeight)??"inherit",$=(e==null?void 0:e.cardTextAlign)??"left",w=(e==null?void 0:e.cardHoverBgColor)??null,_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",N=(e==null?void 0:e.activeCardBgColor)??c,A=(e==null?void 0:e.activeCardBorderColor)??u,y=(e==null?void 0:e.activeCardShadow)??m,R=(e==null?void 0:e.activeCardTextColor)??b,M=(e==null?void 0:e.arrowColor)??"currentColor",T=(e==null?void 0:e.arrowActiveColor)??M,L=(e==null?void 0:e.arrowSize)??13,H=(e==null?void 0:e.detailBgColor)??"#f8fafc",F=(e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)",j=(e==null?void 0:e.detailBorderWidth)??1,O=(e==null?void 0:e.detailBorderRadius)??12,q=(e==null?void 0:e.detailPadding)??24,B=(e==null?void 0:e.detailShadow)??"none",Y=(e==null?void 0:e.detailGap)??12,de=(e==null?void 0:e.rightCardWidth)??280,oe=e==null?void 0:e.padding,ee={width:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:O0(e==null?void 0:e.borderRadius),padding:oe?`${oe.top}px ${oe.right}px ${oe.bottom}px ${oe.left}px`:void 0},Z=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,J=v?`${v}px`:"inherit";if(!a){const me=`
242
- .pacc-grid{display:grid;grid-template-columns:${Z};gap:${l}px;width:100%;box-sizing:border-box}
243
- .pacc-grid-card{background:${c};border:${p}px solid ${u};border-radius:${d}px;padding:${h}px;box-sizing:border-box;box-shadow:${m};color:${b};font-size:${J};font-family:${k};font-weight:${S};text-align:${$}}
244
- ${w?`.pacc-grid-card:hover{background:${w};box-shadow:${_}}`:`.pacc-grid-card:hover{box-shadow:${_}}`}
257
+ `}),g.jsx("input",{id:o,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":r,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),g.jsx("div",{className:"email-accordion-root",style:x,children:g.jsxs("div",{className:"email-accordion-inner",style:w,children:[g.jsxs("label",{htmlFor:o,className:"email-accordion-label",children:[g.jsx("div",{className:"title",children:n.titleChildrenIds.map(_=>g.jsx(ke,{id:_},_))}),g.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:(t==null?void 0:t.iconColor)??void 0},children:g.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:g.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"})})})]}),g.jsx("div",{id:r,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(_=>g.jsx(ke,{id:_},_))})]})})]})}const Wx=A({label:k().optional().nullable(),cardChildrenIds:X(k()).optional().nullable(),detailChildrenIds:X(k()).optional().nullable()}),qx=A({style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:m().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),cardGap:m().optional().nullable(),equalCardWidth:O().optional().nullable(),cardBgColor:k().optional().nullable(),cardBorderColor:k().optional().nullable(),cardBorderWidth:m().optional().nullable(),cardBorderRadius:m().optional().nullable(),cardPadding:m().optional().nullable(),cardShadow:k().optional().nullable(),cardTextColor:k().optional().nullable(),cardFontSize:m().optional().nullable(),cardFontFamily:k().optional().nullable(),cardFontWeight:k().optional().nullable(),cardTextAlign:M(["left","center","right"]).optional().nullable(),cardHoverBgColor:k().optional().nullable(),cardHoverShadow:k().optional().nullable(),activeCardBgColor:k().optional().nullable(),activeCardBorderColor:k().optional().nullable(),activeCardShadow:k().optional().nullable(),activeCardTextColor:k().optional().nullable(),arrowColor:k().optional().nullable(),arrowActiveColor:k().optional().nullable(),arrowSize:m().optional().nullable(),detailBgColor:k().optional().nullable(),detailBorderColor:k().optional().nullable(),detailBorderWidth:m().optional().nullable(),detailBorderRadius:m().optional().nullable(),detailPadding:m().optional().nullable(),detailShadow:k().optional().nullable(),detailGap:m().optional().nullable(),rightCardWidth:m().optional().nullable(),cardListWidth:m().optional().nullable(),panelGap:m().optional().nullable()}).optional().nullable(),props:A({items:X(Wx).min(1).max(10).optional().nullable(),defaultOpenIndex:m().optional().nullable(),accordionEnabled:O().optional().nullable(),detailPosition:M(["bottom","right"]).optional().nullable()}).optional().nullable()});function Vx(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 Yx({style:e,props:t}){const n=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),o=F.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.accordionEnabled)??!1,i=(t==null?void 0:t.defaultOpenIndex)??null,a=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,c=(e==null?void 0:e.cardBgColor)??"#ffffff",u=(e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)",f=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,h=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=(e==null?void 0:e.cardTextColor)??"inherit",x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",v=(e==null?void 0:e.cardFontWeight)??"inherit",_=(e==null?void 0:e.cardTextAlign)??"left",S=(e==null?void 0:e.cardHoverBgColor)??null,$=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=(e==null?void 0:e.activeCardBgColor)??c,C=(e==null?void 0:e.activeCardBorderColor)??u,R=(e==null?void 0:e.activeCardShadow)??p,I=(e==null?void 0:e.activeCardTextColor)??b,E=(e==null?void 0:e.arrowColor)??"currentColor",P=(e==null?void 0:e.arrowActiveColor)??E,T=(e==null?void 0:e.arrowSize)??13,z=(e==null?void 0:e.detailBgColor)??"#f8fafc",H=(e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)",Z=(e==null?void 0:e.detailBorderWidth)??1,j=(e==null?void 0:e.detailBorderRadius)??12,V=(e==null?void 0:e.detailPadding)??24,Y=(e==null?void 0:e.detailShadow)??"none",K=(e==null?void 0:e.detailGap)??12,G=(e==null?void 0:e.rightCardWidth)??280,oe=e==null?void 0:e.padding,le={width:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`${e.borderWidth??1}px solid ${e.borderColor}`:void 0,borderRadius:Vx(e==null?void 0:e.borderRadius),padding:oe?`${oe.top}px ${oe.right}px ${oe.bottom}px ${oe.left}px`:void 0},se=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,ce=x?`${x}px`:"inherit";if(!r){const W=`
258
+ .pacc-grid{display:grid;grid-template-columns:${se};gap:${l}px;width:100%;box-sizing:border-box}
259
+ .pacc-grid-card{background:${c};border:${f}px solid ${u};border-radius:${d}px;padding:${h}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${ce};font-family:${w};font-weight:${v};text-align:${_}}
260
+ ${S?`.pacc-grid-card:hover{background:${S};box-shadow:${$}}`:`.pacc-grid-card:hover{box-shadow:${$}}`}
245
261
  @media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
246
- `;return g.jsxs("div",{style:ee,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:me}}),g.jsx("div",{className:"pacc-grid",children:n.map((ne,V)=>g.jsx("div",{className:"pacc-grid-card",children:(ne.cardChildrenIds??[]).map(U=>g.jsx(ve,{id:U},U))},V))})]})}if(r==="bottom"){const me=n.map((V,U)=>{const X=`#${o}-cb${U}:checked ~ .pacc-wrap`;return`${X}{grid-template-columns:1fr}`+n.map((ye,te)=>te!==U?`${X} .pacc-item:nth-child(${te+1}){display:none}`:"").join("")+`${X} .pacc-item:nth-child(${U+1}){display:block}${X} .pacc-item:nth-child(${U+1}) .pacc-card{background:${N};border-color:${A};box-shadow:${y};color:${R}}${X} .pacc-item:nth-child(${U+1}) .pacc-arrow{transform:rotate(180deg);color:${T}}${X} .pacc-item:nth-child(${U+1}) .pacc-detail{display:block}`}).join(""),ne=`
262
+ `;return g.jsxs("div",{style:le,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:W}}),g.jsx("div",{className:"pacc-grid",children:n.map((L,U)=>g.jsx("div",{className:"pacc-grid-card",children:(L.cardChildrenIds??[]).map(q=>g.jsx(ke,{id:q},q))},U))})]})}if(a==="bottom"){const W=n.map((U,q)=>{const J=`#${o}-cb${q}:checked ~ .pacc-wrap`;return`${J}{grid-template-columns:1fr}`+n.map((Ae,Q)=>Q!==q?`${J} .pacc-item:nth-child(${Q+1}){display:none}`:"").join("")+`${J} .pacc-item:nth-child(${q+1}){display:block}${J} .pacc-item:nth-child(${q+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${R};color:${I}}${J} .pacc-item:nth-child(${q+1}) .pacc-arrow{transform:rotate(180deg);color:${P}}${J} .pacc-item:nth-child(${q+1}) .pacc-detail{display:block}`}).join(""),L=`
247
263
  .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}
248
- .pacc-wrap{display:grid;grid-template-columns:${Z};gap:${l}px;width:100%;box-sizing:border-box}
264
+ .pacc-wrap{display:grid;grid-template-columns:${se};gap:${l}px;width:100%;box-sizing:border-box}
249
265
  .pacc-item{box-sizing:border-box}
250
- .pacc-card{background:${c};border:${p}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${$};color:${b};font-size:${J};font-family:${k};font-weight:${S};box-shadow:${m}}
251
- ${w?`.pacc-card:hover{background:${w};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
252
- .pacc-arrow{position:absolute;top:14px;right:12px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;transition:transform 200ms ease,color 200ms ease;pointer-events:none;color:${M}}
253
- .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${L}px;line-height:1}
254
- .pacc-detail{display:none;margin-top:${Y}px;background:${H};border:${j}px solid ${F};border-radius:${O}px;padding:${q}px;box-sizing:border-box;box-shadow:${B}}
266
+ .pacc-card{background:${c};border:${f}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${_};color:${b};font-size:${ce};font-family:${w};font-weight:${v};box-shadow:${p}}
267
+ ${S?`.pacc-card:hover{background:${S};box-shadow:${$}}`:`.pacc-card:hover{box-shadow:${$}}`}
268
+ .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}}
269
+ .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${T}px;line-height:1}
270
+ .pacc-detail{display:none;margin-top:${K}px;background:${z};border:${Z}px solid ${H};border-radius:${j}px;padding:${V}px;box-sizing:border-box;box-shadow:${Y}}
255
271
  @media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
256
- ${me}
257
- `;return g.jsxs("div",{style:ee,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:ne}}),n.map((V,U)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${U}`,className:"pacc-cb",defaultChecked:U===i},U)),g.jsx("div",{className:"pacc-wrap",children:n.map((V,U)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${U}`,className:"pacc-card",children:[(V.cardChildrenIds??[]).map(X=>g.jsx(ve,{id:X},X)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-down"})})]}),g.jsx("div",{className:"pacc-detail",children:(V.detailChildrenIds??[]).map(X=>g.jsx(ve,{id:X},X))})]},U))})]})}const Ee=n.map((me,ne)=>{const V=`#${o}-cb${ne}:checked ~ .pacc-wrap`;return`${V}{grid-template-columns:1fr}`+n.map((U,X)=>X!==ne?`${V} .pacc-item:nth-child(${X+1}){display:none}`:"").join("")+`${V} .pacc-item:nth-child(${ne+1}){display:flex;flex-direction:row;gap:${Y}px;align-items:flex-start}${V} .pacc-item:nth-child(${ne+1}) .pacc-card{flex-shrink:0;width:${de}px;background:${N};border-color:${A};box-shadow:${y};color:${R}}${V} .pacc-item:nth-child(${ne+1}) .pacc-arrow{transform:rotate(90deg);color:${T}}${V} .pacc-item:nth-child(${ne+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),we=`
272
+ ${W}
273
+ `;return g.jsxs("div",{style:le,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),n.map((U,q)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${q}`,className:"pacc-cb",defaultChecked:q===i},q)),g.jsx("div",{className:"pacc-wrap",children:n.map((U,q)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${q}`,className:"pacc-card",children:[(U.cardChildrenIds??[]).map(J=>g.jsx(ke,{id:J},J)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-down"})})]}),g.jsx("div",{className:"pacc-detail",children:(U.detailChildrenIds??[]).map(J=>g.jsx(ke,{id:J},J))})]},q))})]})}const Ee=n.map((W,L)=>{const U=`#${o}-cb${L}:checked ~ .pacc-wrap`;return`${U}{grid-template-columns:1fr}`+n.map((q,J)=>J!==L?`${U} .pacc-item:nth-child(${J+1}){display:none}`:"").join("")+`${U} .pacc-item:nth-child(${L+1}){display:flex;flex-direction:row;gap:${K}px;align-items:flex-start}${U} .pacc-item:nth-child(${L+1}) .pacc-card{flex-shrink:0;width:${G}px;background:${y};border-color:${C};box-shadow:${R};color:${I}}${U} .pacc-item:nth-child(${L+1}) .pacc-arrow{transform:rotate(90deg);color:${P}}${U} .pacc-item:nth-child(${L+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),Ce=`
258
274
  .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:${Z};gap:${l}px;width:100%;box-sizing:border-box}
275
+ .pacc-wrap{display:grid;grid-template-columns:${se};gap:${l}px;width:100%;box-sizing:border-box}
260
276
  .pacc-item{box-sizing:border-box}
261
- .pacc-card{background:${c};border:${p}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${$};color:${b};font-size:${J};font-family:${k};font-weight:${S};box-shadow:${m}}
262
- ${w?`.pacc-card:hover{background:${w};box-shadow:${_}}`:`.pacc-card:hover{box-shadow:${_}}`}
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:${M}}
264
- .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${L}px;line-height:1}
265
- .pacc-detail{display:none;background:${H};border:${j}px solid ${F};border-radius:${O}px;padding:${q}px;box-sizing:border-box;box-shadow:${B}}
277
+ .pacc-card{background:${c};border:${f}px solid ${u};border-radius:${d}px;padding:${h}px;padding-right:${h+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${_};color:${b};font-size:${ce};font-family:${w};font-weight:${v};box-shadow:${p}}
278
+ ${S?`.pacc-card:hover{background:${S};box-shadow:${$}}`:`.pacc-card:hover{box-shadow:${$}}`}
279
+ .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}}
280
+ .pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${T}px;line-height:1}
281
+ .pacc-detail{display:none;background:${z};border:${Z}px solid ${H};border-radius:${j}px;padding:${V}px;box-sizing:border-box;box-shadow:${Y}}
266
282
  @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}}
267
283
  ${Ee}
268
- `;return g.jsxs("div",{style:ee,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:we}}),n.map((me,ne)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${ne}`,className:"pacc-cb",defaultChecked:ne===i},ne)),g.jsx("div",{className:"pacc-wrap",children:n.map((me,ne)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${ne}`,className:"pacc-card",children:[(me.cardChildrenIds??[]).map(V=>g.jsx(ve,{id:V},V)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-right"})})]}),g.jsx("div",{className:"pacc-detail",children:(me.detailChildrenIds??[]).map(V=>g.jsx(ve,{id:V},V))})]},ne))})]})}const z0=C({label:x().optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),j0=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),tabActiveColor:x().optional().nullable(),tabTextColor:x().optional().nullable(),tabBgColor:x().optional().nullable(),tabGap:f().optional().nullable(),contentGap:f().optional().nullable(),navBorderColor:x().optional().nullable(),navWidth:f().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),lineHeight:D([x(),f()]).optional().nullable(),activeFontSize:D([x(),f()]).optional().nullable(),showActiveBorder:P().optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable()}).optional().nullable(),props:C({orientation:I(["horizontal","vertical"]).optional().nullable(),orientationTablet:I(["horizontal","vertical"]).optional().nullable(),orientationMobile:I(["horizontal","vertical"]).optional().nullable(),behavior:I(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),activeTabIndex:f().optional().nullable(),stickyNav:P().optional().nullable(),items:W(z0).min(1).max(20).optional().nullable()}).optional().nullable()}),Xe=[{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'}],B0={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]},D0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(B0).map(([e,t])=>`family=${D0(e,t)}`).join("&")}`;const pl=Xe.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));pl.map(e=>e.css);const H0=e=>e.replace(/"/g,'\\"'),F0=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(Xe.filter(e=>e.key!=="inherit").map(e=>F0(e.value)));const Fr=Xe.find(e=>e.key==="INTER");Fr&&Fr.value;pl.map(e=>{const t=H0(e.css);return`
269
- .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
270
- .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
271
- content: '${e.label}';
272
- font-family: ${e.css};
273
- }`}).join(`
274
- `);function G0(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function U0(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 Gr(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const Z0={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},W0={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function bo(e,t,n,o,a,i){if(t==="horizontal")return`${e}{display:block}${e} .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;width:100%;border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent);border-right:0}${e} .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} .ahd-tabs-panels{width:100%;margin-top:${a};margin-left:0}`;const r=i?`${i}px`:void 0,l=`var(--ahd-tabs-nav-width,${r??"minmax(0,max-content)"})`,s=`width:var(--ahd-tabs-nav-width,${r??"auto"});max-width:var(--ahd-tabs-nav-width,${r??"40%"})`;return`${e}{display:grid;grid-template-columns:${l} minmax(0,1fr);column-gap:${a};align-items:start}${e} .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;${s};min-width:0;overflow:visible;border-right:${n} solid var(--ahd-tabs-nav-border,transparent);border-bottom:0}${e} .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o};white-space:normal!important;word-break:break-word;overflow-wrap:anywhere;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 q0({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,a=(t==null?void 0:t.orientationMobile)??o,r=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=G.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,p=(e==null?void 0:e.tabTextColor)??void 0,d=(e==null?void 0:e.tabBgColor)??"transparent",h=(e==null?void 0:e.navBorderColor)??void 0,m=h?"2px":"0px",b=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",v=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",k=String((e==null?void 0:e.navWidth)??160),S="var(--ahd-tabs-tab-gap,"+b+")",$="var(--ahd-tabs-content-gap,"+v+")",w=(e==null?void 0:e.activeFontSize)!=null?Gr(e.activeFontSize):void 0,N=(e==null?void 0:e.showActiveBorder)??!0?u||"currentColor":"transparent",A=e==null?void 0:e.padding,y=e==null?void 0:e.margin,R=((y==null?void 0:y.left)??0)+((y==null?void 0:y.right)??0),M={width:R>0?`calc(100% - ${R}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:U0(e==null?void 0:e.borderRadius),padding:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0,margin:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,fontFamily:G0(e==null?void 0:e.fontFamily),fontSize:Gr(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:p,"--ahd-tabs-nav-border":h??"transparent"},T=()=>s.map((j,O)=>g.jsx("input",{type:"radio",id:`${c}-r${O}`,name:c,className:"ahd-tabs-radio",defaultChecked:O===0,style:Z0},O)),L=G.useMemo(()=>{const j=`.${c}`,O=u||"currentColor";let B=`${j} .ahd-tabs-label{color:${p||"inherit"}}`+(r?"":`${j} .ahd-tabs-panel{display:none}`);return s.forEach((Y,de)=>{const oe=`#${c}-r${de}:checked`,ee=`${oe} ~ .ahd-tabs-nav .ahd-tabs-label:nth-of-type(${de+1})`,Z=`${oe} ~ .ahd-tabs-panels .ahd-tabs-panel:nth-of-type(${de+1})`,J=`color:${O}!important;border-left-color:var(--ahd-tabs-active-border-color,${N})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${N})!important`;B+=`${ee}{${J}}`,B+=`${ee} .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${w??"inherit"})!important}`,r||(B+=`${Z}{display:block!important}`)}),B+=bo(j,n,m,S,$,k),o!==n&&(B+=`${V0}{${bo(j,o,m,S,$,k)}}`),a!==o&&(B+=`${Y0}{${bo(j,a,m,S,$,k)}}`),l&&(B+=`${j} .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),B},[s,c,u,p,w,N,n,o,a,r,m,k,S,$,l]),H=j=>r?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:$}:{width:"100%",minWidth:0,overflow:"hidden"},F=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${F}${l?" ahd-tabs-sticky":""}${r?" ahd-tabs-scroll-sections":""}`,style:M,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:L}}),T(),g.jsx("div",{className:"ahd-tabs-nav",style:{background:d,...l?{position:"sticky",top:0}:{}},children:s.map((j,O)=>g.jsx("label",{htmlFor:`${c}-r${O}`,className:"ahd-tabs-label","data-ahd-tab-index":O,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative"},children:g.jsx("span",{className:"ahd-tabs-label-text",style:W0,children:j.label??`Tab ${O+1}`})},O))}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,O)=>g.jsx("div",{id:`${c}-panel-${O}`,className:"ahd-tabs-panel","data-ahd-tab-index":O,style:H(O),children:(j.contentChildrenIds??[]).map(q=>g.jsx(ve,{id:q},q))},O))})]})}const V0=`@media (max-width:${je}px)`,Y0=`@media (max-width:${Ae}px)`,K0=C({contentChildrenIds:W(x()).optional().nullable()}),J0=C({style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),slideGap:f().optional().nullable(),arrowColor:x().optional().nullable(),arrowBgColor:x().optional().nullable(),arrowBorderColor:x().optional().nullable(),arrowSize:f().min(16).max(80).optional().nullable(),dotColor:x().optional().nullable(),dotActiveColor:x().optional().nullable(),dotSize:f().min(4).max(24).optional().nullable()}).optional().nullable(),props:C({slidesPerView:f().min(1).max(6).optional().nullable(),slidesPerViewTablet:f().min(1).max(6).optional().nullable(),slidesPerViewMobile:f().min(1).max(6).optional().nullable(),showArrows:P().optional().nullable(),showDots:P().optional().nullable(),autoplay:P().optional().nullable(),autoplayInterval:f().min(500).max(2e4).optional().nullable(),loop:P().optional().nullable(),transitionMs:f().min(0).max(3e3).optional().nullable(),items:W(K0).min(1).max(20).optional().nullable()}).optional().nullable()});function X0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const Q0="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",ev="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ur=({d:e,size:t=20})=>g.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:e})});function tv({style:e,props:t}){const n=G.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=G.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),a=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(a,2)),r=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,p=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,m=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",v=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",k=(e==null?void 0:e.arrowSize)??40,S=(e==null?void 0:e.dotColor)??"#d4d4d4",$=(e==null?void 0:e.dotActiveColor)??"#262626",w=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(k*.5))),N=e==null?void 0:e.padding,A=e==null?void 0:e.margin,y=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),R={width:y>0?`calc(100% - ${y}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:X0(e==null?void 0:e.borderRadius),padding:N?`${N.top}px ${N.right}px ${N.bottom}px ${N.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0},M=G.useMemo(()=>{const F=`.${o}`,j=O=>`calc((100% - ${h*(O-1)}px) / ${O})`;return`${F} .ahd-carousel-viewport{overflow:hidden;width:100%}${F} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${F} .ahd-carousel-slide{flex:0 0 ${j(a)};min-width:0;box-sizing:border-box}${F} .ahd-carousel-prev svg,${F} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${je}px){${F} .ahd-carousel-slide{flex-basis:${j(i)}}}@media (max-width:${Ae}px){${F} .ahd-carousel-slide{flex-basis:${j(r)}}}`},[o,h,d,a,i,r,_]),T={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${k}px)`,height:`var(--ahd-carousel-arrow-size, ${k}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${k}px)`,borderRadius:"50%",border:`1px solid ${v}`,backgroundColor:b,backgroundImage:"none",color:m,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},L=Math.min(a,i,r),H=Math.max(1,n.length-L+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:R,"data-per-view":a,"data-per-view-tablet":i,"data-per-view-mobile":r,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":p?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:T,"aria-label":"Previous slide",children:g.jsx(Ur,{d:Q0,size:_})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((F,j)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":j,children:(F.contentChildrenIds??[]).map(O=>g.jsx(ve,{id:O},O))},j))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:T,"aria-label":"Next slide",children:g.jsx(Ur,{d:ev,size:_})})]}),s&&H>1&&g.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":S,"data-dot-active-color":$,children:Array.from({length:H}).map((F,j)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":j,"aria-label":`Go to slide ${j+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${w}px)`,height:`var(--ahd-carousel-dot-size, ${w}px)`,minWidth:`var(--ahd-carousel-dot-size, ${w}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:j===0?$:S,backgroundImage:"none"}},j))})]})}const nv=C({style:C({starColor:x().optional().nullable(),starEmptyColor:x().optional().nullable(),starSize:f().min(8).max(80).optional().nullable(),starGap:f().min(0).max(40).optional().nullable(),textColor:x().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({value:D([f(),x()]).optional().nullable(),max:D([f(),x()]).optional().nullable(),showValue:P().optional().nullable()}).optional().nullable()}),Zr="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 ov(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function av(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function rv({fillPct:e,size:t,filledColor:n,emptyColor:o}){return g.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:[g.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:g.jsx("path",{d:Zr})}),g.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:g.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:g.jsx("path",{d:Zr})})})]})}function iv({style:e,props:t}){const n=G.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(k,S)=>{if(typeof k=="number")return Number.isFinite(k)?k:S;const $=parseFloat(String(k??""));return Number.isFinite($)?$:S},a=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(a,o(t==null?void 0:t.value,0))),r=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,p=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=e==null?void 0:e.padding,m=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:p,fontFamily:ov(e==null?void 0:e.fontFamily),fontSize:av(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:m?`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`:void 0,boxSizing:"border-box"},v=k=>{const S=i-k;return S>=1?100:S>=.5?50:S>0?Math.round(S*100):0};return g.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[g.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:a}).map((k,S)=>g.jsx(rv,{fillPct:v(S),size:c,filledColor:l,emptyColor:s},S))}),r&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",a]})]})]})}const lv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),sv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),cv=C({style:C({trackColor:x().optional().nullable(),fillColor:x().optional().nullable(),textColor:x().optional().nullable(),fontSize:D([x(),f()]).optional().nullable(),fontFamily:x().optional().nullable(),fontWeight:x().optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),barHeight:f().min(2).max(60).optional().nullable(),barRadius:f().min(0).max(40).optional().nullable(),circleSize:f().min(40).max(320).optional().nullable(),strokeWidth:f().min(2).max(40).optional().nullable(),stepSize:f().min(4).max(48).optional().nullable(),stepGap:f().min(0).max(40).optional().nullable(),padding:lv,margin:sv}).optional().nullable(),props:C({variant:I(["linear","circular","steps"]).optional().nullable(),value:D([f(),x()]).optional().nullable(),max:D([f(),x()]).optional().nullable(),showLabel:P().optional().nullable(),labelFormat:I(["percent","fraction"]).optional().nullable(),steps:f().min(2).max(20).optional().nullable(),striped:P().optional().nullable(),animated:P().optional().nullable()}).optional().nullable()});function uv(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function dv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Wr(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function qr(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function hv({pct:e,label:t,trackColor:n,fillColor:o,barHeight:a,barRadius:i,striped:r,animated:l,ariaLabel:s,value:c,max:u}){const p=r&&l;return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[p&&g.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}}"}}),g.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{width:"100%",height:a,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${r?" ahd-progress-striped":""}${p?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:r?"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:r?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function fv({pct:e,label:t,trackColor:n,fillColor:o,size:a,strokeWidth:i,textColor:r,ariaLabel:l,value:s,max:c}){const u=(a-i)/2,p=2*Math.PI*u,d=p*(1-e/100),h=a/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{position:"relative",width:a,height:a,display:"inline-flex"},children:[g.jsxs("svg",{width:a,height:a,viewBox:`0 0 ${a} ${a}`,children:[g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:d,transform:`rotate(-90 ${h} ${h})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:r,fontWeight:600},children:t})]})}function pv({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:a,stepGap:i,label:r,ariaLabel:l,value:s,max:c}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[g.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:i},children:Array.from({length:e}).map((u,p)=>g.jsx("span",{"data-active":p<t?"true":"false",style:{width:a,height:a,borderRadius:"50%",backgroundColor:p<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},p))}),r!=null&&g.jsx("span",{children:r})]})}function mv({style:e,props:t}){const n=G.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",a=Math.max(1,Wr(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(a,Wr(t==null?void 0:t.value,0))),r=i/a*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?qr(r,i,a,s):null,u=`Progress: ${qr(r,i,a,"percent")}`,p=(e==null?void 0:e.trackColor)??"#e5e7eb",d=(e==null?void 0:e.fillColor)??"#3F73FF",h=(e==null?void 0:e.textColor)??"#262626",m=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,k={display:"flex",justifyContent:m==="center"?"center":m==="right"?"flex-end":"flex-start",color:h,fontFamily:uv(e==null?void 0:e.fontFamily),fontSize:dv((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:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,boxSizing:"border-box"},S=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),$=Math.round(r/100*S);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:k,children:o==="circular"?g.jsx(fv,{pct:r,label:c,trackColor:p,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:h,ariaLabel:u,value:i,max:a}):o==="steps"?g.jsx(pv,{steps:S,activeIndex:$,trackColor:p,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:c,ariaLabel:u,value:i,max:a}):g.jsx(hv,{pct:r,label:c,trackColor:p,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:u,value:i,max:a})})}const gv=C({responsive:Te,style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),itemGap:f().min(0).max(200).optional().nullable(),viewportHeight:f().min(40).max(1200).optional().nullable()}).optional().nullable(),props:C({direction:I(["left","right","up","down"]).optional().nullable(),speed:f().min(5).max(200).optional().nullable(),pauseOnHover:P().optional().nullable(),repeat:f().min(2).max(6).optional().nullable(),fadeEdges:P().optional().nullable(),verticalAlign:I(["top","middle","bottom"]).optional().nullable(),items:W(C({contentChildrenIds:W(x()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),bv=40,vv=32,xv=200,ml=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,gl=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,Sv=e=>Math.max(2,Math.round(1200/e)),wv=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),bl=e=>e==="up"||e==="down",kv=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Dn=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function _v(e,t){return{speed:gl(t==null?void 0:t.speed,bv),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??vv,viewportHeight:ml(e==null?void 0:e.viewportHeight,xv)}}function $v(e,t,n){var a,i,r,l,s;const o=e==null?void 0:e[t];return{speed:gl((a=o==null?void 0:o.props)==null?void 0:a.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((r=o==null?void 0:o.props)==null?void 0:r.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:ml((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const Cv=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Vr=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${Sv(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,Av=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Dn(t)}!important;mask-image:${Dn(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function yv({instanceId:e,direction:t,repeat:n,desktop:o,responsive:a,verticalAlign:i}){const r=`.${e}`,l=bl(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":kv(i),p=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${p}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${p}%)}}`,h=(b,v)=>{if(!Cv(a,v))return"";const k=$v(a,v,o);return`${b}{${r}{${Vr(k)};${Av(k,l)}}}`},m=l?`${r} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${r} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${r}{${Vr(o)}}`+m+`${r} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${r} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${r} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${r}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(dn,"tablet")+h(Oe,"mobile")+`@media (prefers-reduced-motion: reduce){${r} .ahd-marquee-track{animation:none}}`}function Nv(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 Rv(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function Ev({style:e,props:t,responsive:n}){const o=G.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),a=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",r=wv(t==null?void 0:t.repeat),l=bl(i),s=_v(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,p=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:p>0?`calc(100% - ${p}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...Rv(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:Nv(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:void 0,margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Dn(l),maskImage:Dn(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",m=G.useMemo(()=>yv({instanceId:o,direction:i,repeat:r,desktop:s,responsive:n,verticalAlign:h}),[o,i,r,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,h]),b=v=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":v>0?!0:void 0,children:a.map((k,S)=>g.jsx("div",{className:"ahd-marquee-item",children:(k.contentChildrenIds??[]).map($=>g.jsx(ve,{id:$},$))},S))},v);return g.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:m}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:r}).map((v,k)=>b(k))})})]})}const Iv=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Mv=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Tv=C({style:C({backgroundColor:x().optional().nullable(),textColor:x().optional().nullable(),accentColor:x().optional().nullable(),numberColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:Iv,margin:Mv}).optional().nullable(),props:C({layout:I(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:x().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:P().default(!0),expiredBehavior:I(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:x().default("Offer has ended")}).optional().nullable()});function Pv(e){return String(Math.max(0,e)).padStart(2,"0")}function Ov({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r,numberColor:l}){const s=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":c.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:Pv(c.value)}),a&&g.jsx("span",{style:{fontSize:11,color:r??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function Lv(e){return String(Math.max(0,e)).padStart(2,"0")}const Wo=26,Yr=2*Math.PI*Wo;function zv({value:e,max:t,accentColor:n,numberColor:o,unit:a}){const i=t>0?Math.min(1,Math.max(0,e/t)):0,r=Yr*(1-i);return g.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:Wo,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Wo,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Yr,strokeDashoffset:r,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),g.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:700,fill:o,children:Lv(e)})]})}function jv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r,numberColor:l}){const s=i??"#7c3aed",c=l??"#1f1f1f",u=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:u.map(p=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(zv,{value:p.value,max:p.max,accentColor:s,numberColor:c,unit:p.label.toLowerCase()}),a&&g.jsx("span",{style:{fontSize:11,color:r??"#6b7280",textTransform:"uppercase"},children:p.label})]},p.label))})}function vt(e){return String(Math.max(0,e)).padStart(2,"0")}function Bv({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:i,textColor:r}){const l=[{key:"days",text:a?`${e}d`:vt(e)},{key:"hours",text:a?`${vt(t)}h`:vt(t)},{key:"minutes",text:a?`${vt(n)}m`:vt(n)},{key:"seconds",text:a?`${vt(o)}s`:vt(o)}],s=a?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":a?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:r??"#1f1f1f"},children:[g.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>g.jsxs(G.Fragment,{children:[u>0&&s,g.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function Dv(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 Hv(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const o=Math.max(0,n-t),a=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:a}}function Fv({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",a=n.showLabels??!0,i=n.expiredBehavior??"showMessage",r=n.expiredMessage||"Offer has ended",l=Hv(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,p=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:p>0?`calc(100% - ${p}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Dv(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:"16px",margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0},h={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:a,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor},m=s&&i==="showMessage",b=s&&i==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":r,"data-ahd-timer-show-labels":a?"1":"0",style:{...d,display:b?"none":void 0},children:[g.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:m?void 0:"none"},children:r}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:m?"none":void 0},children:[o==="digitalFlip"&&g.jsx(Ov,{...h}),o==="circularProgress"&&g.jsx(jv,{...h}),o==="textInline"&&g.jsx(Bv,{...h})]})]})}const Gv=I(["left","center","right","space-between"]),Uv=C({contentChildrenIds:W(x()).optional().nullable()}),Zv=C({childrenIds:W(x())}),Wv=C({style:C({backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderRadius:D([f(),x(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),margin:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),itemGap:f().min(0).max(120).optional().nullable(),columnsGap:f().min(0).max(120).optional().nullable(),rowsGap:f().min(0).max(120).optional().nullable(),controlGap:f().min(0).max(120).optional().nullable(),controlAlign:Gv.optional().nullable(),buttonSize:f().min(20).max(72).optional().nullable(),buttonGap:f().min(0).max(40).optional().nullable(),buttonRadius:f().min(0).max(999).optional().nullable(),buttonBg:x().optional().nullable(),buttonColor:x().optional().nullable(),buttonBorderColor:x().optional().nullable(),activeButtonBg:x().optional().nullable(),activeButtonColor:x().optional().nullable(),activeButtonBorderColor:x().optional().nullable(),arrowColor:x().optional().nullable(),fontSize:f().min(8).max(40).optional().nullable(),fontFamily:x().optional().nullable()}).optional().nullable(),props:C({items:W(Uv).min(1).max(50).optional().nullable(),cells:W(Zv).optional().nullable(),columnsCount:f().int().min(1).max(12).optional().nullable(),rowsCount:f().int().min(1).max(24).optional().nullable(),columnsCountTablet:f().int().min(1).max(12).optional().nullable(),columnsCountMobile:f().int().min(1).max(12).optional().nullable(),rowsCountTablet:f().int().min(1).max(24).optional().nullable(),rowsCountMobile:f().int().min(1).max(24).optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:I(["left","center","right"]).optional().nullable(),cellsPerPage:f().int().min(1).max(100).optional().nullable(),repeatableEnabled:P().optional().nullable(),pageParam:x().min(1).max(40).optional().nullable(),syncUrl:P().optional().nullable(),showNumbers:P().optional().nullable(),showPrevNext:P().optional().nullable(),showFirstLast:P().optional().nullable(),maxVisiblePages:f().min(0).max(50).optional().nullable(),prevLabel:x().max(24).optional().nullable(),nextLabel:x().max(24).optional().nullable(),firstLabel:x().max(24).optional().nullable(),lastLabel:x().max(24).optional().nullable(),scrollToTopOnChange:P().optional().nullable(),explicitFirstPage:P().optional().nullable()}).optional().nullable()}),qo={columnsCount:2,rowsCount:2};function vo(e,t="desktop"){const n=qo,o=(e==null?void 0:e.columnsCount)??n.columnsCount,a=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,r=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??a:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??a:a;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*a,i*r,l.length),c=Array.from({length:s},(u,p)=>{var d;return{childrenIds:Array.isArray((d=l[p])==null?void 0:d.childrenIds)?l[p].childrenIds:[]}});return{columnsCount:i,rowsCount:r,cells:c}}function xo(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)??qo.columnsCount,o=(e==null?void 0:e.rowsCount)??qo.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,a*i)}function qv(e,t,n){const o=Math.max(1,e),a=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(a/o))}function Vv(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let a=0;a<e.length;a+=n)o.push(e.slice(a,a+n));return o}const Yv={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 Kv({style:e,props:t}){const n=Yv;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function Jv(e){return Math.max(1,e)}function Xv(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],a=Math.max(1,n-2),i=Math.floor(a/2);let r=Math.max(2,e-i),l=Math.min(t-1,r+a-1);r=Math.max(2,Math.min(r,l-a+1)),o.push(1),r>2&&o.push("ellipsis");for(let s=r;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function Qv(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 ex({style:e,props:t}){const n=Kv({style:e,props:t}),o=vo(t,"desktop"),a=vo(t,"tablet"),i=vo(t,"mobile"),r=Math.max(xo(t,"desktop"),xo(t,"tablet"),xo(t,"mobile")),l=G.useMemo(()=>o.cells.length>=r?o.cells:Array.from({length:r},(A,y)=>o.cells[y]??{childrenIds:[]}),[o.cells,r]),s=G.useMemo(()=>Vv(l,r),[l,r]),c=Jv(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,p=(e==null?void 0:e.rowsGap)??n.itemGap,d=G.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=G.useMemo(()=>Xv(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),m=e==null?void 0:e.padding,b=e==null?void 0:e.margin,v=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),k={width:v>0?`calc(100% - ${v}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Qv(e==null?void 0:e.borderRadius),padding:m?`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},S=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",$={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${n.buttonBorderColor}`,backgroundColor:n.buttonBg,backgroundImage:"none",color:n.buttonColor,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},w={...$,color:n.arrowColor},_=G.useMemo(()=>{const A=M=>`grid-template-columns:repeat(${M.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${qv(M.columnsCount,M.rowsCount,r)},auto)`,y=(M,T)=>{const L=Math.min(Math.max(1,T.columnsCount*T.rowsCount),Math.max(1,r));return L>=r?"":`${M} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${L+1}){display:none}`},R=`.${d}`;return`${R} .ahd-pgn-item{display:grid;${A(o)};column-gap:${u}px;row-gap:${p}px}${R} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+y(R,o)+`@media (max-width:${je}px){${R} .ahd-pgn-item{${A(a)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(R,a)+`}@media (max-width:${Ae}px){${R} .ahd-pgn-item{${A(i)}}${R} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+y(R,i)+"}"},[d,o,a,i,r,u,p,n.itemGap]),N=(A,y,R)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${A}`,"data-ahd-page":R,style:w,"aria-label":y,children:y});return g.jsxs("div",{className:`${d} ahd-pagination`,style:k,"data-total-pages":c,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":n.buttonBg,"data-btn-color":n.buttonColor,"data-btn-border":n.buttonBorderColor,"data-active-bg":n.activeButtonBg,"data-active-color":n.activeButtonColor,"data-active-border":n.activeButtonBorderColor,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((A,y)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":y,style:y===0?void 0:{display:"none"},children:A.map((R,M)=>g.jsx("div",{className:"ahd-pgn-cell",children:(R.childrenIds??[]).map(T=>g.jsx(ve,{id:T},T))},M))},y))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&g.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:S,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&N("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&N("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&g.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:h.map((A,y)=>A==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...$,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${y}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":A,"aria-label":`Page ${A}`,"aria-current":A===1?"true":void 0,style:A===1?{...$,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:$,children:A},A))}),n.showPrevNext&&N("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&N("ahd-pgn-last",n.lastLabel,c)]})]})}const tx=C({responsive:Te,style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),tableAlign:I(["left","center","right"]).optional().nullable(),fontSize:f().optional().nullable(),fontFamily:x().optional().nullable(),color:x().optional().nullable(),backgroundColor:x().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:f().optional().nullable(),cellPadding:f().optional().nullable(),headerBackground:x().optional().nullable(),headerColor:x().optional().nullable(),stripedRowColor:x().optional().nullable(),stripedColColor:x().optional().nullable()}).optional().nullable(),props:C({rows:f().int().min(1).max(50).optional().nullable(),columns:f().int().min(1).max(20).optional().nullable(),hasHeader:P().optional().nullable(),cells:W(x()).optional().nullable(),caption:x().optional().nullable(),width:x().optional().nullable(),enableScroll:P().optional().nullable(),enableScrollTablet:P().optional().nullable(),enableScrollMobile:P().optional().nullable()}).optional().nullable()}),Ze={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function Ma(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Ta(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function nx(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function ox(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let ax=0;function vl(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function An(e){return e?vl(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function So(e){return e?vl(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function rx({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ze.rows)),a=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ze.columns)),i=(t==null?void 0:t.hasHeader)??Ze.hasHeader,r=(t==null?void 0:t.cells)??[],l=o*a,s=r.length===l?r:Array.from({length:l},(O,q)=>r[q]??""),c=(e==null?void 0:e.borderColor)??Ze.borderColor,u=(e==null?void 0:e.borderWidth)??Ze.borderWidth,p=(e==null?void 0:e.cellPadding)??Ze.cellPadding,d=(e==null?void 0:e.headerBackground)??Ze.headerBackground,h=(e==null?void 0:e.headerColor)??Ze.headerColor,m=(e==null?void 0:e.color)??Ze.color,b=(e==null?void 0:e.fontSize)??Ze.fontSize,v=(e==null?void 0:e.backgroundColor)??null,k=(e==null?void 0:e.stripedRowColor)===void 0?Ze.stripedRowColor:e.stripedRowColor,S=(e==null?void 0:e.stripedColColor)??null,$=`ahd-table-${++ax}`,w={padding:Ma(e==null?void 0:e.padding),margin:Ta(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},_=ox(e==null?void 0:e.fontFamily),N={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},A={border:`${u}px solid ${c}`,padding:p,verticalAlign:"top"},y=_?`.${$}, .${$} * { font-family: ${_} !important; }`:"",R=k?`.${$} > tbody > tr:nth-child(even) > td { ${An(k)} }`:"",M=S?`.${$} > tbody > tr > td:nth-child(even) { ${An(S)} }`:"",T=`
275
- .${$} { ${An(v)} }
276
- ${y}
277
- .${$} > tbody > tr > td > .ahd-table-cell-text { ${So(m)} display: block; }
278
- .${$} > thead > tr > th { ${An(d)} }
279
- .${$} > thead > tr > th > .ahd-table-cell-text { ${So(h)} display: block; }
280
- .${$} > caption > .ahd-table-cell-text { ${So(m)} display: block; }
284
+ `;return g.jsxs("div",{style:le,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Ce}}),n.map((W,L)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${L}`,className:"pacc-cb",defaultChecked:L===i},L)),g.jsx("div",{className:"pacc-wrap",children:n.map((W,L)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${L}`,className:"pacc-card",children:[(W.cardChildrenIds??[]).map(U=>g.jsx(ke,{id:U},U)),g.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:g.jsx("i",{className:"bi bi-chevron-right"})})]}),g.jsx("div",{className:"pacc-detail",children:(W.detailChildrenIds??[]).map(U=>g.jsx(ke,{id:U},U))})]},L))})]})}const Kx=160,Jx=A({label:k().optional().nullable(),contentChildrenIds:X(k()).optional().nullable()}),Xx=A({responsive:Be,style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),tabActiveColor:k().optional().nullable(),tabActiveBgColor:k().optional().nullable(),tabInactiveTextColor:k().optional().nullable(),tabInactiveBgColor:k().optional().nullable(),tabInactiveBorderColor:k().optional().nullable(),tabInactiveBorderWidth:m().optional().nullable(),tabTextColor:k().optional().nullable(),tabBgColor:k().optional().nullable(),tabBorderRadius:m().optional().nullable(),tabGap:m().optional().nullable(),contentGap:m().optional().nullable(),navBorderColor:k().optional().nullable(),navWidth:m().optional().nullable(),fontSize:D([k(),m()]).optional().nullable(),lineHeight:D([k(),m()]).optional().nullable(),activeFontSize:D([k(),m()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable()}).optional().nullable(),props:A({orientation:M(["horizontal","vertical"]).optional().nullable(),orientationTablet:M(["horizontal","vertical"]).optional().nullable(),orientationMobile:M(["horizontal","vertical"]).optional().nullable(),behavior:M(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:M(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:m().optional().nullable(),stickyNav:O().optional().nullable(),items:X(Jx).min(1).max(20).optional().nullable()}).optional().nullable()});function Qx(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function ev(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 Ri(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const tv={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},nv={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function ot(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function no(e,t=!1){const n=t?"!important":"";return e?ot(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function oo(e,t=!1){const n=t?"!important":"";return ot(e)?`color:transparent${n}`:`color:${e}${n}`}function ro(e,t=!1){const n=t?"!important":"";return ot(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function xr(e,t,n,o=!1){const r=o?"!important":"";return ot(e)?`border-${n}-style:solid${r};border-${n}-width:${t}${r};border-image-source:${e}${r};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${r}`:`border-${n}-color:${e}${r}`}function ov(e,t,n=!1){const o=n?"!important":"";return e?ot(e)?`box-sizing:border-box${o};border:${t}px solid transparent${o};border-image-source:${e}${o};border-image-slice:1${o};box-shadow:none${o}`:`box-shadow:inset 0 0 0 ${t}px ${e}${o}`:`box-shadow:none${o}`}function zt(e,t,n,o,r,i,a,l){const s=ot(l),c=s?xr(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,u=s?xr(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:${o};align-items:center;justify-content:${i};width:100%;${c};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:${r};margin-left:0}`;const f=`${a??Kx}px`,d=`var(--ahd-tabs-nav-width,${f})`,h=`width:var(--ahd-tabs-nav-width,${f});max-width:var(--ahd-tabs-nav-width,${f})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${r};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;${h};min-width:0;overflow:visible;${u};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:${o};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 rv(e,t,n,o,r,i,a,l,s,c,u,f,d,h,p,b,x=1){let w="";for(let $=0;$<p;$++){const y=`${e} #${h}-r${$}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${$+1})`;w+=`${y}{${no(a,!0)};${oo(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${ro(l,!0)}}${y}:hover{${no(a,!0)}}`}const v=`${e} > .ahd-tabs-dd-wrap`,_=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${v}:focus-within`,S=s?`${v} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${v}{display:block!important;position:relative!important;width:100%!important}${v} > .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:${o};background:${r};color:${i};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${v} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+S+`${v} > .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}${_} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${v} > .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:${o}!important;background:#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}${_} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${v} > .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;${oo(c??"inherit",!0)};background:${u??"transparent"}!important;box-shadow:${f}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${v} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${ro(c??"inherit",!0)}}${v} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${v} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${u??"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 Bo(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 av({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??"vertical",a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=F.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=(e==null?void 0:e.tabActiveColor)??void 0,f=(e==null?void 0:e.tabActiveBgColor)??void 0,d=(e==null?void 0:e.tabInactiveTextColor)??void 0,h=(e==null?void 0:e.tabInactiveBgColor)??void 0,p=(e==null?void 0:e.tabInactiveBorderColor)??void 0,b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=(e==null?void 0:e.tabTextColor)??void 0,v=(e==null?void 0:e.tabBgColor)??"transparent",_=(e==null?void 0:e.navBorderColor)??void 0,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,R="var(--ahd-tabs-tab-gap,"+$+")",I="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?Ri(e.activeFontSize):void 0,T=((e==null?void 0:e.showActiveBorder)??!0)&&!f?u||"currentColor":"transparent",z=(t==null?void 0:t.tabsAlign)??"left",H=z==="center"?"center":z==="right"?"flex-end":"flex-start",Z=(t==null?void 0:t.dropdown)??!1,j=(t==null?void 0:t.dropdownTablet)??Z,V=(t==null?void 0:t.dropdownMobile)??j,Y=e==null?void 0:e.padding,K=e==null?void 0:e.margin,G=((K==null?void 0:K.left)??0)+((K==null?void 0:K.right)??0),oe=ot(e==null?void 0:e.borderColor),le=e!=null&&e.borderColor?oe?{border:"1px solid transparent",borderImageSource:e.borderColor,borderImageSlice:1}:{border:`1px solid ${e.borderColor}`}:{},se={width:G>0?`calc(100% - ${G}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,...le,borderRadius:ev(e==null?void 0:e.borderRadius),padding:Y?`${Y.top}px ${Y.right}px ${Y.bottom}px ${Y.left}px`:void 0,margin:K?`${K.top}px ${K.right}px ${K.bottom}px ${K.left}px`:void 0,fontFamily:Qx(e==null?void 0:e.fontFamily),fontSize:Ri(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":_??"transparent"},ce=()=>s.map((L,U)=>g.jsx("input",{type:"radio",id:`${c}-r${U}`,name:c,className:"ahd-tabs-radio",defaultChecked:U===0,style:tv},U)),Ee=F.useMemo(()=>{const L=`.${c}`,U=u||"currentColor",q=w||"inherit",J=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,Ae=`${J} > .ahd-tabs-label-text`,Q=`${L} > .ahd-tabs-panels > .ahd-tabs-panel`,ye=d??q;let ue=`${J}{${oo(ye)};${no(h)};${ov(p,b)};border-radius:${x}}${Ae}{${ro(ye)}}`+(a?"":`${Q}{display:none}`)+`${L} > .ahd-tabs-dd-wrap{display:contents}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${L} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((Re,Fe)=>{const Ve=`#${c}-r${Fe}:checked`,at=`${Ve} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Fe+1})`,Et=`${Ve} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Fe+1})`,it=ot(T),dt=`${oo(U,!0)};${no(f,!0)};box-shadow:none!important`+(it?`;${xr(T,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${T})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${T})!important`);ue+=`${at}{${dt}}`,ue+=`${at} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${ro(U,!0)}}`,a||(ue+=`${Et}{display:block!important}`),ue+=`${Ve} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Fe+1}){display:inline}`}),ue+=zt(L,n,S,R,I,H,C!=null?String(C):void 0,_??void 0),o!==n&&(ue+=`${Do}{${zt(L,o,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`),r!==o&&(ue+=`${Fo}{${zt(L,r,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`);const _e=p||_||"#d0d5dd",Ie=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",re=(e==null?void 0:e.tabBgColor)??"#fff",wt=w??"inherit",we=f??"transparent",De=u??"inherit",ne=p?ot(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",pe=ot(p)?p:void 0,Se=rv(L,_e,I,Ie,re,wt,we,De,E,d,h,ne,R,c,s.length,pe,b);return l&&(ue+=`${L} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${L}){position:sticky;top:0;z-index:50}`),Z?(ue+=Se,j||(ue+=`${Do}{${Bo(L,x)}${zt(L,o,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`),!V&&j&&(ue+=`${Fo}{${Bo(L,x)}${zt(L,r,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`)):(j&&(ue+=`${Do}{${Se}}`),V!==j&&(ue+=`${Fo}{${V?Se:Bo(L,x)+zt(L,r,S,R,I,H,C!=null?String(C):void 0,_??void 0)}}`)),ue},[s,c,u,f,x,w,E,T,n,o,r,a,S,_,C,R,I,H,d,h,p,b,Z,j,V,l]),Ce=L=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:L===0?void 0:I}:{display:L===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},W=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${W}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Ee}}),ce(),g.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[g.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[g.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((L,U)=>g.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":U,children:L.label??`Tab ${U+1}`},U))}),g.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),g.jsx("div",{className:"ahd-tabs-nav",style:{background:v,...l?{position:"sticky",top:0}:{}},children:s.map((L,U)=>g.jsx("label",{htmlFor:`${c}-r${U}`,className:"ahd-tabs-label","data-ahd-tab-index":U,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:g.jsx("span",{className:"ahd-tabs-label-text",style:nv,children:L.label??`Tab ${U+1}`})},U))})]}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((L,U)=>g.jsx("div",{id:`${c}-panel-${U}`,className:"ahd-tabs-panel","data-ahd-tab-index":U,style:Ce(U),children:(L.contentChildrenIds??[]).map(q=>g.jsx(ke,{id:q},q))},U))})]})}const Do=`@media (max-width:${Ue}px)`,Fo=`@media (max-width:${Le}px)`,iv=A({contentChildrenIds:X(k()).optional().nullable()}),lv=A({style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),slideGap:m().optional().nullable(),arrowColor:k().optional().nullable(),arrowBgColor:k().optional().nullable(),arrowBorderColor:k().optional().nullable(),arrowSize:m().min(16).max(80).optional().nullable(),dotColor:k().optional().nullable(),dotActiveColor:k().optional().nullable(),dotSize:m().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:m().min(1).max(6).optional().nullable(),slidesPerViewTablet:m().min(1).max(6).optional().nullable(),slidesPerViewMobile:m().min(1).max(6).optional().nullable(),showArrows:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:m().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:m().min(0).max(3e3).optional().nullable(),items:X(iv).min(1).max(20).optional().nullable()}).optional().nullable()});function sv(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 cv="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",uv="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ei=({d:e,size:t=20})=>g.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{d:e})});function dv({style:e,props:t}){const n=F.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=F.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,2)),a=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,f=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,h=(e==null?void 0:e.slideGap)??16,p=(e==null?void 0:e.arrowColor)??"#262626",b=(e==null?void 0:e.arrowBgColor)??"#ffffff",x=(e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)",w=(e==null?void 0:e.arrowSize)??40,v=(e==null?void 0:e.dotColor)??"#d4d4d4",_=(e==null?void 0:e.dotActiveColor)??"#262626",S=(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,R=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),I={width:R>0?`calc(100% - ${R}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:sv(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=F.useMemo(()=>{const H=`.${o}`,Z=j=>`calc((100% - ${h*(j-1)}px) / ${j})`;return`${H} .ahd-carousel-viewport{overflow:hidden;width:100%}${H} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${h}px);transition:transform ${d}ms ease;will-change:transform}${H} .ahd-carousel-slide{flex:0 0 ${Z(r)};min-width:0;box-sizing:border-box}${H} .ahd-carousel-prev svg,${H} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${$}px);height:var(--ahd-carousel-chevron-size,${$}px)}@media (max-width:${Ue}px){${H} .ahd-carousel-slide{flex-basis:${Z(i)}}}@media (max-width:${Le}px){${H} .ahd-carousel-slide{flex-basis:${Z(a)}}}`},[o,h,d,r,i,a,$]),P={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},T=Math.min(r,i,a),z=Math.max(1,n.length-T+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:I,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":f?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:g.jsx(Ei,{d:cv,size:$})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((H,Z)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":Z,children:(H.contentChildrenIds??[]).map(j=>g.jsx(ke,{id:j},j))},Z))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:g.jsx(Ei,{d:uv,size:$})})]}),s&&z>1&&g.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":v,"data-dot-active-color":_,children:Array.from({length:z}).map((H,Z)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":Z,"aria-label":`Go to slide ${Z+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${S}px)`,height:`var(--ahd-carousel-dot-size, ${S}px)`,minWidth:`var(--ahd-carousel-dot-size, ${S}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:Z===0?_:v,backgroundImage:"none"}},Z))})]})}const hv=A({style:A({starColor:k().optional().nullable(),starEmptyColor:k().optional().nullable(),starSize:m().min(8).max(80).optional().nullable(),starGap:m().min(0).max(40).optional().nullable(),textColor:k().optional().nullable(),fontSize:D([k(),m()]).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({value:D([m(),k()]).optional().nullable(),max:D([m(),k()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),Ni="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 fv(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function pv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function mv({fillPct:e,size:t,filledColor:n,emptyColor:o}){return g.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:[g.jsx("svg",{viewBox:"0 0 24 24",fill:o,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:g.jsx("path",{d:Ni})}),g.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:g.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:g.jsx("path",{d:Ni})})})]})}function gv({style:e,props:t}){const n=F.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(w,v)=>{if(typeof w=="number")return Number.isFinite(w)?w:v;const _=parseFloat(String(w??""));return Number.isFinite(_)?_:v},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,f=(e==null?void 0:e.textColor)??"#262626",d=(e==null?void 0:e.textAlign)??"left",h=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, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:f,fontFamily:fv(e==null?void 0:e.fontFamily),fontSize:pv(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const v=i-w;return v>=1?100:v>=.5?50:v>0?Math.round(v*100):0};return g.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[g.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${u}px)`},children:Array.from({length:r}).map((w,v)=>g.jsx(mv,{fillPct:x(v),size:c,filledColor:l,emptyColor:s},v))}),a&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const bv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),xv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),vv=A({style:A({trackColor:k().optional().nullable(),fillColor:k().optional().nullable(),textColor:k().optional().nullable(),fontSize:D([k(),m()]).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),barHeight:m().min(2).max(60).optional().nullable(),barRadius:m().min(0).max(40).optional().nullable(),circleSize:m().min(40).max(320).optional().nullable(),strokeWidth:m().min(2).max(40).optional().nullable(),stepSize:m().min(4).max(48).optional().nullable(),stepGap:m().min(0).max(40).optional().nullable(),padding:bv,margin:xv}).optional().nullable(),props:A({variant:M(["linear","circular","steps"]).optional().nullable(),value:D([m(),k()]).optional().nullable(),max:D([m(),k()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:M(["percent","fraction"]).optional().nullable(),steps:m().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function wv(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Sv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Mi(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function Ti(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function kv({pct:e,label:t,trackColor:n,fillColor:o,barHeight:r,barRadius:i,striped:a,animated:l,ariaLabel:s,value:c,max:u}){const f=a&&l;return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[f&&g.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}}"}}),g.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{width:"100%",height:r,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${a?" ahd-progress-striped":""}${f?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:a?"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:a?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function _v({pct:e,label:t,trackColor:n,fillColor:o,size:r,strokeWidth:i,textColor:a,ariaLabel:l,value:s,max:c}){const u=(r-i)/2,f=2*Math.PI*u,d=f*(1-e/100),h=r/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{position:"relative",width:r,height:r,display:"inline-flex"},children:[g.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:h,cy:h,r:u,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:f,strokeDashoffset:d,transform:`rotate(-90 ${h} ${h})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:a,fontWeight:600},children:t})]})}function $v({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:r,stepGap:i,label:a,ariaLabel:l,value:s,max:c}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[g.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:i},children:Array.from({length:e}).map((u,f)=>g.jsx("span",{"data-active":f<t?"true":"false",style:{width:r,height:r,borderRadius:"50%",backgroundColor:f<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},f))}),a!=null&&g.jsx("span",{children:a})]})}function Cv({style:e,props:t}){const n=F.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",r=Math.max(1,Mi(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(r,Mi(t==null?void 0:t.value,0))),a=i/r*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?Ti(a,i,r,s):null,u=`Progress: ${Ti(a,i,r,"percent")}`,f=(e==null?void 0:e.trackColor)??"#e5e7eb",d=(e==null?void 0:e.fillColor)??"#3F73FF",h=(e==null?void 0:e.textColor)??"#262626",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:h,fontFamily:wv(e==null?void 0:e.fontFamily),fontSize:Sv((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"},v=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),_=Math.round(a/100*v);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:o==="circular"?g.jsx(_v,{pct:a,label:c,trackColor:f,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:h,ariaLabel:u,value:i,max:r}):o==="steps"?g.jsx($v,{steps:v,activeIndex:_,trackColor:f,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:c,ariaLabel:u,value:i,max:r}):g.jsx(kv,{pct:a,label:c,trackColor:f,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:u,value:i,max:r})})}const Av=A({responsive:Be,style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(200).optional().nullable(),viewportHeight:m().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:M(["left","right","up","down"]).optional().nullable(),speed:m().min(5).max(200).optional().nullable(),pauseOnHover:O().optional().nullable(),repeat:m().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:M(["top","middle","bottom"]).optional().nullable(),items:X(A({contentChildrenIds:X(k()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),yv=40,Iv=32,Rv=200,ps=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,ms=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,Ev=e=>Math.max(2,Math.round(1200/e)),Nv=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),gs=e=>e==="up"||e==="down",Mv=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",ao=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function Tv(e,t){return{speed:ms(t==null?void 0:t.speed,yv),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??Iv,viewportHeight:ps(e==null?void 0:e.viewportHeight,Rv)}}function Pv(e,t,n){var r,i,a,l,s;const o=e==null?void 0:e[t];return{speed:ms((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:ps((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const Ov=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Pi=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${Ev(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,Lv=(e,t)=>e.fadeEdges?`-webkit-mask-image:${ao(t)}!important;mask-image:${ao(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function zv({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=gs(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":Mv(i),f=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${f}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${f}%)}}`,h=(b,x)=>{if(!Ov(r,x))return"";const w=Pv(r,x,o);return`${b}{${a}{${Pi(w)};${Lv(w,l)}}}`},p=l?`${a} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${a} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${a}{${Pi(o)}}`+p+`${a} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${a} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${a} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${a}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(It,"tablet")+h(Oe,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function jv(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 Bv(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,o=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:o>0?`${o}px solid ${e}`:void 0}}function Dv({style:e,props:t,responsive:n}){const o=F.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=Nv(t==null?void 0:t.repeat),l=gs(i),s=Tv(e,t),c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,f=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,...Bv(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:jv(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:void 0,margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:ao(l),maskImage:ao(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",p=F.useMemo(()=>zv({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:h}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,h]),b=x=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":x>0?!0:void 0,children:r.map((w,v)=>g.jsx("div",{className:"ahd-marquee-item",children:(w.contentChildrenIds??[]).map(_=>g.jsx(ke,{id:_},_))},v))},x);return g.jsxs("div",{className:`${o} ahd-marquee`,style:d,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:p}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((x,w)=>b(w))})})]})}const Fv=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),Hv=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),Gv=A({style:A({backgroundColor:k().optional().nullable(),textColor:k().optional().nullable(),accentColor:k().optional().nullable(),numberColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:Fv,margin:Hv}).optional().nullable(),props:A({layout:M(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:k().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:M(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:k().default("Offer has ended")}).optional().nullable()});function Uv(e){return String(Math.max(0,e)).padStart(2,"0")}function Zv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:o,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:s.map(c=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":c.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:Uv(c.value)}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function Wv(e){return String(Math.max(0,e)).padStart(2,"0")}const vr=26,Oi=2*Math.PI*vr;function qv({value:e,max:t,accentColor:n,numberColor:o,unit:r}){const i=t>0?Math.min(1,Math.max(0,e/t)):0,a=Oi*(1-i);return g.jsxs("svg",{"data-ahd-timer-unit":r,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:vr,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:vr,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Oi,strokeDashoffset:a,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),g.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:700,fill:o,children:Wv(e)})]})}function Vv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l}){const s=i??"#7c3aed",c=l??"#1f1f1f",u=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:o,max:60,label:"Seconds"}];return g.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:u.map(f=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(qv,{value:f.value,max:f.max,accentColor:s,numberColor:c,unit:f.label.toLowerCase()}),r&&g.jsx("span",{style:{fontSize:11,color:a??"#6b7280",textTransform:"uppercase"},children:f.label})]},f.label))})}function _t(e){return String(Math.max(0,e)).padStart(2,"0")}function Yv({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a}){const l=[{key:"days",text:r?`${e}d`:_t(e)},{key:"hours",text:r?`${_t(t)}h`:_t(t)},{key:"minutes",text:r?`${_t(n)}m`:_t(n)},{key:"seconds",text:r?`${_t(o)}s`:_t(o)}],s=r?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??"#1f1f1f"},children:[g.jsx("span",{style:{color:i??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((c,u)=>g.jsxs(F.Fragment,{children:[u>0&&s,g.jsx("span",{"data-ahd-timer-unit":c.key,children:c.text})]},c.key))]})}function Kv(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Jv(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function Xv({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=Jv(n.targetDate),s=l.completed,c=e==null?void 0:e.padding,u=e==null?void 0:e.margin,f=((u==null?void 0:u.left)??0)+((u==null?void 0:u.right)??0),d={width:f>0?`calc(100% - ${f}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Kv(e==null?void 0:e.borderRadius),padding:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:"16px",margin:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0},h={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:r,accentColor:e==null?void 0:e.accentColor,textColor:e==null?void 0:e.textColor,numberColor:e==null?void 0:e.numberColor},p=s&&i==="showMessage",b=s&&i==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0",style:{...d,display:b?"none":void 0},children:[g.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:(e==null?void 0:e.textColor)??"#1f1f1f",display:p?void 0:"none"},children:a}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:p?"none":void 0},children:[o==="digitalFlip"&&g.jsx(Zv,{...h}),o==="circularProgress"&&g.jsx(Vv,{...h}),o==="textInline"&&g.jsx(Yv,{...h})]})]})}const Qv=M(["left","center","right","space-between"]),e1=A({contentChildrenIds:X(k()).optional().nullable()}),t1=A({childrenIds:X(k())}),n1=A({style:A({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([m(),k(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(120).optional().nullable(),columnsGap:m().min(0).max(120).optional().nullable(),rowsGap:m().min(0).max(120).optional().nullable(),controlGap:m().min(0).max(120).optional().nullable(),controlAlign:Qv.optional().nullable(),buttonSize:m().min(20).max(72).optional().nullable(),buttonGap:m().min(0).max(40).optional().nullable(),buttonRadius:m().min(0).max(999).optional().nullable(),buttonBg:k().optional().nullable(),buttonColor:k().optional().nullable(),buttonBorderColor:k().optional().nullable(),activeButtonBg:k().optional().nullable(),activeButtonColor:k().optional().nullable(),activeButtonBorderColor:k().optional().nullable(),arrowColor:k().optional().nullable(),fontSize:m().min(8).max(40).optional().nullable(),fontFamily:k().optional().nullable()}).optional().nullable(),props:A({items:X(e1).min(1).max(50).optional().nullable(),cells:X(t1).optional().nullable(),columnsCount:m().int().min(1).max(12).optional().nullable(),rowsCount:m().int().min(1).max(24).optional().nullable(),columnsCountTablet:m().int().min(1).max(12).optional().nullable(),columnsCountMobile:m().int().min(1).max(12).optional().nullable(),rowsCountTablet:m().int().min(1).max(24).optional().nullable(),rowsCountMobile:m().int().min(1).max(24).optional().nullable(),contentAlignment:M(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:M(["left","center","right"]).optional().nullable(),cellsPerPage:m().int().min(1).max(100).optional().nullable(),repeatableEnabled:O().optional().nullable(),pageParam:k().min(1).max(40).optional().nullable(),syncUrl:O().optional().nullable(),showNumbers:O().optional().nullable(),showPrevNext:O().optional().nullable(),showFirstLast:O().optional().nullable(),maxVisiblePages:m().min(0).max(50).optional().nullable(),prevLabel:k().max(24).optional().nullable(),nextLabel:k().max(24).optional().nullable(),firstLabel:k().max(24).optional().nullable(),lastLabel:k().max(24).optional().nullable(),scrollToTopOnChange:O().optional().nullable(),explicitFirstPage:O().optional().nullable()}).optional().nullable()}),wr={columnsCount:2,rowsCount:2};function Ho(e,t="desktop"){const n=wr,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*r,i*a,l.length),c=Array.from({length:s},(u,f)=>{var d;return{childrenIds:Array.isArray((d=l[f])==null?void 0:d.childrenIds)?l[f].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function Go(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)??wr.columnsCount,o=(e==null?void 0:e.rowsCount)??wr.rowsCount,r=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function o1(e,t,n){const o=Math.max(1,e),r=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(r/o))}function r1(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const a1={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 i1({style:e,props:t}){const n=a1;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const o=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return o<=0?0:Math.max(5,o)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function l1(e){return Math.max(1,e)}function s1(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function c1(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 u1({style:e,props:t}){const n=i1({style:e,props:t}),o=Ho(t,"desktop"),r=Ho(t,"tablet"),i=Ho(t,"mobile"),a=Math.max(Go(t,"desktop"),Go(t,"tablet"),Go(t,"mobile")),l=F.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(C,R)=>o.cells[R]??{childrenIds:[]}),[o.cells,a]),s=F.useMemo(()=>r1(l,a),[l,a]),c=l1(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,f=(e==null?void 0:e.rowsGap)??n.itemGap,d=F.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=F.useMemo(()=>s1(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),p=e==null?void 0:e.padding,b=e==null?void 0:e.margin,x=((b==null?void 0:b.left)??0)+((b==null?void 0:b.right)??0),w={width:x>0?`calc(100% - ${x}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:c1(e==null?void 0:e.borderRadius),padding:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,margin:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,fontFamily:n.fontFamily},v=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",_={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${n.buttonBorderColor}`,backgroundColor:n.buttonBg,backgroundImage:"none",color:n.buttonColor,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},S={..._,color:n.arrowColor},$=F.useMemo(()=>{const C=E=>`grid-template-columns:repeat(${E.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${o1(E.columnsCount,E.rowsCount,a)},auto)`,R=(E,P)=>{const T=Math.min(Math.max(1,P.columnsCount*P.rowsCount),Math.max(1,a));return T>=a?"":`${E} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${T+1}){display:none}`},I=`.${d}`;return`${I} .ahd-pgn-item{display:grid;${C(o)};column-gap:${u}px;row-gap:${f}px}${I} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+R(I,o)+`@media (max-width:${Ue}px){${I} .ahd-pgn-item{${C(r)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+R(I,r)+`}@media (max-width:${Le}px){${I} .ahd-pgn-item{${C(i)}}${I} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+R(I,i)+"}"},[d,o,r,i,a,u,f,n.itemGap]),y=(C,R,I)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${C}`,"data-ahd-page":I,style:S,"aria-label":R,children:R});return g.jsxs("div",{className:`${d} ahd-pagination`,style:w,"data-total-pages":c,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":n.buttonBg,"data-btn-color":n.buttonColor,"data-btn-border":n.buttonBorderColor,"data-active-bg":n.activeButtonBg,"data-active-color":n.activeButtonColor,"data-active-border":n.activeButtonBorderColor,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((C,R)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":R,style:R===0?void 0:{display:"none"},children:C.map((I,E)=>g.jsx("div",{className:"ahd-pgn-cell",children:(I.childrenIds??[]).map(P=>g.jsx(ke,{id:P},P))},E))},R))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&g.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:v,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&&y("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&y("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&g.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:h.map((C,R)=>C==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{..._,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${R}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":C,"aria-label":`Page ${C}`,"aria-current":C===1?"true":void 0,style:C===1?{..._,backgroundColor:n.activeButtonBg,color:n.activeButtonColor,border:`1px solid ${n.activeButtonBorderColor}`}:_,children:C},C))}),n.showPrevNext&&y("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&y("ahd-pgn-last",n.lastLabel,c)]})]})}const d1=A({responsive:Be,style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable(),tableAlign:M(["left","center","right"]).optional().nullable(),fontSize:m().optional().nullable(),fontFamily:k().optional().nullable(),color:k().optional().nullable(),backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:m().optional().nullable(),cellPadding:m().optional().nullable(),headerBackground:k().optional().nullable(),headerColor:k().optional().nullable(),stripedRowColor:k().optional().nullable(),stripedColColor:k().optional().nullable()}).optional().nullable(),props:A({rows:m().int().min(1).max(50).optional().nullable(),columns:m().int().min(1).max(20).optional().nullable(),hasHeader:O().optional().nullable(),cells:X(k()).optional().nullable(),caption:k().optional().nullable(),width:k().optional().nullable(),enableScroll:O().optional().nullable(),enableScrollTablet:O().optional().nullable(),enableScrollMobile:O().optional().nullable()}).optional().nullable()}),Ke={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function ca(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function ua(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function h1(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function f1(e){if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let p1=0;function bs(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Bn(e){return e?bs(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Uo(e){return e?bs(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function m1({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ke.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ke.columns)),i=(t==null?void 0:t.hasHeader)??Ke.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(j,V)=>a[V]??""),c=(e==null?void 0:e.borderColor)??Ke.borderColor,u=(e==null?void 0:e.borderWidth)??Ke.borderWidth,f=(e==null?void 0:e.cellPadding)??Ke.cellPadding,d=(e==null?void 0:e.headerBackground)??Ke.headerBackground,h=(e==null?void 0:e.headerColor)??Ke.headerColor,p=(e==null?void 0:e.color)??Ke.color,b=(e==null?void 0:e.fontSize)??Ke.fontSize,x=(e==null?void 0:e.backgroundColor)??null,w=(e==null?void 0:e.stripedRowColor)===void 0?Ke.stripedRowColor:e.stripedRowColor,v=(e==null?void 0:e.stripedColColor)??null,_=`ahd-table-${++p1}`,S={padding:ca(e==null?void 0:e.padding),margin:ua(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},$=f1(e==null?void 0:e.fontFamily),y={borderCollapse:"collapse",width:(t==null?void 0:t.width)||"100%",fontSize:b,textAlign:(e==null?void 0:e.textAlign)??void 0},C={border:`${u}px solid ${c}`,padding:f,verticalAlign:"top"},R=$?`.${_}, .${_} * { font-family: ${$} !important; }`:"",I=w?`.${_} > tbody > tr:nth-child(even) > td { ${Bn(w)} }`:"",E=v?`.${_} > tbody > tr > td:nth-child(even) { ${Bn(v)} }`:"",P=`
285
+ .${_} { ${Bn(x)} }
281
286
  ${R}
282
- ${M}
283
- `,L=Array.from({length:o},(O,q)=>q),H=Array.from({length:a},(O,q)=>q),F=O=>O.includes("<"),j=(O,q,B,Y)=>n?n({row:O,col:q,value:B,isHeader:Y}):F(B)?g.jsx("span",{dangerouslySetInnerHTML:{__html:B}}):B.split(`
284
- `).map((de,oe,ee)=>g.jsxs(G.Fragment,{children:[de,oe<ee.length-1?g.jsx("br",{}):null]},oe));return g.jsxs("div",{className:"table-block",style:w,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsxs("table",{className:$,style:N,role:"table",children:[t!=null&&t.caption?g.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:g.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?g.jsx("thead",{children:g.jsx("tr",{children:H.map(O=>g.jsx("th",{scope:"col",style:{...A,fontWeight:600},children:g.jsx("div",{className:"ahd-table-cell-text",children:j(0,O,s[O]??"",!0)})},O))})}):null,g.jsx("tbody",{children:L.slice(i?1:0).map(O=>g.jsx("tr",{children:H.map(q=>g.jsx("td",{style:A,children:g.jsx("div",{className:"ahd-table-cell-text",children:j(O,q,s[O*a+q]??"",!1)})},q))},O))})]})]})}const Kr=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ix=C({responsive:Te,style:C({padding:Kr,margin:Kr,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({demoId:x().default(""),iframeSrc:x().default(""),width:D([f(),x()]).optional().nullable(),height:D([f(),x()]).optional().nullable(),borderRadius:f().optional().nullable(),borderColor:x().optional().nullable(),borderWidth:f().optional().nullable()}).optional().nullable()}),Jr=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,lx=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,wo=1440,ko=830,sx=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:a,borderRadius:i,borderColor:r,borderWidth:l}=t??{},s={padding:Jr(e==null?void 0:e.padding),margin:Jr(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return g.jsx(g.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return g.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:g.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${lx(a,"100%")})`,aspectRatio:`${wo} / ${ko}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:r?`${l??1}px solid ${r}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:wo,height:ko,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:wo,height:ko,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},xl=Kh(()=>C({id:x().optional(),name:x().optional(),href:x().optional(),menuImage:x().optional(),children:W(xl).optional()})),_o=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),cx=C({menuId:x().default(""),useCustomMenu:P().default(!1),stickyNav:P().default(!1),stickyNavTablet:P().optional().nullable(),stickyNavMobile:P().optional().nullable(),position:I(["left","center","right"]).default("left"),orientation:I(["horizontal","vertical"]).default("horizontal"),menuItems:W(xl).optional().nullable(),startChildrenIds:W(x()).optional().nullable(),endChildrenIds:W(x()).optional().nullable(),layout:I(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:x().default("transparent"),textColor:x().default("#000000"),burgerDropdownBackgroundColor:x().optional().nullable(),submenuBackgroundColor:x().optional().nullable(),submenuRadius:f().optional().nullable(),submenuIconSize:f().optional().nullable(),submenuPadding:_o,submenuItemPadding:_o,submenuMinWidth:f().optional().nullable(),fontSize:x().default("14px"),fontFamily:x().optional().nullable(),fontWeight:x().default("400"),padding:x().default("8px 16px"),blockPadding:_o,gap:x().default("16px"),showIcons:P().default(!0),iconSize:x().default("24px")}),ux=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:cx.optional().nullable()}),dx={left:"flex-start",center:"center",right:"flex-end"},hx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,fx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,px=e=>e?e.left+e.right:0,mx=(e,t,n=!1,o,a)=>{const i=px(a);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:hx(o),margin:fx(a),justifyContent:n?"space-between":dx[t]||"flex-start"}},$o=(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}),gx=(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"}),bx={position:"relative"},vx=(e,t,n,o,a,i,r,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??a,fontFamily:r||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",backgroundColor:(l==null?void 0:l.backgroundColor)||void 0,...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),xx=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),Sx=e=>({paddingLeft:e===0?"0":"12px"}),wx={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},kx=e=>({color:e});function _x(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",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}`].join(""),i=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${o};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),r=`(max-width:${je}px)`;return a+`@media ${r}{${i}}@container ahd-page ${r}{${i}}`}const $x=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,a=t.stickyNavMobile??o,i=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 r=n?i(!0):"";if(o!==n){const l=`(max-width:${je}px)`;r+=`@media ${l}{${i(o)}}`,r+=`@container ahd-page ${l}{${i(o)}}`}if(a!==o){const l=`(max-width:${Ae}px)`;r+=`@media ${l}{${i(a)}}`,r+=`@container ahd-page ${l}{${i(a)}}`}return r},Cx=e=>{if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Xr=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},Vo=(e,t,n,o,a,i,r,l,s,c,u,p,d=0)=>!e||e.length===0?null:g.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:gx(i,d,r),children:e.map((h,m)=>g.jsxs("li",{style:bx,children:[g.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},onClick:b=>b.stopPropagation(),children:g.jsxs("a",{href:h.href||"#",style:vx(l,!!h.menuImage,t,n,o,a,p,h),children:[l&&h.menuImage&&g.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:xx(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&g.jsx("div",{style:Sx(d),children:Vo(h.children,t,n,o,a,"vertical",r,l,s,c,u,p,d+1)})]},h.id||m))}),Ax=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:a,stickyNavMobile:i,menuItems:r,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:p="horizontal",backgroundColor:d="transparent",textColor:h="#000000",burgerDropdownBackgroundColor:m,fontSize:b="14px",fontFamily:v,fontWeight:k="400",padding:S="8px 16px",blockPadding:$,blockMargin:w,gap:_="16px",showIcons:N=!0,iconSize:A="24px",borderColor:y,borderWidth:R,borderRadius:M,bare:T}=e??{};if(!(Array.isArray(r)&&r.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const H=c==="logo-menu"||c==="logo-menu-cta",F=c==="menu-cta"||c==="logo-menu-cta",j=H||F,O=u==="right"?"end":u==="center"?"center":"start",q=G.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),B=t||q,Y=(T==null?void 0:T.toggleId)??`ahd-menu-toggle-${B}`,de=(T==null?void 0:T.listId)??`ahd-menu-list-${B}`,oe=Cx(v);if(T)return g.jsx(g.Fragment,{children:Vo(r,h,b,k,S,p,_,N,A,Y,de,oe)});const ee=$x(B,{stickyNav:o,stickyNavTablet:a,stickyNavMobile:i}),Z=_x(B,{dropdownBackground:m??(d!=="transparent"?d:null)});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Z}},B),ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${B} ahd-menu-sticky-${B}`,"data-block":"menu","data-layout":c,style:{...mx(d,u,j,$,w),...y?{borderStyle:"solid",borderColor:y,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...M!=null?{borderRadius:typeof M=="number"?`${M}px`:`${(M==null?void 0:M.topLeft)??0}px ${(M==null?void 0:M.topRight)??0}px ${(M==null?void 0:M.bottomRight)??0}px ${(M==null?void 0:M.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:Y,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":de,style:wx,onClick:J=>J.stopPropagation()}),g.jsx("label",{htmlFor:Y,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Xr(Y)}),H&&g.jsx("div",{className:"ahd-menu-start",style:$o("start"),children:(l??[]).map(J=>g.jsx(ve,{id:J},J))}),g.jsx("div",{className:"ahd-menu-center",style:$o(O,j),children:Vo(r,h,b,k,S,p,_,N,A,Y,de,oe)}),F&&g.jsx("div",{className:"ahd-menu-end",style:$o("end"),children:(s??[]).map(J=>g.jsx(ve,{id:J},J))}),g.jsxs("label",{htmlFor:Y,className:"ahd-menu-burger","aria-hidden":"true",style:kx(h),onClick:Xr(Y),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},yx=C({id:x().optional(),label:x().optional(),href:x().optional(),textColor:x().optional().nullable()}),Nx=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Rx=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Ex=C({items:W(yx).optional().nullable(),separator:I(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:x().optional().nullable(),showHomeIcon:P().default(!1),homeHref:x().default("/"),collapseOnMobile:P().default(!0),currentItemLinked:P().default(!1),textColor:x().default("#595959"),currentItemColor:x().optional().nullable(),separatorColor:x().optional().nullable(),fontSize:x().default("14px"),fontFamily:x().optional().nullable(),fontWeight:x().default("400"),gap:x().default("8px"),blockPadding:Nx,blockMargin:Rx}),Ix=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:Ex.optional().nullable()}),Co={slash:"/",chevron:"›",dot:"•",pipe:"|"};function Mx(e,t){return e==="custom"?t||"›":e&&Co[e]?Co[e]:Co.chevron}function Tx(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),o=`(max-width:${Ae}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const Px=e=>{if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Sl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ox=Sl,Lx="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",zx=({size:e,color:t})=>g.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:g.jsx("path",{d:Lx,fill:t})}),jx=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),Bx=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:a,showHomeIcon:i=!1,homeHref:r="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:p,fontSize:d="14px",fontFamily:h,fontWeight:m="400",gap:b="8px",blockPadding:v,blockMargin:k}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const $=Px(h),w=Mx(o,a),_=n.length-1,N=G.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),A=l?Tx(N):"",y=(R,M,T)=>{const L=(T?u:null)||R.textColor||c,H=!T||s,F={color:L,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:R,index:M,isLast:T,style:F}):H?g.jsx("a",{href:R.href||"#",style:F,"aria-current":T?"page":void 0,children:R.label||""}):g.jsx("span",{style:F,"aria-current":"page",children:R.label||""})};return g.jsxs(g.Fragment,{children:[A&&g.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${N}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Sl(v),margin:Ox(k)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:$,fontWeight:m},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:r||"/",style:{display:"flex",color:c},children:g.jsx(zx,{size:parseInt(d,10)||14,color:c})}),g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]}),n.map((R,M)=>{const T=M===_,L=l&&M!==0&&!T;return g.jsxs("li",{className:L?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[y(R,M,T),!T&&g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]},R.id||M)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(jx,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]})]})})]})},Dx=C({style:C({}).passthrough().optional().nullable(),props:C({formId:x().default(""),formName:x().default(""),iframeSrc:x().default(""),width:x().default("100%"),height:x().default("500px"),heightTablet:x().optional(),heightMobile:x().optional(),alignment:I(["left","center","right"]).default("left")}).optional().nullable()}),Hx=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)}`},Fx=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:a=0}=e;return`${t}px ${n}px ${o}px ${a}px`},Gx=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:a,height:i,heightTablet:r,heightMobile:l,alignment:s="left",formName:c}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const u=s==="center"?"center":s==="right"?"flex-end":"flex-start",p=t??{},d={display:"flex",justifyContent:u,width:"100%",padding:Fx(p.padding),backgroundColor:p.backgroundColor||void 0,borderRadius:p.borderRadius||void 0},h=Hx(`${n}|${o??""}`),m=r||l?`
285
- ${r?`${dn} { #${h} { height: ${r} !important; } }`:""}
286
- ${l?`${Oe} { #${h} { height: ${l} !important; } }`:""}
287
- `:"";return g.jsxs(g.Fragment,{children:[m&&g.jsx("style",{dangerouslySetInnerHTML:{__html:m}}),g.jsx("div",{style:d,children:g.jsx("iframe",{id:h,src:o,title:c||"Form",style:{width:a||"100%",height:i||"500px",border:"none",display:"block",borderRadius:p.borderRadius||void 0},loading:"lazy"})})]})},Ux=C({style:C({}).passthrough().optional().nullable(),props:C({bannerId:x().default(""),bannerName:x().optional().nullable(),contentDocument:Lt(x(),an()).optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable()}),Zx=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Wx=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},qx=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:a}=e??{};return t?n&&n.root?g.jsx("div",{className:"app-banner-picker-block",style:{...Zx(o),...Wx(a)},children:g.jsx(sn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},Vx=C({style:C({}).passthrough().optional().nullable(),props:C({faqGroupId:x().default(""),faqGroupName:x().optional().nullable(),contentDocument:Lt(x(),an()).optional().nullable(),padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable()}),Yx=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},Kx=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},Jx=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:a}=e??{};return t?!n||!n.root?g.jsx(g.Fragment,{}):g.jsx("div",{className:"faq-picker-block",style:{...Yx(o),...Kx(a)},children:g.jsx(sn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},Xx=C({style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({text:x().optional().nullable(),targetId:x().optional().nullable(),backgroundColor:x().optional().nullable(),textColor:x().optional().nullable(),fontSize:f().optional().nullable(),borderRadius:f().optional().nullable(),paddingX:f().optional().nullable(),paddingY:f().optional().nullable(),marginX:f().optional().nullable(),marginY:f().optional().nullable(),displayMode:I(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),Ye={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 Qx=0;function wl({style:e,props:t}){var k,S;const n=((k=t==null?void 0:t.text)==null?void 0:k.trim())||Ye.text,o=((S=t==null?void 0:t.targetId)==null?void 0:S.trim())||Ye.targetId,a=(t==null?void 0:t.backgroundColor)??Ye.backgroundColor,i=(t==null?void 0:t.textColor)??Ye.textColor,r=(t==null?void 0:t.fontSize)??Ye.fontSize,l=(t==null?void 0:t.borderRadius)??Ye.borderRadius,s=(t==null?void 0:t.paddingX)??Ye.paddingX,c=(t==null?void 0:t.paddingY)??Ye.paddingY,u=(t==null?void 0:t.marginX)??Ye.marginX,p=(t==null?void 0:t.marginY)??Ye.marginY,d="always-visible",h=`skip-link-${++Qx}`,m={padding:Ma(e==null?void 0:e.padding),margin:Ta(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
287
+ .${_} > tbody > tr > td > .ahd-table-cell-text { ${Uo(p)} display: block; }
288
+ .${_} > thead > tr > th { ${Bn(d)} }
289
+ .${_} > thead > tr > th > .ahd-table-cell-text { ${Uo(h)} display: block; }
290
+ .${_} > caption > .ahd-table-cell-text { ${Uo(p)} display: block; }
291
+ ${I}
292
+ ${E}
293
+ `,T=Array.from({length:o},(j,V)=>V),z=Array.from({length:r},(j,V)=>V),H=j=>j.includes("<"),Z=(j,V,Y,K)=>n?n({row:j,col:V,value:Y,isHeader:K}):H(Y)?g.jsx("span",{dangerouslySetInnerHTML:{__html:Y}}):Y.split(`
294
+ `).map((G,oe,le)=>g.jsxs(F.Fragment,{children:[G,oe<le.length-1?g.jsx("br",{}):null]},oe));return g.jsxs("div",{className:"table-block",style:S,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsxs("table",{className:_,style:y,role:"table",children:[t!=null&&t.caption?g.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:g.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,i?g.jsx("thead",{children:g.jsx("tr",{children:z.map(j=>g.jsx("th",{scope:"col",style:{...C,fontWeight:600},children:g.jsx("div",{className:"ahd-table-cell-text",children:Z(0,j,s[j]??"",!0)})},j))})}):null,g.jsx("tbody",{children:T.slice(i?1:0).map(j=>g.jsx("tr",{children:z.map(V=>g.jsx("td",{style:C,children:g.jsx("div",{className:"ahd-table-cell-text",children:Z(j,V,s[j*r+V]??"",!1)})},V))},j))})]})]})}const Li=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),g1=A({responsive:Be,style:A({padding:Li,margin:Li,textAlign:M(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:k().default(""),iframeSrc:k().default(""),width:D([m(),k()]).optional().nullable(),height:D([m(),k()]).optional().nullable(),borderRadius:m().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:m().optional().nullable()}).optional().nullable()}),zi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,b1=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,Zo=1440,Wo=830,x1=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:zi(e==null?void 0:e.padding),margin:zi(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!o)return g.jsx(g.Fragment,{});const c=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return g.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:c},children:g.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${b1(r,"100%")})`,aspectRatio:`${Zo} / ${Wo}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:Zo,height:Wo,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:Zo,height:Wo,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},xs=Yf(()=>A({id:k().optional(),name:k().optional(),href:k().optional(),menuImage:k().optional(),children:X(xs).optional()})),qo=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),v1=A({menuId:k().default(""),useCustomMenu:O().default(!1),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:M(["left","center","right"]).default("left"),orientation:M(["horizontal","vertical"]).default("horizontal"),menuItems:X(xs).optional().nullable(),startChildrenIds:X(k()).optional().nullable(),endChildrenIds:X(k()).optional().nullable(),layout:M(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:k().default("transparent"),textColor:k().default("#000000"),burgerDropdownBackgroundColor:k().optional().nullable(),submenuBackgroundColor:k().optional().nullable(),submenuRadius:m().optional().nullable(),submenuIconSize:m().optional().nullable(),submenuPadding:qo,submenuItemPadding:qo,submenuMinWidth:m().optional().nullable(),fontSize:k().default("14px"),fontFamily:k().optional().nullable(),fontWeight:k().default("400"),padding:k().default("8px 16px"),blockPadding:qo,gap:k().default("16px"),showIcons:O().default(!0),iconSize:k().default("24px")}),w1=A({style:A({}).passthrough().optional().nullable(),responsive:Be,props:v1.optional().nullable()}),S1={left:"flex-start",center:"center",right:"flex-end"},k1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$1=e=>e?e.left+e.right:0,C1=(e,t,n=!1,o,r)=>{const i=$1(r);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:k1(o),margin:_1(r),justifyContent:n?"space-between":S1[t]||"flex-start"}},Vo=(e,t=!1)=>({display:"flex",alignItems:"center",flex:t?"1 1 auto":"0 0 auto",justifyContent:e==="start"?"flex-start":e==="end"?"flex-end":"center",minWidth:0}),A1=(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"}),y1={position:"relative"},I1=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",backgroundColor:(l==null?void 0:l.backgroundColor)||void 0,...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),R1=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),E1=e=>({paddingLeft:e===0?"0":"12px"}),N1={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},M1=e=>({color:e});function T1(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`,`${n} .ahd-menu-backdrop{display:none}`].join(""),i=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${o};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),a=`(max-width:${Ue}px)`;return r+`@media ${a}{${i}}@container ahd-page ${a}{${i}}`}const P1=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,r=t.stickyNavMobile??o,i=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 a=n?i(!0):"";if(o!==n){const l=`(max-width:${Ue}px)`;a+=`@media ${l}{${i(o)}}`,a+=`@container ahd-page ${l}{${i(o)}}`}if(r!==o){const l=`(max-width:${Le}px)`;a+=`@media ${l}{${i(r)}}`,a+=`@container ahd-page ${l}{${i(r)}}`}return a},O1=e=>{if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},ji=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},Sr=(e,t,n,o,r,i,a,l,s,c,u,f,d=0)=>!e||e.length===0?null:g.jsx("ul",{id:d===0?u:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:A1(i,d,a),children:e.map((h,p)=>g.jsxs("li",{style:y1,children:[g.jsx("label",{htmlFor:c,className:"ahd-menu-item-label",style:{display:"contents"},onClick:b=>b.stopPropagation(),children:g.jsxs("a",{href:h.href||"#",style:I1(l,!!h.menuImage,t,n,o,r,f,h),children:[l&&h.menuImage&&g.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:R1(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&g.jsx("div",{style:E1(d),children:Sr(h.children,t,n,o,r,"vertical",a,l,s,c,u,f,d+1)})]},h.id||p))}),L1=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:r,stickyNavMobile:i,menuItems:a,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:f="horizontal",backgroundColor:d="transparent",textColor:h="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:v="8px 16px",blockPadding:_,blockMargin:S,gap:$="16px",showIcons:y=!0,iconSize:C="24px",borderColor:R,borderWidth:I,borderRadius:E,bare:P}=e??{};if(!(Array.isArray(a)&&a.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const z=c==="logo-menu"||c==="logo-menu-cta",H=c==="menu-cta"||c==="logo-menu-cta",Z=z||H,j=u==="right"?"end":u==="center"?"center":"start",V=F.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),Y=t||V,K=(P==null?void 0:P.toggleId)??`ahd-menu-toggle-${Y}`,G=(P==null?void 0:P.listId)??`ahd-menu-list-${Y}`,oe=O1(x);if(P)return g.jsx(g.Fragment,{children:Sr(a,h,b,w,v,f,$,y,C,K,G,oe)});const le=P1(Y,{stickyNav:o,stickyNavTablet:r,stickyNavMobile:i}),se=T1(Y,{dropdownBackground:p??(d!=="transparent"?d:null)});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:se}},Y),le&&g.jsx("style",{dangerouslySetInnerHTML:{__html:le}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${Y} ahd-menu-sticky-${Y}`,"data-block":"menu","data-layout":c,style:{...C1(d,u,Z,_,S),...R?{borderStyle:"solid",borderColor:R,borderWidth:I?`${I.top??1}px ${I.right??1}px ${I.bottom??1}px ${I.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:[g.jsx("input",{type:"checkbox",id:K,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":G,style:N1,onClick:ce=>ce.stopPropagation()}),g.jsx("label",{htmlFor:K,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:ji(K)}),z&&g.jsx("div",{className:"ahd-menu-start",style:Vo("start"),children:(l??[]).map(ce=>g.jsx(ke,{id:ce},ce))}),g.jsx("div",{className:"ahd-menu-center",style:Vo(j,Z),children:Sr(a,h,b,w,v,f,$,y,C,K,G,oe)}),H&&g.jsx("div",{className:"ahd-menu-end",style:Vo("end"),children:(s??[]).map(ce=>g.jsx(ke,{id:ce},ce))}),g.jsxs("label",{htmlFor:K,className:"ahd-menu-burger","aria-hidden":"true",style:M1(h),onClick:ji(K),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},z1=A({id:k().optional(),label:k().optional(),href:k().optional(),textColor:k().optional().nullable()}),j1=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),B1=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),D1=A({items:X(z1).optional().nullable(),separator:M(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:k().optional().nullable(),showHomeIcon:O().default(!1),homeHref:k().default("/"),collapseOnMobile:O().default(!0),currentItemLinked:O().default(!1),textColor:k().default("#595959"),currentItemColor:k().optional().nullable(),separatorColor:k().optional().nullable(),fontSize:k().default("14px"),fontFamily:k().optional().nullable(),fontWeight:k().default("400"),gap:k().default("8px"),blockPadding:j1,blockMargin:B1}),F1=A({style:A({}).passthrough().optional().nullable(),responsive:Be,props:D1.optional().nullable()}),Yo={slash:"/",chevron:"›",dot:"•",pipe:"|"};function H1(e,t){return e==="custom"?t||"›":e&&Yo[e]?Yo[e]:Yo.chevron}function G1(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),o=`(max-width:${Le}px)`;return`@media ${o}{${n}}@container ahd-page ${o}{${n}}`}const U1=e=>{if(!e)return;const t=rt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},vs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Z1=vs,W1="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",q1=({size:e,color:t})=>g.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:g.jsx("path",{d:W1,fill:t})}),V1=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),Y1=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:r,showHomeIcon:i=!1,homeHref:a="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:f,fontSize:d="14px",fontFamily:h,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const _=U1(h),S=H1(o,r),$=n.length-1,y=F.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),C=l?G1(y):"",R=(I,E,P)=>{const T=(P?u:null)||I.textColor||c,z=!P||s,H={color:T,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:I,index:E,isLast:P,style:H}):z?g.jsx("a",{href:I.href||"#",style:H,"aria-current":P?"page":void 0,children:I.label||""}):g.jsx("span",{style:H,"aria-current":"page",children:I.label||""})};return g.jsxs(g.Fragment,{children:[C&&g.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${y}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:vs(x),margin:Z1(w)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:_,fontWeight:p},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:a||"/",style:{display:"flex",color:c},children:g.jsx(q1,{size:parseInt(d,10)||14,color:c})}),g.jsx("span",{"aria-hidden":"true",style:{color:f||c},children:S})]}),n.map((I,E)=>{const P=E===$,T=l&&E!==0&&!P;return g.jsxs("li",{className:T?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[R(I,E,P),!P&&g.jsx("span",{"aria-hidden":"true",style:{color:f||c},children:S})]},I.id||E)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(V1,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:f||c},children:S})]})]})})]})},K1=A({style:A({}).passthrough().optional().nullable(),props:A({formId:k().default(""),formName:k().default(""),iframeSrc:k().default(""),width:k().default("100%"),height:k().default("500px"),heightTablet:k().optional(),heightMobile:k().optional(),autoHeight:O().default(!1),alignment:M(["left","center","right"]).default("left")}).optional().nullable()}),J1=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)}`},X1=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},Q1=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,autoHeight:s=!1,alignment:c="left",formName:u}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const f=c==="center"?"center":c==="right"?"flex-end":"flex-start",d=t??{},h={display:"flex",justifyContent:f,width:"100%",padding:X1(d.padding),backgroundColor:d.backgroundColor||void 0,borderRadius:d.borderRadius||void 0},p=J1(`${n}|${o??""}`),b=!s&&(a||l)?`
295
+ ${a?`${It} { #${p} { height: ${a} !important; } }`:""}
296
+ ${l?`${Oe} { #${p} { height: ${l} !important; } }`:""}
297
+ `:"",x=s?`
298
+ (function(){
299
+ var el = document.getElementById(${JSON.stringify(p)});
300
+ if (!el) return;
301
+ window.addEventListener('message', function(e){
302
+ var d = e.data;
303
+ if (!d || d.type !== 'form-builder:height') return;
304
+ if (e.source !== el.contentWindow) return;
305
+ var h = Number(d.height);
306
+ if (!isFinite(h) || h <= 0) return;
307
+ el.style.height = Math.ceil(h) + 'px';
308
+ });
309
+ })();
310
+ `:"";return g.jsxs(g.Fragment,{children:[b&&g.jsx("style",{dangerouslySetInnerHTML:{__html:b}}),g.jsx("div",{style:h,children:g.jsx("iframe",{id:p,src:o,title:u||"Form",style:{width:r||"100%",height:s?"auto":i||"500px",border:"none",display:"block",borderRadius:d.borderRadius||void 0},scrolling:s?"no":void 0,loading:"lazy"})}),x&&g.jsx("script",{dangerouslySetInnerHTML:{__html:x}})]})},ew=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:k().default(""),bannerName:k().optional().nullable(),contentDocument:Wt(k(),bn()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),tw=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},nw=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},ow=({props:e})=>{const{bannerId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?n&&n.root?g.jsx("div",{className:"app-banner-picker-block",style:{...tw(o),...nw(r)},children:g.jsx(kn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},rw=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:k().default(""),faqGroupName:k().optional().nullable(),contentDocument:Wt(k(),bn()).optional().nullable(),padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable()}).optional().nullable()}),aw=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},iw=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},lw=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:o,margin:r}=e??{};return t?!n||!n.root?g.jsx(g.Fragment,{}):g.jsx("div",{className:"faq-picker-block",style:{...aw(o),...iw(r)},children:g.jsx(kn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},sw=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:k().optional().nullable(),targetId:k().optional().nullable(),backgroundColor:k().optional().nullable(),textColor:k().optional().nullable(),fontSize:m().optional().nullable(),borderRadius:m().optional().nullable(),paddingX:m().optional().nullable(),paddingY:m().optional().nullable(),marginX:m().optional().nullable(),marginY:m().optional().nullable(),displayMode:M(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),Qe={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 cw=0;function ws({style:e,props:t}){var w,v;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||Qe.text,o=((v=t==null?void 0:t.targetId)==null?void 0:v.trim())||Qe.targetId,r=(t==null?void 0:t.backgroundColor)??Qe.backgroundColor,i=(t==null?void 0:t.textColor)??Qe.textColor,a=(t==null?void 0:t.fontSize)??Qe.fontSize,l=(t==null?void 0:t.borderRadius)??Qe.borderRadius,s=(t==null?void 0:t.paddingX)??Qe.paddingX,c=(t==null?void 0:t.paddingY)??Qe.paddingY,u=(t==null?void 0:t.marginX)??Qe.marginX,f=(t==null?void 0:t.marginY)??Qe.marginY,d="always-visible",h=`skip-link-${++cw}`,p={padding:ca(e==null?void 0:e.padding),margin:ua(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
288
311
  display:inline-block;
289
- background:${a};
312
+ background:${r};
290
313
  color:${i};
291
- font-size:${r}px;
314
+ font-size:${a}px;
292
315
  font-weight:600;
293
316
  border-radius:${l}px;
294
317
  padding:${c}px ${s}px;
295
- margin:${p}px ${u}px;
318
+ margin:${f}px ${u}px;
296
319
  text-decoration:none;
297
320
  line-height:1.2;
298
321
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
299
- `,v=`.${h}{${b}}
300
- .${h}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return g.jsxs("div",{className:"skip-link-block",style:m,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),g.jsx("a",{href:`#${o}`,className:h,"data-skip-link":d,children:n})]})}const e1=C({style:C({padding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),margin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({renderMode:I(["inline","floating"]).optional().nullable(),position:I(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:x().optional().nullable(),triggerText:x().optional().nullable(),showLabelText:P().optional().nullable(),triggerBg:x().optional().nullable(),triggerColor:x().optional().nullable(),triggerFontSize:f().optional().nullable(),triggerBorderRadius:f().optional().nullable(),triggerPadding:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),triggerMargin:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),icon:I(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:C({contrast:P().optional().nullable(),invert:P().optional().nullable(),saturation:P().optional().nullable(),highlightLinks:P().optional().nullable(),textSize:P().optional().nullable(),textSpacing:P().optional().nullable(),lineHeight:P().optional().nullable(),hideImages:P().optional().nullable(),bigCursor:P().optional().nullable(),reset:P().optional().nullable()}).optional().nullable()}).optional().nullable()}),Ke={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"},Ao={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 t1(e){return e&&Ao[e]?Ao[e]:Ao.accessibility}function n1(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${t1(e)}"/></svg>`}const o1={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function a1(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 kl(e){const{containerPos:t}=a1(e.position);return`
322
+ `,x=`.${h}{${b}}
323
+ .${h}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return g.jsxs("div",{className:"skip-link-block",style:p,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("a",{href:`#${o}`,className:h,"data-skip-link":d,children:n})]})}const uw=A({style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:M(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:M(["inline","floating"]).optional().nullable(),position:M(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:k().optional().nullable(),triggerText:k().optional().nullable(),showLabelText:O().optional().nullable(),triggerBg:k().optional().nullable(),triggerColor:k().optional().nullable(),triggerFontSize:m().optional().nullable(),triggerBorderRadius:m().optional().nullable(),triggerPadding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),triggerMargin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),icon:M(["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()}),et={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"},Ko={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 dw(e){return e&&Ko[e]?Ko[e]:Ko.accessibility}function hw(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${dw(e)}"/></svg>`}const fw={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function pw(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 Ss(e){const{containerPos:t}=pw(e.position);return`
301
324
  /* Accessibility Tools widget */
302
325
  .ahd-a11y-widget{position:relative;display:inline-block}
303
326
  .ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
@@ -329,15 +352,15 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
329
352
  html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
330
353
  html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
331
354
  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}
332
- `.trim()}function _l(e){const t={...o1,...e.features??{}},n=(p,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${p}" aria-pressed="false">${d}</button>`,o=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",a=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",i=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",r=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=n1(e.icon??"accessibility"),c=nx(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
355
+ `.trim()}function ks(e){const t={...fw,...e.features??{}},n=(f,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${f}" aria-pressed="false">${d}</button>`,o=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color &amp; Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",r=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",i=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",a=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=hw(e.icon??"accessibility"),c=h1(e.triggerText,e.showLabelText!==!1,"Accessibility"),u=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
333
356
  <div class="ahd-a11y-widget ahd-a11y-${l}">
334
357
  <button type="button" class="ahd-a11y-trigger" aria-label="${u}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${c!==null?`<span>${c}</span>`:""}</button>
335
358
  <div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
336
359
  <h2>Accessibility Tools</h2>
337
- ${o}${a}${i}${r}
360
+ ${o}${r}${i}${a}
338
361
  </div>
339
362
  </div>
340
- `.trim()}function $l(){return`
363
+ `.trim()}function _s(){return`
341
364
  (function(){
342
365
  var STORAGE_KEY='ahdA11yPrefs';
343
366
  // Classes that are mutually exclusive within their group
@@ -445,20 +468,20 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
445
468
  init();
446
469
  }
447
470
  })();
448
- `.trim()}function Cl({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??Ke.renderMode,o=(t==null?void 0:t.position)??Ke.position,a=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??Ke.triggerBg,r=(t==null?void 0:t.triggerColor)??Ke.triggerColor,l=(t==null?void 0:t.triggerLabel)??Ke.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??Ke.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??Ke.triggerBorderRadius,p=(t==null?void 0:t.triggerPadding)??Ke.triggerPadding,d=(t==null?void 0:t.triggerMargin)??Ke.triggerMargin,h=(t==null?void 0:t.icon)??Ke.icon,m={padding:Ma(e==null?void 0:e.padding),margin:Ta(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:a,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:h,triggerLabel:l},v=kl(b),k=`.ahd-a11y-trigger{background:${i};color:${r};font-size:${c}px;border-radius:${u}px;padding:${p.top}px ${p.right}px ${p.bottom}px ${p.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,S=_l(b),$=$l();return g.jsxs("div",{className:"accessibility-tools-block",style:m,"data-a11y-instance":"1",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:v+k}}),g.jsx("div",{dangerouslySetInnerHTML:{__html:S}}),g.jsx("script",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function r1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yo={exports:{}},Ko={exports:{}},Be={},ue={};ue.__esModule=!0;ue.extend=Al;ue.indexOf=u1;ue.escapeExpression=d1;ue.isEmpty=h1;ue.createFrame=f1;ue.blockParams=p1;ue.appendContextPath=m1;var i1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},l1=/[&<>"'`=]/g,s1=/[&<>"'`=]/;function c1(e){return i1[e]}function Al(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 Pa=Object.prototype.toString;ue.toString=Pa;var Jo=function(t){return typeof t=="function"};Jo(/x/)&&(ue.isFunction=Jo=function(e){return typeof e=="function"&&Pa.call(e)==="[object Function]"});ue.isFunction=Jo;var yl=Array.isArray||function(e){return e&&typeof e=="object"?Pa.call(e)==="[object Array]":!1};ue.isArray=yl;function u1(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function d1(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return s1.test(e)?e.replace(l1,c1):e}function h1(e){return!e&&e!==0?!0:!!(yl(e)&&e.length===0)}function f1(e){var t=Al({},e);return t._parent=e,t}function p1(e,t){return e.path=t,e}function m1(e,t){return(e?e+".":"")+t}var Xo={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(a,i){var r=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;r&&(l=r.start.line,s=r.end.line,c=r.start.column,u=r.end.column,a+=" - "+l+":"+c);for(var p=Error.prototype.constructor.call(this,a),d=0;d<n.length;d++)this[n[d]]=p[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{r&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=c,this.endColumn=u))}catch{}}o.prototype=new Error,t.default=o,e.exports=t.default})(Xo,Xo.exports);var De=Xo.exports,hn={},Qo={exports:{}};(function(e,t){t.__esModule=!0;var n=ue;t.default=function(o){o.registerHelper("blockHelperMissing",function(a,i){var r=i.inverse,l=i.fn;if(a===!0)return l(this);if(a===!1||a==null)return r(this);if(n.isArray(a))return a.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(a,i)):r(this);if(i.data&&i.ids){var s=n.createFrame(i.data);s.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:s}}return l(a,i)})},e.exports=t.default})(Qo,Qo.exports);var g1=Qo.exports,ea={exports:{}};(function(e,t){t.__esModule=!0;function n(r){return r&&r.__esModule?r:{default:r}}var o=ue,a=De,i=n(a);t.default=function(r){r.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,p=0,d="",h=void 0,m=void 0;s.data&&s.ids&&(m=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(h=o.createFrame(s.data));function b(w,_,N){h&&(h.key=w,h.index=_,h.first=_===0,h.last=!!N,m&&(h.contextPath=m+w)),d=d+c(l[w],{data:h,blockParams:o.blockParams([l[w],w],[m+w,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var v=l.length;p<v;p++)p in l&&b(p,p,p===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var k=[],S=l[Symbol.iterator](),$=S.next();!$.done;$=S.next())k.push($.value);l=k;for(var v=l.length;p<v;p++)b(p,p,p===l.length-1)}else(function(){var w=void 0;Object.keys(l).forEach(function(_){w!==void 0&&b(w,p-1),w=_,p++}),w!==void 0&&b(w,p-1,!0)})();return p===0&&(d=u(this)),d})},e.exports=t.default})(ea,ea.exports);var b1=ea.exports,ta={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=De,a=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(ta,ta.exports);var v1=ta.exports,na={exports:{}};(function(e,t){t.__esModule=!0;function n(r){return r&&r.__esModule?r:{default:r}}var o=ue,a=De,i=n(a);t.default=function(r){r.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return o.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||o.isEmpty(l)?s.inverse(this):s.fn(this)}),r.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return r.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(na,na.exports);var x1=na.exports,oa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],a=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var r=1;a.hash.level!=null?r=a.hash.level:a.data&&a.data.level!=null&&(r=a.data.level),o[0]=r,n.log.apply(n,o)})},e.exports=t.default})(oa,oa.exports);var S1=oa.exports,aa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,a,i){return o&&i.lookupProperty(o,a)})},e.exports=t.default})(aa,aa.exports);var w1=aa.exports,ra={exports:{}};(function(e,t){t.__esModule=!0;function n(r){return r&&r.__esModule?r:{default:r}}var o=ue,a=De,i=n(a);t.default=function(r){r.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var c=s.fn;if(o.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=o.createFrame(s.data),u.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:o.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(ra,ra.exports);var k1=ra.exports;hn.__esModule=!0;hn.registerDefaultHelpers=z1;hn.moveHelperToHooks=j1;function kt(e){return e&&e.__esModule?e:{default:e}}var _1=g1,$1=kt(_1),C1=b1,A1=kt(C1),y1=v1,N1=kt(y1),R1=x1,E1=kt(R1),I1=S1,M1=kt(I1),T1=w1,P1=kt(T1),O1=k1,L1=kt(O1);function z1(e){$1.default(e),A1.default(e),N1.default(e),E1.default(e),M1.default(e),P1.default(e),L1.default(e)}function j1(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var Oa={},ia={exports:{}};(function(e,t){t.__esModule=!0;var n=ue;t.default=function(o){o.registerDecorator("inline",function(a,i,r,l){var s=a;return i.partials||(i.partials={},s=function(c,u){var p=r.partials;r.partials=n.extend({},p,i.partials);var d=a(c,u);return r.partials=p,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(ia,ia.exports);var B1=ia.exports;Oa.__esModule=!0;Oa.registerDefaultDecorators=G1;function D1(e){return e&&e.__esModule?e:{default:e}}var H1=B1,F1=D1(H1);function G1(e){F1.default(e)}var la={exports:{}};(function(e,t){t.__esModule=!0;var n=ue,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var r=n.indexOf(o.methodMap,i.toLowerCase());r>=0?i=r:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var r=o.methodMap[i];console[r]||(r="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[r].apply(console,s)}}};t.default=o,e.exports=t.default})(la,la.exports);var Nl=la.exports,Ht={};Ht.__esModule=!0;Ht.createProtoAccessControl=q1;Ht.resultIsAllowed=V1;Ht.resetLoggedProperties=K1;function U1(e){return e&&e.__esModule?e:{default:e}}var Qr=ue,Z1=Nl,W1=U1(Z1),Hn=Object.create(null);function q1(e){var t=Object.create(null);t.__proto__=!1,Qr.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,Qr.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function V1(e,t,n){return ei(typeof e=="function"?t.methods:t.properties,n)}function ei(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(Y1(t),!1)}function Y1(e){Hn[e]!==!0&&(Hn[e]=!0,W1.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
471
+ `.trim()}function $s({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??et.renderMode,o=(t==null?void 0:t.position)??et.position,r=(t==null?void 0:t.features)??void 0,i=(t==null?void 0:t.triggerBg)??et.triggerBg,a=(t==null?void 0:t.triggerColor)??et.triggerColor,l=(t==null?void 0:t.triggerLabel)??et.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,c=(t==null?void 0:t.triggerFontSize)??et.triggerFontSize,u=(t==null?void 0:t.triggerBorderRadius)??et.triggerBorderRadius,f=(t==null?void 0:t.triggerPadding)??et.triggerPadding,d=(t==null?void 0:t.triggerMargin)??et.triggerMargin,h=(t==null?void 0:t.icon)??et.icon,p={padding:ca(e==null?void 0:e.padding),margin:ua(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:o,features:r,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:h,triggerLabel:l},x=Ss(b),w=`.ahd-a11y-trigger{background:${i};color:${a};font-size:${c}px;border-radius:${u}px;padding:${f.top}px ${f.right}px ${f.bottom}px ${f.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,v=ks(b),_=_s();return g.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),g.jsx("div",{dangerouslySetInnerHTML:{__html:v}}),g.jsx("script",{dangerouslySetInnerHTML:{__html:_}}),g.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function mw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kr={exports:{}},_r={exports:{}},Ze={},fe={};fe.__esModule=!0;fe.extend=Cs;fe.indexOf=ww;fe.escapeExpression=Sw;fe.isEmpty=kw;fe.createFrame=_w;fe.blockParams=$w;fe.appendContextPath=Cw;var gw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},bw=/[&<>"'`=]/g,xw=/[&<>"'`=]/;function vw(e){return gw[e]}function Cs(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 da=Object.prototype.toString;fe.toString=da;var $r=function(t){return typeof t=="function"};$r(/x/)&&(fe.isFunction=$r=function(e){return typeof e=="function"&&da.call(e)==="[object Function]"});fe.isFunction=$r;var As=Array.isArray||function(e){return e&&typeof e=="object"?da.call(e)==="[object Array]":!1};fe.isArray=As;function ww(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function Sw(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return xw.test(e)?e.replace(bw,vw):e}function kw(e){return!e&&e!==0?!0:!!(As(e)&&e.length===0)}function _w(e){var t=Cs({},e);return t._parent=e,t}function $w(e,t){return e.path=t,e}function Cw(e,t){return(e?e+".":"")+t}var Cr={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(r,i){var a=i&&i.loc,l=void 0,s=void 0,c=void 0,u=void 0;a&&(l=a.start.line,s=a.end.line,c=a.start.column,u=a.end.column,r+=" - "+l+":"+c);for(var f=Error.prototype.constructor.call(this,r),d=0;d<n.length;d++)this[n[d]]=f[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{a&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:c,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:u,enumerable:!0})):(this.column=c,this.endColumn=u))}catch{}}o.prototype=new Error,t.default=o,e.exports=t.default})(Cr,Cr.exports);var We=Cr.exports,Cn={},Ar={exports:{}};(function(e,t){t.__esModule=!0;var n=fe;t.default=function(o){o.registerHelper("blockHelperMissing",function(r,i){var a=i.inverse,l=i.fn;if(r===!0)return l(this);if(r===!1||r==null)return a(this);if(n.isArray(r))return r.length>0?(i.ids&&(i.ids=[i.name]),o.helpers.each(r,i)):a(this);if(i.data&&i.ids){var s=n.createFrame(i.data);s.contextPath=n.appendContextPath(i.data.contextPath,i.name),i={data:s}}return l(r,i)})},e.exports=t.default})(Ar,Ar.exports);var Aw=Ar.exports,yr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=fe,r=We,i=n(r);t.default=function(a){a.registerHelper("each",function(l,s){if(!s)throw new i.default("Must pass iterator to #each");var c=s.fn,u=s.inverse,f=0,d="",h=void 0,p=void 0;s.data&&s.ids&&(p=o.appendContextPath(s.data.contextPath,s.ids[0])+"."),o.isFunction(l)&&(l=l.call(this)),s.data&&(h=o.createFrame(s.data));function b(S,$,y){h&&(h.key=S,h.index=$,h.first=$===0,h.last=!!y,p&&(h.contextPath=p+S)),d=d+c(l[S],{data:h,blockParams:o.blockParams([l[S],S],[p+S,null])})}if(l&&typeof l=="object")if(o.isArray(l))for(var x=l.length;f<x;f++)f in l&&b(f,f,f===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var w=[],v=l[Symbol.iterator](),_=v.next();!_.done;_=v.next())w.push(_.value);l=w;for(var x=l.length;f<x;f++)b(f,f,f===l.length-1)}else(function(){var S=void 0;Object.keys(l).forEach(function($){S!==void 0&&b(S,f-1),S=$,f++}),S!==void 0&&b(S,f-1,!0)})();return f===0&&(d=u(this)),d})},e.exports=t.default})(yr,yr.exports);var yw=yr.exports,Ir={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=We,r=n(o);t.default=function(i){i.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(Ir,Ir.exports);var Iw=Ir.exports,Rr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=fe,r=We,i=n(r);t.default=function(a){a.registerHelper("if",function(l,s){if(arguments.length!=2)throw new i.default("#if requires exactly one argument");return o.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||o.isEmpty(l)?s.inverse(this):s.fn(this)}),a.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new i.default("#unless requires exactly one argument");return a.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Rr,Rr.exports);var Rw=Rr.exports,Er={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var o=[void 0],r=arguments[arguments.length-1],i=0;i<arguments.length-1;i++)o.push(arguments[i]);var a=1;r.hash.level!=null?a=r.hash.level:r.data&&r.data.level!=null&&(a=r.data.level),o[0]=a,n.log.apply(n,o)})},e.exports=t.default})(Er,Er.exports);var Ew=Er.exports,Nr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,r,i){return o&&i.lookupProperty(o,r)})},e.exports=t.default})(Nr,Nr.exports);var Nw=Nr.exports,Mr={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var o=fe,r=We,i=n(r);t.default=function(a){a.registerHelper("with",function(l,s){if(arguments.length!=2)throw new i.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var c=s.fn;if(o.isEmpty(l))return s.inverse(this);var u=s.data;return s.data&&s.ids&&(u=o.createFrame(s.data),u.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),c(l,{data:u,blockParams:o.blockParams([l],[u&&u.contextPath])})})},e.exports=t.default})(Mr,Mr.exports);var Mw=Mr.exports;Cn.__esModule=!0;Cn.registerDefaultHelpers=qw;Cn.moveHelperToHooks=Vw;function Rt(e){return e&&e.__esModule?e:{default:e}}var Tw=Aw,Pw=Rt(Tw),Ow=yw,Lw=Rt(Ow),zw=Iw,jw=Rt(zw),Bw=Rw,Dw=Rt(Bw),Fw=Ew,Hw=Rt(Fw),Gw=Nw,Uw=Rt(Gw),Zw=Mw,Ww=Rt(Zw);function qw(e){Pw.default(e),Lw.default(e),jw.default(e),Dw.default(e),Hw.default(e),Uw.default(e),Ww.default(e)}function Vw(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var ha={},Tr={exports:{}};(function(e,t){t.__esModule=!0;var n=fe;t.default=function(o){o.registerDecorator("inline",function(r,i,a,l){var s=r;return i.partials||(i.partials={},s=function(c,u){var f=a.partials;a.partials=n.extend({},f,i.partials);var d=r(c,u);return a.partials=f,d}),i.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Tr,Tr.exports);var Yw=Tr.exports;ha.__esModule=!0;ha.registerDefaultDecorators=Qw;function Kw(e){return e&&e.__esModule?e:{default:e}}var Jw=Yw,Xw=Kw(Jw);function Qw(e){Xw.default(e)}var Pr={exports:{}};(function(e,t){t.__esModule=!0;var n=fe,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(i){if(typeof i=="string"){var a=n.indexOf(o.methodMap,i.toLowerCase());a>=0?i=a:i=parseInt(i,10)}return i},log:function(i){if(i=o.lookupLevel(i),typeof console<"u"&&o.lookupLevel(o.level)<=i){var a=o.methodMap[i];console[a]||(a="log");for(var l=arguments.length,s=Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];console[a].apply(console,s)}}};t.default=o,e.exports=t.default})(Pr,Pr.exports);var ys=Pr.exports,Jt={};Jt.__esModule=!0;Jt.createProtoAccessControl=oS;Jt.resultIsAllowed=rS;Jt.resetLoggedProperties=iS;function eS(e){return e&&e.__esModule?e:{default:e}}var Bi=fe,tS=ys,nS=eS(tS),io=Object.create(null);function oS(e){var t=Object.create(null);t.__proto__=!1,Bi.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,Bi.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function rS(e,t,n){return Di(typeof e=="function"?t.methods:t.properties,n)}function Di(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(aS(t),!1)}function aS(e){io[e]!==!0&&(io[e]=!0,nS.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
449
472
  You can add a runtime option to disable the check or this warning:
450
- See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function K1(){Object.keys(Hn).forEach(function(e){delete Hn[e]})}Be.__esModule=!0;Be.HandlebarsEnvironment=sa;function Rl(e){return e&&e.__esModule?e:{default:e}}var xt=ue,J1=De,yo=Rl(J1),X1=hn,Q1=Oa,eS=Nl,Fn=Rl(eS),tS=Ht,nS="4.7.9";Be.VERSION=nS;var oS=8;Be.COMPILER_REVISION=oS;var aS=7;Be.LAST_COMPATIBLE_COMPILER_REVISION=aS;var rS={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"};Be.REVISION_CHANGES=rS;var No="[object Object]";function sa(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},X1.registerDefaultHelpers(this),Q1.registerDefaultDecorators(this)}sa.prototype={constructor:sa,logger:Fn.default,log:Fn.default.log,registerHelper:function(t,n){if(xt.toString.call(t)===No){if(n)throw new yo.default("Arg not supported with multiple helpers");xt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(xt.toString.call(t)===No)xt.extend(this.partials,t);else{if(typeof n>"u")throw new yo.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(xt.toString.call(t)===No){if(n)throw new yo.default("Arg not supported with multiple decorators");xt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){tS.resetLoggedProperties()}};var iS=Fn.default.log;Be.log=iS;Be.createFrame=xt.createFrame;Be.logger=Fn.default;var ca={exports:{}};(function(e,t){t.__esModule=!0;function n(o){this.string=o}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(ca,ca.exports);var lS=ca.exports,gt={},La={};La.__esModule=!0;La.wrapHelper=sS;function sS(e,t){if(typeof e!="function")return e;var n=function(){var a=arguments[arguments.length-1];return arguments[arguments.length-1]=t(a),e.apply(this,arguments)};return n}gt.__esModule=!0;gt.checkRevision=pS;gt.template=mS;gt.wrapProgram=In;gt.resolvePartial=gS;gt.invokePartial=bS;gt.noop=El;function cS(e){return e&&e.__esModule?e:{default:e}}function uS(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 dS=ue,It=uS(dS),hS=De,tt=cS(hS),nt=Be,ti=hn,fS=La,ni=Ht;function pS(e){var t=e&&e[0]||1,n=nt.COMPILER_REVISION;if(!(t>=nt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=nt.COMPILER_REVISION))if(t<nt.LAST_COMPATIBLE_COMPILER_REVISION){var o=nt.REVISION_CHANGES[n],a=nt.REVISION_CHANGES[t];throw new tt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+a+").")}else throw new tt.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 mS(e,t){if(!t)throw new tt.default("No environment passed to template");if(!e||!e.main)throw new tt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function o(r,l,s){s.hash&&(l=It.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),r=t.VM.resolvePartial.call(this,r,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,r,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(r,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
451
- `),p=0,d=u.length;p<d&&!(!u[p]&&p+1===d);p++)u[p]=s.indent+u[p];c=u.join(`
452
- `)}return c}else throw new tt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var a={strict:function(l,s,c){if(!l||!(s in l))throw new tt.default('"'+s+'" not defined in '+l,{loc:c});return a.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||ni.resultIsAllowed(c,a.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var p=l[u]&&a.lookupProperty(l[u],s);if(p!=null)return p}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:It.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,p){var d=this.programs[l],h=this.fn(l);return s||p||u||c?d=In(this,l,h,s,c,u,p):d||(d=this.programs[l]=In(this,l,h)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var c=l||s;return l&&s&&l!==s&&(c=It.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(r){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=vS(r,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=r!=l.depths[0]?[r].concat(l.depths):l.depths:c=[r]);function p(d){return""+e.main(a,d,a.helpers,a.partials,s,u,c)}return p=Il(e.main,p,a,l.depths||[],s,u),p(r,l)}return i.isTop=!0,i._setup=function(r){if(r.partial)a.protoAccessControl=r.protoAccessControl,a.helpers=r.helpers,a.partials=r.partials,a.decorators=r.decorators,a.hooks=r.hooks;else{var l={};oi(l,t.helpers,a),oi(l,r.helpers,a),a.helpers=l,e.usePartial&&(a.partials=a.mergeIfNeeded(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=It.extend({},t.decorators,r.decorators)),a.hooks={},a.protoAccessControl=ni.createProtoAccessControl(r);var s=r.allowCallsToHelperMissing||n;ti.moveHelperToHooks(a,"helperMissing",s),ti.moveHelperToHooks(a,"blockHelperMissing",s)}},i._child=function(r,l,s,c){if(e.useBlockParams&&!s)throw new tt.default("must pass block params");if(e.useDepths&&!c)throw new tt.default("must pass parent depths");return In(a,r,e[r],l,0,s,c)},i}function In(e,t,n,o,a,i,r){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=r;return r&&s!=r[0]&&!(s===e.nullContext&&r[0]===null)&&(u=[s].concat(r)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=Il(n,l,e,r,o,i),l.program=t,l.depth=r?r.length:0,l.blockParams=a||0,l}function gS(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Mn(n.partials,e)):n.name==="@partial-block"?e=Mn(n.data,"partial-block"):e=Mn(n.partials,n.name),e}function bS(e,t,n){var o=Mn(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var a=void 0;if(n.fn&&n.fn!==El&&function(){n.data=nt.createFrame(n.data);var i=n.fn;a=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=nt.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=It.extend({},n.partials,i.partials))}(),e===void 0&&a&&(e=a),e===void 0)throw new tt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function El(){return""}function Mn(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function vS(e,t){return(!t||!("root"in t))&&(t=t?nt.createFrame(t):{},t.root=e),t}function Il(e,t,n,o,a,i){if(e.decorator){var r={};t=e.decorator(t,r,n,o&&o[0],a,i,o),It.extend(t,r)}return t}function oi(e,t,n){t&&Object.keys(t).forEach(function(o){var a=t[o];e[o]=xS(a,n)})}function xS(e,t){var n=t.lookupProperty;return fS.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var ua={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(ua,ua.exports);var Ml=ua.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}function o(S){if(S&&S.__esModule)return S;var $={};if(S!=null)for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&($[w]=S[w]);return $.default=S,$}var a=Be,i=o(a),r=lS,l=n(r),s=De,c=n(s),u=ue,p=o(u),d=gt,h=o(d),m=Ml,b=n(m);function v(){var S=new i.HandlebarsEnvironment;return p.extend(S,i),S.SafeString=l.default,S.Exception=c.default,S.Utils=p,S.escapeExpression=p.escapeExpression,S.VM=h,S.template=function($){return h.template($,S)},S}var k=v();k.create=v,b.default(k),k.default=k,t.default=k,e.exports=t.default})(Ko,Ko.exports);var SS=Ko.exports,da={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(a){return a.type==="SubExpression"||(a.type==="MustacheStatement"||a.type==="BlockStatement")&&!!(a.params&&a.params.length||a.hash)},scopedId:function(a){return/^\.|this\b/.test(a.original)},simpleId:function(a){return a.parts.length===1&&!n.helpers.scopedId(a)&&!a.depth}}};t.default=n,e.exports=t.default})(da,da.exports);var Tl=da.exports,fn={},ha={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,c,u,p,d,h){var m=d.length-1;switch(p){case 1:return d[m-1];case 2:this.$=u.prepareProgram(d[m]);break;case 3:this.$=d[m];break;case 4:this.$=d[m];break;case 5:this.$=d[m];break;case 6:this.$=d[m];break;case 7:this.$=d[m];break;case 8:this.$=d[m];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[m]),strip:u.stripFlags(d[m],d[m]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[m],value:d[m],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[m-2],d[m-1],d[m],this._$);break;case 12:this.$={path:d[m-3],params:d[m-2],hash:d[m-1]};break;case 13:this.$=u.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!1,this._$);break;case 14:this.$=u.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!0,this._$);break;case 15:this.$={open:d[m-5],path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 16:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 17:this.$={path:d[m-4],params:d[m-3],hash:d[m-2],blockParams:d[m-1],strip:u.stripFlags(d[m-5],d[m])};break;case 18:this.$={strip:u.stripFlags(d[m-1],d[m-1]),program:d[m]};break;case 19:var b=u.prepareBlock(d[m-2],d[m-1],d[m],d[m],!1,this._$),v=u.prepareProgram([b],d[m-1].loc);v.chained=!0,this.$={strip:d[m-2].strip,program:v,chain:!0};break;case 20:this.$=d[m];break;case 21:this.$={path:d[m-1],strip:u.stripFlags(d[m-2],d[m])};break;case 22:this.$=u.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],u.stripFlags(d[m-4],d[m]),this._$);break;case 23:this.$=u.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],u.stripFlags(d[m-4],d[m]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[m-3],params:d[m-2],hash:d[m-1],indent:"",strip:u.stripFlags(d[m-4],d[m]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[m-2],d[m-1],d[m],this._$);break;case 26:this.$={path:d[m-3],params:d[m-2],hash:d[m-1],strip:u.stripFlags(d[m-4],d[m])};break;case 27:this.$=d[m];break;case 28:this.$=d[m];break;case 29:this.$={type:"SubExpression",path:d[m-3],params:d[m-2],hash:d[m-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[m],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[m-2]),value:d[m],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[m-1]);break;case 33:this.$=d[m];break;case 34:this.$=d[m];break;case 35:this.$={type:"StringLiteral",value:d[m],original:d[m],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[m]),original:Number(d[m]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[m]==="true",original:d[m]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[m];break;case 41:this.$=d[m];break;case 42:this.$=u.preparePath(!0,d[m],this._$);break;case 43:this.$=u.preparePath(!1,d[m],this._$);break;case 44:d[m-2].push({part:u.id(d[m]),original:d[m],separator:d[m-1]}),this.$=d[m-2];break;case 45:this.$=[{part:u.id(d[m]),original:d[m]}];break;case 46:this.$=[];break;case 47:d[m-1].push(d[m]);break;case 48:this.$=[];break;case 49:d[m-1].push(d[m]);break;case 50:this.$=[];break;case 51:d[m-1].push(d[m]);break;case 58:this.$=[];break;case 59:d[m-1].push(d[m]);break;case 64:this.$=[];break;case 65:d[m-1].push(d[m]);break;case 70:this.$=[];break;case 71:d[m-1].push(d[m]);break;case 78:this.$=[];break;case 79:d[m-1].push(d[m]);break;case 82:this.$=[];break;case 83:d[m-1].push(d[m]);break;case 86:this.$=[];break;case 87:d[m-1].push(d[m]);break;case 90:this.$=[];break;case 91:d[m-1].push(d[m]);break;case 94:this.$=[];break;case 95:d[m-1].push(d[m]);break;case 98:this.$=[d[m]];break;case 99:d[m-1].push(d[m]);break;case 100:this.$=[d[m]];break;case 101:d[m-1].push(d[m]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,c=[0],u=[null],p=[],d=this.table,h="",m=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var v=this.lexer.yylloc;p.push(v);var k=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var H;return H=s.lexer.lex()||1,typeof H!="number"&&(H=s.symbols_[H]||H),H}for(var $,w,_,N,A={},y,R,M,T;;){if(w=c[c.length-1],this.defaultActions[w]?_=this.defaultActions[w]:(($===null||typeof $>"u")&&($=S()),_=d[w]&&d[w][$]),typeof _>"u"||!_.length||!_[0]){var L="";{T=[];for(y in d[w])this.terminals_[y]&&y>2&&T.push("'"+this.terminals_[y]+"'");this.lexer.showPosition?L="Parse error on line "+(m+1)+`:
473
+ See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function iS(){Object.keys(io).forEach(function(e){delete io[e]})}Ze.__esModule=!0;Ze.HandlebarsEnvironment=Or;function Is(e){return e&&e.__esModule?e:{default:e}}var $t=fe,lS=We,Jo=Is(lS),sS=Cn,cS=ha,uS=ys,lo=Is(uS),dS=Jt,hS="4.7.9";Ze.VERSION=hS;var fS=8;Ze.COMPILER_REVISION=fS;var pS=7;Ze.LAST_COMPATIBLE_COMPILER_REVISION=pS;var mS={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"};Ze.REVISION_CHANGES=mS;var Xo="[object Object]";function Or(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},sS.registerDefaultHelpers(this),cS.registerDefaultDecorators(this)}Or.prototype={constructor:Or,logger:lo.default,log:lo.default.log,registerHelper:function(t,n){if($t.toString.call(t)===Xo){if(n)throw new Jo.default("Arg not supported with multiple helpers");$t.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if($t.toString.call(t)===Xo)$t.extend(this.partials,t);else{if(typeof n>"u")throw new Jo.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($t.toString.call(t)===Xo){if(n)throw new Jo.default("Arg not supported with multiple decorators");$t.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){dS.resetLoggedProperties()}};var gS=lo.default.log;Ze.log=gS;Ze.createFrame=$t.createFrame;Ze.logger=lo.default;var Lr={exports:{}};(function(e,t){t.__esModule=!0;function n(o){this.string=o}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Lr,Lr.exports);var bS=Lr.exports,vt={},fa={};fa.__esModule=!0;fa.wrapHelper=xS;function xS(e,t){if(typeof e!="function")return e;var n=function(){var r=arguments[arguments.length-1];return arguments[arguments.length-1]=t(r),e.apply(this,arguments)};return n}vt.__esModule=!0;vt.checkRevision=$S;vt.template=CS;vt.wrapProgram=Wn;vt.resolvePartial=AS;vt.invokePartial=yS;vt.noop=Rs;function vS(e){return e&&e.__esModule?e:{default:e}}function wS(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 SS=fe,Dt=wS(SS),kS=We,lt=vS(kS),st=Ze,Fi=Cn,_S=fa,Hi=Jt;function $S(e){var t=e&&e[0]||1,n=st.COMPILER_REVISION;if(!(t>=st.LAST_COMPATIBLE_COMPILER_REVISION&&t<=st.COMPILER_REVISION))if(t<st.LAST_COMPATIBLE_COMPILER_REVISION){var o=st.REVISION_CHANGES[n],r=st.REVISION_CHANGES[t];throw new lt.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+o+") or downgrade your runtime to an older version ("+r+").")}else throw new lt.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 CS(e,t){if(!t)throw new lt.default("No environment passed to template");if(!e||!e.main)throw new lt.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function o(a,l,s){s.hash&&(l=Dt.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),a=t.VM.resolvePartial.call(this,a,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var c=t.VM.invokePartial.call(this,a,l,s);if(c==null&&t.compile&&(s.partials[s.name]=t.compile(a,e.compilerOptions,t),c=s.partials[s.name](l,s)),c!=null){if(s.indent){for(var u=c.split(`
474
+ `),f=0,d=u.length;f<d&&!(!u[f]&&f+1===d);f++)u[f]=s.indent+u[f];c=u.join(`
475
+ `)}return c}else throw new lt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new lt.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||Hi.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var f=l[u]&&r.lookupProperty(l[u],s);if(f!=null)return f}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:Dt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,f){var d=this.programs[l],h=this.fn(l);return s||f||u||c?d=Wn(this,l,h,s,c,u,f):d||(d=this.programs[l]=Wn(this,l,h)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var c=l||s;return l&&s&&l!==s&&(c=Dt.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=IS(a,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=a!=l.depths[0]?[a].concat(l.depths):l.depths:c=[a]);function f(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return f=Es(e.main,f,r,l.depths||[],s,u),f(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};Gi(l,t.helpers,r),Gi(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=Dt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=Hi.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;Fi.moveHelperToHooks(r,"helperMissing",s),Fi.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new lt.default("must pass block params");if(e.useDepths&&!c)throw new lt.default("must pass parent depths");return Wn(r,a,e[a],l,0,s,c)},i}function Wn(e,t,n,o,r,i,a){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&s!=a[0]&&!(s===e.nullContext&&a[0]===null)&&(u=[s].concat(a)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=Es(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function AS(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=qn(n.partials,e)):n.name==="@partial-block"?e=qn(n.data,"partial-block"):e=qn(n.partials,n.name),e}function yS(e,t,n){var o=qn(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==Rs&&function(){n.data=st.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=st.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=Dt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new lt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function Rs(){return""}function qn(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function IS(e,t){return(!t||!("root"in t))&&(t=t?st.createFrame(t):{},t.root=e),t}function Es(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),Dt.extend(t,a)}return t}function Gi(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=RS(r,n)})}function RS(e,t){var n=t.lookupProperty;return _S.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var zr={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var o=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=o),n}},e.exports=t.default})(zr,zr.exports);var Ns=zr.exports;(function(e,t){t.__esModule=!0;function n(v){return v&&v.__esModule?v:{default:v}}function o(v){if(v&&v.__esModule)return v;var _={};if(v!=null)for(var S in v)Object.prototype.hasOwnProperty.call(v,S)&&(_[S]=v[S]);return _.default=v,_}var r=Ze,i=o(r),a=bS,l=n(a),s=We,c=n(s),u=fe,f=o(u),d=vt,h=o(d),p=Ns,b=n(p);function x(){var v=new i.HandlebarsEnvironment;return f.extend(v,i),v.SafeString=l.default,v.Exception=c.default,v.Utils=f,v.escapeExpression=f.escapeExpression,v.VM=h,v.template=function(_){return h.template(_,v)},v}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(_r,_r.exports);var ES=_r.exports,jr={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(jr,jr.exports);var Ms=jr.exports,An={},Br={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var o={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,c,u,f,d,h){var p=d.length-1;switch(f){case 1:return d[p-1];case 2:this.$=u.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:u.stripComment(d[p]),strip:u.stripFlags(d[p],d[p]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:u.locInfo(this._$)};break;case 11:this.$=u.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.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=u.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:u.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:u.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:u.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:u.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=u.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=u.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:u.stripFlags(d[p-2],d[p])};break;case 22:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.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:u.stripFlags(d[p-4],d[p]),loc:u.locInfo(this._$)};break;case 25:this.$=u.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:u.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:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[p-2]),value:d[p],loc:u.locInfo(this._$)};break;case 32:this.$=u.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:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=u.preparePath(!0,d[p],this._$);break;case 43:this.$=u.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:u.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:u.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,c=[0],u=[null],f=[],d=this.table,h="",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;f.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function v(){var z;return z=s.lexer.lex()||1,typeof z!="number"&&(z=s.symbols_[z]||z),z}for(var _,S,$,y,C={},R,I,E,P;;){if(S=c[c.length-1],this.defaultActions[S]?$=this.defaultActions[S]:((_===null||typeof _>"u")&&(_=v()),$=d[S]&&d[S][_]),typeof $>"u"||!$.length||!$[0]){var T="";{P=[];for(R in d[S])this.terminals_[R]&&R>2&&P.push("'"+this.terminals_[R]+"'");this.lexer.showPosition?T="Parse error on line "+(p+1)+`:
453
476
  `+this.lexer.showPosition()+`
454
- Expecting `+T.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on line "+(m+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(L,{text:this.lexer.match,token:this.terminals_[$]||$,line:this.lexer.yylineno,loc:v,expected:T})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+$);switch(_[0]){case 1:c.push($),u.push(this.lexer.yytext),p.push(this.lexer.yylloc),c.push(_[1]),$=null,b=this.lexer.yyleng,h=this.lexer.yytext,m=this.lexer.yylineno,v=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],A.$=u[u.length-R],A._$={first_line:p[p.length-(R||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(R||1)].first_column,last_column:p[p.length-1].last_column},k&&(A._$.range=[p[p.length-(R||1)].range[0],p[p.length-1].range[1]]),N=this.performAction.call(A,h,b,m,this.yy,_[1],u,p),typeof N<"u")return N;R&&(c=c.slice(0,-1*R*2),u=u.slice(0,-1*R),p=p.slice(0,-1*R)),c.push(this.productions_[_[1]][0]),u.push(A.$),p.push(A._$),M=d[c[c.length-2]][c[c.length-1]],c.push(M);break;case 3:return!0}}return!0}},a=function(){var r={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var c=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===p.length?this.yylloc.first_column:0)+p[p.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
455
- `+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,p,d;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),m=0;m<h.length&&(u=this._input.match(this.rules[h[m]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,p=m,!this.options.flex)));m++);return c?(d=c[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],s=this.performAction.call(this,this.yy,this,h[p],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.
456
- `+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 r.options={},r.performAction=function(s,c,u,p){function d(h,m){return c.yytext=c.yytext.substring(h,c.yyleng-m+h)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},r.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],r.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}},r}();o.lexer=a;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(ha,ha.exports);var wS=ha.exports,fa={exports:{}},pa={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=De,a=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,p){var d=this.accept(u[p]);if(this.mutating){if(d&&!i.prototype[d.type])throw new a.default('Unexpected node type "'+d.type+'" found when accepting '+p+" on "+u.type);u[p]=d}},acceptRequired:function(u,p){if(this.acceptKey(u,p),!u[p])throw new a.default(u.type+" requires "+p)},acceptArray:function(u){for(var p=0,d=u.length;p<d;p++)this.acceptKey(u,p),u[p]||(u.splice(p,1),p--,d--)},accept:function(u){if(u){if(!this[u.type])throw new a.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var p=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||p)return p;if(p!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:r,Decorator:r,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:r,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function r(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){r.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(pa,pa.exports);var Pl=pa.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=Pl,a=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new a.default,i.prototype.Program=function(u){var p=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,m=0,b=h.length;m<b;m++){var v=h[m],k=this.accept(v);if(k){var S=r(h,m,d),$=l(h,m,d),w=k.openStandalone&&S,_=k.closeStandalone&&$,N=k.inlineStandalone&&S&&$;k.close&&s(h,m,!0),k.open&&c(h,m,!0),p&&N&&(s(h,m),c(h,m)&&v.type==="PartialStatement"&&(v.indent=/([ \t]+$)/.exec(h[m-1].original)[1])),p&&w&&(s((v.program||v.inverse).body),c(h,m)),p&&_&&(s(h,m),c((v.inverse||v.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var p=u.program||u.inverse,d=u.program&&u.inverse,h=d,m=d;if(d&&d.chained)for(h=d.body[0].program;m.chained;)m=m.body[m.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(p.body),closeStandalone:r((h||p).body)};if(u.openStrip.close&&s(p.body,null,!0),d){var v=u.inverseStrip;v.open&&c(p.body,null,!0),v.close&&s(h.body,null,!0),u.closeStrip.open&&c(m.body,null,!0),!this.options.ignoreStandalone&&r(p.body)&&l(h.body)&&(c(p.body),s(h.body))}else u.closeStrip.open&&c(p.body,null,!0);return b},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var p=u.strip||{};return{inlineStandalone:!0,open:p.open,close:p.close}};function r(u,p,d){p===void 0&&(p=u.length);var h=u[p-1],m=u[p-2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,p,d){p===void 0&&(p=-1);var h=u[p+1],m=u[p+2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,p,d){var h=u[p==null?0:p+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var m=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==m}}function c(u,p,d){var h=u[p==null?u.length-1:p-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var m=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==m,h.leftStripped}}t.default=i,e.exports=t.default})(fa,fa.exports);var kS=fa.exports,He={};He.__esModule=!0;He.SourceLocation=CS;He.id=AS;He.stripFlags=yS;He.stripComment=NS;He.preparePath=RS;He.prepareMustache=ES;He.prepareRawBlock=IS;He.prepareBlock=MS;He.prepareProgram=TS;He.preparePartialBlock=PS;function _S(e){return e&&e.__esModule?e:{default:e}}var $S=De,za=_S($S);function ja(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new za.default(e.path.original+" doesn't match "+t,n)}}function CS(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 AS(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function yS(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function NS(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function RS(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",a=[],i=0,r=0,l=t.length;r<l;r++){var s=t[r].part,c=t[r].original!==s;if(o+=(t[r].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(a.length>0)throw new za.default("Invalid path: "+o,{loc:n});s===".."&&i++}else a.push(s)}return{type:"PathExpression",data:e,depth:i,parts:a,original:o,loc:n}}function ES(e,t,n,o,a,i){var r=o.charAt(3)||o.charAt(2),l=r!=="{"&&r!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:a,loc:this.locInfo(i)}}function IS(e,t,n,o){ja(e,n),o=this.locInfo(o);var a={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:a,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function MS(e,t,n,o,a,i){o&&o.path&&ja(e,o);var r=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(r)throw new za.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return a&&(a=l,l=t,t=a),{type:r?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function TS(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function PS(e,t,n,o){return ja(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(o)}}fn.__esModule=!0;fn.parseWithoutProcessing=Ol;fn.parse=GS;function OS(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 Ba(e){return e&&e.__esModule?e:{default:e}}var LS=wS,ma=Ba(LS),zS=kS,jS=Ba(zS),BS=He,DS=OS(BS),HS=De,Vt=Ba(HS),FS=ue;fn.parser=ma.default;var Tn={};FS.extend(Tn,DS);function Ol(e,t){if(e.type==="Program")return US(e),e;ma.default.yy=Tn,Tn.locInfo=function(o){return new Tn.SourceLocation(t&&t.srcName,o)};var n=ma.default.parse(e);return n}function GS(e,t){var n=Ol(e,t),o=new jS.default(t);return o.accept(n)}function US(e){ga(e)}function ga(e){if(e!=null){if(Array.isArray(e)){e.forEach(ga);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!ZS(e.depth))throw new Vt.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new Vt.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 Vt.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new Vt.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new Vt.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&ga(e[n])})}}}function ZS(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var pn={};pn.__esModule=!0;pn.Compiler=ba;pn.precompile=YS;pn.compile=KS;function Ll(e){return e&&e.__esModule?e:{default:e}}var WS=De,tn=Ll(WS),ln=ue,qS=Tl,Yt=Ll(qS),VS=[].slice;function ba(){}ba.prototype={compiler:ba,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var a=this.opcodes[o],i=t.opcodes[o];if(a.opcode!==i.opcode||!zl(a.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=ln.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,o=n.compile(t,this.options),a=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[a]=o,this.useDepths=this.useDepths||o.useDepths,a},accept:function(t){if(!this[t.type])throw new tn.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,o=n.length,a=0;a<o;a++)this.accept(n[a]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){ai(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var a=this.classifySexpr(t);a==="helper"?this.helperSexpr(t,n,o):a==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),a=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,a.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new tn.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var a=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var r=t.indent||"";this.options.preventIndent&&r&&(this.opcode("appendContent",r),r=""),this.opcode("invokePartial",i,a,r),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){ai(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var a=t.path,i=a.parts[0],r=n!=null||o!=null;this.opcode("getContext",a.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),a.strict=!0,this.accept(a),this.opcode("invokeAmbiguous",i,r)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var a=this.setupFullMustacheParams(t,n,o),i=t.path,r=i.parts[0];if(this.options.knownHelpers[r])this.opcode("invokeKnownHelper",a.length,r);else{if(this.options.knownHelpersOnly)throw new tn.default("You specified knownHelpersOnly, but used the unknown helper "+r,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",a.length,i.original,Yt.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=Yt.default.helpers.scopedId(t),a=!t.depth&&!o&&this.blockParamIndex(n);a?this.opcode("lookupBlockParam",a,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,o=0,a=n.length;for(this.opcode("pushHash");o<a;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:VS.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Yt.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),a=!o&&Yt.default.helpers.helperExpression(t),i=!o&&(a||n);if(i&&!a){var r=t.path.parts[0],l=this.options;l.knownHelpers[r]?a=!0:l.knownHelpersOnly&&(i=!1)}return a?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!Yt.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var a=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,a)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,o,a){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",a),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var a=this.options.blockParams[n],i=a&&ln.indexOf(a,t);if(a&&i>=0)return[n,i]}}};function YS(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new tn.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=n.parse(e,t),a=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(a,t)}function KS(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new tn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=ln.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function a(){var r=n.parse(e,t),l=new n.Compiler().compile(r,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(r,l){return o||(o=a()),o.call(this,r,l)}return i._setup=function(r){return o||(o=a()),o._setup(r)},i._child=function(r,l,s,c){return o||(o=a()),o._child(r,l,s,c)},i}function zl(e,t){if(e===t)return!0;if(ln.isArray(e)&&ln.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!zl(e[n],t[n]))return!1;return!0}}function ai(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 va={exports:{}},xa={exports:{}},Kt={},Ro={},yn={},Nn={},ri;function JS(){if(ri)return Nn;ri=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Nn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Nn.decode=function(t){var n=65,o=90,a=97,i=122,r=48,l=57,s=43,c=47,u=26,p=52;return n<=t&&t<=o?t-n:a<=t&&t<=i?t-a+u:r<=t&&t<=l?t-r+p:t==s?62:t==c?63:-1},Nn}var ii;function jl(){if(ii)return yn;ii=1;var e=JS(),t=5,n=1<<t,o=n-1,a=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function r(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return yn.encode=function(s){var c="",u,p=i(s);do u=p&o,p>>>=t,p>0&&(u|=a),c+=e.encode(u);while(p>0);return c},yn.decode=function(s,c,u){var p=s.length,d=0,h=0,m,b;do{if(c>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));m=!!(b&a),b&=o,d=d+(b<<h),h+=t}while(m);u.value=r(d),u.rest=c},yn}var Eo={},li;function mn(){return li||(li=1,function(e){function t(w,_,N){if(_ in w)return w[_];if(arguments.length===3)return N;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function a(w){var _=w.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=a;function i(w){var _="";return w.scheme&&(_+=w.scheme+":"),_+="//",w.auth&&(_+=w.auth+"@"),w.host&&(_+=w.host),w.port&&(_+=":"+w.port),w.path&&(_+=w.path),_}e.urlGenerate=i;function r(w){var _=w,N=a(w);if(N){if(!N.path)return w;_=N.path}for(var A=e.isAbsolute(_),y=_.split(/\/+/),R,M=0,T=y.length-1;T>=0;T--)R=y[T],R==="."?y.splice(T,1):R===".."?M++:M>0&&(R===""?(y.splice(T+1,M),M=0):(y.splice(T,2),M--));return _=y.join("/"),_===""&&(_=A?"/":"."),N?(N.path=_,i(N)):_}e.normalize=r;function l(w,_){w===""&&(w="."),_===""&&(_=".");var N=a(_),A=a(w);if(A&&(w=A.path||"/"),N&&!N.scheme)return A&&(N.scheme=A.scheme),i(N);if(N||_.match(o))return _;if(A&&!A.host&&!A.path)return A.host=_,i(A);var y=_.charAt(0)==="/"?_:r(w.replace(/\/+$/,"")+"/"+_);return A?(A.path=y,i(A)):y}e.join=l,e.isAbsolute=function(w){return w.charAt(0)==="/"||n.test(w)};function s(w,_){w===""&&(w="."),w=w.replace(/\/$/,"");for(var N=0;_.indexOf(w+"/")!==0;){var A=w.lastIndexOf("/");if(A<0||(w=w.slice(0,A),w.match(/^([^\/]+:\/)?\/*$/)))return _;++N}return Array(N+1).join("../")+_.substr(w.length+1)}e.relative=s;var c=function(){var w=Object.create(null);return!("__proto__"in w)}();function u(w){return w}function p(w){return h(w)?"$"+w:w}e.toSetString=c?u:p;function d(w){return h(w)?w.slice(1):w}e.fromSetString=c?u:d;function h(w){if(!w)return!1;var _=w.length;if(_<9||w.charCodeAt(_-1)!==95||w.charCodeAt(_-2)!==95||w.charCodeAt(_-3)!==111||w.charCodeAt(_-4)!==116||w.charCodeAt(_-5)!==111||w.charCodeAt(_-6)!==114||w.charCodeAt(_-7)!==112||w.charCodeAt(_-8)!==95||w.charCodeAt(_-9)!==95)return!1;for(var N=_-10;N>=0;N--)if(w.charCodeAt(N)!==36)return!1;return!0}function m(w,_,N){var A=v(w.source,_.source);return A!==0||(A=w.originalLine-_.originalLine,A!==0)||(A=w.originalColumn-_.originalColumn,A!==0||N)||(A=w.generatedColumn-_.generatedColumn,A!==0)||(A=w.generatedLine-_.generatedLine,A!==0)?A:v(w.name,_.name)}e.compareByOriginalPositions=m;function b(w,_,N){var A=w.generatedLine-_.generatedLine;return A!==0||(A=w.generatedColumn-_.generatedColumn,A!==0||N)||(A=v(w.source,_.source),A!==0)||(A=w.originalLine-_.originalLine,A!==0)||(A=w.originalColumn-_.originalColumn,A!==0)?A:v(w.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function v(w,_){return w===_?0:w===null?1:_===null?-1:w>_?1:-1}function k(w,_){var N=w.generatedLine-_.generatedLine;return N!==0||(N=w.generatedColumn-_.generatedColumn,N!==0)||(N=v(w.source,_.source),N!==0)||(N=w.originalLine-_.originalLine,N!==0)||(N=w.originalColumn-_.originalColumn,N!==0)?N:v(w.name,_.name)}e.compareByGeneratedPositionsInflated=k;function S(w){return JSON.parse(w.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function $(w,_,N){if(_=_||"",w&&(w[w.length-1]!=="/"&&_[0]!=="/"&&(w+="/"),_=w+_),N){var A=a(N);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var y=A.path.lastIndexOf("/");y>=0&&(A.path=A.path.substring(0,y+1))}_=l(i(A),_)}return r(_)}e.computeSourceURL=$}(Eo)),Eo}var Io={},si;function Bl(){if(si)return Io;si=1;var e=mn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,r){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],r);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,r){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||r)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},o.prototype.has=function(i){if(n)return this._set.has(i);var r=e.toSetString(i);return t.call(this._set,r)},o.prototype.indexOf=function(i){if(n){var r=this._set.get(i);if(r>=0)return r}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},Io.ArraySet=o,Io}var Mo={},ci;function XS(){if(ci)return Mo;ci=1;var e=mn();function t(o,a){var i=o.generatedLine,r=a.generatedLine,l=o.generatedColumn,s=a.generatedColumn;return r>i||r==i&&s>=l||e.compareByGeneratedPositionsInflated(o,a)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(a,i){this._array.forEach(a,i)},n.prototype.add=function(a){t(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Mo.MappingList=n,Mo}var ui;function Dl(){if(ui)return Ro;ui=1;var e=jl(),t=mn(),n=Bl().ArraySet,o=XS().MappingList;function a(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}return a.prototype._version=3,a.fromSourceMap=function(r){var l=r.sourceRoot,s=new a({file:r.file,sourceRoot:l});return r.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),r.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var p=r.sourceContentFor(c);p!=null&&s.setSourceContent(c,p)}),s},a.prototype.addMapping=function(r){var l=t.getArg(r,"generated"),s=t.getArg(r,"original",null),c=t.getArg(r,"source",null),u=t.getArg(r,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},a.prototype.setSourceContent=function(r,l){var s=r;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))},a.prototype.applySourceMap=function(r,l,s){var c=l;if(l==null){if(r.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=r.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var p=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var m=r.originalPositionFor({line:h.originalLine,column:h.originalColumn});m.source!=null&&(h.source=m.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=m.line,h.originalColumn=m.column,m.name!=null&&(h.name=m.name))}var b=h.source;b!=null&&!p.has(b)&&p.add(b);var v=h.name;v!=null&&!d.has(v)&&d.add(v)},this),this._sources=p,this._names=d,r.sources.forEach(function(h){var m=r.sourceContentFor(h);m!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,m))},this)},a.prototype._validateMapping=function(r,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(r&&"line"in r&&"column"in r&&r.line>0&&r.column>=0&&!l&&!s&&!c)){if(r&&"line"in r&&"column"in r&&l&&"line"in l&&"column"in l&&r.line>0&&r.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:r,source:s,original:l,name:c}))}},a.prototype._serializeMappings=function(){for(var r=0,l=1,s=0,c=0,u=0,p=0,d="",h,m,b,v,k=this._mappings.toArray(),S=0,$=k.length;S<$;S++){if(m=k[S],h="",m.generatedLine!==l)for(r=0;m.generatedLine!==l;)h+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(m,k[S-1]))continue;h+=","}h+=e.encode(m.generatedColumn-r),r=m.generatedColumn,m.source!=null&&(v=this._sources.indexOf(m.source),h+=e.encode(v-p),p=v,h+=e.encode(m.originalLine-1-c),c=m.originalLine-1,h+=e.encode(m.originalColumn-s),s=m.originalColumn,m.name!=null&&(b=this._names.indexOf(m.name),h+=e.encode(b-u),u=b)),d+=h}return d},a.prototype._generateSourcesContent=function(r,l){return r.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},a.prototype.toJSON=function(){var r={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(r.file=this._file),this._sourceRoot!=null&&(r.sourceRoot=this._sourceRoot),this._sourcesContents&&(r.sourcesContent=this._generateSourcesContent(r.sources,r.sourceRoot)),r},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ro.SourceMapGenerator=a,Ro}var Jt={},To={},di;function QS(){return di||(di=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,a,i,r,l){var s=Math.floor((o-n)/2)+n,c=r(a,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,a,i,r,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,a,i,r,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,a,i,r){if(a.length===0)return-1;var l=t(-1,a.length,o,a,i,r||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(a[l],a[l-1],!0)===0;)--l;return l}}(To)),To}var Po={},hi;function e2(){if(hi)return Po;hi=1;function e(o,a,i){var r=o[a];o[a]=o[i],o[i]=r}function t(o,a){return Math.round(o+Math.random()*(a-o))}function n(o,a,i,r){if(i<r){var l=t(i,r),s=i-1;e(o,l,r);for(var c=o[r],u=i;u<r;u++)a(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var p=s+1;n(o,a,i,p-1),n(o,a,p+1,r)}}return Po.quickSort=function(o,a){n(o,a,0,o.length-1)},Po}var fi;function t2(){if(fi)return Jt;fi=1;var e=mn(),t=QS(),n=Bl().ArraySet,o=jl(),a=e2().quickSort;function i(c,u){var p=c;return typeof c=="string"&&(p=e.parseSourceMapInput(c)),p.sections!=null?new s(p,u):new r(p,u)}i.fromSourceMap=function(c,u){return r.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,p){var d=u.charAt(p);return d===";"||d===","},i.prototype._parseMappings=function(u,p){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,p,d){var h=p||null,m=d||i.GENERATED_ORDER,b;switch(m){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var v=this.sourceRoot;b.map(function(k){var S=k.source===null?null:this._sources.at(k.source);return S=e.computeSourceURL(v,S,this._sourceMapURL),{source:S,generatedLine:k.generatedLine,generatedColumn:k.generatedColumn,originalLine:k.originalLine,originalColumn:k.originalColumn,name:k.name===null?null:this._names.at(k.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var p=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:p,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],m=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(m>=0){var b=this._originalMappings[m];if(u.column===void 0)for(var v=b.originalLine;b&&b.originalLine===v;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++m];else for(var k=b.originalColumn;b&&b.originalLine===p&&b.originalColumn==k;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++m]}return h},Jt.SourceMapConsumer=i;function r(c,u){var p=c;typeof c=="string"&&(p=e.parseSourceMapInput(c));var d=e.getArg(p,"version"),h=e.getArg(p,"sources"),m=e.getArg(p,"names",[]),b=e.getArg(p,"sourceRoot",null),v=e.getArg(p,"sourcesContent",null),k=e.getArg(p,"mappings"),S=e.getArg(p,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),h=h.map(String).map(e.normalize).map(function($){return b&&e.isAbsolute(b)&&e.isAbsolute($)?e.relative(b,$):$}),this._names=n.fromArray(m.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function($){return e.computeSourceURL(b,$,u)}),this.sourceRoot=b,this.sourcesContent=v,this._mappings=k,this._sourceMapURL=u,this.file=S}r.prototype=Object.create(i.prototype),r.prototype.consumer=i,r.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var p;for(p=0;p<this._absoluteSources.length;++p)if(this._absoluteSources[p]==c)return p;return-1},r.fromSourceMap=function(u,p){var d=Object.create(r.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),m=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=p,d._absoluteSources=d._sources.toArray().map(function(N){return e.computeSourceURL(d.sourceRoot,N,p)});for(var b=u._mappings.toArray().slice(),v=d.__generatedMappings=[],k=d.__originalMappings=[],S=0,$=b.length;S<$;S++){var w=b[S],_=new l;_.generatedLine=w.generatedLine,_.generatedColumn=w.generatedColumn,w.source&&(_.source=m.indexOf(w.source),_.originalLine=w.originalLine,_.originalColumn=w.originalColumn,w.name&&(_.name=h.indexOf(w.name)),k.push(_)),v.push(_)}return a(d.__originalMappings,e.compareByOriginalPositions),d},r.prototype._version=3,Object.defineProperty(r.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}r.prototype._parseMappings=function(u,p){for(var d=1,h=0,m=0,b=0,v=0,k=0,S=u.length,$=0,w={},_={},N=[],A=[],y,R,M,T,L;$<S;)if(u.charAt($)===";")d++,$++,h=0;else if(u.charAt($)===",")$++;else{for(y=new l,y.generatedLine=d,T=$;T<S&&!this._charIsMappingSeparator(u,T);T++);if(R=u.slice($,T),M=w[R],M)$+=R.length;else{for(M=[];$<T;)o.decode(u,$,_),L=_.value,$=_.rest,M.push(L);if(M.length===2)throw new Error("Found a source, but no line and column");if(M.length===3)throw new Error("Found a source and line, but no column");w[R]=M}y.generatedColumn=h+M[0],h=y.generatedColumn,M.length>1&&(y.source=v+M[1],v+=M[1],y.originalLine=m+M[2],m=y.originalLine,y.originalLine+=1,y.originalColumn=b+M[3],b=y.originalColumn,M.length>4&&(y.name=k+M[4],k+=M[4])),A.push(y),typeof y.originalLine=="number"&&N.push(y)}a(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,a(N,e.compareByOriginalPositions),this.__originalMappings=N},r.prototype._findMapping=function(u,p,d,h,m,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[h]);return t.search(u,p,m,b)},r.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var p=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(p.generatedLine===d.generatedLine){p.lastGeneratedColumn=d.generatedColumn-1;continue}}p.lastGeneratedColumn=1/0}},r.prototype.originalPositionFor=function(u){var p={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(p,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var h=this._generatedMappings[d];if(h.generatedLine===p.generatedLine){var m=e.getArg(h,"source",null);m!==null&&(m=this._sources.at(m),m=e.computeSourceURL(this.sourceRoot,m,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:m,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},r.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},r.prototype.sourceContentFor=function(u,p){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var h=u;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var m;if(this.sourceRoot!=null&&(m=e.urlParse(this.sourceRoot))){var b=h.replace(/^file:\/\//,"");if(m.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!m.path||m.path=="/")&&this._sources.has("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(p)return null;throw new Error('"'+h+'" is not in the SourceMap.')},r.prototype.generatedPositionFor=function(u){var p=e.getArg(u,"source");if(p=this._findSourceIndex(p),p<0)return{line:null,column:null,lastColumn:null};var d={source:p,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var m=this._originalMappings[h];if(m.source===d.source)return{line:e.getArg(m,"generatedLine",null),column:e.getArg(m,"generatedColumn",null),lastColumn:e.getArg(m,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Jt.BasicSourceMapConsumer=r;function s(c,u){var p=c;typeof c=="string"&&(p=e.parseSourceMapInput(c));var d=e.getArg(p,"version"),h=e.getArg(p,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var m={line:-1,column:0};this._sections=h.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var v=e.getArg(b,"offset"),k=e.getArg(v,"line"),S=e.getArg(v,"column");if(k<m.line||k===m.line&&S<m.column)throw new Error("Section offsets must be ordered and non-overlapping.");return m=v,{generatedOffset:{generatedLine:k+1,generatedColumn:S+1},consumer:new i(e.getArg(b,"map"),u)}})}return s.prototype=Object.create(i.prototype),s.prototype.constructor=i,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var c=[],u=0;u<this._sections.length;u++)for(var p=0;p<this._sections[u].consumer.sources.length;p++)c.push(this._sections[u].consumer.sources[p]);return c}}),s.prototype.originalPositionFor=function(u){var p={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(p,this._sections,function(m,b){var v=m.generatedLine-b.generatedOffset.generatedLine;return v||m.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:p.generatedLine-(h.generatedOffset.generatedLine-1),column:p.generatedColumn-(h.generatedOffset.generatedLine===p.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(u,p){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],m=h.consumer.sourceContentFor(u,!0);if(m)return m}if(p)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var p=0;p<this._sections.length;p++){var d=this._sections[p];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var m={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return m}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,p){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],m=h.consumer._generatedMappings,b=0;b<m.length;b++){var v=m[b],k=h.consumer._sources.at(v.source);k=e.computeSourceURL(h.consumer.sourceRoot,k,this._sourceMapURL),this._sources.add(k),k=this._sources.indexOf(k);var S=null;v.name&&(S=h.consumer._names.at(v.name),this._names.add(S),S=this._names.indexOf(S));var $={source:k,generatedLine:v.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:v.generatedColumn+(h.generatedOffset.generatedLine===v.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:v.originalLine,originalColumn:v.originalColumn,name:S};this.__generatedMappings.push($),typeof $.originalLine=="number"&&this.__originalMappings.push($)}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions)},Jt.IndexedSourceMapConsumer=s,Jt}var Oo={},pi;function n2(){if(pi)return Oo;pi=1;var e=Dl().SourceMapGenerator,t=mn(),n=/(\r?\n)/,o=10,a="$$$isSourceNode$$$";function i(r,l,s,c,u){this.children=[],this.sourceContents={},this.line=r??null,this.column=l??null,this.source=s??null,this.name=u??null,this[a]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,p=l.split(n),d=0,h=function(){var S=w(),$=w()||"";return S+$;function w(){return d<p.length?p[d++]:void 0}},m=1,b=0,v=null;return s.eachMapping(function(S){if(v!==null)if(m<S.generatedLine)k(v,h()),m++,b=0;else{var $=p[d]||"",w=$.substr(0,S.generatedColumn-b);p[d]=$.substr(S.generatedColumn-b),b=S.generatedColumn,k(v,w),v=S;return}for(;m<S.generatedLine;)u.add(h()),m++;if(b<S.generatedColumn){var $=p[d]||"";u.add($.substr(0,S.generatedColumn)),p[d]=$.substr(S.generatedColumn),b=S.generatedColumn}v=S},this),d<p.length&&(v&&k(v,h()),u.add(p.splice(d).join(""))),s.sources.forEach(function(S){var $=s.sourceContentFor(S);$!=null&&(c!=null&&(S=t.join(c,S)),u.setSourceContent(S,$))}),u;function k(S,$){if(S===null||S.source===void 0)u.add($);else{var w=c?t.join(c,S.source):S.source;u.add(new i(S.originalLine,S.originalColumn,w,$,S.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[a]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[a]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[a]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[a]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][a]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,p=null,d=null,h=null,m=null;return this.walk(function(b,v){s.code+=b,v.source!==null&&v.line!==null&&v.column!==null?((p!==v.source||d!==v.line||h!==v.column||m!==v.name)&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name}),p=v.source,d=v.line,h=v.column,m=v.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),p=null,u=!1);for(var k=0,S=b.length;k<S;k++)b.charCodeAt(k)===o?(s.line++,s.column=0,k+1===S?(p=null,u=!1):u&&c.addMapping({source:v.source,original:{line:v.line,column:v.column},generated:{line:s.line,column:s.column},name:v.name})):s.column++}),this.walkSourceContents(function(b,v){c.setSourceContent(b,v)}),{code:s.code,map:c}},Oo.SourceNode=i,Oo}var mi;function o2(){return mi||(mi=1,Kt.SourceMapGenerator=Dl().SourceMapGenerator,Kt.SourceMapConsumer=t2().SourceMapConsumer,Kt.SourceNode=n2().SourceNode),Kt}(function(e,t){t.__esModule=!0;var n=ue,o=void 0;try{var a=o2();o=a.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],p=0,d=l.length;p<d;p++)u.push(s.wrap(l[p],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function r(l){this.srcFile=l,this.source=[]}r.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
457
- `])}),s},each:function(s){for(var c=0,u=this.source.length;c<u;c++)s(this.source[c])},empty:function(){var s=this.currentLocation||{start:{}};return new o(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof o?s:(s=i(s,this,c),new o(c.start.line,c.start.column,this.srcFile,s))},functionCall:function(s,c,u){return u=this.generateList(u),this.wrap([s,c?"."+c+"(":"(",u,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var c=this,u=[];Object.keys(s).forEach(function(d){var h=i(s[d],c);h!=="undefined"&&u.push([c.quotedString(d),":",h])});var p=this.generateList(u);return p.prepend("{"),p.add("}"),p},generateList:function(s){for(var c=this.empty(),u=0,p=s.length;u<p;u++)u&&c.add(","),c.add(i(s[u],this));return c},generateArray:function(s){var c=this.generateList(s);return c.prepend("["),c.add("]"),c}},t.default=r,e.exports=t.default})(xa,xa.exports);var a2=xa.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Be,a=De,i=n(a),r=ue,l=a2,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(h,m){return this.internalNameLookup(h,m)},depthedLookup:function(h){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(h),")"]},compilerInfo:function(){var h=o.COMPILER_REVISION,m=o.REVISION_CHANGES[h];return[h,m]},appendToBuffer:function(h,m,b){return r.isArray(h)||(h=[h]),h=this.source.wrap(h,m),this.environment.isSimple?["return ",h,";"]:b?["buffer += ",h,";"]:(h.appendToBuffer=!0,h)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(h,m){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",h,",",JSON.stringify(m),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(h,m,b,v){this.environment=h,this.options=m,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!v,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(h,m),this.useDepths=this.useDepths||h.useDepths||h.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||h.useBlockParams;var k=h.opcodes,S=void 0,$=void 0,w=void 0,_=void 0;for(w=0,_=k.length;w<_;w++)S=k[w],this.source.currentLocation=S.loc,$=$||S.loc,this[S.opcode].apply(this,S.args);if(this.source.currentLocation=$,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
458
- `]),this.decorators.push("return fn;"),v?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
477
+ Expecting `+P.join(", ")+", got '"+(this.terminals_[_]||_)+"'":T="Parse error on line "+(p+1)+": Unexpected "+(_==1?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(T,{text:this.lexer.match,token:this.terminals_[_]||_,line:this.lexer.yylineno,loc:x,expected:P})}}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+_);switch($[0]){case 1:c.push(_),u.push(this.lexer.yytext),f.push(this.lexer.yylloc),c.push($[1]),_=null,b=this.lexer.yyleng,h=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(I=this.productions_[$[1]][1],C.$=u[u.length-I],C._$={first_line:f[f.length-(I||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(I||1)].first_column,last_column:f[f.length-1].last_column},w&&(C._$.range=[f[f.length-(I||1)].range[0],f[f.length-1].range[1]]),y=this.performAction.call(C,h,b,p,this.yy,$[1],u,f),typeof y<"u")return y;I&&(c=c.slice(0,-1*I*2),u=u.slice(0,-1*I),f=f.slice(0,-1*I)),c.push(this.productions_[$[1]][0]),u.push(C.$),f.push(C._$),E=d[c[c.length-2]][c[c.length-1]],c.push(E);break;case 3:return!0}}return!0}},r=function(){var a={EOF:1,parseError:function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var c=s.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var c=s.length,u=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c-1),this.offset-=c;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===f.length?this.yylloc.first_column:0)+f[f.length-u.length].length-u[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-c]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
478
+ `+c+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,c,u,f,d;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),p=0;p<h.length&&(u=this._input.match(this.rules[h[p]]),!(u&&(!c||u[0].length>c[0].length)&&(c=u,f=p,!this.options.flex)));p++);return c?(d=c[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],s=this.performAction.call(this,this.yy,this,h[f],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.
479
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return a.options={},a.performAction=function(s,c,u,f){function d(h,p){return c.yytext=c.yytext.substring(h,c.yyleng-p+h)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(Br,Br.exports);var NS=Br.exports,Dr={exports:{}},Fr={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=We,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,f){var d=this.accept(u[f]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+f+" on "+u.type);u[f]=d}},acceptRequired:function(u,f){if(this.acceptKey(u,f),!u[f])throw new r.default(u.type+" requires "+f)},acceptArray:function(u){for(var f=0,d=u.length;f<d;f++)this.acceptKey(u,f),u[f]||(u.splice(f,1),f--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var f=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||f)return f;if(f!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function a(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){a.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(Fr,Fr.exports);var Ts=Fr.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=Ts,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var f=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=u.body,p=0,b=h.length;p<b;p++){var x=h[p],w=this.accept(x);if(w){var v=a(h,p,d),_=l(h,p,d),S=w.openStandalone&&v,$=w.closeStandalone&&_,y=w.inlineStandalone&&v&&_;w.close&&s(h,p,!0),w.open&&c(h,p,!0),f&&y&&(s(h,p),c(h,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(h[p-1].original)[1])),f&&S&&(s((x.program||x.inverse).body),c(h,p)),f&&$&&(s(h,p),c((x.inverse||x.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var f=u.program||u.inverse,d=u.program&&u.inverse,h=d,p=d;if(d&&d.chained)for(h=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(f.body),closeStandalone:a((h||f).body)};if(u.openStrip.close&&s(f.body,null,!0),d){var x=u.inverseStrip;x.open&&c(f.body,null,!0),x.close&&s(h.body,null,!0),u.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&a(f.body)&&l(h.body)&&(c(f.body),s(h.body))}else u.closeStrip.open&&c(f.body,null,!0);return b},i.prototype.Decorator=i.prototype.MustacheStatement=function(u){return u.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(u){var f=u.strip||{};return{inlineStandalone:!0,open:f.open,close:f.close}};function a(u,f,d){f===void 0&&(f=u.length);var h=u[f-1],p=u[f-2];if(!h)return d;if(h.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(u,f,d){f===void 0&&(f=-1);var h=u[f+1],p=u[f+2];if(!h)return d;if(h.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(u,f,d){var h=u[f==null?0:f+1];if(!(!h||h.type!=="ContentStatement"||!d&&h.rightStripped)){var p=h.value;h.value=h.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),h.rightStripped=h.value!==p}}function c(u,f,d){var h=u[f==null?u.length-1:f-1];if(!(!h||h.type!=="ContentStatement"||!d&&h.leftStripped)){var p=h.value;return h.value=h.value.replace(d?/\s+$/:/[ \t]+$/,""),h.leftStripped=h.value!==p,h.leftStripped}}t.default=i,e.exports=t.default})(Dr,Dr.exports);var MS=Dr.exports,qe={};qe.__esModule=!0;qe.SourceLocation=OS;qe.id=LS;qe.stripFlags=zS;qe.stripComment=jS;qe.preparePath=BS;qe.prepareMustache=DS;qe.prepareRawBlock=FS;qe.prepareBlock=HS;qe.prepareProgram=GS;qe.preparePartialBlock=US;function TS(e){return e&&e.__esModule?e:{default:e}}var PS=We,pa=TS(PS);function ma(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new pa.default(e.path.original+" doesn't match "+t,n)}}function OS(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 LS(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function zS(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function jS(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function BS(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new pa.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function DS(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function FS(e,t,n,o){ma(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function HS(e,t,n,o,r,i){o&&o.path&&ma(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new pa.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function GS(e,t){if(!t&&e.length){var n=e[0].loc,o=e[e.length-1].loc;n&&o&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:o.end.line,column:o.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function US(e,t,n,o){return ma(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(o)}}An.__esModule=!0;An.parseWithoutProcessing=Ps;An.parse=QS;function ZS(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 ga(e){return e&&e.__esModule?e:{default:e}}var WS=NS,Hr=ga(WS),qS=MS,VS=ga(qS),YS=qe,KS=ZS(YS),JS=We,an=ga(JS),XS=fe;An.parser=Hr.default;var Vn={};XS.extend(Vn,KS);function Ps(e,t){if(e.type==="Program")return e2(e),e;Hr.default.yy=Vn,Vn.locInfo=function(o){return new Vn.SourceLocation(t&&t.srcName,o)};var n=Hr.default.parse(e);return n}function QS(e,t){var n=Ps(e,t),o=new VS.default(t);return o.accept(n)}function e2(e){Gr(e)}function Gr(e){if(e!=null){if(Array.isArray(e)){e.forEach(Gr);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!t2(e.depth))throw new an.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new an.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 an.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new an.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new an.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Gr(e[n])})}}}function t2(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var yn={};yn.__esModule=!0;yn.Compiler=Ur;yn.precompile=a2;yn.compile=i2;function Os(e){return e&&e.__esModule?e:{default:e}}var n2=We,pn=Os(n2),wn=fe,o2=Ms,ln=Os(o2),r2=[].slice;function Ur(){}Ur.prototype={compiler:Ur,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!Ls(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=wn.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new pn.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){Ui(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new pn.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){Ui(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new pn.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,ln.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=ln.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:r2.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=ln.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&ln.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!ln.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&wn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function a2(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new pn.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function i2(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new pn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=wn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){var a=n.parse(e,t),l=new n.Compiler().compile(a,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(a,l){return o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function Ls(e,t){if(e===t)return!0;if(wn.isArray(e)&&wn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!Ls(e[n],t[n]))return!1;return!0}}function Ui(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 Zr={exports:{}},Wr={exports:{}},sn={},Qo={},Dn={},Fn={},Zi;function l2(){if(Zi)return Fn;Zi=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Fn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Fn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,f=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+f:t==s?62:t==c?63:-1},Fn}var Wi;function zs(){if(Wi)return Dn;Wi=1;var e=l2(),t=5,n=1<<t,o=n-1,r=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return Dn.encode=function(s){var c="",u,f=i(s);do u=f&o,f>>>=t,f>0&&(u|=r),c+=e.encode(u);while(f>0);return c},Dn.decode=function(s,c,u){var f=s.length,d=0,h=0,p,b;do{if(c>=f)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));p=!!(b&r),b&=o,d=d+(b<<h),h+=t}while(p);u.value=a(d),u.rest=c},Dn}var er={},qi;function In(){return qi||(qi=1,function(e){function t(S,$,y){if($ in S)return S[$];if(arguments.length===3)return y;throw new Error('"'+$+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(S){var $=S.match(n);return $?{scheme:$[1],auth:$[2],host:$[3],port:$[4],path:$[5]}:null}e.urlParse=r;function i(S){var $="";return S.scheme&&($+=S.scheme+":"),$+="//",S.auth&&($+=S.auth+"@"),S.host&&($+=S.host),S.port&&($+=":"+S.port),S.path&&($+=S.path),$}e.urlGenerate=i;function a(S){var $=S,y=r(S);if(y){if(!y.path)return S;$=y.path}for(var C=e.isAbsolute($),R=$.split(/\/+/),I,E=0,P=R.length-1;P>=0;P--)I=R[P],I==="."?R.splice(P,1):I===".."?E++:E>0&&(I===""?(R.splice(P+1,E),E=0):(R.splice(P,2),E--));return $=R.join("/"),$===""&&($=C?"/":"."),y?(y.path=$,i(y)):$}e.normalize=a;function l(S,$){S===""&&(S="."),$===""&&($=".");var y=r($),C=r(S);if(C&&(S=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),i(y);if(y||$.match(o))return $;if(C&&!C.host&&!C.path)return C.host=$,i(C);var R=$.charAt(0)==="/"?$:a(S.replace(/\/+$/,"")+"/"+$);return C?(C.path=R,i(C)):R}e.join=l,e.isAbsolute=function(S){return S.charAt(0)==="/"||n.test(S)};function s(S,$){S===""&&(S="."),S=S.replace(/\/$/,"");for(var y=0;$.indexOf(S+"/")!==0;){var C=S.lastIndexOf("/");if(C<0||(S=S.slice(0,C),S.match(/^([^\/]+:\/)?\/*$/)))return $;++y}return Array(y+1).join("../")+$.substr(S.length+1)}e.relative=s;var c=function(){var S=Object.create(null);return!("__proto__"in S)}();function u(S){return S}function f(S){return h(S)?"$"+S:S}e.toSetString=c?u:f;function d(S){return h(S)?S.slice(1):S}e.fromSetString=c?u:d;function h(S){if(!S)return!1;var $=S.length;if($<9||S.charCodeAt($-1)!==95||S.charCodeAt($-2)!==95||S.charCodeAt($-3)!==111||S.charCodeAt($-4)!==116||S.charCodeAt($-5)!==111||S.charCodeAt($-6)!==114||S.charCodeAt($-7)!==112||S.charCodeAt($-8)!==95||S.charCodeAt($-9)!==95)return!1;for(var y=$-10;y>=0;y--)if(S.charCodeAt(y)!==36)return!1;return!0}function p(S,$,y){var C=x(S.source,$.source);return C!==0||(C=S.originalLine-$.originalLine,C!==0)||(C=S.originalColumn-$.originalColumn,C!==0||y)||(C=S.generatedColumn-$.generatedColumn,C!==0)||(C=S.generatedLine-$.generatedLine,C!==0)?C:x(S.name,$.name)}e.compareByOriginalPositions=p;function b(S,$,y){var C=S.generatedLine-$.generatedLine;return C!==0||(C=S.generatedColumn-$.generatedColumn,C!==0||y)||(C=x(S.source,$.source),C!==0)||(C=S.originalLine-$.originalLine,C!==0)||(C=S.originalColumn-$.originalColumn,C!==0)?C:x(S.name,$.name)}e.compareByGeneratedPositionsDeflated=b;function x(S,$){return S===$?0:S===null?1:$===null?-1:S>$?1:-1}function w(S,$){var y=S.generatedLine-$.generatedLine;return y!==0||(y=S.generatedColumn-$.generatedColumn,y!==0)||(y=x(S.source,$.source),y!==0)||(y=S.originalLine-$.originalLine,y!==0)||(y=S.originalColumn-$.originalColumn,y!==0)?y:x(S.name,$.name)}e.compareByGeneratedPositionsInflated=w;function v(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function _(S,$,y){if($=$||"",S&&(S[S.length-1]!=="/"&&$[0]!=="/"&&(S+="/"),$=S+$),y){var C=r(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var R=C.path.lastIndexOf("/");R>=0&&(C.path=C.path.substring(0,R+1))}$=l(i(C),$)}return a($)}e.computeSourceURL=_}(er)),er}var tr={},Vi;function js(){if(Vi)return tr;Vi=1;var e=In(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,a){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||a)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.prototype.indexOf=function(i){if(n){var a=this._set.get(i);if(a>=0)return a}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},tr.ArraySet=o,tr}var nr={},Yi;function s2(){if(Yi)return nr;Yi=1;var e=In();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},nr.MappingList=n,nr}var Ki;function Bs(){if(Ki)return Qo;Ki=1;var e=zs(),t=In(),n=js().ArraySet,o=s2().MappingList;function r(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),a.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var f=a.sourceContentFor(c);f!=null&&s.setSourceContent(c,f)}),s},r.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),s=t.getArg(a,"original",null),c=t.getArg(a,"source",null),u=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},r.prototype.setSourceContent=function(a,l){var s=a;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,s){var c=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=a.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var f=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===c&&h.originalLine!=null){var p=a.originalPositionFor({line:h.originalLine,column:h.originalColumn});p.source!=null&&(h.source=p.source,s!=null&&(h.source=t.join(s,h.source)),u!=null&&(h.source=t.relative(u,h.source)),h.originalLine=p.line,h.originalColumn=p.column,p.name!=null&&(h.name=p.name))}var b=h.source;b!=null&&!f.has(b)&&f.add(b);var x=h.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=f,this._names=d,a.sources.forEach(function(h){var p=a.sourceContentFor(h);p!=null&&(s!=null&&(h=t.join(s,h)),u!=null&&(h=t.relative(u,h)),this.setSourceContent(h,p))},this)},r.prototype._validateMapping=function(a,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!s&&!c)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:s,original:l,name:c}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,f=0,d="",h,p,b,x,w=this._mappings.toArray(),v=0,_=w.length;v<_;v++){if(p=w[v],h="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)h+=";",l++;else if(v>0){if(!t.compareByGeneratedPositionsInflated(p,w[v-1]))continue;h+=","}h+=e.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),h+=e.encode(x-f),f=x,h+=e.encode(p.originalLine-1-c),c=p.originalLine-1,h+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),h+=e.encode(b-u),u=b)),d+=h}return d},r.prototype._generateSourcesContent=function(a,l){return a.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},Qo.SourceMapGenerator=r,Qo}var cn={},or={},Ji;function c2(){return Ji||(Ji=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}(or)),or}var rr={},Xi;function u2(){if(Xi)return rr;Xi=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var f=s+1;n(o,r,i,f-1),n(o,r,f+1,a)}}return rr.quickSort=function(o,r){n(o,r,0,o.length-1)},rr}var Qi;function d2(){if(Qi)return cn;Qi=1;var e=In(),t=c2(),n=js().ArraySet,o=zs(),r=u2().quickSort;function i(c,u){var f=c;return typeof c=="string"&&(f=e.parseSourceMapInput(c)),f.sections!=null?new s(f,u):new a(f,u)}i.fromSourceMap=function(c,u){return a.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,f){var d=u.charAt(f);return d===";"||d===","},i.prototype._parseMappings=function(u,f){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(u,f,d){var h=f||null,p=d||i.GENERATED_ORDER,b;switch(p){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var v=w.source===null?null:this._sources.at(w.source);return v=e.computeSourceURL(x,v,this._sourceMapURL),{source:v,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(u,h)},i.prototype.allGeneratedPositionsFor=function(u){var f=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:f,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var h=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(u.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)h.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===f&&b.originalColumn==w;)h.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return h},cn.SourceMapConsumer=i;function a(c,u){var f=c;typeof c=="string"&&(f=e.parseSourceMapInput(c));var d=e.getArg(f,"version"),h=e.getArg(f,"sources"),p=e.getArg(f,"names",[]),b=e.getArg(f,"sourceRoot",null),x=e.getArg(f,"sourcesContent",null),w=e.getArg(f,"mappings"),v=e.getArg(f,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),h=h.map(String).map(e.normalize).map(function(_){return b&&e.isAbsolute(b)&&e.isAbsolute(_)?e.relative(b,_):_}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(h,!0),this._absoluteSources=this._sources.toArray().map(function(_){return e.computeSourceURL(b,_,u)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=u,this.file=v}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var f;for(f=0;f<this._absoluteSources.length;++f)if(this._absoluteSources[f]==c)return f;return-1},a.fromSourceMap=function(u,f){var d=Object.create(a.prototype),h=d._names=n.fromArray(u._names.toArray(),!0),p=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=f,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,f)});for(var b=u._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],v=0,_=b.length;v<_;v++){var S=b[v],$=new l;$.generatedLine=S.generatedLine,$.generatedColumn=S.generatedColumn,S.source&&($.source=p.indexOf(S.source),$.originalLine=S.originalLine,$.originalColumn=S.originalColumn,S.name&&($.name=h.indexOf(S.name)),w.push($)),x.push($)}return r(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,f){for(var d=1,h=0,p=0,b=0,x=0,w=0,v=u.length,_=0,S={},$={},y=[],C=[],R,I,E,P,T;_<v;)if(u.charAt(_)===";")d++,_++,h=0;else if(u.charAt(_)===",")_++;else{for(R=new l,R.generatedLine=d,P=_;P<v&&!this._charIsMappingSeparator(u,P);P++);if(I=u.slice(_,P),E=S[I],E)_+=I.length;else{for(E=[];_<P;)o.decode(u,_,$),T=$.value,_=$.rest,E.push(T);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");S[I]=E}R.generatedColumn=h+E[0],h=R.generatedColumn,E.length>1&&(R.source=x+E[1],x+=E[1],R.originalLine=p+E[2],p=R.originalLine,R.originalLine+=1,R.originalColumn=b+E[3],b=R.originalColumn,E.length>4&&(R.name=w+E[4],w+=E[4])),C.push(R),typeof R.originalLine=="number"&&y.push(R)}r(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,r(y,e.compareByOriginalPositions),this.__originalMappings=y},a.prototype._findMapping=function(u,f,d,h,p,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[h]);return t.search(u,f,p,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var f=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(f.generatedLine===d.generatedLine){f.lastGeneratedColumn=d.generatedColumn-1;continue}}f.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var f={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(f,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var h=this._generatedMappings[d];if(h.generatedLine===f.generatedLine){var p=e.getArg(h,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(h,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(h,"originalLine",null),column:e.getArg(h,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,f){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var h=u;this.sourceRoot!=null&&(h=e.relative(this.sourceRoot,h));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=h.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("/"+h))return this.sourcesContent[this._sources.indexOf("/"+h)]}if(f)return null;throw new Error('"'+h+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var f=e.getArg(u,"source");if(f=this._findSourceIndex(f),f<0)return{line:null,column:null,lastColumn:null};var d={source:f,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var p=this._originalMappings[h];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}},cn.BasicSourceMapConsumer=a;function s(c,u){var f=c;typeof c=="string"&&(f=e.parseSourceMapInput(c));var d=e.getArg(f,"version"),h=e.getArg(f,"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=h.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"),v=e.getArg(x,"column");if(w<p.line||w===p.line&&v<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:v+1},consumer:new i(e.getArg(b,"map"),u)}})}return s.prototype=Object.create(i.prototype),s.prototype.constructor=i,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var c=[],u=0;u<this._sections.length;u++)for(var f=0;f<this._sections[u].consumer.sources.length;f++)c.push(this._sections[u].consumer.sources[f]);return c}}),s.prototype.originalPositionFor=function(u){var f={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(f,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),h=this._sections[d];return h?h.consumer.originalPositionFor({line:f.generatedLine-(h.generatedOffset.generatedLine-1),column:f.generatedColumn-(h.generatedOffset.generatedLine===f.generatedLine?h.generatedOffset.generatedColumn-1:0),bias:u.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(u){return u.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(u,f){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],p=h.consumer.sourceContentFor(u,!0);if(p)return p}if(f)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var f=0;f<this._sections.length;f++){var d=this._sections[f];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var h=d.consumer.generatedPositionFor(u);if(h){var p={line:h.line+(d.generatedOffset.generatedLine-1),column:h.column+(d.generatedOffset.generatedLine===h.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,f){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var h=this._sections[d],p=h.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=h.consumer._sources.at(x.source);w=e.computeSourceURL(h.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var v=null;x.name&&(v=h.consumer._names.at(x.name),this._names.add(v),v=this._names.indexOf(v));var _={source:w,generatedLine:x.generatedLine+(h.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(h.generatedOffset.generatedLine===x.generatedLine?h.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:v};this.__generatedMappings.push(_),typeof _.originalLine=="number"&&this.__originalMappings.push(_)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},cn.IndexedSourceMapConsumer=s,cn}var ar={},el;function h2(){if(el)return ar;el=1;var e=Bs().SourceMapGenerator,t=In(),n=/(\r?\n)/,o=10,r="$$$isSourceNode$$$";function i(a,l,s,c,u){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=s??null,this.name=u??null,this[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,f=l.split(n),d=0,h=function(){var v=S(),_=S()||"";return v+_;function S(){return d<f.length?f[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(v){if(x!==null)if(p<v.generatedLine)w(x,h()),p++,b=0;else{var _=f[d]||"",S=_.substr(0,v.generatedColumn-b);f[d]=_.substr(v.generatedColumn-b),b=v.generatedColumn,w(x,S),x=v;return}for(;p<v.generatedLine;)u.add(h()),p++;if(b<v.generatedColumn){var _=f[d]||"";u.add(_.substr(0,v.generatedColumn)),f[d]=_.substr(v.generatedColumn),b=v.generatedColumn}x=v},this),d<f.length&&(x&&w(x,h()),u.add(f.splice(d).join(""))),s.sources.forEach(function(v){var _=s.sourceContentFor(v);_!=null&&(c!=null&&(v=t.join(c,v)),u.setSourceContent(v,_))}),u;function w(v,_){if(v===null||v.source===void 0)u.add(_);else{var S=c?t.join(c,v.source):v.source;u.add(new i(v.originalLine,v.originalColumn,S,_,v.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[r]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][r]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,f=null,d=null,h=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((f!==x.source||d!==x.line||h!==x.column||p!==x.name)&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),f=x.source,d=x.line,h=x.column,p=x.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),f=null,u=!1);for(var w=0,v=b.length;w<v;w++)b.charCodeAt(w)===o?(s.line++,s.column=0,w+1===v?(f=null,u=!1):u&&c.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){c.setSourceContent(b,x)}),{code:s.code,map:c}},ar.SourceNode=i,ar}var tl;function f2(){return tl||(tl=1,sn.SourceMapGenerator=Bs().SourceMapGenerator,sn.SourceMapConsumer=d2().SourceMapConsumer,sn.SourceNode=h2().SourceNode),sn}(function(e,t){t.__esModule=!0;var n=fe,o=void 0;try{var r=f2();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],f=0,d=l.length;f<d;f++)u.push(s.wrap(l[f],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
480
+ `])}),s},each:function(s){for(var c=0,u=this.source.length;c<u;c++)s(this.source[c])},empty:function(){var s=this.currentLocation||{start:{}};return new o(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var c=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof o?s:(s=i(s,this,c),new o(c.start.line,c.start.column,this.srcFile,s))},functionCall:function(s,c,u){return u=this.generateList(u),this.wrap([s,c?"."+c+"(":"(",u,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var c=this,u=[];Object.keys(s).forEach(function(d){var h=i(s[d],c);h!=="undefined"&&u.push([c.quotedString(d),":",h])});var f=this.generateList(u);return f.prepend("{"),f.add("}"),f},generateList:function(s){for(var c=this.empty(),u=0,f=s.length;u<f;u++)u&&c.add(","),c.add(i(s[u],this));return c},generateArray:function(s){var c=this.generateList(s);return c.prepend("["),c.add("]"),c}},t.default=a,e.exports=t.default})(Wr,Wr.exports);var p2=Wr.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Ze,r=We,i=n(r),a=fe,l=p2,s=n(l);function c(d){this.value=d}function u(){}u.prototype={nameLookup:function(h,p){return this.internalNameLookup(h,p)},depthedLookup:function(h){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(h),")"]},compilerInfo:function(){var h=o.COMPILER_REVISION,p=o.REVISION_CHANGES[h];return[h,p]},appendToBuffer:function(h,p,b){return a.isArray(h)||(h=[h]),h=this.source.wrap(h,p),this.environment.isSimple?["return ",h,";"]:b?["buffer += ",h,";"]:(h.appendToBuffer=!0,h)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(h,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",h,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(h,p,b,x){this.environment=h,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(h,p),this.useDepths=this.useDepths||h.useDepths||h.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||h.useBlockParams;var w=h.opcodes,v=void 0,_=void 0,S=void 0,$=void 0;for(S=0,$=w.length;S<$;S++)v=w[S],this.source.currentLocation=v.loc,_=_||v.loc,this[v.opcode].apply(this,v.args);if(this.source.currentLocation=_,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
481
+ `]),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) {
459
482
  `),this.decorators.push(`}
460
- `),this.decorators=this.decorators.merge()));var N=this.createFunctionContext(v);if(this.isChild)return N;var A={compiler:this.compilerInfo(),main:N};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var y=this.context,R=y.programs,M=y.decorators;for(w=0,_=R.length;w<_;w++)A[w]=R[w],M[w]&&(A[w+"_d"]=M[w],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),v?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),m.srcName?(A=A.toStringWithSourceMap({file:m.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(h){var m=this,b="",v=this.stackVars.concat(this.registers.list);v.length>0&&(b+=", "+v.join(", "));var k=0;Object.keys(this.aliases).forEach(function(w){var _=m.aliases[w];_.children&&_.referenceCount>1&&(b+=", alias"+ ++k+"="+w,_.children[0]="alias"+k)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var S=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&S.push("blockParams"),this.useDepths&&S.push("depths");var $=this.mergeSource(b);return h?(S.push($),Function.apply(this,S)):this.source.wrap(["function(",S.join(","),`) {
461
- `,$,"}"])},mergeSource:function(h){var m=this.environment.isSimple,b=!this.forceBuffer,v=void 0,k=void 0,S=void 0,$=void 0;return this.source.each(function(w){w.appendToBuffer?(S?w.prepend(" + "):S=w,$=w):(S&&(k?S.prepend("buffer += "):v=!0,$.add(";"),S=$=void 0),k=!0,m||(b=!1))}),b?S?(S.prepend("return "),$.add(";")):k||this.source.push('return "";'):(h+=", buffer = "+(v?"":this.initializeBuffer()),S?(S.prepend("return buffer + "),$.add(";")):this.source.push("return buffer;")),h&&this.source.prepend("var "+h.substring(2)+(v?"":`;
483
+ `),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 R=this.context,I=R.programs,E=R.decorators;for(S=0,$=I.length;S<$;S++)C[S]=I[S],E[S]&&(C[S+"_d"]=E[S],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(h){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(S){var $=p.aliases[S];$.children&&$.referenceCount>1&&(b+=", alias"+ ++w+"="+S,$.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var v=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&v.push("blockParams"),this.useDepths&&v.push("depths");var _=this.mergeSource(b);return h?(v.push(_),Function.apply(this,v)):this.source.wrap(["function(",v.join(","),`) {
484
+ `,_,"}"])},mergeSource:function(h){var p=this.environment.isSimple,b=!this.forceBuffer,x=void 0,w=void 0,v=void 0,_=void 0;return this.source.each(function(S){S.appendToBuffer?(v?S.prepend(" + "):v=S,_=S):(v&&(w?v.prepend("buffer += "):x=!0,_.add(";"),v=_=void 0),w=!0,p||(b=!1))}),b?v?(v.prepend("return "),_.add(";")):w||this.source.push('return "";'):(h+=", buffer = "+(x?"":this.initializeBuffer()),v?(v.prepend("return buffer + "),_.add(";")):this.source.push("return buffer;")),h&&this.source.prepend("var "+h.substring(2)+(x?"":`;
462
485
  `)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
463
486
  lookupProperty = container.lookupProperty || function(parent, propertyName) {
464
487
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
@@ -466,10 +489,10 @@ Expecting `+T.join(", ")+", got '"+(this.terminals_[$]||$)+"'":L="Parse error on
466
489
  }
467
490
  return undefined
468
491
  }
469
- `.trim()},blockValue:function(h){var m=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var v=this.popStack();b.splice(1,0,v),this.push(this.source.functionCall(m,"call",b))},ambiguousBlockValue:function(){var h=this.aliasable("container.hooks.blockHelperMissing"),m=[this.contextName(0)];this.setupHelperArgs("",0,m,!0),this.flushInline();var b=this.topStack();m.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(h,"call",m),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(m){return[" != null ? ",m,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,m,b,v){var k=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[k++])):this.pushContext(),this.resolvePath("context",h,k,m,b)},lookupBlockParam:function(h,m){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",m,1)},lookupData:function(h,m,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",m,0,!0,b)},resolvePath:function(h,m,b,v,k){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(p(this.options.strict&&k,this,m,b,h));return}for(var $=m.length,w=function(N){S.replaceStack(function(A){var y=S.nameLookup(A,m[N],h);return v?[" && ",y]:[" != null ? ",y," : ",A]})},_=b;_<$;_++)w(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,m){this.pushContext(),this.pushString(m),m!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,m){var b=this.nameLookup("decorators",m,"decorator"),v=this.setupHelperArgs(m,h);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+m+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",v])," || fn;"])},invokeHelper:function(h,m,b){var v=this.popStack(),k=this.setupHelper(h,m),S=[];b&&S.push(k.name),S.push(v),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var $=["(",this.itemsSeparatedBy(S,"||"),")"],w=this.source.functionCall($,"call",k.callParams);this.push(w)},itemsSeparatedBy:function(h,m){var b=[];b.push(h[0]);for(var v=1;v<h.length;v++)b.push(m,h[v]);return b},invokeKnownHelper:function(h,m){var b=this.setupHelper(h,m);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,m){this.useRegister("helper");var b=this.popStack();this.emptyHash();var v=this.setupHelper(0,h,m),k=this.lastHelper=this.nameLookup("helpers",h,"helper"),S=["(","(helper = ",k," || ",b,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(h,m,b){var v=[],k=this.setupParams(m,1,v);h&&(m=this.popStack(),delete k.name),b&&(k.indent=JSON.stringify(b)),k.helpers="helpers",k.partials="partials",k.decorators="container.decorators",h?v.unshift(m):v.unshift(this.nameLookup("partials",m,"partial")),this.options.compat&&(k.depths="depths"),k=this.objectLiteral(k),v.push(k),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(h){var m=this.popStack(),b=void 0,v=void 0,k=void 0;this.trackIds&&(k=this.popStack()),this.stringParams&&(v=this.popStack(),b=this.popStack());var S=this.hash;b&&(S.contexts[h]=b),v&&(S.types[h]=v),k&&(S.ids[h]=k),S.values[h]=m},pushId:function(h,m,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+m[0]+"].path["+m[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(m):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,m){for(var b=h.children,v=void 0,k=void 0,S=0,$=b.length;S<$;S++){v=b[S],k=new this.compiler;var w=this.matchExistingProgram(v);if(w==null){var _=this.context.programs.push("")-1;v.index=_,v.name="program"+_,this.context.programs[_]=k.compile(v,m,this.context,!this.precompile),this.context.decorators[_]=k.decorators,this.context.environments[_]=v,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=w.index,v.name="program"+w.index,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams}},matchExistingProgram:function(h){for(var m=0,b=this.context.environments.length;m<b;m++){var v=this.context.environments[m];if(v&&v.equals(h))return v}},programExpression:function(h){var m=this.environment.children[h],b=[m.index,"data",m.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var m=["("],b=void 0,v=void 0,k=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof c)b=[S.value],m=["(",b],k=!0;else{v=!0;var $=this.incrStack();m=["((",this.push($)," = ",S,")"],b=this.topStack()}var w=h.call(this,b);k||this.popStack(),v&&this.stackSlot--,this.push(m.concat(w,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var h=this.inlineStack;this.inlineStack=[];for(var m=0,b=h.length;m<b;m++){var v=h[m];if(v instanceof c)this.compileStack.push(v);else{var k=this.incrStack();this.pushSource([k," = ",v,";"]),this.compileStack.push(k)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var m=this.isInline(),b=(m?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!m){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,m=h[h.length-1];return m instanceof c?m.value:m},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var m=this.aliases[h];return m?(m.referenceCount++,m):(m=this.aliases[h]=this.source.wrap(h),m.aliasable=!0,m.referenceCount=1,m)},setupHelper:function(h,m,b){var v=[],k=this.setupHelperArgs(m,h,v,b),S=this.nameLookup("helpers",m,"helper"),$=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:v,paramsInit:k,name:S,callParams:[$].concat(v)}},setupParams:function(h,m,b){var v={},k=[],S=[],$=[],w=!b,_=void 0;w&&(b=[]),v.name=this.quotedString(h),v.hash=this.popStack(),this.trackIds&&(v.hashIds=this.popStack()),this.stringParams&&(v.hashTypes=this.popStack(),v.hashContexts=this.popStack());var N=this.popStack(),A=this.popStack();(A||N)&&(v.fn=A||"container.noop",v.inverse=N||"container.noop");for(var y=m;y--;)_=this.popStack(),b[y]=_,this.trackIds&&($[y]=this.popStack()),this.stringParams&&(S[y]=this.popStack(),k[y]=this.popStack());return w&&(v.args=this.source.generateArray(b)),this.trackIds&&(v.ids=this.source.generateArray($)),this.stringParams&&(v.types=this.source.generateArray(S),v.contexts=this.source.generateArray(k)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(h,m,b,v){var k=this.setupParams(h,m,b);return k.loc=JSON.stringify(this.source.currentLocation),k=this.objectLiteral(k),v?(this.useRegister("options"),b.push("options"),["options=",k]):b?(b.push(k),""):k}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=u.RESERVED_WORDS={},m=0,b=d.length;m<b;m++)h[d[m]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function p(d,h,m,b,v){var k=h.popStack(),S=m.length;d&&S--;for(var $=b;$<S;$++)k=h.nameLookup(k,m[$],v);return d?[h.aliasable("container.strict"),"(",k,", ",h.quotedString(m[S]),", ",JSON.stringify(h.source.currentLocation)," )"]:k}t.default=u,e.exports=t.default})(va,va.exports);var r2=va.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=SS,a=n(o),i=Tl,r=n(i),l=fn,s=pn,c=r2,u=n(c),p=Pl,d=n(p),h=Ml,m=n(h),b=a.default.create;function v(){var S=b();return S.compile=function($,w){return s.compile($,w,S)},S.precompile=function($,w){return s.precompile($,w,S)},S.AST=r.default,S.Compiler=s.Compiler,S.JavaScriptCompiler=u.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var k=v();k.create=v,m.default(k),k.Visitor=d.default,k.default=k,t.default=k,e.exports=t.default})(Yo,Yo.exports);var i2=Yo.exports;const l2=r1(i2);function s2(e,t){const n=[],o=new Set,a=i=>{var l,s,c,u,p,d,h,m,b,v;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const r=e[i];switch(r.type){case"Container":case"ButtonGroup":(((l=r.data.props)==null?void 0:l.childrenIds)||[]).forEach(a);break;case"ColumnsContainer":case"FlexColumns":(((s=r.data.props)==null?void 0:s.columns)||[]).forEach(k=>(k.childrenIds||[]).forEach(a));break;case"Grid":(((c=r.data.props)==null?void 0:c.cells)||[]).forEach(k=>(k.childrenIds||[]).forEach(a));break;case"Accordion":(((u=r.data.props)==null?void 0:u.items)||[]).forEach(k=>{(k.titleChildrenIds||[]).forEach(a),(k.contentChildrenIds||[]).forEach(a)});break;case"TabsBlock":case"Carousel":case"Marquee":(((p=r.data.props)==null?void 0:p.items)||[]).forEach(k=>{(k.contentChildrenIds||[]).forEach(a)});break;case"Pagination":(((d=r.data.props)==null?void 0:d.cells)||[]).forEach(k=>(k.childrenIds||[]).forEach(a)),(((h=r.data.props)==null?void 0:h.items)||[]).forEach(k=>{(k.contentChildrenIds||[]).forEach(a)});break;case"PricingAccordion":(((m=r.data.props)==null?void 0:m.items)||[]).forEach(k=>{(k.cardChildrenIds||[]).forEach(a),(k.detailChildrenIds||[]).forEach(a)});break;case"MenuPicker":(((b=r.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(a),(((v=r.data.props)==null?void 0:v.endChildrenIds)||[]).forEach(a);break;case"EmailLayout":(r.data.childrenIds||[]).forEach(a);break}};return a(t),n}function Hl(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const a of t){if((a==null?void 0:a.type)!=="array"||!a.sourceBlockId)continue;(Array.isArray(a.value)?a.value:[]).forEach((r,l)=>{var c;const s=l===0?a.sourceBlockId:(c=a.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of s2(o,s))n.set(u,r||{})})}return n}const c2={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function u2(e){return e?c2[e]:void 0}const Sa=l2.create();Sa.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Sa.SafeString(`{{${t.name}}}`)});const gi=new Map;function d2(e){let t=gi.get(e);return t||(t=Sa.compile(e,{noEscape:!0,strict:!1}),gi.set(e,t)),t}function Fl(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const r of Object.keys(a)){const l=a[r];l!=null&&l!==""&&(i[r]=l)}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}typeof n.value!="string"||n.value===""||(t[n.id]=n.value)}return t}function Gl(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const h2=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function f2(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(h2,(i,r)=>{const l=t[r];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const Ul=/\{\{\s*this\.([\w]+)\s*\}\}/g;function p2(e,t){return e.replace(Ul,(n,o)=>{const a=t==null?void 0:t[o];return a!=null&&a!==""?String(a):n})}function Lo(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=p2(o,n),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const a=t&&t.length>0?Fl(t):{},{masked:i,restore:r}=f2(o,a),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(Ul,p=>{const d="HB_THIS_"+u+++"_";return l.set(d,p),d})}let c=d2(s)(a);for(const[u,p]of l)c=c.split(u).join(p);if(r.size>0)for(const[u,p]of r)c=c.split(u).join(p);return c}catch{return o}}function Zl(e,t,n){var r,l,s,c,u;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="List"){const p=(l=(r=e.data)==null?void 0:r.props)==null?void 0:l.items;if(!Array.isArray(p)||p.length===0)return e;let d=null;return p.forEach((h,m)=>{const b=h==null?void 0:h.text;if(typeof b!="string"||b.indexOf("{{")===-1)return;const v=Lo(b,t,n);v!==b&&(d||(d=p.map(k=>({...k}))),d[m]={...d[m],text:v})}),d?{...e,data:{...e.data,props:{...e.data.props,items:d}}}:e}if(e.type==="Breadcrumb"){const p=(c=(s=e.data)==null?void 0:s.props)==null?void 0:c.items;if(!Array.isArray(p)||p.length===0)return e;let d=null;return p.forEach((h,m)=>{for(const b of["label","href"]){const v=h==null?void 0:h[b];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const k=Lo(v,t,n);k!==v&&(d||(d=p.map(S=>({...S}))),d[m]={...d[m],[b]:k})}}),d?{...e,data:{...e.data,props:{...e.data.props,items:d}}}:e}const o=u2(e.type);if(!o)return e;const a=(u=e.data)==null?void 0:u.props;if(!a)return e;let i=null;for(const p of o){const d=a[p];if(typeof d!="string"||d.indexOf("{{")===-1)continue;const h=Lo(d,t,n);h!==d&&(i||(i={...a}),i[p]=h)}return i?{...e,data:{...e.data,props:i}}:e}function Wl(e,t){var l;if(!e)return e;const n=t??Gl(e);let o={...e},a=!1;const i=Hl(e,n);if(n&&n.length>0&&(Object.keys(Fl(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=Zl(c,n,i.get(s));u!==c&&(o[s]=u,a=!0)}const r=o.root;if(((l=r==null?void 0:r.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=r.data;o.root={...r,data:c},a=!0}return a?o:e}const bi=Object.fromEntries(Xe.map(e=>[e.key,e.value]));function Gn(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function m2(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function g2(e){const t=e.borderColor??null;if(!t)return"";if(t==="transparent")return"border:none!important";const n=Gn(e.borderWidth)?e.borderWidth:null;return m2(t)?"":[`border-top:${(n==null?void 0:n.top)??0}px solid ${t}!important`,`border-right:${(n==null?void 0:n.right)??0}px solid ${t}!important`,`border-bottom:${(n==null?void 0:n.bottom)??0}px solid ${t}!important`,`border-left:${(n==null?void 0:n.left)??0}px solid ${t}!important`].join(";")}function b2(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=g2(e);o&&t.push(o)}const n=e.backgroundSize==="none";n&&t.push("background-image:none!important");for(const o of Object.keys(e)){const a=e[o];if(a!=null)switch(o){case"borderColor":case"borderWidth":break;case"fontSize":t.push(`font-size:${a}px!important`);break;case"fontFamily":bi[a]&&t.push(`font-family:${bi[a]}!important`);break;case"fontWeight":t.push(`font-weight:${a}!important`);break;case"fontStyle":t.push(`font-style:${a}!important`);break;case"textDecoration":t.push(`text-decoration:${a}!important`);break;case"lineHeight":t.push(`line-height:${a}!important`);break;case"textAlign":t.push(`text-align:${a}!important`);break;case"buttonTextAlign":t.push(`justify-content:${a==="center"?"center":a==="right"?"flex-end":"flex-start"}!important`);break;case"padding":case"margin":Gn(a)&&t.push(`${o}:${a.top}px ${a.right}px ${a.bottom}px ${a.left}px!important`);break;case"marginBottom":t.push(`margin-bottom:${a}px!important`);break;case"width":t.push(`width:${typeof a=="number"?`${a}px`:a}!important`);break;case"height":t.push(`height:${typeof a=="number"?`${a}px`:a}!important`);break;case"backgroundImage":t.push(a&&!n?`background-image:url("${String(a).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":n||t.push(`background-size:${a}!important`);break;case"backgroundRepeat":t.push(`background-repeat:${a}!important`);break;case"activeFontSize":t.push(`--ahd-tabs-active-font-size:${typeof a=="number"?`${a}px`:a}`);break;case"showActiveBorder":t.push(`--ahd-tabs-active-border-color:${a?"currentColor":"transparent"}`);break;case"tabGap":t.push(`--ahd-tabs-tab-gap:${a}px`);break;case"contentGap":t.push(`--ahd-tabs-content-gap:${a}px`);break;case"navWidth":t.push(`--ahd-tabs-nav-width:${a}px`);break;case"starSize":t.push(`--ahd-rating-star-size:${a}px`);break;case"starGap":t.push(`--ahd-rating-star-gap:${a}px`);break;case"arrowSize":t.push(`--ahd-carousel-arrow-size:${a}px`),t.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(a)*.5)))}px`);break;case"dotSize":t.push(`--ahd-carousel-dot-size:${a}px`);break;case"slideGap":t.push(`--ahd-carousel-slide-gap:${a}px`);break;case"buttonSize":t.push(`--ahd-pgn-btn-size:${a}px`);break;case"buttonGap":t.push(`--ahd-pgn-btn-gap:${a}px`);break;case"buttonRadius":t.push(`--ahd-pgn-btn-radius:${a}px`);break;case"controlGap":t.push(`--ahd-pgn-control-gap:${a}px`);break;case"borderRadius":if(typeof a=="number")t.push(`border-radius:${a}px!important`);else if(a&&typeof a=="object"){const{topLeft:i=0,topRight:r=0,bottomRight:l=0,bottomLeft:s=0}=a;t.push(`border-radius:${i}px ${r}px ${l}px ${s}px!important`)}else t.push(`border-radius:${a}!important`);break}}return t.join(";")}function v2(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const a=typeof o=="number"?`${o}px`:o;t.push(`height:${a}!important`),t.push(`--ahd-iframe-height:${a}`),t.push(`--ahd-calendly-height:${a}`),t.push(`--ahd-demo-height:${a}`);break}case"width":{const a=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${a}`),t.push(`--ahd-calendly-width:${a}`),t.push(`--ahd-demo-width:${a}`);break}case"blockPadding":Gn(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":Gn(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function vi(e,t){if(!t)return null;const n=e??{},o={};for(const a of Object.keys(t)){const i=t[a],r=n[a],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!r&&typeof r=="object"&&!Array.isArray(r);o[a]=l?{...r,...i}:i}return o}function x2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=w2(a),r=[],l=(c,u)=>{const p=vi(n,u==null?void 0:u.style),d=vi(o,u==null?void 0:u.props),h=[p?b2(p):"",d?v2(d):""].filter(Boolean).join(";"),m=[h?`${i}{${h}}`:"",u!=null&&u.hidden?`${a}{display:none}`:""].filter(Boolean).join("");m&&r.push(`${c}{${m}}`)};l(dn,t.tablet),l(`@media (max-width:${Ae}px)`,t.mobile);const s=_2(e,t,n,o);return s&&r.push(s),r.join("")}function S2(e,t){return t?e?{...e,...t}:t:e}function wa(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function xi(e,t,n){const o=wa(e,t),a=wa(n==null?void 0:n.style,n==null?void 0:n.props);return S2(o,a)}function zo(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 w2(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 k2(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 _2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=k2(a),r=wa(n,o),l=zo(r),s=zo(xi(n,o,t.tablet)),c=zo(xi(n,o,t.mobile));return s===l&&c===l?"":`
470
- ${dn} { ${i} { width: ${s} !important; max-width: 100% !important; } }
471
- @media (max-width:${Ae}px) { ${i} { width: ${c} !important; max-width: 100% !important; } }
472
- `.trim()}const $2=e=>{var o,a;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((a=e==null?void 0:e.props)==null?void 0:a.alt)??"";return t?g.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:g.jsx(vr,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(vr,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},C2=e=>g.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:g.jsx(ym,{...e})}),A2=qb,ql=G.createContext({});function Vl(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const Si=new WeakMap;function y2(e){if(!e||typeof e!="object")return new Map;let t=Si.get(e);return t||(t=Hl(e,Vl(e)),Si.set(e,t)),t}const Yl=G.createContext({});function N2(){return G.useContext(ql)}function R2(){return G.useContext(Yl)}const Kl={ColumnsContainer:{schema:Rg,Component:Ig},FlexColumns:{schema:Mg,Component:Bg},Grid:{schema:Kg,Component:eb},ButtonGroup:{schema:A0,Component:y0},Container:{schema:vb,Component:xb},EmailLayout:{schema:Eb,Component:A2},Accordion:{schema:R0,Component:M0},PricingAccordion:{schema:P0,Component:L0},TabsBlock:{schema:j0,Component:q0},Carousel:{schema:J0,Component:tv},Rating:{schema:nv,Component:iv},Progress:{schema:cv,Component:mv},Marquee:{schema:gv,Component:Ev},Timer:{schema:Tv,Component:Fv},Pagination:{schema:Wv,Component:ex},Table:{schema:tx,Component:rx},DemoPicker:{schema:ix,Component:e=>g.jsx(sx,{...e})},MenuPicker:{schema:ux,Component:e=>g.jsx(Ax,{...e})},Breadcrumb:{schema:Ix,Component:Bx},FormsPicker:{schema:Dx,Component:e=>g.jsx(Gx,{...e})},AppBannerPicker:{schema:Ux,Component:e=>g.jsx(qx,{...e})},FaqPicker:{schema:Vx,Component:e=>g.jsx(Jx,{...e})},Avatar:{schema:of,Component:$2},Button:{schema:Of,Component:Lf},Divider:{schema:Zf,Component:Wf},Heading:{schema:op,Component:ap},Html:{schema:Tp,Component:Lp},Image:{schema:qp,Component:Yp},Logo:{schema:im,Component:sm},Video:{schema:Sm,Component:$m},IFrame:{schema:Jm,Component:eg},Calendly:{schema:og,Component:ig},YouTubeUrl:{schema:Wm,Component:Vm},Spacer:{schema:Cm,Component:C2},SkipLink:{schema:Xx,Component:wl},AccessibilityTools:{schema:e1,Component:Cl},Stepper:{schema:o0,Component:a0},List:{schema:f0,Component:m0},Text:{schema:Hm,Component:Gm}},Jl=hg(Kl),E2=Lt(x(),Jl),I2=dg(Kl);function ve({id:e}){var $,w,_,N,A,y,R;const t=N2(),{staticRender:n,injectElementIds:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:r}=R2(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||r&&e===r&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=a&&e===a&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...(($=l.data)==null?void 0:$.props)??{},elementId:"main-content"}}}:l,c=Vl(t),u=y2(t).get(e),p=Zl(s,c,u),d=g.jsx(I2,{...p});if(e==="root")return d;const h=!!((w=l==null?void 0:l.data)!=null&&w.hidden),b=new Set(["Image","Container","Button","Avatar","Logo"]).has(p==null?void 0:p.type)?(N=(_=p==null?void 0:p.data)==null?void 0:_.props)==null?void 0:N.animation:null,v=b&&b.type&&b.type!=="none"?{"data-animate-type":b.type,"data-animate-trigger":b.trigger??"load","data-animate-speed":b.speed??"medium","data-animate-delay":b.delay??0,...b.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},k=n&&o?`ahd-${e}`:e,S=x2(k,(A=p==null?void 0:p.data)==null?void 0:A.responsive,(y=p==null?void 0:p.data)==null?void 0:y.style,(R=p==null?void 0:p.data)==null?void 0:R.props);return n&&o?g.jsxs("div",{id:`ahd-${e}`,className:"ahd-block-wrapper",style:h?{display:"none"}:void 0,...v,children:[S?g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}):null,d]}):g.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...h?{display:"none"}:null},...v,children:[S?g.jsx("style",{dangerouslySetInnerHTML:{__html:S}}):null,d]})}function sn({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:a,mainBlockId:i,hoistedSkipLinkId:r,hoistedA11yToolsId:l}){const s=G.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!a,mainBlockId:i,hoistedSkipLinkId:r,hoistedA11yToolsId:l}),[n,o,a,i,r,l]);return g.jsx(ql.Provider,{value:e,children:g.jsx(Yl.Provider,{value:s,children:g.jsx(ve,{id:t})})})}function M2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function T2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function P2(e,t){const n=new Set;function o(a){var s,c,u,p;if(n.has(a))return;n.add(a);const i=e[a];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return a;const r=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(r.childrenIds)&&l.push(r.childrenIds),Array.isArray((p=i.data)==null?void 0:p.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(r.columns)&&r.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const h of d){const m=o(h);if(m)return m}}return o(t)}const O2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),L2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),z2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),j2=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),B2=e=>Object.values(e??{}).some(t=>{var n,o,a;return j2.has(t==null?void 0:t.type)&&((a=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:a.type)&&t.data.props.animation.type!=="none"}),D2=()=>`
492
+ `.trim()},blockValue:function(h){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(h,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var h=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(h,"call",p),"}"])},appendContent:function(h){this.pendingContent?h=this.pendingContent+h:this.pendingLocation=this.source.currentLocation,this.pendingContent=h},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var h=this.popStack();this.pushSource(["if (",h," != null) { ",this.appendToBuffer(h,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(h){this.lastContext=h},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(h,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[w++])):this.pushContext(),this.resolvePath("context",h,w,p,b)},lookupBlockParam:function(h,p){this.useBlockParams=!0,this.push(["blockParams[",h[0],"][",h[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(h,p,b){h?this.pushStackLiteral("container.data(data, "+h+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(h,p,b,x,w){var v=this;if(this.options.strict||this.options.assumeObjects){this.push(f(this.options.strict&&w,this,p,b,h));return}for(var _=p.length,S=function(y){v.replaceStack(function(C){var R=v.nameLookup(C,p[y],h);return x?[" && ",R]:[" != null ? ",R," : ",C]})},$=b;$<_;$++)S($)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(h,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof h=="string"?this.pushString(h):this.pushStackLiteral(h))},emptyHash:function(h){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(h?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var h=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(h.ids)),this.stringParams&&(this.push(this.objectLiteral(h.contexts)),this.push(this.objectLiteral(h.types))),this.push(this.objectLiteral(h.values))},pushString:function(h){this.pushStackLiteral(this.quotedString(h))},pushLiteral:function(h){this.pushStackLiteral(h)},pushProgram:function(h){h!=null?this.pushStackLiteral(this.programExpression(h)):this.pushStackLiteral(null)},registerDecorator:function(h,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,h);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(h,p,b){var x=this.popStack(),w=this.setupHelper(h,p),v=[];b&&v.push(w.name),v.push(x),this.options.strict||v.push(this.aliasable("container.hooks.helperMissing"));var _=["(",this.itemsSeparatedBy(v,"||"),")"],S=this.source.functionCall(_,"call",w.callParams);this.push(S)},itemsSeparatedBy:function(h,p){var b=[];b.push(h[0]);for(var x=1;x<h.length;x++)b.push(p,h[x]);return b},invokeKnownHelper:function(h,p){var b=this.setupHelper(h,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(h,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,h,p),w=this.lastHelper=this.nameLookup("helpers",h,"helper"),v=["(","(helper = ",w," || ",b,")"];this.options.strict||(v[0]="(helper = ",v.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",v,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(h,p,b){var x=[],w=this.setupParams(p,1,x);h&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",h?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(h){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 v=this.hash;b&&(v.contexts[h]=b),x&&(v.types[h]=x),w&&(v.ids[h]=w),v.values[h]=p},pushId:function(h,p,b){h==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):h==="PathExpression"?this.pushString(p):h==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(h,p){for(var b=h.children,x=void 0,w=void 0,v=0,_=b.length;v<_;v++){x=b[v],w=new this.compiler;var S=this.matchExistingProgram(x);if(S==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=S.index,x.name="program"+S.index,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.useBlockParams}},matchExistingProgram:function(h){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(h))return x}},programExpression:function(h){var p=this.environment.children[h],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(h){this.registers[h]||(this.registers[h]=!0,this.registers.list.push(h))},push:function(h){return h instanceof c||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new c(h))},pushSource:function(h){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),h&&this.source.push(h)},replaceStack:function(h){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var v=this.popStack(!0);if(v instanceof c)b=[v.value],p=["(",b],w=!0;else{x=!0;var _=this.incrStack();p=["((",this.push(_)," = ",v,")"],b=this.topStack()}var S=h.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(S,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var h=this.inlineStack;this.inlineStack=[];for(var p=0,b=h.length;p<b;p++){var x=h[p];if(x instanceof c)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(h){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof c)return b.value;if(!p){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var h=this.isInline()?this.inlineStack:this.compileStack,p=h[h.length-1];return p instanceof c?p.value:p},contextName:function(h){return this.useDepths&&h?"depths["+h+"]":"depth"+h},quotedString:function(h){return this.source.quotedString(h)},objectLiteral:function(h){return this.source.objectLiteral(h)},aliasable:function(h){var p=this.aliases[h];return p?(p.referenceCount++,p):(p=this.aliases[h]=this.source.wrap(h),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(h,p,b){var x=[],w=this.setupHelperArgs(p,h,x,b),v=this.nameLookup("helpers",p,"helper"),_=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:v,callParams:[_].concat(x)}},setupParams:function(h,p,b){var x={},w=[],v=[],_=[],S=!b,$=void 0;S&&(b=[]),x.name=this.quotedString(h),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 R=p;R--;)$=this.popStack(),b[R]=$,this.trackIds&&(_[R]=this.popStack()),this.stringParams&&(v[R]=this.popStack(),w[R]=this.popStack());return S&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(_)),this.stringParams&&(x.types=this.source.generateArray(v),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(h,p,b,x){var w=this.setupParams(h,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(" "),h=u.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)h[d[p]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function f(d,h,p,b,x){var w=h.popStack(),v=p.length;d&&v--;for(var _=b;_<v;_++)w=h.nameLookup(w,p[_],x);return d?[h.aliasable("container.strict"),"(",w,", ",h.quotedString(p[v]),", ",JSON.stringify(h.source.currentLocation)," )"]:w}t.default=u,e.exports=t.default})(Zr,Zr.exports);var m2=Zr.exports;(function(e,t){t.__esModule=!0;function n(v){return v&&v.__esModule?v:{default:v}}var o=ES,r=n(o),i=Ms,a=n(i),l=An,s=yn,c=m2,u=n(c),f=Ts,d=n(f),h=Ns,p=n(h),b=r.default.create;function x(){var v=b();return v.compile=function(_,S){return s.compile(_,S,v)},v.precompile=function(_,S){return s.precompile(_,S,v)},v.AST=a.default,v.Compiler=s.Compiler,v.JavaScriptCompiler=u.default,v.Parser=l.parser,v.parse=l.parse,v.parseWithoutProcessing=l.parseWithoutProcessing,v}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(kr,kr.exports);var g2=kr.exports;const b2=mw(g2);function ba(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,f,d,h,p,b,x;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const a=e[i];switch(a.type){case"Container":case"ButtonGroup":(((l=a.data.props)==null?void 0:l.childrenIds)||[]).forEach(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(r),(w.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((f=a.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r)),(((h=a.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((p=a.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(r),(w.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((x=a.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}const so="relative",Sn="24h",x2=864e5;function xa(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function nl(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function v2(e,t){const n=xa(e);if(!n)return"";const o=(t==null?void 0:t.now)??new Date,r=t==null?void 0:t.locale,i=Math.round((nl(n).getTime()-nl(o).getTime())/x2);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(r,{weekday:"short"});const a=n.getFullYear()===o.getFullYear();return n.toLocaleDateString(r,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function ir(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`}}function w2(e,t){const o=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"short",day:"numeric",weekday:"long"}).formatToParts(e),r=i=>{var a;return((a=o.find(l=>l.type===i))==null?void 0:a.value)??""};return{year:Number(r("year")),month:new Date(`${r("month")} 1, 2000`).getMonth(),day:Number(r("day")),weekday:r("weekday")}}const S2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qr(e){return e<10?`0${e}`:String(e)}function Vr(e,t=so,n){if(t==="relative")return v2(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const o=xa(e);if(!o)return"";const{year:r,month:i,day:a,weekday:l}=w2(o,n==null?void 0:n.tz),s=S2[i],c=String(r),u=qr(i+1),f=qr(a);switch(t){case"do-mmm-yyyy":return`${ir(a)} ${s} ${c}`;case"mmm-d-yyyy":return`${s} ${a}, ${c}`;case"d-mmm-yyyy":return`${a} ${s} ${c}`;case"dd-mm-yyyy":return`${f}/${u}/${c}`;case"mm-dd-yyyy":return`${u}/${f}/${c}`;case"yyyy-mm-dd":return`${c}-${u}-${f}`;case"do-mmm":return`${ir(a)} ${s}`;case"full":return`${l}, ${a} ${new Date(2e3,i,1).toLocaleDateString("en-US",{month:"long"})} ${c}`;default:return`${ir(a)} ${s} ${c}`}}function co(e,t=Sn,n){const o=xa(e);if(!o)return"";const i=new Intl.DateTimeFormat("en-US",{timeZone:n==null?void 0:n.tz,hour:"numeric",minute:"2-digit",hour12:t==="12h"}).formatToParts(o),a=c=>{var u;return((u=i.find(f=>f.type===c))==null?void 0:u.value)??""};if(t==="12h"){const c=a("hour"),u=a("minute"),f=a("dayPeriod").toUpperCase();return`${c}:${u} ${f}`}const l=qr(Number(a("hour"))%24),s=a("minute");return`${l}:${s}`}function Ds(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of ba(o,s))n.set(u,a||{})})}return n}const k2={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function _2(e){return e?k2[e]:void 0}const Yr=b2.create();Yr.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Yr.SafeString(`{{${t.name}}}`)});const ol=new Map;function $2(e){let t=ol.get(e);return t||(t=Yr.compile(e,{noEscape:!0,strict:!1}),ol.set(e,t)),t}function Fs(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const o=new Map;for(const i of n.itemFields??[])((i==null?void 0:i.type)==="date"||(i==null?void 0:i.type)==="time"||(i==null?void 0:i.type)==="datetime")&&i.id&&o.set(i.id,i);const r=n.value.map(i=>{const a={};if(i&&typeof i=="object")for(const l of Object.keys(i)){const s=i[l];if(s==null||s==="")continue;const c=o.get(l);if((c==null?void 0:c.type)==="datetime"){const u=Yn(l,String(s),o,"date"),f=Yn(l,String(s),o,"time"),d={date:u,time:f};Object.defineProperty(d,"toString",{value:()=>[u,f].filter(Boolean).join(" "),enumerable:!1}),a[l]=d}else a[l]=c?Yn(l,String(s),o):s}return a});Object.defineProperty(r,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=r;continue}if(n.type==="datetime"){const o=n.id,r=typeof n.value=="string"?n.value:"";if(!r){const c={date:`{{${o}.date}}`,time:`{{${o}.time}}`};Object.defineProperty(c,"toString",{value:()=>`{{${o}}}`,enumerable:!1}),t[o]=c;continue}const i=n.dateFormat??so,a=i==="relative"?fr(o,r):Vr(r,i,{tz:n.dateTz}),l=co(r,n.timeFormat??Sn,{tz:n.dateTz}),s={date:a,time:l};Object.defineProperty(s,"toString",{value:()=>[a,l].filter(Boolean).join(" "),enumerable:!1}),t[o]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const o=n.dateFormat??so;t[n.id]=o==="relative"?fr(n.id,n.value):Vr(n.value,o,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=co(n.value,n.timeFormat??Sn,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function va(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const C2=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function A2(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(C2,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const Hs=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function y2(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 o of n.itemFields)((o==null?void 0:o.type)==="date"||(o==null?void 0:o.type)==="time"||(o==null?void 0:o.type)==="datetime")&&o.id&&!t.has(o.id)&&t.set(o.id,o);return t}function rl(e,t,n){const o=n.dateFormat??so;return o==="relative"?fr(e,t):Vr(t,o,{tz:n.dateTz})}function Yn(e,t,n,o){const r=n.get(e);if(!r)return t;if(r.type==="time")return co(t,r.timeFormat??Sn,{tz:r.dateTz});if(r.type==="datetime"){const i=co(t,r.timeFormat??Sn,{tz:r.dateTz});if(o==="time")return i;const a=rl(e,t,r);return o==="date"?a:[a,i].filter(Boolean).join(" ")}return rl(e,t,r)}function I2(e,t,n){return e.replace(Hs,(o,r,i)=>{const a=t==null?void 0:t[r];return a==null||a===""?o:n?Yn(r,String(a),n,i):String(a)})}function un(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=I2(o,n,y2(t)),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?Fs(t):{},{masked:i,restore:a}=A2(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(Hs,f=>{const d="HB_THIS_"+u+++"_";return l.set(d,f),d})}let c=$2(s)(r);for(const[u,f]of l)c=c.split(u).join(f);if(a.size>0)for(const[u,f]of a)c=c.split(u).join(f);return c}catch{return o}}function Gs(e,t,n,o){var l,s,c,u,f,d,h,p,b;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const x=(s=(l=e.data)==null?void 0:l.props)==null?void 0:s.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{const S=v==null?void 0:v.label;if(typeof S!="string"||S.indexOf("{{")===-1)return;const $=Array.isArray(v==null?void 0:v.contentChildrenIds)?v.contentChildrenIds[0]:void 0,y=$&&o?o.get($):n,C=un(S,t,y??null);C!==S&&(w||(w=x.map(R=>({...R}))),w[_]={...w[_],label:C})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="List"){const x=(u=(c=e.data)==null?void 0:c.props)==null?void 0:u.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{const S=v==null?void 0:v.text;if(typeof S!="string"||S.indexOf("{{")===-1)return;const $=un(S,t,n);$!==S&&(w||(w=x.map(y=>({...y}))),w[_]={...w[_],text:$})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Breadcrumb"){const x=(d=(f=e.data)==null?void 0:f.props)==null?void 0:d.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{for(const S of["label","href"]){const $=v==null?void 0:v[S];if(typeof $!="string"||$.indexOf("{{")===-1)continue;const y=un($,t,n);y!==$&&(w||(w=x.map(C=>({...C}))),w[_]={...w[_],[S]:y})}}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Table"){const x=(p=(h=e.data)==null?void 0:h.props)==null?void 0:p.cells;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((v,_)=>{if(typeof v!="string"||v.indexOf("{{")===-1)return;const S=un(v,t,n);S!==v&&(w||(w=[...x]),w[_]=S)}),w?{...e,data:{...e.data,props:{...e.data.props,cells:w}}}:e}const r=_2(e.type);if(!r)return e;const i=(b=e.data)==null?void 0:b.props;if(!i)return e;let a=null;for(const x of r){const w=i[x];if(typeof w!="string"||w.indexOf("{{")===-1)continue;const v=un(w,t,n);v!==w&&(a||(a={...i}),a[x]=v)}return a?{...e,data:{...e.data,props:a}}:e}function wa(e,t){var l;if(!e)return e;const n=t??va(e);let o={...e},r=!1;const i=Ds(e,n);if(n&&n.length>0&&(Object.keys(Fs(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=Gs(c,n,i.get(s),i);u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const al=Object.fromEntries(rt.map(e=>[e.key,e.value]));function uo(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function R2(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function E2(e){const t=e.borderColor??null;if(!t)return"";if(t==="transparent")return"border:none!important";const n=uo(e.borderWidth)?e.borderWidth:null;return R2(t)?"":[`border-top:${(n==null?void 0:n.top)??0}px solid ${t}!important`,`border-right:${(n==null?void 0:n.right)??0}px solid ${t}!important`,`border-bottom:${(n==null?void 0:n.bottom)??0}px solid ${t}!important`,`border-left:${(n==null?void 0:n.left)??0}px solid ${t}!important`].join(";")}function N2(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=E2(e);o&&t.push(o)}const n=e.backgroundSize==="none";n&&t.push("background-image:none!important");for(const o of Object.keys(e)){const r=e[o];if(r!=null)switch(o){case"borderColor":case"borderWidth":break;case"fontSize":t.push(`font-size:${r}px!important`);break;case"fontFamily":al[r]&&t.push(`font-family:${al[r]}!important`);break;case"fontWeight":t.push(`font-weight:${r}!important`);break;case"fontStyle":t.push(`font-style:${r}!important`);break;case"textDecoration":t.push(`text-decoration:${r}!important`);break;case"lineHeight":t.push(`line-height:${r}!important`);break;case"textAlign":t.push(`text-align:${r}!important`);break;case"buttonTextAlign":t.push(`justify-content:${r==="center"?"center":r==="right"?"flex-end":"flex-start"}!important`);break;case"padding":case"margin":uo(r)&&t.push(`${o}:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"marginBottom":t.push(`margin-bottom:${r}px!important`);break;case"width":t.push(`width:${typeof r=="number"?`${r}px`:r}!important`);break;case"height":t.push(`height:${typeof r=="number"?`${r}px`:r}!important`);break;case"backgroundImage":t.push(r&&!n?`background-image:url("${String(r).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":n||t.push(`background-size:${r}!important`);break;case"backgroundRepeat":t.push(`background-repeat:${r}!important`);break;case"activeFontSize":t.push(`--ahd-tabs-active-font-size:${typeof r=="number"?`${r}px`:r}`);break;case"showActiveBorder":t.push(`--ahd-tabs-active-border-color:${r?"currentColor":"transparent"}`);break;case"tabGap":t.push(`--ahd-tabs-tab-gap:${r}px`);break;case"contentGap":t.push(`--ahd-tabs-content-gap:${r}px`);break;case"navWidth":t.push(`--ahd-tabs-nav-width:${r}px`);break;case"starSize":t.push(`--ahd-rating-star-size:${r}px`);break;case"starGap":t.push(`--ahd-rating-star-gap:${r}px`);break;case"arrowSize":t.push(`--ahd-carousel-arrow-size:${r}px`),t.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(r)*.5)))}px`);break;case"dotSize":t.push(`--ahd-carousel-dot-size:${r}px`);break;case"slideGap":t.push(`--ahd-carousel-slide-gap:${r}px`);break;case"buttonSize":t.push(`--ahd-pgn-btn-size:${r}px`);break;case"buttonGap":t.push(`--ahd-pgn-btn-gap:${r}px`);break;case"buttonRadius":t.push(`--ahd-pgn-btn-radius:${r}px`);break;case"controlGap":t.push(`--ahd-pgn-control-gap:${r}px`);break;case"borderRadius":if(typeof r=="number")t.push(`border-radius:${r}px!important`);else if(r&&typeof r=="object"){const{topLeft:i=0,topRight:a=0,bottomRight:l=0,bottomLeft:s=0}=r;t.push(`border-radius:${i}px ${a}px ${l}px ${s}px!important`)}else t.push(`border-radius:${r}!important`);break}}return t.join(";")}function M2(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const r=typeof o=="number"?`${o}px`:o;t.push(`height:${r}!important`),t.push(`--ahd-iframe-height:${r}`),t.push(`--ahd-calendly-height:${r}`),t.push(`--ahd-demo-height:${r}`);break}case"width":{const r=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${r}`),t.push(`--ahd-calendly-width:${r}`),t.push(`--ahd-demo-width:${r}`);break}case"blockPadding":uo(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":uo(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function il(e,t){if(!t)return null;const n=e??{},o={};for(const r of Object.keys(t)){const i=t[r],a=n[r],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!a&&typeof a=="object"&&!Array.isArray(a);o[r]=l?{...a,...i}:i}return o}function T2(e,t,n,o){if(!t)return"";const r=`#${e}`,i=O2(r),a=[],l=(c,u)=>{const f=il(n,u==null?void 0:u.style),d=il(o,u==null?void 0:u.props),h=[f?N2(f):"",d?M2(d):""].filter(Boolean).join(";"),p=[h?`${i}{${h}}`:"",u!=null&&u.hidden?`${r}{display:none}`:""].filter(Boolean).join("");p&&a.push(`${c}{${p}}`)};l(It,t.tablet),l(`@media (max-width:${Le}px)`,t.mobile);const s=z2(e,t,n,o);return s&&a.push(s),a.join("")}function P2(e,t){return t?e?{...e,...t}:t:e}function Kr(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function ll(e,t,n){const o=Kr(e,t),r=Kr(n==null?void 0:n.style,n==null?void 0:n.props);return P2(o,r)}function lr(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 O2(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 L2(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 z2(e,t,n,o){if(!t)return"";const r=`#${e}`,i=L2(r),a=Kr(n,o),l=lr(a),s=lr(ll(n,o,t.tablet)),c=lr(ll(n,o,t.mobile));return s===l&&c===l?"":`
493
+ ${It} { ${i} { width: ${s} !important; max-width: 100% !important; } }
494
+ @media (max-width:${Le}px) { ${i} { width: ${c} !important; max-width: 100% !important; } }
495
+ `.trim()}const j2=e=>{var o,r;const t=!!((o=e==null?void 0:e.props)!=null&&o.decorative),n=((r=e==null?void 0:e.props)==null?void 0:r.alt)??"";return t?g.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:g.jsx(oi,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(oi,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},B2=e=>g.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:g.jsx(Ng,{...e})}),D2=ix,Us=F.createContext({}),sl=F.createContext(!1),F2=typeof window<"u"?F.useLayoutEffect:F.useEffect;function Zs(e){var n,o;const t=(o=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:o.formFields;return Array.isArray(t)?t:[]}const cl=new WeakMap;function H2(e){if(!e||typeof e!="object")return new Map;let t=cl.get(e);return t||(t=Ds(e,Zs(e)),cl.set(e,t)),t}const Ws=F.createContext({});function G2(){return F.useContext(Us)}function U2(){return F.useContext(Ws)}const qs={ColumnsContainer:{schema:Hb,Component:Ub},FlexColumns:{schema:Zb,Component:Xb},Grid:{schema:c0,Component:f0},ButtonGroup:{schema:Bx,Component:Dx},Container:{schema:N0,Component:M0},EmailLayout:{schema:G0,Component:D2},Accordion:{schema:Hx,Component:Zx},PricingAccordion:{schema:qx,Component:Yx},TabsBlock:{schema:Xx,Component:av},Carousel:{schema:lv,Component:dv},Rating:{schema:hv,Component:gv},Progress:{schema:vv,Component:Cv},Marquee:{schema:Av,Component:Dv},Timer:{schema:Gv,Component:Xv},Pagination:{schema:n1,Component:u1},Table:{schema:d1,Component:m1},DemoPicker:{schema:g1,Component:e=>g.jsx(x1,{...e})},MenuPicker:{schema:w1,Component:e=>g.jsx(L1,{...e})},Breadcrumb:{schema:F1,Component:Y1},FormsPicker:{schema:K1,Component:e=>g.jsx(Q1,{...e})},AppBannerPicker:{schema:ew,Component:e=>g.jsx(ow,{...e})},FaqPicker:{schema:rw,Component:e=>g.jsx(lw,{...e})},Avatar:{schema:np,Component:j2},Button:{schema:Bp,Component:Dp},Divider:{schema:Yp,Component:Kp},Heading:{schema:lm,Component:sm},Html:{schema:zm,Component:Dm},Image:{schema:Jm,Component:Qm},Logo:{schema:ug,Component:hg},Video:{schema:$g,Component:Ig},IFrame:{schema:ub,Component:fb},Calendly:{schema:gb,Component:vb},YouTubeUrl:{schema:ab,Component:lb},Spacer:{schema:Rg,Component:B2},SkipLink:{schema:sw,Component:ws},AccessibilityTools:{schema:uw,Component:$s},Stepper:{schema:gx,Component:bx},List:{schema:Ax,Component:Ix},Text:{schema:eb,Component:nb}},Vs=Cb(qs),Z2=Wt(k(),Vs),W2=$b(qs);function ke({id:e}){var S,$,y,C,R,I,E;const t=G2(),{staticRender:n,injectElementIds:o,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:a}=U2(),l=t[e];if(i&&e===i&&(l==null?void 0:l.type)==="SkipLink"||a&&e===a&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=r&&e===r&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((S=l.data)==null?void 0:S.props)??{},elementId:"main-content"}}}:l,c=Zs(t),u=H2(t),f=u.get(e),d=Gs(s,c,f,u),h=g.jsx(W2,{...d});if(e==="root")return h;const p=!!(($=l==null?void 0:l.data)!=null&&$.hidden),x=new Set(["Image","Container","Button","Avatar","Logo"]).has(d==null?void 0:d.type)?(C=(y=d==null?void 0:d.data)==null?void 0:y.props)==null?void 0:C.animation:null,w=x&&x.type&&x.type!=="none"?{"data-animate-type":x.type,"data-animate-trigger":x.trigger??"load","data-animate-speed":x.speed??"medium","data-animate-delay":x.delay??0,...x.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},v=n&&o?`ahd-${e}`:e,_=T2(v,(R=d==null?void 0:d.data)==null?void 0:R.responsive,(I=d==null?void 0:d.data)==null?void 0:I.style,(E=d==null?void 0:d.data)==null?void 0:E.props);return n&&o?g.jsxs("div",{id:`ahd-${e}`,className:"ahd-block-wrapper",style:p?{display:"none"}:void 0,...w,children:[_?g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}):null,h]}):g.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...p?{display:"none"}:null},...w,children:[_?g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}):null,h]})}function kn({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}){const s=F.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!r,mainBlockId:i,hoistedSkipLinkId:a,hoistedA11yToolsId:l}),[n,o,r,i,a,l]),c=F.useContext(sl),u=F.useRef(null);return F2(()=>{n||c||u.current&&(Ap(u.current),yp(u.current))},[n,c,e,t]),g.jsx("div",{ref:u,style:{display:"contents"},children:g.jsx(Us.Provider,{value:e,children:g.jsx(Ws.Provider,{value:s,children:g.jsx(sl.Provider,{value:!0,children:g.jsx(ke,{id:t})})})})})}function q2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function V2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function Y2(e,t){const n=new Set;function o(r){var s,c,u,f;if(n.has(r))return;n.add(r);const i=e[r];if(!i)return;if(i.type==="Container"&&((c=(s=i.data)==null?void 0:s.props)==null?void 0:c.tag)==="main")return r;const a=((u=i.data)==null?void 0:u.props)??{},l=[];Array.isArray(a.childrenIds)&&l.push(a.childrenIds),Array.isArray((f=i.data)==null?void 0:f.childrenIds)&&l.push(i.data.childrenIds),Array.isArray(a.columns)&&a.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const h of d){const p=o(h);if(p)return p}}return o(t)}const K2=()=>`<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;")}">`,J2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),X2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),Q2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),ek=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),tk=e=>Object.values(e??{}).some(t=>{var n,o,r;return ek.has(t==null?void 0:t.type)&&((r=(o=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:o.animation)==null?void 0:r.type)&&t.data.props.animation.type!=="none"}),nk=()=>`
473
496
  (function () {
474
497
  if (window.__ahdAnimationBound) return;
475
498
  window.__ahdAnimationBound = true;
@@ -577,7 +600,7 @@ ${dn} { ${i} { width: ${s} !important; max-width: 100% !important; } }
577
600
  var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
578
601
  }
579
602
  })();
580
- `.trim(),H2=()=>`
603
+ `.trim(),ok=()=>`
581
604
  (function () {
582
605
  var BASE_WIDTH = 1440;
583
606
  var BASE_HEIGHT = 830;
@@ -606,7 +629,7 @@ ${dn} { ${i} { width: ${s} !important; max-width: 100% !important; } }
606
629
  init();
607
630
  }
608
631
  })();
609
- `,F2=()=>`
632
+ `,rk=()=>`
610
633
  (function () {
611
634
  if (window.__ahdTabsBound) return;
612
635
  window.__ahdTabsBound = true;
@@ -730,7 +753,7 @@ ${dn} { ${i} { width: ${s} !important; max-width: 100% !important; } }
730
753
  var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
731
754
  }
732
755
  })();
733
- `,G2=()=>`
756
+ `,ak=()=>`
734
757
  (function () {
735
758
  if (window.__ahdCarouselBound) return;
736
759
  window.__ahdCarouselBound = true;
@@ -912,7 +935,7 @@ ${dn} { ${i} { width: ${s} !important; max-width: 100% !important; } }
912
935
  var timer = setInterval(function () { initAll(); if (++tries > 20) clearInterval(timer); }, 250);
913
936
  }
914
937
  })();
915
- `,U2=`
938
+ `,ik=`
916
939
  @keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
917
940
  @keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
918
941
  @keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@@ -925,8 +948,8 @@ ${dn} { ${i} { width: ${s} !important; max-width: 100% !important; } }
925
948
  80% { transform: translateY(-2px); }
926
949
  100% { opacity: 1; transform: translateY(0); }
927
950
  }
928
- `.trim(),Z2=`
929
- ${U2}
951
+ `.trim(),lk=`
952
+ ${ik}
930
953
 
931
954
  /* Elements that animate on scroll/hover/click start hidden so there is no
932
955
  flash of the final state before the trigger fires. Load-triggered elements
@@ -944,7 +967,7 @@ html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.
944
967
  animation-fill-mode: both;
945
968
  animation-timing-function: ease-out;
946
969
  }
947
- `.trim(),W2=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),q2=(e,t=!1)=>W2(`
970
+ `.trim(),sk=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),ck=(e,t=!1)=>sk(`
948
971
 
949
972
  @import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');
950
973
 
@@ -1776,21 +1799,21 @@ table[style*="maxHeight"] {
1776
1799
  transform: translateY(-7px) rotate(-45deg);
1777
1800
  }
1778
1801
  }
1779
- `),V2=[{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'}],Y2={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]},K2=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},J2=`https://fonts.googleapis.com/css2?${Object.entries(Y2).map(([e,t])=>`family=${K2(e,t)}`).join("&")}&display=swap`,Xl=V2.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Xl.map(e=>e.css);const X2=e=>e.replace(/"/g,'\\"');Xl.map(e=>{const t=X2(e.css);return`
1802
+ `),uk=[{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'}],dk={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]},hk=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},fk=`https://fonts.googleapis.com/css2?${Object.entries(dk).map(([e,t])=>`family=${hk(e,t)}`).join("&")}&display=swap`,Ys=uk.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Ys.map(e=>e.css);const pk=e=>e.replace(/"/g,'\\"');Ys.map(e=>{const t=pk(e.css);return`
1780
1803
  .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
1781
1804
  .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
1782
1805
  content: '${e.label}';
1783
1806
  font-family: ${e.css};
1784
1807
  }`}).join(`
1785
- `);const Q2=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,a,i)=>{t++;const r=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${a}>${r}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Da(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:a,lang:i,skipLink:r,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:p,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectAnimationScript:m=!0,injectFontAssets:b=!0}){var q;const v=((q=e==null?void 0:e[t])==null?void 0:q.data)??{};i??v.lang;const k=r??v.skipLink??void 0,S=l??v.accessibilityTools??void 0,$=Object.values(e??{}).some(B=>(B==null?void 0:B.type)==="SkipLink"),w=Object.values(e??{}).some(B=>(B==null?void 0:B.type)==="AccessibilityTools");!$&&(k==null||k.enabled);const _=!w&&!!(S!=null&&S.enabled),N=_?kl(S):"",A=_?_l(S):"",y=_?$l():"",R=d&&O2(e)?F2():"",M=h&&z2(e)?G2():"",T=L2(e)?H2():"",L=B2(e),H=m&&L?D2():"",F=g.jsxs("div",{style:{margin:0,padding:0},children:[s&&g.jsx("style",{dangerouslySetInnerHTML:{__html:q2()}}),N&&g.jsx("style",{dangerouslySetInnerHTML:{__html:N}}),L&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Z2}}),b&&g.jsx("link",{rel:"stylesheet",href:J2}),g.jsx("style",{children:`.gc-tooltip * {
1808
+ `);const mk=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,r,i)=>{t++;const a=String(i).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${r}>${a}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function Sa(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:r,lang:i,skipLink:a,accessibilityTools:l,includePageCSS:s,headHtml:c,bodyBottomHtml:u,isBanner:f,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectAnimationScript:p=!0,injectFontAssets:b=!0}){var K;const x=((K=e==null?void 0:e[t])==null?void 0:K.data)??{};i??x.lang;const w=a??x.skipLink??void 0,v=l??x.accessibilityTools??void 0,_=Object.values(e??{}).some(G=>(G==null?void 0:G.type)==="SkipLink"),S=Object.values(e??{}).some(G=>(G==null?void 0:G.type)==="AccessibilityTools");!_&&(w==null||w.enabled);const $=!S&&!!(v!=null&&v.enabled),y=$?Ss(v):"",C=$?ks(v):"",R=$?_s():"",I=d&&J2(e)?rk():"",E=h&&Q2(e)?ak():"",P=X2(e)?ok():"",T=tk(e),z=p&&T?nk():"",H=g.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[s&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ck()}}),y&&g.jsx("style",{dangerouslySetInnerHTML:{__html:y}}),T&&g.jsx("style",{dangerouslySetInnerHTML:{__html:lk}}),b&&g.jsx("link",{rel:"stylesheet",href:fk}),g.jsx("style",{children:`.gc-tooltip * {
1786
1809
  margin: 0;
1787
1810
  padding: 0;
1788
1811
  box-sizing: border-box;
1789
1812
  }
1790
1813
  .gc-tooltip .gc-close { display: none !important; }
1791
- .gc-tooltip .gc-copyright { display: none !important; }`}),A&&g.jsx("div",{dangerouslySetInnerHTML:{__html:A}}),y&&g.jsx("script",{dangerouslySetInnerHTML:{__html:y}}),(()=>{const B=M2(e),Y=T2(e),de=P2(e,t),oe=B?e[B]:null,ee=Y?e[Y]:null,Z=de?g.jsx(sn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,mainBlockId:de,hoistedSkipLinkId:B,hoistedA11yToolsId:Y}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(sn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,hoistedSkipLinkId:B,hoistedA11yToolsId:Y})});return g.jsxs(g.Fragment,{children:[oe&&g.jsx(wl,{...oe.data??{}}),p?Z:g.jsx("div",{className:"ahd-page-root",children:Z}),ee&&g.jsx(Cl,{...ee.data??{}})]})})(),R&&g.jsx("script",{dangerouslySetInnerHTML:{__html:R}}),M&&g.jsx("script",{dangerouslySetInnerHTML:{__html:M}}),T&&g.jsx("script",{dangerouslySetInnerHTML:{__html:T}}),H&&g.jsx("script",{dangerouslySetInnerHTML:{__html:H}})]}),j=is.renderToStaticMarkup(F);let O=a?Q2(j):j;return c&&(O=O.replace("</head>",`${c}</head>`)),u&&(O=O.replace("</body>",`${u}</body>`)),O}function wi(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function ew(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",o=((a=e==null?void 0:e[n])==null?void 0:a.data)??{};try{return Da(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectAnimationScript:t.injectAnimationScript,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 jo(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tw(e,t={}){var k,S,$;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,a=[],i=e.map(w=>{var A;if(wi(w))return n&&a.push(String((w==null?void 0:w.content)??"")),w;const _=(A=w==null?void 0:w.contentMetadata)==null?void 0:A.document;if(!_)return w!=null&&w.content&&a.push(String(w.content)),w;const N=ew(_,t);return N&&a.push(N),{...w,content:N,contentMetadata:{...w.contentMetadata??{},document:_}}}),r=a.join(`
1792
- `);if(!o)return{html:r,sectionHtml:a,flushedSections:i};const l=e.find(w=>!wi(w)),s=(($=(S=(k=l==null?void 0:l.contentMetadata)==null?void 0:k.document)==null?void 0:S.root)==null?void 0:$.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",p=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${jo(t.seoTitle)}</title>`:"",h=t.seoDescription?`<meta name="description" content="${jo(t.seoDescription)}" />`:"",m=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
1793
- <html lang="${jo(c)}">
1814
+ .gc-tooltip .gc-copyright { display: none !important; }`}),g.jsx("style",{dangerouslySetInnerHTML:{__html:sa}}),C&&g.jsx("div",{dangerouslySetInnerHTML:{__html:C}}),R&&g.jsx("script",{dangerouslySetInnerHTML:{__html:R}}),(()=>{const G=q2(e),oe=V2(e),le=Y2(e,t),se=G?e[G]:null,ce=oe?e[oe]:null,Ee=le?g.jsx(kn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!f,mainBlockId:le,hoistedSkipLinkId:G,hoistedA11yToolsId:oe}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(kn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!f,hoistedSkipLinkId:G,hoistedA11yToolsId:oe})});return g.jsxs(g.Fragment,{children:[se&&g.jsx(ws,{...se.data??{}}),f?Ee:g.jsx("div",{className:"ahd-page-root",children:Ee}),ce&&g.jsx($s,{...ce.data??{}})]})})(),I&&g.jsx("script",{dangerouslySetInnerHTML:{__html:I}}),E&&g.jsx("script",{dangerouslySetInnerHTML:{__html:E}}),P&&g.jsx("script",{dangerouslySetInnerHTML:{__html:P}}),z&&g.jsx("script",{dangerouslySetInnerHTML:{__html:z}})]}),Z=rc.renderToStaticMarkup(H);let j=r?mk(Z):Z;const V=K2(),Y=j.lastIndexOf("</div>");return j=Y!==-1?j.slice(0,Y)+V+j.slice(Y):j+V,c&&(j=j.replace("</head>",`${c}</head>`)),u&&(j=j.replace("</body>",`${u}</body>`)),j}function ul(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function gk(e,t={}){var r;if(!e)return"";const n=t.rootBlockId??"root",o=((r=e==null?void 0:e[n])==null?void 0:r.data)??{};try{return Sa(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectAnimationScript:t.injectAnimationScript,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 sr(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function bk(e,t={}){var w,v,_;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,r=[],i=e.map(S=>{var C;if(ul(S))return n&&r.push(String((S==null?void 0:S.content)??"")),S;const $=(C=S==null?void 0:S.contentMetadata)==null?void 0:C.document;if(!$)return S!=null&&S.content&&r.push(String(S.content)),S;const y=gk($,t);return y&&r.push(y),{...S,content:y,contentMetadata:{...S.contentMetadata??{},document:$}}}),a=r.join(`
1815
+ `);if(!o)return{html:a,sectionHtml:r,flushedSections:i};const l=e.find(S=>!ul(S)),s=((_=(v=(w=l==null?void 0:l.contentMetadata)==null?void 0:w.document)==null?void 0:v.root)==null?void 0:_.data)??{},c=t.lang||s.lang||"en",u=t.canvasColor||s.canvasColor||"#FFFFFF",f=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${sr(t.seoTitle)}</title>`:"",h=t.seoDescription?`<meta name="description" content="${sr(t.seoDescription)}" />`:"",p=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
1816
+ <html lang="${sr(c)}">
1794
1817
  <head>
1795
1818
  <meta charset="utf-8" />
1796
1819
  <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -1798,13 +1821,13 @@ ${d}
1798
1821
  ${h}
1799
1822
  <style>
1800
1823
  html, body { margin: 0; padding: 0; }
1801
- body { background: ${u}; font-family: ${p}; }
1824
+ body { background: ${u}; font-family: ${f}; }
1802
1825
  * { box-sizing: border-box; }
1803
1826
  </style>
1804
- ${m}
1827
+ ${p}
1805
1828
  </head>
1806
1829
  <body>
1807
- ${r}
1830
+ ${a}
1808
1831
  ${b}
1809
1832
  </body>
1810
- </html>`,sectionHtml:a,flushedSections:i}}function nw(e){var i,r,l,s,c,u,p,d,h,m,b;if(!e)return[];const t=e.configuration??{},n=(r=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:r.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const v=new Set,k=[];for(const S of o){const $=(u=(c=(s=(l=S==null?void 0:S.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray($))for(const w of $)!(w!=null&&w.id)||v.has(w.id)||(v.add(w.id),k.push(w))}if(k.length>0)return k}const a=(b=(m=(h=(d=(p=t==null?void 0:t.step)==null?void 0:p.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:m.data)==null?void 0:b.formFields;return Array.isArray(a)&&a.length>0?a:Array.isArray(e.formFields)?e.formFields:[]}function ow(e){var n,o,a,i,r,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(a=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&a.root?t.content.contentMetadata.document:(r=(i=t.contentMetadata)==null?void 0:i.document)!=null&&r.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function aw(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function rw(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Ql(e){if(!e||typeof e!="object")return e;const t=Gl(e);return!t||t.length===0?e:Wl(e,t)}const iw=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text"]);function lw(e){var o,a,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((a=e==null?void 0:e.data)==null?void 0:a.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function es(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,a]of Object.entries(e)){const i=a==null?void 0:a.type;i&&!iw.has(i)?(n[o]=lw(a),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=a}return t?n:e}function Ha(e,t){var r;if(!e)return"";const n=t.rootBlockId??"root",o=Ql(e),a=es(o),i=((r=a==null?void 0:a[n])==null?void 0:r.data)??{};return Da(a,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner})}function ts(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 ns(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function os(e,t,n){const o=await n(e,t);if(!o.ok){const a=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:a}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function sw(e,t){var v;const{baseUrl:n,tenantId:o,pageId:a}=t,r=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${a}`,l=ts(t),s=await os(r,{method:"GET",headers:ns(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${r} → ${s.status}${s.text?`: ${s.text}`:""}`);const c=s.body,{wrapInDocumentShell:u=!0,headHtml:p,bodyBottomHtml:d}=t,h=Array.isArray(c==null?void 0:c.sections)?c.sections:[];if(h.length===0)return Ha(((v=c==null?void 0:c.contentMetadata)==null?void 0:v.document)??e,t);const m=h.map(k=>{var _;const S=(_=k==null?void 0:k.contentMetadata)==null?void 0:_.document;if(!S)return k;const $=Ql(S),w=es($);return{...k,contentMetadata:{...k.contentMetadata??{},document:w}}}),{html:b}=tw(m,{rootBlockId:t.rootBlockId,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,isBanner:t.isBanner,seo:t.seo,wrapInDocumentShell:u,seoTitle:(c==null?void 0:c.metaTitle)??(c==null?void 0:c.title)??(c==null?void 0:c.name),seoDescription:c==null?void 0:c.metaDescription,lang:t.lang??(c==null?void 0:c.lang),extraHead:p??(c==null?void 0:c.head)??"",extraBodyBottom:d??(c==null?void 0:c.bodyBottom)??""});return b}async function cw(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:a=!1}=e,i=t.replace(/\/+$/,""),r=ts(e),l=a?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=a?{"Content-Type":"application/json"}:ns(e),c=await os(l,{method:"GET",headers:s},r);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function uw(e,t){if(!t)return e;const n=new Map;for(const a of e)a!=null&&a.id&&n.set(a.id,a);if(Array.isArray(t)){for(const a of t){if(!(a!=null&&a.id))continue;const r={...n.get(a.id)??{id:a.id,name:a.id,type:"text"},...a};n.set(a.id,r)}return Array.from(n.values())}const o=Object.entries(t).filter(([,a])=>a!=null);if(o.length===0)return e;for(const[a,i]of o){const r=String(i),l=n.get(a);l?n.set(a,{...l,value:r}):n.set(a,{id:a,name:a,type:"text",value:r})}return Array.from(n.values())}async function dw(e,t){const n=await cw(t),o=ow(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const a=nw(n),i=uw(a,t.variables),r=Wl(o,i);return Ha(r,t)}function hw(e,t){return rw(t)?dw(e,t):aw(t)?sw(e,t):Ha(e,t)}exports.Reader=sn;exports.ReaderBlock=ve;exports.ReaderBlockSchema=Jl;exports.ReaderDocumentSchema=E2;exports.renderToStaticHtml=hw;exports.renderToStaticMarkup=Da;
1833
+ </html>`,sectionHtml:r,flushedSections:i}}function xk(e){var i,a,l,s,c,u,f,d,h,p,b;if(!e)return[];const t=e.configuration??{},n=(a=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:a.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const x=new Set,w=[];for(const v of o){const _=(u=(c=(s=(l=v==null?void 0:v.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:c.data)==null?void 0:u.formFields;if(Array.isArray(_))for(const S of _)!(S!=null&&S.id)||x.has(S.id)||(x.add(S.id),w.push(S))}if(w.length>0)return w}const r=(b=(p=(h=(d=(f=t==null?void 0:t.step)==null?void 0:f.contentMetadata)==null?void 0:d.document)==null?void 0:h.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function vk(e){var n,o,r,i,a,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.root?t.content.contentMetadata.document:(a=(i=t.contentMetadata)==null?void 0:i.document)!=null&&a.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function dl(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,o)=>n==null?n:n[o],e)}function ka(e,t){if(t){const n=dl(e,t);if(Array.isArray(n))return n;const o=ka(e);if(o){const r=o.map(i=>dl(i,t)).filter(i=>i&&typeof i=="object");if(r.length>0)return r}}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 wk(e,t){if(!t||t.length===0){const o={};for(const[r,i]of Object.entries(e))i!=null&&(o[r]=String(i));return o}const n={};for(const o of t){const r=e[o.id];r!=null&&r!==""&&(n[o.id]=String(r))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function Sk(e,t,n,o){if(typeof AbortController>"u")return n(e,t);const r=new AbortController,i=setTimeout(()=>r.abort(),o);try{return await n(e,{...t,signal:r.signal})}finally{clearTimeout(i)}}async function Ks(e,t={}){var f;const n=Array.isArray(e)?e:[],o=n.filter(d=>{var h,p;return((h=d==null?void 0:d.dataSource)==null?void 0:h.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(o.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const r=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!r){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const h of o)(f=t.onError)==null||f.call(t,h,d);return{fields:n,attempted:o.length,refreshed:0,errors:Object.fromEntries(o.map(h=>[h.id,d.message]))}}const i=t.timeoutMs??1e4,a={};let l=0;const s=await Promise.all(o.map(async d=>{var x;const{apiUrl:h,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await Sk(h,{method:p,headers:{Accept:"application/json",...t.headers}},r,i);if(!w.ok)throw new Error(`GET ${h} → HTTP ${w.status}`);const v=await w.json(),_=ka(v,b);if(!_)throw new Error(`GET ${h} → response had no array of rows`);const S=_.map($=>wk($,d.itemFields));return l+=1,{id:d.id,value:S}}catch(w){const v=w instanceof Error?w:new Error(String(w));return a[d.id]=v.message,(x=t.onError)==null||x.call(t,d,v),null}}));if(l===0)return{fields:n,attempted:o.length,refreshed:0,errors:a};const c=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>c.has(d.id)?{...d,value:c.get(d.id)}:d),attempted:o.length,refreshed:l,errors:a}}async function Js(e,t={}){var o,r;const n=(r=(o=e==null?void 0:e.root)==null?void 0:o.data)==null?void 0:r.formFields;return Ks(Array.isArray(n)?n:[],t)}function kk(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function _k(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function $k(e){const t=e;return!!(t.templateId&&t.baseUrl)}function Ck(e){if(!e||typeof e!="object")return e;const t=va(e);return!t||t.length===0?e:wa(e,t)}async function hl(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=va(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let o=n,r=null;return t.refreshApiDataSources&&(r=await Js(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),o=r.fields),{document:wa(e,o),apiRefresh:r}}const Ak=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text"]);function yk(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function Xs(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!Ak.has(i)?(n[o]=yk(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function _a(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=Ck(e),r=Xs(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return Sa(r,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner})}function $a(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 Ca(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Aa(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function Qs(e,t,n){var c;const{wrapInDocumentShell:o=!0,headHtml:r,bodyBottomHtml:i}=n,a=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(a.length===0){const{document:u}=await hl(((c=t==null?void 0:t.contentMetadata)==null?void 0:c.document)??e,n);return _a(u,n)}const l=await Promise.all(a.map(async u=>{var p;const f=(p=u==null?void 0:u.contentMetadata)==null?void 0:p.document;if(!f)return u;const{document:d}=await hl(f,n),h=Xs(d);return{...u,contentMetadata:{...u.contentMetadata??{},document:h}}})),{html:s}=bk(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:o,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:r??(t==null?void 0:t.head)??"",extraBodyBottom:i??(t==null?void 0:t.bodyBottom)??""});return s}async function Ik(e,t){const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=$a(t),s=await Aa(a,{method:"GET",headers:Ca(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);return Qs(e,s.body,{...t,fetchFn:l})}async function Rk(e,t){var d;const{baseUrl:n,tenantId:o,pagePath:r,cache:i=!1,update:a=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${o}/pagebypath/${encodeURIComponent(r)}?cache=${i}&update=${a}`,c=$a(t),u=await Aa(s,{method:"GET",headers:Ca(t)},c);if(!u.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${u.status}${u.text?`: ${u.text}`:""}`);const f=((d=u.body)==null?void 0:d.payload)??u.body;return Qs(e,f,{...t,fetchFn:c})}async function Ek(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=$a(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Ca(e),c=await Aa(l,{method:"GET",headers:s},a);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function Nk(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function Mk(e,t){const n=await Ek(t),o=vk(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=xk(n),i=Nk(r,t.variables),a=wa(o,i);return _a(a,t)}function Tk(e,t){return $k(t)?Mk(e,t):_k(t)?Rk(e,t):kk(t)?Ik(e,t):_a(e,t)}function Pk(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function Ok(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(o=>t[o]??o)}))),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(o=>t[o]??o)})),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(o=>t[o]??o)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(o=>t[o]??o)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(o=>t[o]??o)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(o=>t[o]??o)}:{}})))))}function Ct(e,t){const n=ba(e,t),o={};n.forEach(i=>{o[i]=Pk()});const r={};return n.forEach(i=>{const a=JSON.parse(JSON.stringify(e[i]));Ok(a,o),r[o[i]]=a}),{newBlocks:r,idMap:o,newRootId:o[t]}}function Lk(e,t,n){var o,r,i,a;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const c=s;if(c.data&&Array.isArray(c.data.childrenIds)&&c.data.childrenIds.includes(t)){const u=c.data.childrenIds.indexOf(t),f=[...c.data.childrenIds];return f.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,childrenIds:f}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.childrenIds)&&c.data.props.childrenIds.includes(t)){const u=c.data.props.childrenIds.indexOf(t),f=[...c.data.props.childrenIds];return f.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,childrenIds:f}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.columns)){const u=c.data.props.columns;for(let f=0;f<u.length;f++){const d=u[f];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const h=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[f].childrenIds.splice(h+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,columns:p}}}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.cells)){const u=c.data.props.cells;for(let f=0;f<u.length;f++){const d=u[f];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const h=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[f].childrenIds.splice(h+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,cells:p}}}}}}}if(c.type==="PricingAccordion"&&((o=c.data)!=null&&o.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let f=0;f<u.length;f++){const d=Array.isArray(u[f].cardChildrenIds)?u[f].cardChildrenIds:[],h=Array.isArray(u[f].detailChildrenIds)?u[f].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[h,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=u.map(v=>({...v,cardChildrenIds:Array.isArray(v.cardChildrenIds)?[...v.cardChildrenIds]:[],detailChildrenIds:Array.isArray(v.detailChildrenIds)?[...v.detailChildrenIds]:[]}));return w[f][b].splice(x+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:w}}}}}}}if((c.type==="TabsBlock"||c.type==="VerticalAccordion"||c.type==="Carousel"||c.type==="Marquee"||c.type==="Pagination")&&((r=c.data)!=null&&r.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let f=0;f<u.length;f++){const d=Array.isArray(u[f].contentChildrenIds)?u[f].contentChildrenIds:[];if(d.includes(t)){const h=d.indexOf(t),p=u.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[f].contentChildrenIds.splice(h+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:p}}}}}}}if(c.type==="MenuPicker"&&((i=c.data)!=null&&i.props))for(const u of["startChildrenIds","endChildrenIds"]){const f=Array.isArray(c.data.props[u])?c.data.props[u]:[];if(f.includes(t)){const d=f.indexOf(t),h=[...f];return h.splice(d+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,[u]:h}}}}}}if(c.type==="Accordion"&&((a=c.data)!=null&&a.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let f=0;f<u.length;f++){const d=u[f],h=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(h.includes(t)){const b=h.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[f].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[f].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}}}}return null}function zk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="FlexColumns")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:i,columnIndex:s}}}return null}function jk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(!((a==null?void 0:a.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:i,cellIndex:s}}}return null}function Bk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="Pagination")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:i,cellIndex:s}}}return null}function Dk(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=a==null?void 0:a.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.items;if(Array.isArray(s)){for(let c=0;c<s.length;c++)if(Array.isArray((r=s[c])==null?void 0:r.contentChildrenIds)&&s[c].contentChildrenIds.includes(t))return{parentId:i,itemIndex:c,parentType:l}}}return null}function fl(e,t,n){var d,h,p;if(!e[t])return null;const o=e[t];if((o==null?void 0:o.type)==="TabsBlock"){const x=Array.isArray((h=(d=o.data)==null?void 0:d.props)==null?void 0:h.items)?o.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},v=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let _={...e};const S=[];let $=null;for(const R of v){if(!_[R])continue;const{newBlocks:I,newRootId:E}=Ct(_,R);_={..._,...I},S.push(E),$||($=E)}const y=$??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:S}];return _={..._,[t]:{...o,data:{...o.data,props:{...o.data.props,items:C}}}},{updatedDocument:_,newRootId:y}}const r=jk(e,n);if(r){const b=e[r.gridId],x=b.data.props??{},w=x.columnsCount??2,v=x.rowsCount??2,_=Array.isArray(x.cells)?x.cells:[],$=_.some(T=>(T==null?void 0:T.colStart)!=null||(T==null?void 0:T.rowStart)!=null||(T==null?void 0:T.colSpan)!=null||(T==null?void 0:T.rowSpan)!=null)?_.length:w*v,y=Array.from({length:$},(T,z)=>_[z]??{childrenIds:[]});let C=y.findIndex((T,z)=>z>r.cellIndex&&(!Array.isArray(T==null?void 0:T.childrenIds)||T.childrenIds.length===0));if(C===-1&&(C=y.findIndex(T=>!Array.isArray(T==null?void 0:T.childrenIds)||T.childrenIds.length===0)),C===-1)return null;const{newBlocks:R,newRootId:I}=Ct(e,t),E=y.map((T,z)=>z===C?{...T,childrenIds:[...(T==null?void 0:T.childrenIds)??[],I]}:T);return{updatedDocument:{...e,...R,[r.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:I}}const i=Bk(e,n);if(i){const b=e[i.paginationId],x=b.data.props??{},w=x.columnsCount??2,v=x.rowsCount??2,_=Array.isArray(x.cells)?x.cells:[],S=Math.max(w*v,_.length),$=Array.from({length:S},(P,T)=>_[T]??{childrenIds:[]});let y=$.findIndex((P,T)=>T>i.cellIndex&&(!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0));y===-1&&(y=$.findIndex(P=>!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0)),y===-1&&($.push({childrenIds:[]}),y=$.length-1);const{newBlocks:C,newRootId:R}=Ct(e,t),I=$.map((P,T)=>T===y?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],R]}:P);return{updatedDocument:{...e,...C,[i.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:I}}}},newRootId:R}}const a=zk(e,n);if(a){const b=e[a.flexId],x=b.data.props??{},w=x.columnsCount??2,v=Array.isArray(x.columns)?x.columns:[],_=Array.from({length:w},(I,E)=>v[E]??{childrenIds:[]});let S=_.findIndex((I,E)=>E>a.columnIndex&&(!Array.isArray(I==null?void 0:I.childrenIds)||I.childrenIds.length===0));if(S===-1&&(S=_.findIndex(I=>!Array.isArray(I==null?void 0:I.childrenIds)||I.childrenIds.length===0)),S===-1)return null;const{newBlocks:$,newRootId:y}=Ct(e,t),C=_.map((I,E)=>E===S?{...I,childrenIds:[...(I==null?void 0:I.childrenIds)??[],y]}:I);return{updatedDocument:{...e,...$,[a.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=Dk(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,v=x.findIndex((C,R)=>R>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(v===-1&&(v=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),v===-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,v=x.length-1}else return null;const{newBlocks:_,newRootId:S}=Ct(w,t),$=x.map((C,R)=>R===v?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${R+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],S]}:C);return{updatedDocument:{...w,..._,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:$}}}},newRootId:S}}const{newBlocks:s,newRootId:c}=Ct(e,t),u={...e,...s},f=Lk(u,n,c);return f&&(u[f.parentId]=f.updatedParent),{updatedDocument:u,newRootId:c}}function ec(e,t){const n=r=>Array.isArray(r)?r.filter(i=>!t.has(i)):r,o={};for(const[r,i]of Object.entries(e)){if(t.has(r))continue;const a=i;if(!(a!=null&&a.data)){o[r]=a;continue}const l={...a.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(c=>({...c,childrenIds:n(c.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(c=>c===null||typeof c!="object"?c:{...c,childrenIds:n(c.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(c=>({...c,...c.titleChildrenIds!==void 0?{titleChildrenIds:n(c.titleChildrenIds)}:{},...c.contentChildrenIds!==void 0?{contentChildrenIds:n(c.contentChildrenIds)}:{},...c.cardChildrenIds!==void 0?{cardChildrenIds:n(c.cardChildrenIds)}:{},...c.detailChildrenIds!==void 0?{detailChildrenIds:n(c.detailChildrenIds)}:{}}))),l.props=s}o[r]={...a,data:l}}return o}function Fk(e){var o;const t=e==null?void 0:e.type,n=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};if(t==="Grid"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],s=a.some(u=>(u==null?void 0:u.colStart)!=null||(u==null?void 0:u.rowStart)!=null||(u==null?void 0:u.colSpan)!=null||(u==null?void 0:u.rowSpan)!=null)?a.length:r*i,c=Array.from({length:s},(u,f)=>{var d;return{childrenIds:Array.isArray((d=a[f])==null?void 0:d.childrenIds)?a[f].childrenIds:[]}});return{slotCount:s,slots:c}}if(t==="FlexColumns"){const r=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),i=Array.isArray(n.columns)?n.columns:[],a=Array.from({length:r},(l,s)=>{var c;return{childrenIds:Array.isArray((c=i[s])==null?void 0:c.childrenIds)?i[s].childrenIds:[]}});return{slotCount:r,slots:a}}if(t==="Carousel"||t==="Marquee"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="TabsBlock"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="Pagination"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],l=Math.max(r*i,a.length),s=Array.from({length:l},(c,u)=>{var f;return{childrenIds:Array.isArray((f=a[u])==null?void 0:f.childrenIds)?a[u].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function Rn(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const Hn=new WeakMap;function wo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const o=Hn.get(n);if(o!==void 0)return o&&o.containerId===t?o:o&&{...o,containerId:t};if(!Rn(n.type))return Hn.set(n,null),null;const r=Fk(n);if(!r)return Hn.set(n,null),null;const{slotCount:i,slots:a}=r,l=a.findIndex(u=>u.childrenIds.length>0),s=a.filter(u=>u.childrenIds.length===0).length,c={containerId:t,type:n.type,slotCount:i,slots:a,firstFilledSlot:l,emptySlotCount:s};return Hn.set(n,c),c}function Jr(e,t){for(const[n,o]of Object.entries(e)){if(!Rn(o==null?void 0:o.type))continue;const r=wo(e,n);if(r!=null&&r.slots.some(i=>i.childrenIds.includes(t)))return n}return null}function tc(e,t,n,o){var c;const r=e[t];if(!r||!Rn(r.type))return e;const i=((c=r.data)==null?void 0:c.props)??{};if(r.type==="Grid"){let u=i.columnsCount??2,f=i.rowsCount??2;if(u*f>=n)return e;o==="columns"?u=Math.max(u,Math.ceil(n/Math.max(1,f))):f=Math.max(f,Math.ceil(n/Math.max(1,u)));const d=u*f,h=Array.isArray(i.cells)?i.cells:[],p=Array.from({length:d},(b,x)=>h[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:u,rowsCount:f,cells:p}}}}}if(r.type==="Carousel"){const f=Array.isArray(i.items)?i.items:[];if(f.length>=n)return e;const d=Math.min(n,20),h=Array.from({length:d},(p,b)=>f[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:h}}}}}if(r.type==="Marquee"){const f=Array.isArray(i.items)?i.items:[];if(f.length>=n)return e;const d=Math.min(n,30),h=Array.from({length:d},(p,b)=>f[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:h}}}}}if(r.type==="TabsBlock"){const f=Array.isArray(i.items)?i.items:[];if(f.length>=n)return e;const d=Math.min(n,10),h=Array.from({length:d},(p,b)=>f[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:h}}}}}if(r.type==="Pagination"){const u=i.columnsCount??2,f=i.rowsCount??2,d=Array.isArray(i.cells)?i.cells:[];if(Math.max(u*f,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,cells:p}}}}}if((i.columnsCount??(Array.isArray(i.columns)?i.columns.length:2))>=n)return e;const l=Array.isArray(i.columns)?i.columns:[],s=Array.from({length:n},(u,f)=>l[f]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:n,columns:s}}}}}function nc(e,t,n){var c;const o=e[t];if(!o||!Rn(o.type))return e;const r=wo(e,t);if(!r)return e;let i=-1;r.slots.forEach((u,f)=>{u.childrenIds.length>0&&(i=f)});const a=Math.max(n,i+1,1);if(a>=r.slotCount)return e;const l=((c=o.data)==null?void 0:c.props)??{};if(o.type==="Pagination"){const u=(l.columnsCount??2)*(l.rowsCount??2),f=Math.max(a,u);if(f>=r.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,cells:d.slice(0,f)}}}}}if(o.type==="Carousel"||o.type==="Marquee"||o.type==="TabsBlock"){const u=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,items:u.slice(0,a)}}}}}if(o.type==="Grid"){const u=l.columnsCount??2,f=l.rowsCount??2,d=Math.max(1,Math.ceil(a/Math.max(1,u)));if(d>=f)return e;const h=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,rowsCount:d,cells:h.slice(0,u*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,columnsCount:a,columns:s.slice(0,a)}}}}}function Hk(e,t,n,o="columns"){const r=t==null?void 0:t.sourceBlockId;if(!r||!e[r])return null;const i=Math.max(1,n);let a=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===i)return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<i){let f=!1;for(;s<i;){const d=l.length>0?l[l.length-1]:r;let h=fl(a,r,d);if(!h){const p=Jr(a,r);if(!p){f=!0;break}const b=wo(a,p),x=((b==null?void 0:b.slotCount)??0)+(i-s),w=tc(a,p,x,o);if(w===a){f=!0;break}if(a=w,h=fl(a,r,d),!h){f=!0;break}}a=h.updatedDocument,l=[...l,h.newRootId],s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:f}}const c=i,u=l.slice(c-1);if(u.length>0){const f=new Set;for(const h of u)for(const p of ba(a,h))f.add(p);a=ec(a,f);const d=Jr(a,r);d&&(a=nc(a,d,c)),l=l.slice(0,c-1),s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=kn;exports.ReaderBlock=ke;exports.ReaderBlockSchema=Vs;exports.ReaderDocumentSchema=Z2;exports.cloneSubtree=Ct;exports.extractApiRows=ka;exports.findRepeatableContainerOf=Jr;exports.getRepeatableContainerInfo=wo;exports.growContainerToFit=tc;exports.isRepeatableContainerType=Rn;exports.reconcileRepeatFieldRowCount=Hk;exports.refreshApiDataSources=Ks;exports.refreshDocumentApiDataSources=Js;exports.removeSubtree=ec;exports.renderToStaticHtml=Tk;exports.renderToStaticMarkup=Sa;exports.shrinkContainerToFit=nc;